mixpanel-browser 2.74.0 → 2.75.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/.github/workflows/unit-tests.yml +1 -1
  2. package/CHANGELOG.md +5 -0
  3. package/README.md +2 -2
  4. package/dist/mixpanel-core.cjs.js +318 -20
  5. package/dist/mixpanel-recorder.js +127 -15
  6. package/dist/mixpanel-recorder.min.js +1 -1
  7. package/dist/mixpanel-recorder.min.js.map +1 -1
  8. package/dist/mixpanel-targeting.js +2576 -0
  9. package/dist/mixpanel-targeting.min.js +2 -0
  10. package/dist/mixpanel-targeting.min.js.map +1 -0
  11. package/dist/mixpanel-with-async-modules.cjs.d.ts +522 -0
  12. package/dist/mixpanel-with-async-modules.cjs.js +9700 -0
  13. package/dist/mixpanel-with-async-recorder.cjs.js +318 -20
  14. package/dist/mixpanel-with-recorder.js +435 -26
  15. package/dist/mixpanel-with-recorder.min.js +1 -1
  16. package/dist/mixpanel.amd.js +1020 -28
  17. package/dist/mixpanel.cjs.js +1020 -28
  18. package/dist/mixpanel.globals.js +318 -20
  19. package/dist/mixpanel.min.js +179 -172
  20. package/dist/mixpanel.module.js +1020 -28
  21. package/dist/mixpanel.umd.js +1020 -28
  22. package/dist/rrweb-bundled.js +119 -5
  23. package/dist/rrweb-compiled.js +116 -5
  24. package/package.json +4 -3
  25. package/rollup.config.mjs +34 -2
  26. package/src/config.js +1 -1
  27. package/src/flags/index.js +269 -8
  28. package/src/globals.js +14 -0
  29. package/src/loaders/loader-module.js +1 -0
  30. package/src/mixpanel-core.js +12 -3
  31. package/src/recorder/index.js +2 -1
  32. package/src/targeting/event-matcher.js +97 -0
  33. package/src/targeting/index.js +11 -0
  34. package/src/targeting/loader.js +36 -0
  35. package/src/utils.js +1 -8
  36. package/.claude/settings.local.json +0 -12
  37. /package/src/loaders/{loader-module-with-async-recorder.js → loader-module-with-async-modules.js} +0 -0
@@ -1,2 +1,2 @@
1
- (function(){"use strict";var z;if(typeof window=="undefined"){var Ms={hostname:""};z={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Ms,referrer:""},screen:{width:0,height:0},location:Ms,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else z=window;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 ks(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 $r(r){return function(){var i=this,o=arguments;return new Promise(function(e,t){var n=r.apply(i,o);function s(u){ks(n,e,t,s,a,"next",u)}function a(u){ks(n,e,t,s,a,"throw",u)}s(void 0)})}}function kr(r,i,o){return _s()?kr=Reflect.construct:kr=function(t,n,s){var a=[null];a.push.apply(a,n);var u=Function.bind.apply(t,a),l=new u;return s&&Gt(l,s.prototype),l},kr.apply(null,arguments)}function oc(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&&oc(r.prototype,i),r}function N(){return N=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},N.apply(this,arguments)}function hi(r){return hi=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},hi(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&&Gt(r,i)}function E(r,i){return i!=null&&typeof Symbol!="undefined"&&i[Symbol.hasInstance]?!!i[Symbol.hasInstance](r):r instanceof i}function sc(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function Xe(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 Gt(r,i){return Gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Gt(r,i)}function A(r){"@swc/helpers - typeof";return r&&typeof Symbol!="undefined"&&r.constructor===Symbol?"symbol":typeof r}function ac(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 Vt(r){var i=typeof Map=="function"?new Map:void 0;return Vt=function(e){if(e===null||!sc(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 kr(e,arguments,hi(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Gt(t,e)},Vt(r)}function _s(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(_s=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=ac(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 Qe(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 pi(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 uc=Object.defineProperty,lc=function(r,i,o){return i in r?uc(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},O=function(r,i,o){return lc(r,(typeof i=="undefined"?"undefined":A(i))!=="symbol"?i+"":i,o)},Ps,fc=Object.defineProperty,cc=function(r,i,o){return i in r?fc(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},Ts=function(r,i,o){return cc(r,(typeof i=="undefined"?"undefined":A(i))!=="symbol"?i+"":i,o)},ce=(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})(ce||{}),Ns={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ls={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},_r={},hc=function(){return!!globalThis.Zone};function di(r){if(_r[r])return _r[r];var i=globalThis[r],o=i.prototype,e=r in Ns?Ns[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 Ls?Ls[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&&!hc())return _r[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?_r[r]=l:o}catch(f){return o}}var vi={};function ze(r,i,o){var e,t=r+"."+String(o);if(vi[t])return vi[t].call(i);var n=di(r),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(vi[t]=s,s.call(i)):i[o]}var mi={};function Ds(r,i,o){var e=r+"."+String(o);if(mi[e])return mi[e].bind(i);var t=di(r),n=t[o];return typeof n!="function"?i[o]:(mi[e]=n,n.bind(i))}function pc(r){return ze("Node",r,"childNodes")}function dc(r){return ze("Node",r,"parentNode")}function vc(r){return ze("Node",r,"parentElement")}function mc(r){return ze("Node",r,"textContent")}function gc(r,i){return Ds("Node",r,"contains")(i)}function yc(r){return Ds("Node",r,"getRootNode")()}function wc(r){return!r||!("host"in r)?null:ze("ShadowRoot",r,"host")}function Sc(r){return r.styleSheets}function bc(r){return!r||!("shadowRoot"in r)?null:ze("Element",r,"shadowRoot")}function Cc(r,i){return ze("Element",r,"querySelector")(i)}function Ic(r,i){return ze("Element",r,"querySelectorAll")(i)}function Oc(){return di("MutationObserver").constructor}function xc(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 pe={childNodes:pc,parentNode:dc,parentElement:vc,textContent:mc,contains:gc,getRootNode:yc,host:wc,styleSheets:Sc,shadowRoot:bc,querySelector:Cc,querySelectorAll:Ic,mutationObserver:Oc,patch:xc};function Fs(r){return r.nodeType===r.ELEMENT_NODE}function Yt(r){var i=r&&"host"in r&&"mode"in r&&pe.host(r)||null;return!!(i&&"shadowRoot"in i&&pe.shadowRoot(i)===r)}function qt(r){return Object.prototype.toString.call(r)==="[object ShadowRoot]"}function Rc(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 Ec(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 gi(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 Bs(t,o)}).join("");return Rc(e)}catch(t){return null}}function Bs(r,i){if(Mc(r)){var o;try{o=gi(r.styleSheet)||Ec(r)}catch(t){o=r.cssText}return r.styleSheet.href?Nr(o,r.styleSheet.href):o}else{var e=r.cssText;return $c(r)&&r.selectorText.includes(":")&&(e=Ac(e)),i?Nr(e,i):e}}function Ac(r){var i=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return r.replace(i,"$1\\$2")}function Mc(r){return"styleSheet"in r}function $c(r){return"selectorText"in r}var Us=(function(){function r(){Ts(this,"idNodeMap",new Map),Ts(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){var t=this,n=this.getId(e);this.idNodeMap.delete(n),e.childNodes&&e.childNodes.forEach(function(s){return t.removeNodeFromMap(s)})},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 kc(){return new Us}function Pr(r){var i=r.element,o=r.maskInputOptions,e=r.tagName,t=r.type,n=r.value,s=r.maskInputFn,a=n||"",u=t&&et(t);return(o[e.toLowerCase()]||u&&o[u])&&(s?a=s(a,i):a="*".repeat(a.length)),a}function et(r){return r.toLowerCase()}var zs="__rrweb_original__";function _c(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=zs in n?n[zs]: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 Tr(r){var i=r.type;return r.hasAttribute("data-rr-is-password")?"password":i?et(i):null}function Ws(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 Pc(r){var i="";return r.indexOf("//")>-1?i=r.split("/").slice(0,3).join("/"):i=r.split("/")[0],i=i.split("?")[0],i}var Tc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Nc=/^(?:[a-z+]+:)?\/\//i,Lc=/^www\..*/i,Dc=/^(data:)([^,]*),(.*)/i;function Nr(r,i){return(r||"").replace(Tc,function(o,e,t,n,s,a){var u=t||s||a,l=e||n||"";if(!u)return o;if(Nc.test(u)||Lc.test(u)||Dc.test(u))return"url("+l+u+l+")";if(u[0]==="/")return"url("+l+(Pc(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 Lr(r,i){return i===void 0&&(i=!1),i?r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Fc(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=Lr(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=Lr(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 m=e[u-1].textContent;if(m&&typeof m=="string"){var p=Lr(m).length;d=s.indexOf(h,p)}d===-1&&(d=v[0].length)}if(d!==-1){for(var g=Math.floor(d/a);g>0&&g<r.length;){if(n+=1,n>50*e.length)return t.push(r),t;var w=Lr(r.substring(0,g),o);if(w.length===d){t.push(r.substring(0,g)),r=r.substring(g),s=s.substring(d);break}else w.length<d?g+=Math.max(1,Math.floor((d-w.length)/a)):g-=Math.max(1,Math.floor((w.length-d)*a))}break}}}}return t.push(r),t}function Bc(r,i){return Fc(r,i).join("/* rr_split */")}var Uc=1,zc=new RegExp("[^a-z0-9-_:]"),Jt=-2;function js(){return Uc++}function Wc(r){if(E(r,HTMLFormElement))return"form";var i=et(r.tagName);return zc.test(i)?"div":i}var gt,Gs,jc=/^[^ \t\n\r\u000c]+/,Gc=/^[, \t\n\r\u000c]+/;function Vc(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(Gc),!(o>=i.length);){var n=e(jc);if(n.slice(-1)===",")n=yt(r,n.substring(0,n.length-1)),t.push(n);else{var s="";n=yt(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 Vs=new WeakMap;function yt(r,i){return!i||i.trim()===""?i:yi(r,i)}function Yc(r){return!!(r.tagName==="svg"||r.ownerSVGElement)}function yi(r,i){var o=Vs.get(r);if(o||(o=r.createElement("a"),Vs.set(r,o)),!i)i="";else if(i.startsWith("blob:")||i.startsWith("data:"))return i;return o.setAttribute("href",i),o.href}function Ys(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")?yt(r,e):o==="srcset"?Vc(r,e):o==="style"?Nr(e,yi(r)):i==="object"&&o==="data"?yt(r,e):e)}function qs(r,i,o){return(r==="video"||r==="audio")&&i==="autoplay"}function qc(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 Dr(r,i,o){if(!r)return!1;if(r.nodeType!==r.ELEMENT_NODE)return o?Dr(pe.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?Dr(pe.parentNode(r),i,o):!1}function Js(r,i,o,e){var t;if(Fs(r)){if(t=r,!pe.childNodes(t).length)return!1}else{if(pe.parentElement(r)===null)return!1;t=pe.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(Dr(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 Jc(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 Hc(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 Zc(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,m=i.recordCanvas,p=i.keepIframeSrcFn,g=i.newlyAddedElement,w=g===void 0?!1:g,S=i.cssCaptured,b=S===void 0?!1:S,C=Kc(o,e);switch(r.nodeType){case r.DOCUMENT_NODE:return r.compatMode!=="CSS1Compat"?{type:ce.Document,childNodes:[],compatMode:r.compatMode}:{type:ce.Document,childNodes:[]};case r.DOCUMENT_TYPE_NODE:return{type:ce.DocumentType,name:r.name,publicId:r.publicId,systemId:r.systemId,rootId:C};case r.ELEMENT_NODE:return Qc(r,{doc:o,blockClass:t,blockSelector:n,inlineStylesheet:a,maskInputOptions:l,maskInputFn:c,dataURLOptions:v,inlineImages:d,recordCanvas:m,keepIframeSrcFn:p,newlyAddedElement:w,rootId:C});case r.TEXT_NODE:return Xc(r,{doc:o,needsMask:s,maskTextFn:f,rootId:C,cssCaptured:b});case r.CDATA_SECTION_NODE:return{type:ce.CDATA,textContent:"",rootId:C};case r.COMMENT_NODE:return{type:ce.Comment,textContent:pe.textContent(r)||"",rootId:C};default:return!1}}function Kc(r,i){if(i.hasNode(r)){var o=i.getId(r);return o===1?void 0:o}}function Xc(r,i){var o=i.needsMask,e=i.maskTextFn,t=i.rootId,n=i.cssCaptured,s=pe.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=pe.textContent(r),l&&u&&(u=Nr(u,yi(i.doc)))),!l&&!f&&u&&o&&(u=e?e(u,pe.parentElement(r)):u.replace(/[\S]/g,"*")),{type:ce.Text,textContent:u||"",rootId:t}}function Qc(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,m=d===void 0?!1:d,p=i.rootId,g=qc(r,e,t),w=Wc(r),S={},b=r.attributes.length,C=0;C<b;C++){var x=r.attributes[C];qs(w,x.name,x.value)||(S[x.name]=Ys(o,w,et(x.name),x.value))}if(w==="link"&&n){var M=Array.from(o.styleSheets).find(function(Ie){return Ie.href===r.href}),R=null;M&&(R=gi(M)),R&&(delete S.rel,delete S.href,S._cssText=R)}if(w==="style"&&r.sheet){var $=gi(r.sheet);$&&(r.childNodes.length>1&&($=Bc($,r)),S._cssText=$)}if(w==="input"||w==="textarea"||w==="select"){var T=r.value,_=r.checked;S.type!=="radio"&&S.type!=="checkbox"&&S.type!=="submit"&&S.type!=="button"&&T?S.value=Pr({element:r,type:Tr(r),tagName:w,value:T,maskInputOptions:a,maskInputFn:u}):_&&(S.checked=_)}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")_c(r)||(S.rr_dataURL=r.toDataURL(f.type,f.quality));else if(!("__context"in r)){var L=r.toDataURL(f.type,f.quality),j=o.createElement("canvas");j.width=r.width,j.height=r.height;var ye=j.toDataURL(f.type,f.quality);L!==ye&&(S.rr_dataURL=L)}}if(w==="img"&&c){gt||(gt=o.createElement("canvas"),Gs=gt.getContext("2d"));var G=r,be=G.currentSrc||G.getAttribute("src")||"<unknown-src>",me=G.crossOrigin,ie=function(){G.removeEventListener("load",ie);try{gt.width=G.naturalWidth,gt.height=G.naturalHeight,Gs.drawImage(G,0,0),S.rr_dataURL=gt.toDataURL(f.type,f.quality)}catch(Ie){if(G.crossOrigin!=="anonymous"){G.crossOrigin="anonymous",G.complete&&G.naturalWidth!==0?ie():G.addEventListener("load",ie);return}else console.warn("Cannot inline img src="+be+"! Error: "+Ie)}G.crossOrigin==="anonymous"&&(me?S.crossOrigin=me:G.removeAttribute("crossorigin"))};G.complete&&G.naturalWidth!==0?ie():G.addEventListener("load",ie)}if(w==="audio"||w==="video"){var he=S;he.rr_mediaState=r.paused?"paused":"played",he.rr_mediaCurrentTime=r.currentTime,he.rr_mediaPlaybackRate=r.playbackRate,he.rr_mediaMuted=r.muted,he.rr_mediaLoop=r.loop,he.rr_mediaVolume=r.volume}if(m||(r.scrollLeft&&(S.rr_scrollLeft=r.scrollLeft),r.scrollTop&&(S.rr_scrollTop=r.scrollTop)),g){var Ce=r.getBoundingClientRect(),ut=Ce.width,Pe=Ce.height;S={class:S.class,rr_width:""+ut+"px",rr_height:""+Pe+"px"}}w==="iframe"&&!v(S.src)&&(r.contentDocument||(S.rr_src=S.src),delete S.src);var Ut;try{customElements.get(w)&&(Ut=!0)}catch(Ie){}return{type:ce.Element,tagName:w,attributes:S,childNodes:[],isSVG:Yc(r)||void 0,needBlock:g,rootId:p,isCustom:Ut}}function H(r){return r==null?"":r.toLowerCase()}function eh(r,i){if(i.comment&&r.type===ce.Comment)return!0;if(r.type===ce.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"&&Ws(r.attributes.href)==="js"))return!0;if(i.headFavicon&&(r.tagName==="link"&&r.attributes.rel==="shortcut icon"||r.tagName==="meta"&&(H(r.attributes.name).match(/^msapplication-tile(image|color)$/)||H(r.attributes.name)==="application-name"||H(r.attributes.rel)==="icon"||H(r.attributes.rel)==="apple-touch-icon"||H(r.attributes.rel)==="shortcut icon")))return!0;if(r.tagName==="meta"){if(i.headMetaDescKeywords&&H(r.attributes.name).match(/^description|keywords$/))return!0;if(i.headMetaSocial&&(H(r.attributes.property).match(/^(og|twitter|fb):/)||H(r.attributes.name).match(/^(og|twitter):/)||H(r.attributes.name)==="pinterest"))return!0;if(i.headMetaRobots&&(H(r.attributes.name)==="robots"||H(r.attributes.name)==="googlebot"||H(r.attributes.name)==="bingbot"))return!0;if(i.headMetaHttpEquiv&&r.attributes["http-equiv"]!==void 0)return!0;if(i.headMetaAuthorship&&(H(r.attributes.name)==="author"||H(r.attributes.name)==="generator"||H(r.attributes.name)==="framework"||H(r.attributes.name)==="publisher"||H(r.attributes.name)==="progid"||H(r.attributes.property).match(/^article:/)||H(r.attributes.property).match(/^product:/)))return!0;if(i.headMetaVerification&&(H(r.attributes.name)==="google-site-verification"||H(r.attributes.name)==="yandex-verification"||H(r.attributes.name)==="csrf-token"||H(r.attributes.name)==="p:domain_verify"||H(r.attributes.name)==="verify-v1"||H(r.attributes.name)==="verification"||H(r.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function wt(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,m=i.maskInputFn,p=i.slimDOMOptions,g=i.dataURLOptions,w=g===void 0?{}:g,S=i.inlineImages,b=S===void 0?!1:S,C=i.recordCanvas,x=C===void 0?!1:C,M=i.onSerialize,R=i.onIframeLoad,$=i.iframeLoadTimeout,T=$===void 0?5e3:$,_=i.onStylesheetLoad,L=i.stylesheetLoadTimeout,j=L===void 0?5e3:L,ye=i.keepIframeSrcFn,G=ye===void 0?function(){return!1}:ye,be=i.newlyAddedElement,me=be===void 0?!1:be,ie=i.cssCaptured,he=ie===void 0?!1:ie,Ce=i.needsMask,ut=i.preserveWhiteSpace,Pe=ut===void 0?!0:ut;if(!Ce){var Ut=Ce===void 0;Ce=Js(r,s,a,Ut)}var Ie=Zc(r,{doc:o,mirror:e,blockClass:t,blockSelector:n,needsMask:Ce,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:m,dataURLOptions:w,inlineImages:b,recordCanvas:x,keepIframeSrcFn:G,newlyAddedElement:me,cssCaptured:he});if(!Ie)return console.warn(r,"not serialized"),null;var lt;e.hasNode(r)?lt=e.getId(r):eh(Ie,p)||!Pe&&Ie.type===ce.Text&&!Ie.textContent.replace(/^\s+|\s+$/gm,"").length?lt=Jt:lt=js();var W=Object.assign(Ie,{id:lt});if(e.add(r,W),lt===Jt)return null;M&&M(r);var ft=!l;if(W.type===ce.Element){ft=ft&&!W.needBlock,delete W.needBlock;var ct=pe.shadowRoot(r);ct&&qt(ct)&&(W.isShadowHost=!0)}if((W.type===ce.Document||W.type===ce.Element)&&ft){p.headWhitespace&&W.type===ce.Element&&W.tagName==="head"&&(Pe=!1);var zt={doc:o,mirror:e,blockClass:t,blockSelector:n,needsMask:Ce,maskTextClass:s,maskTextSelector:a,skipChild:l,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:m,slimDOMOptions:p,dataURLOptions:w,inlineImages:b,recordCanvas:x,preserveWhiteSpace:Pe,onSerialize:M,onIframeLoad:R,iframeLoadTimeout:T,onStylesheetLoad:_,stylesheetLoadTimeout:j,keepIframeSrcFn:G,cssCaptured:!1};if(!(W.type===ce.Element&&W.tagName==="textarea"&&W.attributes.value!==void 0)){W.type===ce.Element&&W.attributes._cssText!==void 0&&typeof W.attributes._cssText=="string"&&(zt.cssCaptured=!0);for(var Rr=I(Array.from(pe.childNodes(r))),Er;!(Er=Rr()).done;){var Rs=Er.value,fi=wt(Rs,zt);fi&&W.childNodes.push(fi)}}var Ke=null;if(Fs(r)&&(Ke=pe.shadowRoot(r)))for(var ht=I(Array.from(pe.childNodes(Ke))),Wt;!(Wt=ht()).done;){var Ar=Wt.value,jt=wt(Ar,zt);jt&&(qt(Ke)&&(jt.isShadow=!0),W.childNodes.push(jt))}}var pt=pe.parentNode(r);return pt&&Yt(pt)&&qt(pt)&&(W.isShadow=!0),W.type===ce.Element&&W.tagName==="iframe"&&Jc(r,function(){var Ue=r.contentDocument;if(Ue&&R){var dt=wt(Ue,{doc:Ue,mirror:e,blockClass:t,blockSelector:n,needsMask:Ce,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:m,slimDOMOptions:p,dataURLOptions:w,inlineImages:b,recordCanvas:x,preserveWhiteSpace:Pe,onSerialize:M,onIframeLoad:R,iframeLoadTimeout:T,onStylesheetLoad:_,stylesheetLoadTimeout:j,keepIframeSrcFn:G});dt&&R(r,dt)}},T),W.type===ce.Element&&W.tagName==="link"&&typeof W.attributes.rel=="string"&&(W.attributes.rel==="stylesheet"||W.attributes.rel==="preload"&&typeof W.attributes.href=="string"&&Ws(W.attributes.href)==="css")&&Hc(r,function(){if(_){var Ue=wt(r,{doc:o,mirror:e,blockClass:t,blockSelector:n,needsMask:Ce,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:m,slimDOMOptions:p,dataURLOptions:w,inlineImages:b,recordCanvas:x,preserveWhiteSpace:Pe,onSerialize:M,onIframeLoad:R,iframeLoadTimeout:T,onStylesheetLoad:_,stylesheetLoadTimeout:j,keepIframeSrcFn:G});Ue&&_(r,Ue)}},j),W}function th(r,i){var o=i||{},e=o.mirror,t=e===void 0?new Us: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,m=o.inlineImages,p=m===void 0?!1:m,g=o.recordCanvas,w=g===void 0?!1:g,S=o.maskAllInputs,b=S===void 0?!1:S,C=o.maskTextFn,x=o.maskInputFn,M=o.slimDOM,R=M===void 0?!1:M,$=o.dataURLOptions,T=o.preserveWhiteSpace,_=o.onSerialize,L=o.onIframeLoad,j=o.iframeLoadTimeout,ye=o.onStylesheetLoad,G=o.stylesheetLoadTimeout,be=o.keepIframeSrcFn,me=be===void 0?function(){return!1}:be,ie=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,he=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 wt(r,{doc:r,mirror:t,blockClass:s,blockSelector:u,maskTextClass:f,maskTextSelector:h,skipChild:!1,inlineStylesheet:d,maskInputOptions:ie,maskTextFn:C,maskInputFn:x,slimDOMOptions:he,dataURLOptions:$,inlineImages:p,recordCanvas:w,preserveWhiteSpace:T,onSerialize:_,onIframeLoad:L,iframeLoadTimeout:j,onStylesheetLoad:ye,stylesheetLoadTimeout:G,keepIframeSrcFn:me,newlyAddedElement:!1})}function rh(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function nh(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 wi={exports:{}},K=String,Hs=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}};wi.exports=Hs(),wi.exports.createColors=Hs;var ih=wi.exports,oh={},sh=Object.freeze(Object.defineProperty({__proto__:null,default:oh},Symbol.toStringTag,{value:"Module"})),ae=nh(sh),Zs=ih,Ks=ae,Si=(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=Zs.isColorSupported),Ks&&t&&(s=Ks(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=Zs.createColors(!0),d=v.bold,m=v.gray,p=v.red;c=function(g){return d(p(g))},h=function(g){return m(g)}}else c=h=function(g){return g};return a.slice(u,l).map(function(g,w){var S=u+1+w,b=" "+(" "+S).slice(-f)+" | ";if(S===n.line){var C=h(b.replace(/\d/g," "))+g.slice(0,n.column-1).replace(/[^\t]/g," ");return c(">")+h(b)+g+"\n "+C+c("^")}return" "+h(b)+g}).join("\n")},o.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},i})(Vt(Error)),bi=Si;Si.default=Si;var We={};We.isClean=Symbol("isClean"),We.my=Symbol("my");var Xs={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function ah(r){return r[0].toUpperCase()+r.slice(1)}var Ci=(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 Xs[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"+ah(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=Xs[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})(),Qs=Ci;Ci.default=Ci;var uh=Qs;function Ii(r,i){var o=new uh(i);o.stringify(r)}var Fr=Ii;Ii.default=Ii;var Br=We.isClean,lh=We.my,fh=bi,ch=Qs,hh=Fr;function Oi(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":A(t);e==="parent"&&n==="object"?i&&(o[e]=i):e==="source"?o[e]=t:Array.isArray(t)?o[e]=t.map(function(s){return Oi(s,o)}):(n==="object"&&t!==null&&(t=Oi(t)),o[e]=t)}return o}var xi=(function(){function r(o){o===void 0&&(o={}),this.raws={},this[Br]=!1,this[lh]=!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=Oi(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 fh(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[Br]){this[Br]=!1;for(var e=this;e=e.parent;)e[Br]=!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 ch;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":A(c))==="object"&&c.toJSON?c.toJSON(null,t):c});else if((typeof l=="undefined"?"undefined":A(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=hh),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})(),Ur=xi;xi.default=xi;var ph=Ur,Ri=(function(r){ee(i,r);function i(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=N({},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})(ph),zr=Ri;Ri.default=Ri;var dh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",vh=function(r){r===void 0&&(r=21);for(var i="",o=r;o--;)i+=dh[Math.random()*64|0];return i},mh={nanoid:vh},ea=ae.SourceMapConsumer,ta=ae.SourceMapGenerator,gh=ae.existsSync,yh=ae.readFileSync,Ei=ae.dirname,wh=ae.join;function Sh(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var Ai=(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=Ei(this.mapFile)),n&&(this.text=n)}}var i=r.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new ea(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 Sh(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":A(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=Ei(e),gh(e))return this.mapFile=e,yh(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,ea))return ta.fromSourceMap(t).toString();if(E(t,ta))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=wh(Ei(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})(),ra=Ai;Ai.default=Ai;var bh=ae.SourceMapConsumer,Ch=ae.SourceMapGenerator,na=ae.fileURLToPath,Wr=ae.pathToFileURL,Mi=ae.isAbsolute,$i=ae.resolve,Ih=mh.nanoid,ki=ae,ia=bi,Oh=ra,_i=Symbol("fromOffsetCache"),xh=!!(bh&&Ch),oa=!!($i&&Mi),jr=(function(){function r(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":A(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&&(!oa||/^\w+:\/\//.test(e.from)||Mi(e.from)?this.file=e.from:this.file=$i(e.from)),oa&&xh){var t=new Oh(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 "+Ih(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":A(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 m=this.origin(t,n,u,l);return m?a=new ia(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,s.plugin):a=new ia(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&&(Wr&&(a.input.url=Wr(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var t,n;if(this[_i])n=this[_i];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[_i]=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:$i(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;Mi(u.source)?f=Wr(u.source):f=new URL(u.source,this.map.consumer().sourceRoot||Wr(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(na)c.file=na(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=N({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Z(r,[{key:"from",get:function(){return this.file||this.id}}]),r})(),Gr=jr;jr.default=jr,ki&&ki.registerInput&&ki.registerInput(jr);var sa=ae.SourceMapConsumer,Vr=ae.SourceMapGenerator,Yr=ae.dirname,aa=ae.relative,ua=ae.resolve,la=ae.sep,fa=ae.pathToFileURL,Rh=Gr,Eh=!!(sa&&Vr),Ah=!!(Yr&&ua&&aa&&la),Mh=(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||Yr(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new sa(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(),Ah&&Eh&&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=Vr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Vr({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 Vr({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?Yr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Yr(ua(n,this.mapOpts.annotation)));var s=aa(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 t=new Rh(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!t[a]){t[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 t=this.memoizedFileURLs.get(e);if(t)return t;if(fa){var n=fa(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 t=this.memoizedURLs.get(e);if(t)return t;la==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},r})(),ca=Mh,$h=Ur,Pi=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="comment",e}return i})($h),qr=Pi;Pi.default=Pi;var ha=We.isClean,pa=We.my,da=zr,va=qr,kh=Ur,ma,Ti,Ni,ga;function ya(r){return r.map(function(i){return i.nodes&&(i.nodes=ya(i.nodes)),delete i.source,i})}function wa(r){if(r[ha]=!1,r.proxyOf.nodes)for(var i=I(r.proxyOf.nodes),o;!(o=i()).done;){var e=o.value;wa(e)}}var Te=(function(r){ee(i,r);function i(){return r.apply(this,arguments)||this}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(var a=I(n),u;!(u=a()).done;)for(var l=u.value,f=this.normalize(l,this.last),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(t){if(r.prototype.cleanRaws.call(this,t),this.nodes)for(var n=I(this.nodes),s;!(s=n()).done;){var a=s.value;a.cleanRaws(t)}},o.each=function(t){if(this.proxyOf.nodes){for(var n=this.getIterator(),s,a;this.indexes[n]<this.proxyOf.nodes.length&&(s=this.indexes[n],a=t(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}},o.every=function(t){return this.nodes.every(t)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t},o.getProxyProcessor=function(){return{get:function(n,s){return s==="proxyOf"?n:n[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];var f;return(f=n)[s].apply(f,[].concat(u.map(function(c){return typeof c=="function"?function(h,v){return c(h.toProxy(),v)}:c})))}:s==="every"||s==="some"?function(a){return n[s](function(u){for(var l=arguments.length,f=new Array(l>1?l-1:0),c=1;c<l;c++)f[c-1]=arguments[c];return a.apply(void 0,[].concat([u.toProxy()],f))})}:s==="root"?function(){return n.root().toProxy()}:s==="nodes"?n.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?n[s].toProxy():n[s]:n[s]},set:function(n,s,a){return n[s]===a||(n[s]=a,(s==="name"||s==="params"||s==="selector")&&n.markDirty()),!0}}},o.index=function(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))},o.insertAfter=function(t,n){var s=this.index(t),a=this.normalize(n,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(var u=I(a),l;!(l=u()).done;){var f=l.value;this.proxyOf.nodes.splice(s+1,0,f)}var c;for(var h in this.indexes)c=this.indexes[h],s<c&&(this.indexes[h]=c+a.length);return this.markDirty(),this},o.insertBefore=function(t,n){var s=this.index(t),a=s===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[s],a).reverse();s=this.index(t);for(var l=I(u),f;!(f=l()).done;){var c=f.value;this.proxyOf.nodes.splice(s,0,c)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(t,n){var s=this;if(typeof t=="string")t=ya(ma(t).nodes);else if(typeof t=="undefined")t=[];else if(Array.isArray(t)){t=t.slice(0);for(var a=I(t),u;!(u=a()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(var f=I(t),c;!(c=f()).done;){var h=c.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new da(t)]}else if(t.selector)t=[new Ti(t)];else if(t.name)t=[new Ni(t)];else if(t.text)t=[new va(t)];else throw new Error("Unknown node type in node creation");var v=t.map(function(d){return d[pa]||i.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[ha]&&wa(d),typeof d.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(d.raws.before=n.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return v},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n=n.reverse();for(var a=I(n),u;!(u=a()).done;){for(var l=u.value,f=this.normalize(l,this.first,"prepend").reverse(),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+f.length}return this.markDirty(),this},o.push=function(t){return t.parent=this,this.proxyOf.nodes.push(t),this},o.removeAll=function(){for(var t=I(this.proxyOf.nodes),n;!(n=t()).done;){var s=n.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=t&&(this.indexes[s]=n-1);return this.markDirty(),this},o.replaceValues=function(t,n,s){return s||(s=n,n={}),this.walkDecls(function(a){n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,s))}),this.markDirty(),this},o.some=function(t){return this.nodes.some(t)},o.walk=function(t){return this.each(function(n,s){var a;try{a=t(n,s)}catch(u){throw n.addToError(u)}return a!==!1&&n.walk&&(a=n.walk(t)),a})},o.walkAtRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&t.test(s.name))return n(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="atrule")return n(s,a)}))},o.walkComments=function(t){return this.walk(function(n,s){if(n.type==="comment")return t(n,s)})},o.walkDecls=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&t.test(s.prop))return n(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="decl")return n(s,a)}))},o.walkRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&t.test(s.selector))return n(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="rule")return n(s,a)}))},Z(i,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),i})(kh);Te.registerParse=function(r){ma=r},Te.registerRule=function(r){Ti=r},Te.registerAtRule=function(r){Ni=r},Te.registerRoot=function(r){ga=r};var tt=Te;Te.default=Te,Te.rebuild=function(r){r.type==="atrule"?Object.setPrototypeOf(r,Ni.prototype):r.type==="rule"?Object.setPrototypeOf(r,Ti.prototype):r.type==="decl"?Object.setPrototypeOf(r,da.prototype):r.type==="comment"?Object.setPrototypeOf(r,va.prototype):r.type==="root"&&Object.setPrototypeOf(r,ga.prototype),r[pa]=!0,r.nodes&&r.nodes.forEach(function(i){Te.rebuild(i)})};var _h=tt,Sa,ba,Ht=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,N({type:"document"},e))||this,t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.toResult=function(t){t===void 0&&(t={});var n=new Sa(new ba,this,t);return n.stringify()},i})(_h);Ht.registerLazyResult=function(r){Sa=r},Ht.registerProcessor=function(r){ba=r};var Li=Ht;Ht.default=Ht;var Ca={},Ia=function(i){Ca[i]||(Ca[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},Di=(function(){function r(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(var n in e)this[n]=e[n]}var i=r.prototype;return i.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},r})(),Oa=Di;Di.default=Di;var Ph=Oa,Fi=(function(){function r(o,e,t){this.processor=o,this.messages=[],this.root=e,this.opts=t,this.css=void 0,this.map=void 0}var i=r.prototype;return i.toString=function(){return this.css},i.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Ph(e,t);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Z(r,[{key:"content",get:function(){return this.css}}]),r})(),Bi=Fi;Fi.default=Fi;var Ui=39,xa=34,Jr=92,Ra=47,Hr=10,Zt=32,Zr=12,Kr=9,Xr=13,Th=91,Nh=93,Lh=40,Dh=41,Fh=123,Bh=125,Uh=59,zh=42,Wh=58,jh=64,Qr=/[\t\n\f\r "#'()/;[\\\]{}]/g,en=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Gh=/.[\r\n"'(/\\]/,Ea=/[\da-f]/i,Vh=function(i,o){o===void 0&&(o={});var e=i.css.valueOf(),t=o.ignoreErrors,n,s,a,u,l,f,c,h,v,d,m=e.length,p=0,g=[],w=[];function S(){return p}function b(R){throw i.error("Unclosed "+R,p)}function C(){return w.length===0&&p>=m}function x(R){if(w.length)return w.pop();if(!(p>=m)){var $=R?R.ignoreUnclosed:!1;switch(n=e.charCodeAt(p),n){case Hr:case Zt:case Kr:case Xr:case Zr:{s=p;do s+=1,n=e.charCodeAt(s);while(n===Zt||n===Hr||n===Kr||n===Xr||n===Zr);d=["space",e.slice(p,s)],p=s-1;break}case Th:case Nh:case Fh:case Bh:case Wh:case Uh:case Dh:{var T=String.fromCharCode(n);d=[T,T,p];break}case Lh:{if(h=g.length?g.pop()[1]:"",v=e.charCodeAt(p+1),h==="url"&&v!==Ui&&v!==xa&&v!==Zt&&v!==Hr&&v!==Kr&&v!==Zr&&v!==Xr){s=p;do{if(f=!1,s=e.indexOf(")",s+1),s===-1)if(t||$){s=p;break}else b("bracket");for(c=s;e.charCodeAt(c-1)===Jr;)c-=1,f=!f}while(f);d=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),u=e.slice(p,s+1),s===-1||Gh.test(u)?d=["(","(",p]:(d=["brackets",u,p,s],p=s);break}case Ui:case xa:{a=n===Ui?"'":'"',s=p;do{if(f=!1,s=e.indexOf(a,s+1),s===-1)if(t||$){s=p+1;break}else b("string");for(c=s;e.charCodeAt(c-1)===Jr;)c-=1,f=!f}while(f);d=["string",e.slice(p,s+1),p,s],p=s;break}case jh:{Qr.lastIndex=p+1,Qr.test(e),Qr.lastIndex===0?s=e.length-1:s=Qr.lastIndex-2,d=["at-word",e.slice(p,s+1),p,s],p=s;break}case Jr:{for(s=p,l=!0;e.charCodeAt(s+1)===Jr;)s+=1,l=!l;if(n=e.charCodeAt(s+1),l&&n!==Ra&&n!==Zt&&n!==Hr&&n!==Kr&&n!==Xr&&n!==Zr&&(s+=1,Ea.test(e.charAt(s)))){for(;Ea.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Zt&&(s+=1)}d=["word",e.slice(p,s+1),p,s],p=s;break}default:{n===Ra&&e.charCodeAt(p+1)===zh?(s=e.indexOf("*/",p+2)+1,s===0&&(t||$?s=e.length:b("comment")),d=["comment",e.slice(p,s+1),p,s],p=s):(en.lastIndex=p+1,en.test(e),en.lastIndex===0?s=e.length-1:s=en.lastIndex-2,d=["word",e.slice(p,s+1),p,s],g.push(d),p=s);break}}return p++,d}}function M(R){w.push(R)}return{back:M,endOfFile:C,nextToken:x,position:S}},Aa=tt,tn=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="atrule",t}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.append).call.apply(a,[].concat([this],n))},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.prepend).call.apply(a,[].concat([this],n))},i})(Aa),zi=tn;tn.default=tn,Aa.registerAtRule(tn);var Ma=tt,$a,ka,St=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="root",t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.normalize=function(t,n,s){var a=r.prototype.normalize.call(this,t);if(n){if(s==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var u=I(a),l;!(l=u()).done;){var f=l.value;f.raws.before=n.raws.before}}return a},o.removeChild=function(t,n){var s=this.index(t);return!n&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),r.prototype.removeChild.call(this,t)},o.toResult=function(t){t===void 0&&(t={});var n=new $a(new ka,this,t);return n.stringify()},i})(Ma);St.registerLazyResult=function(r){$a=r},St.registerProcessor=function(r){ka=r};var Kt=St;St.default=St,Ma.registerRoot(St);var Xt={comma:function(i){return Xt.split(i,[","],!0)},space:function(i){var o=[" ","\n"," "];return Xt.split(i,o)},split:function(i,o,e){for(var t=[],n="",s=!1,a=0,u=!1,l="",f=!1,c=I(i),h;!(h=c()).done;){var v=h.value;f?f=!1:v==="\\"?f=!0:u?v===l&&(u=!1):v==='"'||v==="'"?(u=!0,l=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=v}return(e||n!=="")&&t.push(n.trim()),t}},_a=Xt;Xt.default=Xt;var Pa=tt,Yh=_a,rn=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return Z(i,[{key:"selectors",get:function(){return Yh.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(Pa),Wi=rn;rn.default=rn,Pa.registerRule(rn);var qh=zr,Jh=Vh,Hh=qr,Zh=zi,Kh=Kt,Ta=Wi,Na={empty:!0,space:!0};function Xh(r){for(var i=r.length-1;i>=0;i--){var o=r[i],e=o[3]||o[2];if(e)return e}}var Qh=(function(){function r(o){this.input=o,this.root=new Kh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var i=r.prototype;return i.atrule=function(e){var t=new Zh;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,s,a,u=!1,l=!1,f=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(f.length>0){for(a=f.length-1,s=f[a];s&&s[0]==="space";)s=f[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(t.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(t,"params",f),u&&(e=f[f.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)},i.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,s,a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},i.colon=function(e){for(var t=0,n,s,a,u=I(e.entries()),l;!(l=u()).done;){var f=l.value,c=f[0],h=f[1];if(n=h,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return c}a=n}return!1},i.comment=function(e){var t=new Hh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}},i.createTokenizer=function(){this.tokenizer=Jh(this.input)},i.decl=function(e,t){var n=new qh;this.init(n,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||Xh(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var l=[],f;e.length&&(f=e[0][0],!(f!=="space"&&f!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;var h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),d="",m=c;m>0;m--){var p=v[m][0];if(d.trim().indexOf("!")===0&&p!=="space")break;d=v.pop()[1]+d}d.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=d,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});g&&(n.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(n,"value",l.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var t=new Ta;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},i.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},i.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},i.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var t=!1,n=null,s=!1,a=null,u=[],l=e[1].startsWith("--"),f=[],c=e;c;){if(n=c[0],f.push(c),n==="("||n==="[")a||(a=c),u.push(n==="("?")":"]");else if(l&&s&&n==="{")a||(a=c),u.push("}");else if(u.length===0)if(n===";")if(s){this.decl(f,l);return}else break;else if(n==="{"){this.rule(f);return}else if(n==="}"){this.tokenizer.back(f.pop()),t=!0;break}else n===":"&&(s=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),u.length>0&&this.unclosedBracket(a),t&&s){if(!l)for(;f.length&&(c=f[f.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,l)}else this.unknownWord(f)},i.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},i.precheckMissedSemicolon=function(){},i.raw=function(e,t,n,s){for(var a,u,l=n.length,f="",c=!0,h,v,d=0;d<l;d+=1)a=n[d],u=a[0],u==="space"&&d===l-1&&!s?c=!1:u==="comment"?(v=n[d-1]?n[d-1][0]:"empty",h=n[d+1]?n[d+1][0]:"empty",!Na[v]&&!Na[h]?f.slice(-1)===","?c=!1:f+=a[1]:c=!1):f+=a[1];if(!c){var m=n.reduce(function(p,g){return p+g[1]},"");e.raws[t]={raw:m,value:f}}e[t]=f},i.rule=function(e){e.pop();var t=new Ta;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},i.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,t){for(var n="",s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},r})(),ep=Qh,tp=tt,rp=ep,np=Gr;function nn(r,i){var o=new np(r,i),e=new rp(o);try{e.parse()}catch(t){throw process.env.NODE_ENV!=="production"&&t.name==="CssSyntaxError"&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return e.root}var ji=nn;nn.default=nn,tp.registerParse(nn);var Ae=We.isClean,ip=We.my,op=ca,sp=Fr,ap=tt,up=Li,lp=Ia,La=Bi,fp=ji,cp=Kt,hp={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},pp={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},dp={Once:!0,postcssPlugin:!0,prepare:!0},bt=0;function Qt(r){return(typeof r=="undefined"?"undefined":A(r))==="object"&&typeof r.then=="function"}function Da(r){var i=!1,o=hp[r.type];return r.type==="decl"?i=r.prop.toLowerCase():r.type==="atrule"&&(i=r.name.toLowerCase()),i&&r.append?[o,o+"-"+i,bt,o+"Exit",o+"Exit-"+i]:i?[o,o+"-"+i,o+"Exit",o+"Exit-"+i]:r.append?[o,bt,o+"Exit"]:[o,o+"Exit"]}function Fa(r){var i;return r.type==="document"?i=["Document",bt,"DocumentExit"]:r.type==="root"?i=["Root",bt,"RootExit"]:i=Da(r),{eventIndex:0,events:i,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Gi(r){return r[Ae]=!1,r.nodes&&r.nodes.forEach(function(i){return Gi(i)}),r}var Vi={},Ct=(function(){function r(o,e,t){var n=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":A(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=Gi(e);else if(E(e,r)||E(e,La))s=Gi(e.root),e.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=e.map);else{var a=fp;t.syntax&&(a=t.syntax.parse),t.parser&&(a=t.parser),a.parse&&(a=a.parse);try{s=a(e,t)}catch(u){this.processed=!0,this.error=u}s&&!s[ip]&&ap.rebuild(s)}this.result=new La(o,s,t),this.helpers=N({},Vi,{postcss:Vi,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":A(u))==="object"&&u.prepare?N({},u,u.prepare(n.result)):u})}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){var s=n.postcssPlugin,a=n.postcssVersion,u=this.result.processor.version,l=a.split("."),f=u.split(".");(l[0]!==f[0]||parseInt(l[1])>parseInt(f[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(f,c,h){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([f,h])},n=I(this.plugins),s;!(s=n()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":A(a))==="object")for(var u in a){if(!pp[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!dp[u])if(A(a[u])==="object")for(var l in a[u])l==="*"?t(a,u,a[u][l]):t(a,u+"-"+l.toLowerCase(),a[u][l]);else typeof a[u]=="function"&&t(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return $r(function(){var t,n,s,a,u,l,f,c,h,v,d,m;return Qe(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],s=e.runOnRoot(n),!Qt(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw a=p.sent(),e.handleError(a);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,p.label=7;case 7:if(u[Ae])return[3,14];u[Ae]=!0,l=[Fa(u)],p.label=8;case 8:if(!(l.length>0))return[3,13];if(f=e.visitTick(l),!Qt(f))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,f];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),h=l[l.length-1].node,e.handleError(c,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var g,w,S,b,C;return Qe(this,function(x){switch(x.label){case 0:g=m.value,w=g[0],S=g[1],e.result.lastPlugin=w,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(b=u.nodes.map(function(M){return S(M,e.helpers)}),[4,Promise.all(b)]);case 2:return x.sent(),[3,5];case 3:return[4,S(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},d=I(e.listeners.OnceExit),p.label=15;case 15:return(m=d()).done?[3,18]:[5,pi(v())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":A(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(s){return e.Once(s,t.helpers)});return Qt(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},i.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=sp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new op(t,this.result.root,this.result.opts),s=n.generate();return this.result.css=s[0],this.result.map=s[1],this.result},i.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=I(this.plugins),t;!(t=e()).done;){var n=t.value,s=this.runOnRoot(n);if(Qt(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ae];)a[Ae]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),l;!(l=u()).done;){var f=l.value;this.visitSync(this.listeners.OnceExit,f)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||lp("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this.css},i.visitSync=function(e,t){for(var n=I(e),s;!(s=n()).done;){var a=s.value,u=a[0],l=a[1];this.result.lastPlugin=u;var f=void 0;try{f=l(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(Qt(f))throw this.getAsyncError()}},i.visitTick=function(e){var t=e[e.length-1],n=t.node,s=t.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){var a=s[t.visitorIndex],u=a[0],l=a[1];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=u;try{return l(n.toProxy(),this.helpers)}catch(d){throw this.handleError(d,n)}}if(t.iterator!==0){for(var f=t.iterator,c;c=n.nodes[n.indexes[f]];)if(n.indexes[f]+=1,!c[Ae]){c[Ae]=!0,e.push(Fa(c));return}t.iterator=0,delete n.indexes[f]}for(var h=t.events;t.eventIndex<h.length;){var v=h[t.eventIndex];if(t.eventIndex+=1,v===bt){n.nodes&&n.nodes.length&&(n[Ae]=!0,t.iterator=n.getIterator());return}else if(this.listeners[v]){t.visitors=this.listeners[v];return}}e.pop()},i.walkSync=function(e){var t=this;e[Ae]=!0;for(var n=Da(e),s=I(n),a;!(a=s()).done;){var u=a.value;if(u===bt)e.nodes&&e.each(function(f){f[Ae]||t.walkSync(f)});else{var l=this.listeners[u];if(l&&this.visitSync(l,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},Z(r,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),r})();Ct.registerPostcss=function(r){Vi=r};var Ba=Ct;Ct.default=Ct,cp.registerLazyResult(Ct),up.registerLazyResult(Ct);var vp=ca,mp=Fr,gp=Ia,yp=ji,wp=Bi,Yi=(function(){function r(o,e,t){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=t,this._map=void 0;var n,s=mp;this.result=new wp(this._processor,n,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new vp(s,n,this._opts,e);if(u.isMap()){var l=u.generate(),f=l[0],c=l[1];f&&(this.result.css=f),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||gp("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this._css},i.warnings=function(){return[]},Z(r,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=yp;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r})(),Sp=Yi;Yi.default=Yi;var bp=Sp,Cp=Ba,Ip=Li,Op=Kt,er=(function(){function r(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var i=r.prototype;return i.normalize=function(e){for(var t=[],n=I(e),s;!(s=n()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":A(a))==="object"&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if((typeof a=="undefined"?"undefined":A(a))==="object"&&a.postcssPlugin)t.push(a);else if(typeof a=="function")t.push(a);else if((typeof a=="undefined"?"undefined":A(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return t},i.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new bp(this,e,t):new Cp(this,e,t)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},r})(),xp=er;er.default=er,Op.registerProcessor(er),Ip.registerProcessor(er);var Rp=zr,Ep=ra,Ap=qr,Mp=zi,$p=Gr,kp=Kt,_p=Wi;function tr(r,i){if(Array.isArray(r))return r.map(function(c){return tr(c)});var o=r.inputs,e=Xe(r,["inputs"]);if(o){i=[];for(var t=I(o),n;!(n=t()).done;){var s=n.value,a=N({},s,{__proto__:$p.prototype});a.map&&(a.map=N({},a.map,{__proto__:Ep.prototype})),i.push(a)}}if(e.nodes&&(e.nodes=r.nodes.map(function(c){return tr(c,i)})),e.source){var u=e.source,l=u.inputId,f=Xe(u,["inputId"]);e.source=f,l!=null&&(e.source.input=i[l])}if(e.type==="root")return new kp(e);if(e.type==="decl")return new Rp(e);if(e.type==="rule")return new _p(e);if(e.type==="comment")return new Ap(e);if(e.type==="atrule")return new Mp(e);throw new Error("Unknown node type: "+r.type)}var Pp=tr;tr.default=tr;var Tp=bi,Ua=zr,Np=Ba,Lp=tt,qi=xp,Dp=Fr,Fp=Pp,za=Li,Bp=Oa,Wa=qr,ja=zi,Up=Bi,zp=Gr,Wp=ji,jp=_a,Ga=Wi,Va=Kt,Gp=Ur;function V(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new qi(i)}V.plugin=function(i,o){var e=!1;function t(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(i+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(i+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var l=o.apply(void 0,[].concat(a));return l.postcssPlugin=i,l.postcssVersion=new qi().version,l}var n;return Object.defineProperty(t,"postcss",{get:function(){return n||(n=t()),n}}),t.process=function(s,a,u){return V([t(u)]).process(s,a)},t},V.stringify=Dp,V.parse=Wp,V.fromJSON=Fp,V.list=jp,V.comment=function(r){return new Wa(r)},V.atRule=function(r){return new ja(r)},V.decl=function(r){return new Ua(r)},V.rule=function(r){return new Ga(r)},V.root=function(r){return new Va(r)},V.document=function(r){return new za(r)},V.CssSyntaxError=Tp,V.Declaration=Ua,V.Container=Lp,V.Processor=qi,V.Document=za,V.Comment=Wa,V.Warning=Bp,V.AtRule=ja,V.Result=Up,V.Input=zp,V.Rule=Ga,V.Root=Va,V.Node=Gp,Np.registerPostcss(V);var Vp=V;V.default=V;var te=rh(Vp);te.stringify,te.fromJSON,te.plugin,te.parse,te.list,te.document,te.comment,te.atRule,te.rule,te.decl,te.root,te.CssSyntaxError,te.Declaration,te.Container,te.Processor,te.Document,te.Comment,te.Warning,te.AtRule,te.Result,te.Input,te.Rule,te.Root,te.Node;var Yp=Object.defineProperty,qp=function(r,i,o){return i in r?Yp(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},Oe=function(r,i,o){return qp(r,(typeof i=="undefined"?"undefined":A(i))!=="symbol"?i+"":i,o)};function Jp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Hp(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 Ji={exports:{}},X=String,Ya=function(){return{isColorSupported:!1,reset:X,bold:X,dim:X,italic:X,underline:X,inverse:X,hidden:X,strikethrough:X,black:X,red:X,green:X,yellow:X,blue:X,magenta:X,cyan:X,white:X,gray:X,bgBlack:X,bgRed:X,bgGreen:X,bgYellow:X,bgBlue:X,bgMagenta:X,bgCyan:X,bgWhite:X}};Ji.exports=Ya(),Ji.exports.createColors=Ya;var Zp=Ji.exports,Kp={},Xp=Object.freeze(Object.defineProperty({__proto__:null,default:Kp},Symbol.toStringTag,{value:"Module"})),ue=Hp(Xp),qa=Zp,Ja=ue,Hi=(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=qa.isColorSupported),Ja&&t&&(s=Ja(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=qa.createColors(!0),d=v.bold,m=v.gray,p=v.red;c=function(g){return d(p(g))},h=function(g){return m(g)}}else c=h=function(g){return g};return a.slice(u,l).map(function(g,w){var S=u+1+w,b=" "+(" "+S).slice(-f)+" | ";if(S===n.line){var C=h(b.replace(/\d/g," "))+g.slice(0,n.column-1).replace(/[^\t]/g," ");return c(">")+h(b)+g+"\n "+C+c("^")}return" "+h(b)+g}).join("\n")},o.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},i})(Vt(Error)),Zi=Hi;Hi.default=Hi;var je={};je.isClean=Symbol("isClean"),je.my=Symbol("my");var Ha={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Qp(r){return r[0].toUpperCase()+r.slice(1)}var Ki=(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 Ha[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"+Qp(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=Ha[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})(),Za=Ki;Ki.default=Ki;var ed=Za;function Xi(r,i){var o=new ed(i);o.stringify(r)}var on=Xi;Xi.default=Xi;var sn=je.isClean,td=je.my,rd=Zi,nd=Za,id=on;function Qi(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":A(t);e==="parent"&&n==="object"?i&&(o[e]=i):e==="source"?o[e]=t:Array.isArray(t)?o[e]=t.map(function(s){return Qi(s,o)}):(n==="object"&&t!==null&&(t=Qi(t)),o[e]=t)}return o}var eo=(function(){function r(o){o===void 0&&(o={}),this.raws={},this[sn]=!1,this[td]=!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=Qi(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 rd(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[sn]){this[sn]=!1;for(var e=this;e=e.parent;)e[sn]=!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 nd;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":A(c))==="object"&&c.toJSON?c.toJSON(null,t):c});else if((typeof l=="undefined"?"undefined":A(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=id),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})(),an=eo;eo.default=eo;var od=an,to=(function(r){ee(i,r);function i(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=N({},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})(od),un=to;to.default=to;var sd="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ad=function(r){r===void 0&&(r=21);for(var i="",o=r;o--;)i+=sd[Math.random()*64|0];return i},ud={nanoid:ad},Ka=ue.SourceMapConsumer,Xa=ue.SourceMapGenerator,ld=ue.existsSync,fd=ue.readFileSync,ro=ue.dirname,cd=ue.join;function hd(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var no=(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=ro(this.mapFile)),n&&(this.text=n)}}var i=r.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new Ka(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 hd(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":A(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=ro(e),ld(e))return this.mapFile=e,fd(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,Ka))return Xa.fromSourceMap(t).toString();if(E(t,Xa))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=cd(ro(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})(),Qa=no;no.default=no;var pd=ue.SourceMapConsumer,dd=ue.SourceMapGenerator,eu=ue.fileURLToPath,ln=ue.pathToFileURL,io=ue.isAbsolute,oo=ue.resolve,vd=ud.nanoid,so=ue,tu=Zi,md=Qa,ao=Symbol("fromOffsetCache"),gd=!!(pd&&dd),ru=!!(oo&&io),fn=(function(){function r(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":A(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&&(!ru||/^\w+:\/\//.test(e.from)||io(e.from)?this.file=e.from:this.file=oo(e.from)),ru&&gd){var t=new md(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 "+vd(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":A(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 m=this.origin(t,n,u,l);return m?a=new tu(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,s.plugin):a=new tu(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&&(ln&&(a.input.url=ln(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var t,n;if(this[ao])n=this[ao];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[ao]=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:oo(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;io(u.source)?f=ln(u.source):f=new URL(u.source,this.map.consumer().sourceRoot||ln(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(eu)c.file=eu(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=N({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Z(r,[{key:"from",get:function(){return this.file||this.id}}]),r})(),cn=fn;fn.default=fn,so&&so.registerInput&&so.registerInput(fn);var nu=ue.SourceMapConsumer,hn=ue.SourceMapGenerator,pn=ue.dirname,iu=ue.relative,ou=ue.resolve,su=ue.sep,au=ue.pathToFileURL,yd=cn,wd=!!(nu&&hn),Sd=!!(pn&&ou&&iu&&su),bd=(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||pn(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new nu(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(),Sd&&wd&&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=hn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new hn({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 hn({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?pn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=pn(ou(n,this.mapOpts.annotation)));var s=iu(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 t=new yd(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!t[a]){t[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 t=this.memoizedFileURLs.get(e);if(t)return t;if(au){var n=au(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 t=this.memoizedURLs.get(e);if(t)return t;su==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},r})(),uu=bd,Cd=an,uo=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="comment",e}return i})(Cd),dn=uo;uo.default=uo;var lu=je.isClean,fu=je.my,cu=un,hu=dn,Id=an,pu,lo,fo,du;function vu(r){return r.map(function(i){return i.nodes&&(i.nodes=vu(i.nodes)),delete i.source,i})}function mu(r){if(r[lu]=!1,r.proxyOf.nodes)for(var i=I(r.proxyOf.nodes),o;!(o=i()).done;){var e=o.value;mu(e)}}var Ne=(function(r){ee(i,r);function i(){return r.apply(this,arguments)||this}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(var a=I(n),u;!(u=a()).done;)for(var l=u.value,f=this.normalize(l,this.last),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(t){if(r.prototype.cleanRaws.call(this,t),this.nodes)for(var n=I(this.nodes),s;!(s=n()).done;){var a=s.value;a.cleanRaws(t)}},o.each=function(t){if(this.proxyOf.nodes){for(var n=this.getIterator(),s,a;this.indexes[n]<this.proxyOf.nodes.length&&(s=this.indexes[n],a=t(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}},o.every=function(t){return this.nodes.every(t)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t},o.getProxyProcessor=function(){return{get:function(n,s){return s==="proxyOf"?n:n[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];var f;return(f=n)[s].apply(f,[].concat(u.map(function(c){return typeof c=="function"?function(h,v){return c(h.toProxy(),v)}:c})))}:s==="every"||s==="some"?function(a){return n[s](function(u){for(var l=arguments.length,f=new Array(l>1?l-1:0),c=1;c<l;c++)f[c-1]=arguments[c];return a.apply(void 0,[].concat([u.toProxy()],f))})}:s==="root"?function(){return n.root().toProxy()}:s==="nodes"?n.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?n[s].toProxy():n[s]:n[s]},set:function(n,s,a){return n[s]===a||(n[s]=a,(s==="name"||s==="params"||s==="selector")&&n.markDirty()),!0}}},o.index=function(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))},o.insertAfter=function(t,n){var s=this.index(t),a=this.normalize(n,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(var u=I(a),l;!(l=u()).done;){var f=l.value;this.proxyOf.nodes.splice(s+1,0,f)}var c;for(var h in this.indexes)c=this.indexes[h],s<c&&(this.indexes[h]=c+a.length);return this.markDirty(),this},o.insertBefore=function(t,n){var s=this.index(t),a=s===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[s],a).reverse();s=this.index(t);for(var l=I(u),f;!(f=l()).done;){var c=f.value;this.proxyOf.nodes.splice(s,0,c)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(t,n){var s=this;if(typeof t=="string")t=vu(pu(t).nodes);else if(typeof t=="undefined")t=[];else if(Array.isArray(t)){t=t.slice(0);for(var a=I(t),u;!(u=a()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(var f=I(t),c;!(c=f()).done;){var h=c.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new cu(t)]}else if(t.selector)t=[new lo(t)];else if(t.name)t=[new fo(t)];else if(t.text)t=[new hu(t)];else throw new Error("Unknown node type in node creation");var v=t.map(function(d){return d[fu]||i.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[lu]&&mu(d),typeof d.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(d.raws.before=n.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return v},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n=n.reverse();for(var a=I(n),u;!(u=a()).done;){for(var l=u.value,f=this.normalize(l,this.first,"prepend").reverse(),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+f.length}return this.markDirty(),this},o.push=function(t){return t.parent=this,this.proxyOf.nodes.push(t),this},o.removeAll=function(){for(var t=I(this.proxyOf.nodes),n;!(n=t()).done;){var s=n.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=t&&(this.indexes[s]=n-1);return this.markDirty(),this},o.replaceValues=function(t,n,s){return s||(s=n,n={}),this.walkDecls(function(a){n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,s))}),this.markDirty(),this},o.some=function(t){return this.nodes.some(t)},o.walk=function(t){return this.each(function(n,s){var a;try{a=t(n,s)}catch(u){throw n.addToError(u)}return a!==!1&&n.walk&&(a=n.walk(t)),a})},o.walkAtRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&t.test(s.name))return n(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="atrule")return n(s,a)}))},o.walkComments=function(t){return this.walk(function(n,s){if(n.type==="comment")return t(n,s)})},o.walkDecls=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&t.test(s.prop))return n(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="decl")return n(s,a)}))},o.walkRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&t.test(s.selector))return n(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="rule")return n(s,a)}))},Z(i,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),i})(Id);Ne.registerParse=function(r){pu=r},Ne.registerRule=function(r){lo=r},Ne.registerAtRule=function(r){fo=r},Ne.registerRoot=function(r){du=r};var rt=Ne;Ne.default=Ne,Ne.rebuild=function(r){r.type==="atrule"?Object.setPrototypeOf(r,fo.prototype):r.type==="rule"?Object.setPrototypeOf(r,lo.prototype):r.type==="decl"?Object.setPrototypeOf(r,cu.prototype):r.type==="comment"?Object.setPrototypeOf(r,hu.prototype):r.type==="root"&&Object.setPrototypeOf(r,du.prototype),r[fu]=!0,r.nodes&&r.nodes.forEach(function(i){Ne.rebuild(i)})};var Od=rt,gu,yu,rr=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,N({type:"document"},e))||this,t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.toResult=function(t){t===void 0&&(t={});var n=new gu(new yu,this,t);return n.stringify()},i})(Od);rr.registerLazyResult=function(r){gu=r},rr.registerProcessor=function(r){yu=r};var co=rr;rr.default=rr;var wu={},Su=function(i){wu[i]||(wu[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},ho=(function(){function r(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(var n in e)this[n]=e[n]}var i=r.prototype;return i.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},r})(),bu=ho;ho.default=ho;var xd=bu,po=(function(){function r(o,e,t){this.processor=o,this.messages=[],this.root=e,this.opts=t,this.css=void 0,this.map=void 0}var i=r.prototype;return i.toString=function(){return this.css},i.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new xd(e,t);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Z(r,[{key:"content",get:function(){return this.css}}]),r})(),vo=po;po.default=po;var mo=39,Cu=34,vn=92,Iu=47,mn=10,nr=32,gn=12,yn=9,wn=13,Rd=91,Ed=93,Ad=40,Md=41,$d=123,kd=125,_d=59,Pd=42,Td=58,Nd=64,Sn=/[\t\n\f\r "#'()/;[\\\]{}]/g,bn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ld=/.[\r\n"'(/\\]/,Ou=/[\da-f]/i,Dd=function(i,o){o===void 0&&(o={});var e=i.css.valueOf(),t=o.ignoreErrors,n,s,a,u,l,f,c,h,v,d,m=e.length,p=0,g=[],w=[];function S(){return p}function b(R){throw i.error("Unclosed "+R,p)}function C(){return w.length===0&&p>=m}function x(R){if(w.length)return w.pop();if(!(p>=m)){var $=R?R.ignoreUnclosed:!1;switch(n=e.charCodeAt(p),n){case mn:case nr:case yn:case wn:case gn:{s=p;do s+=1,n=e.charCodeAt(s);while(n===nr||n===mn||n===yn||n===wn||n===gn);d=["space",e.slice(p,s)],p=s-1;break}case Rd:case Ed:case $d:case kd:case Td:case _d:case Md:{var T=String.fromCharCode(n);d=[T,T,p];break}case Ad:{if(h=g.length?g.pop()[1]:"",v=e.charCodeAt(p+1),h==="url"&&v!==mo&&v!==Cu&&v!==nr&&v!==mn&&v!==yn&&v!==gn&&v!==wn){s=p;do{if(f=!1,s=e.indexOf(")",s+1),s===-1)if(t||$){s=p;break}else b("bracket");for(c=s;e.charCodeAt(c-1)===vn;)c-=1,f=!f}while(f);d=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),u=e.slice(p,s+1),s===-1||Ld.test(u)?d=["(","(",p]:(d=["brackets",u,p,s],p=s);break}case mo:case Cu:{a=n===mo?"'":'"',s=p;do{if(f=!1,s=e.indexOf(a,s+1),s===-1)if(t||$){s=p+1;break}else b("string");for(c=s;e.charCodeAt(c-1)===vn;)c-=1,f=!f}while(f);d=["string",e.slice(p,s+1),p,s],p=s;break}case Nd:{Sn.lastIndex=p+1,Sn.test(e),Sn.lastIndex===0?s=e.length-1:s=Sn.lastIndex-2,d=["at-word",e.slice(p,s+1),p,s],p=s;break}case vn:{for(s=p,l=!0;e.charCodeAt(s+1)===vn;)s+=1,l=!l;if(n=e.charCodeAt(s+1),l&&n!==Iu&&n!==nr&&n!==mn&&n!==yn&&n!==wn&&n!==gn&&(s+=1,Ou.test(e.charAt(s)))){for(;Ou.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===nr&&(s+=1)}d=["word",e.slice(p,s+1),p,s],p=s;break}default:{n===Iu&&e.charCodeAt(p+1)===Pd?(s=e.indexOf("*/",p+2)+1,s===0&&(t||$?s=e.length:b("comment")),d=["comment",e.slice(p,s+1),p,s],p=s):(bn.lastIndex=p+1,bn.test(e),bn.lastIndex===0?s=e.length-1:s=bn.lastIndex-2,d=["word",e.slice(p,s+1),p,s],g.push(d),p=s);break}}return p++,d}}function M(R){w.push(R)}return{back:M,endOfFile:C,nextToken:x,position:S}},xu=rt,Cn=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="atrule",t}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.append).call.apply(a,[].concat([this],n))},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.prepend).call.apply(a,[].concat([this],n))},i})(xu),go=Cn;Cn.default=Cn,xu.registerAtRule(Cn);var Ru=rt,Eu,Au,It=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="root",t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.normalize=function(t,n,s){var a=r.prototype.normalize.call(this,t);if(n){if(s==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var u=I(a),l;!(l=u()).done;){var f=l.value;f.raws.before=n.raws.before}}return a},o.removeChild=function(t,n){var s=this.index(t);return!n&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),r.prototype.removeChild.call(this,t)},o.toResult=function(t){t===void 0&&(t={});var n=new Eu(new Au,this,t);return n.stringify()},i})(Ru);It.registerLazyResult=function(r){Eu=r},It.registerProcessor=function(r){Au=r};var ir=It;It.default=It,Ru.registerRoot(It);var or={comma:function(i){return or.split(i,[","],!0)},space:function(i){var o=[" ","\n"," "];return or.split(i,o)},split:function(i,o,e){for(var t=[],n="",s=!1,a=0,u=!1,l="",f=!1,c=I(i),h;!(h=c()).done;){var v=h.value;f?f=!1:v==="\\"?f=!0:u?v===l&&(u=!1):v==='"'||v==="'"?(u=!0,l=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=v}return(e||n!=="")&&t.push(n.trim()),t}},Mu=or;or.default=or;var $u=rt,Fd=Mu,In=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return Z(i,[{key:"selectors",get:function(){return Fd.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})($u),yo=In;In.default=In,$u.registerRule(In);var Bd=un,Ud=Dd,zd=dn,Wd=go,jd=ir,ku=yo,_u={empty:!0,space:!0};function Gd(r){for(var i=r.length-1;i>=0;i--){var o=r[i],e=o[3]||o[2];if(e)return e}}var Vd=(function(){function r(o){this.input=o,this.root=new jd,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var i=r.prototype;return i.atrule=function(e){var t=new Wd;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,s,a,u=!1,l=!1,f=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(f.length>0){for(a=f.length-1,s=f[a];s&&s[0]==="space";)s=f[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(t.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(t,"params",f),u&&(e=f[f.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)},i.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,s,a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},i.colon=function(e){for(var t=0,n,s,a,u=I(e.entries()),l;!(l=u()).done;){var f=l.value,c=f[0],h=f[1];if(n=h,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return c}a=n}return!1},i.comment=function(e){var t=new zd;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}},i.createTokenizer=function(){this.tokenizer=Ud(this.input)},i.decl=function(e,t){var n=new Bd;this.init(n,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||Gd(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var l=[],f;e.length&&(f=e[0][0],!(f!=="space"&&f!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;var h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),d="",m=c;m>0;m--){var p=v[m][0];if(d.trim().indexOf("!")===0&&p!=="space")break;d=v.pop()[1]+d}d.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=d,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});g&&(n.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(n,"value",l.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var t=new ku;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},i.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},i.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},i.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var t=!1,n=null,s=!1,a=null,u=[],l=e[1].startsWith("--"),f=[],c=e;c;){if(n=c[0],f.push(c),n==="("||n==="[")a||(a=c),u.push(n==="("?")":"]");else if(l&&s&&n==="{")a||(a=c),u.push("}");else if(u.length===0)if(n===";")if(s){this.decl(f,l);return}else break;else if(n==="{"){this.rule(f);return}else if(n==="}"){this.tokenizer.back(f.pop()),t=!0;break}else n===":"&&(s=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),u.length>0&&this.unclosedBracket(a),t&&s){if(!l)for(;f.length&&(c=f[f.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,l)}else this.unknownWord(f)},i.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},i.precheckMissedSemicolon=function(){},i.raw=function(e,t,n,s){for(var a,u,l=n.length,f="",c=!0,h,v,d=0;d<l;d+=1)a=n[d],u=a[0],u==="space"&&d===l-1&&!s?c=!1:u==="comment"?(v=n[d-1]?n[d-1][0]:"empty",h=n[d+1]?n[d+1][0]:"empty",!_u[v]&&!_u[h]?f.slice(-1)===","?c=!1:f+=a[1]:c=!1):f+=a[1];if(!c){var m=n.reduce(function(p,g){return p+g[1]},"");e.raws[t]={raw:m,value:f}}e[t]=f},i.rule=function(e){e.pop();var t=new ku;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},i.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,t){for(var n="",s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},r})(),Yd=Vd,qd=rt,Jd=Yd,Hd=cn;function On(r,i){var o=new Hd(r,i),e=new Jd(o);try{e.parse()}catch(t){throw process.env.NODE_ENV!=="production"&&t.name==="CssSyntaxError"&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return e.root}var wo=On;On.default=On,qd.registerParse(On);var Me=je.isClean,Zd=je.my,Kd=uu,Xd=on,Qd=rt,ev=co,tv=Su,Pu=vo,rv=wo,nv=ir,iv={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ov={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},sv={Once:!0,postcssPlugin:!0,prepare:!0},Ot=0;function sr(r){return(typeof r=="undefined"?"undefined":A(r))==="object"&&typeof r.then=="function"}function Tu(r){var i=!1,o=iv[r.type];return r.type==="decl"?i=r.prop.toLowerCase():r.type==="atrule"&&(i=r.name.toLowerCase()),i&&r.append?[o,o+"-"+i,Ot,o+"Exit",o+"Exit-"+i]:i?[o,o+"-"+i,o+"Exit",o+"Exit-"+i]:r.append?[o,Ot,o+"Exit"]:[o,o+"Exit"]}function Nu(r){var i;return r.type==="document"?i=["Document",Ot,"DocumentExit"]:r.type==="root"?i=["Root",Ot,"RootExit"]:i=Tu(r),{eventIndex:0,events:i,iterator:0,node:r,visitorIndex:0,visitors:[]}}function So(r){return r[Me]=!1,r.nodes&&r.nodes.forEach(function(i){return So(i)}),r}var bo={},xt=(function(){function r(o,e,t){var n=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":A(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=So(e);else if(E(e,r)||E(e,Pu))s=So(e.root),e.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=e.map);else{var a=rv;t.syntax&&(a=t.syntax.parse),t.parser&&(a=t.parser),a.parse&&(a=a.parse);try{s=a(e,t)}catch(u){this.processed=!0,this.error=u}s&&!s[Zd]&&Qd.rebuild(s)}this.result=new Pu(o,s,t),this.helpers=N({},bo,{postcss:bo,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":A(u))==="object"&&u.prepare?N({},u,u.prepare(n.result)):u})}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){var s=n.postcssPlugin,a=n.postcssVersion,u=this.result.processor.version,l=a.split("."),f=u.split(".");(l[0]!==f[0]||parseInt(l[1])>parseInt(f[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(f,c,h){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([f,h])},n=I(this.plugins),s;!(s=n()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":A(a))==="object")for(var u in a){if(!ov[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!sv[u])if(A(a[u])==="object")for(var l in a[u])l==="*"?t(a,u,a[u][l]):t(a,u+"-"+l.toLowerCase(),a[u][l]);else typeof a[u]=="function"&&t(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return $r(function(){var t,n,s,a,u,l,f,c,h,v,d,m;return Qe(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],s=e.runOnRoot(n),!sr(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw a=p.sent(),e.handleError(a);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,p.label=7;case 7:if(u[Me])return[3,14];u[Me]=!0,l=[Nu(u)],p.label=8;case 8:if(!(l.length>0))return[3,13];if(f=e.visitTick(l),!sr(f))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,f];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),h=l[l.length-1].node,e.handleError(c,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var g,w,S,b,C;return Qe(this,function(x){switch(x.label){case 0:g=m.value,w=g[0],S=g[1],e.result.lastPlugin=w,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(b=u.nodes.map(function(M){return S(M,e.helpers)}),[4,Promise.all(b)]);case 2:return x.sent(),[3,5];case 3:return[4,S(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},d=I(e.listeners.OnceExit),p.label=15;case 15:return(m=d()).done?[3,18]:[5,pi(v())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":A(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(s){return e.Once(s,t.helpers)});return sr(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},i.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Xd;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new Kd(t,this.result.root,this.result.opts),s=n.generate();return this.result.css=s[0],this.result.map=s[1],this.result},i.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=I(this.plugins),t;!(t=e()).done;){var n=t.value,s=this.runOnRoot(n);if(sr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Me];)a[Me]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),l;!(l=u()).done;){var f=l.value;this.visitSync(this.listeners.OnceExit,f)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||tv("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this.css},i.visitSync=function(e,t){for(var n=I(e),s;!(s=n()).done;){var a=s.value,u=a[0],l=a[1];this.result.lastPlugin=u;var f=void 0;try{f=l(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(sr(f))throw this.getAsyncError()}},i.visitTick=function(e){var t=e[e.length-1],n=t.node,s=t.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){var a=s[t.visitorIndex],u=a[0],l=a[1];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=u;try{return l(n.toProxy(),this.helpers)}catch(d){throw this.handleError(d,n)}}if(t.iterator!==0){for(var f=t.iterator,c;c=n.nodes[n.indexes[f]];)if(n.indexes[f]+=1,!c[Me]){c[Me]=!0,e.push(Nu(c));return}t.iterator=0,delete n.indexes[f]}for(var h=t.events;t.eventIndex<h.length;){var v=h[t.eventIndex];if(t.eventIndex+=1,v===Ot){n.nodes&&n.nodes.length&&(n[Me]=!0,t.iterator=n.getIterator());return}else if(this.listeners[v]){t.visitors=this.listeners[v];return}}e.pop()},i.walkSync=function(e){var t=this;e[Me]=!0;for(var n=Tu(e),s=I(n),a;!(a=s()).done;){var u=a.value;if(u===Ot)e.nodes&&e.each(function(f){f[Me]||t.walkSync(f)});else{var l=this.listeners[u];if(l&&this.visitSync(l,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},Z(r,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),r})();xt.registerPostcss=function(r){bo=r};var Lu=xt;xt.default=xt,nv.registerLazyResult(xt),ev.registerLazyResult(xt);var av=uu,uv=on,lv=Su,fv=wo,cv=vo,Co=(function(){function r(o,e,t){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=t,this._map=void 0;var n,s=uv;this.result=new cv(this._processor,n,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new av(s,n,this._opts,e);if(u.isMap()){var l=u.generate(),f=l[0],c=l[1];f&&(this.result.css=f),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||lv("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this._css},i.warnings=function(){return[]},Z(r,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=fv;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r})(),hv=Co;Co.default=Co;var pv=hv,dv=Lu,vv=co,mv=ir,ar=(function(){function r(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var i=r.prototype;return i.normalize=function(e){for(var t=[],n=I(e),s;!(s=n()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":A(a))==="object"&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if((typeof a=="undefined"?"undefined":A(a))==="object"&&a.postcssPlugin)t.push(a);else if(typeof a=="function")t.push(a);else if((typeof a=="undefined"?"undefined":A(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return t},i.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new pv(this,e,t):new dv(this,e,t)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},r})(),gv=ar;ar.default=ar,mv.registerProcessor(ar),vv.registerProcessor(ar);var yv=un,wv=Qa,Sv=dn,bv=go,Cv=cn,Iv=ir,Ov=yo;function ur(r,i){if(Array.isArray(r))return r.map(function(c){return ur(c)});var o=r.inputs,e=Xe(r,["inputs"]);if(o){i=[];for(var t=I(o),n;!(n=t()).done;){var s=n.value,a=N({},s,{__proto__:Cv.prototype});a.map&&(a.map=N({},a.map,{__proto__:wv.prototype})),i.push(a)}}if(e.nodes&&(e.nodes=r.nodes.map(function(c){return ur(c,i)})),e.source){var u=e.source,l=u.inputId,f=Xe(u,["inputId"]);e.source=f,l!=null&&(e.source.input=i[l])}if(e.type==="root")return new Iv(e);if(e.type==="decl")return new yv(e);if(e.type==="rule")return new Ov(e);if(e.type==="comment")return new Sv(e);if(e.type==="atrule")return new bv(e);throw new Error("Unknown node type: "+r.type)}var xv=ur;ur.default=ur;var Rv=Zi,Du=un,Ev=Lu,Av=rt,Io=gv,Mv=on,$v=xv,Fu=co,kv=bu,Bu=dn,Uu=go,_v=vo,Pv=cn,Tv=wo,Nv=Mu,zu=yo,Wu=ir,Lv=an;function Y(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Io(i)}Y.plugin=function(i,o){var e=!1;function t(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(i+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(i+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var l=o.apply(void 0,[].concat(a));return l.postcssPlugin=i,l.postcssVersion=new Io().version,l}var n;return Object.defineProperty(t,"postcss",{get:function(){return n||(n=t()),n}}),t.process=function(s,a,u){return Y([t(u)]).process(s,a)},t},Y.stringify=Mv,Y.parse=Tv,Y.fromJSON=$v,Y.list=Nv,Y.comment=function(r){return new Bu(r)},Y.atRule=function(r){return new Uu(r)},Y.decl=function(r){return new Du(r)},Y.rule=function(r){return new zu(r)},Y.root=function(r){return new Wu(r)},Y.document=function(r){return new Fu(r)},Y.CssSyntaxError=Rv,Y.Declaration=Du,Y.Container=Av,Y.Processor=Io,Y.Document=Fu,Y.Comment=Bu,Y.Warning=kv,Y.AtRule=Uu,Y.Result=_v,Y.Input=Pv,Y.Rule=zu,Y.Root=Wu,Y.Node=Lv,Ev.registerPostcss(Y);var Dv=Y;Y.default=Y;var re=Jp(Dv);re.stringify,re.fromJSON,re.plugin,re.parse,re.list,re.document,re.comment,re.atRule,re.rule,re.decl,re.root,re.CssSyntaxError,re.Declaration,re.Container,re.Processor,re.Document,re.Comment,re.Warning,re.AtRule,re.Result,re.Input,re.Rule,re.Root,re.Node;var Fv=(function(){function r(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];Oe(this,"parentElement",null),Oe(this,"parentNode",null),Oe(this,"ownerDocument"),Oe(this,"firstChild",null),Oe(this,"lastChild",null),Oe(this,"previousSibling",null),Oe(this,"nextSibling",null),Oe(this,"ELEMENT_NODE",1),Oe(this,"TEXT_NODE",3),Oe(this,"nodeType"),Oe(this,"nodeName"),Oe(this,"RRNodeType")}var i=r.prototype;return i.contains=function(e){if(E(e,r)){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1},i.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},i.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},i.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},i.toString=function(){return"RRNode"},Z(r,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),r})(),ju={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Gu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},xn={},Bv=function(){return!!globalThis.Zone};function Oo(r){if(xn[r])return xn[r];var i=globalThis[r],o=i.prototype,e=r in ju?ju[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 Gu?Gu[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&&!Bv())return xn[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?xn[r]=l:o}catch(f){return o}}var xo={};function Ge(r,i,o){var e,t=r+"."+String(o);if(xo[t])return xo[t].call(i);var n=Oo(r),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(xo[t]=s,s.call(i)):i[o]}var Ro={};function Vu(r,i,o){var e=r+"."+String(o);if(Ro[e])return Ro[e].bind(i);var t=Oo(r),n=t[o];return typeof n!="function"?i[o]:(Ro[e]=n,n.bind(i))}function Uv(r){return Ge("Node",r,"childNodes")}function zv(r){return Ge("Node",r,"parentNode")}function Wv(r){return Ge("Node",r,"parentElement")}function jv(r){return Ge("Node",r,"textContent")}function Gv(r,i){return Vu("Node",r,"contains")(i)}function Vv(r){return Vu("Node",r,"getRootNode")()}function Yv(r){return!r||!("host"in r)?null:Ge("ShadowRoot",r,"host")}function qv(r){return r.styleSheets}function Jv(r){return!r||!("shadowRoot"in r)?null:Ge("Element",r,"shadowRoot")}function Hv(r,i){return Ge("Element",r,"querySelector")(i)}function Zv(r,i){return Ge("Element",r,"querySelectorAll")(i)}function Yu(){return Oo("MutationObserver").constructor}function nt(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 D={childNodes:Uv,parentNode:zv,parentElement:Wv,textContent:jv,contains:Gv,getRootNode:Vv,host:Yv,styleSheets:qv,shadowRoot:Jv,querySelector:Hv,querySelectorAll:Zv,mutationObserver:Yu,patch:nt};function de(r,i,o){o===void 0&&(o=document);var e={capture:!0,passive:!0};return o.addEventListener(r,i,e),function(){return o.removeEventListener(r,i,e)}}var Rt="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",qu={map:{},getId:function(){return console.error(Rt),-1},getNode:function(){return console.error(Rt),null},removeNodeFromMap:function(){console.error(Rt)},has:function(){return console.error(Rt),!1},reset:function(){console.error(Rt)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(qu=new Proxy(qu,{get:function(i,o,e){return o==="map"&&console.error(Rt),Reflect.get(i,o,e)}}));function lr(r,i,o){o===void 0&&(o={});var e=null,t=0;return function(){for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];var u=Date.now();!t&&o.leading===!1&&(t=u);var l=i-(u-t),f=this;l<=0||l>i?(e&&(clearTimeout(e),e=null),t=u,r.apply(f,s)):!e&&o.trailing!==!1&&(e=setTimeout(function(){t=o.leading===!1?0:Date.now(),e=null,r.apply(f,s)},l))}}function Rn(r,i,o,e,t){t===void 0&&(t=window);var n=t.Object.getOwnPropertyDescriptor(r,i);return t.Object.defineProperty(r,i,e?o:{set:function(a){var u=this;setTimeout(function(){o.set.call(u,a)},0),n&&n.set&&n.set.call(this,a)}}),function(){return Rn(r,i,n||{},!0)}}var En=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(En=function(){return new Date().getTime()});function Ju(r){var i,o,e,t,n=r.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:r.pageXOffset!==void 0?r.pageXOffset:n.documentElement.scrollLeft||(n==null?void 0:n.body)&&((i=D.parentElement(n.body))==null?void 0:i.scrollLeft)||((o=n==null?void 0:n.body)==null?void 0:o.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:r.pageYOffset!==void 0?r.pageYOffset:(n==null?void 0:n.documentElement.scrollTop)||(n==null?void 0:n.body)&&((e=D.parentElement(n.body))==null?void 0:e.scrollTop)||((t=n==null?void 0:n.body)==null?void 0:t.scrollTop)||0}}function Hu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Zu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ku(r){if(!r)return null;var i=r.nodeType===r.ELEMENT_NODE?r:D.parentElement(r);return i}function ve(r,i,o,e){if(!r)return!1;var t=Ku(r);if(!t)return!1;try{if(typeof i=="string"){if(t.classList.contains(i)||e&&t.closest("."+i)!==null)return!0}else if(Dr(t,i,e))return!0}catch(n){}return!!(o&&(t.matches(o)||e&&t.closest(o)!==null))}function Kv(r,i){return i.getId(r)!==-1}function Eo(r,i,o){return r.tagName==="TITLE"&&o.headTitleMutations?!0:i.getId(r)===Jt}function Xu(r,i){if(Yt(r))return!1;var o=i.getId(r);if(!i.has(o))return!0;var e=D.parentNode(r);return e&&e.nodeType===r.DOCUMENT_NODE?!1:e?Xu(e,i):!0}function Ao(r){return!!r.changedTouches}function Xv(r){r===void 0&&(r=window),"NodeList"in r&&!r.NodeList.prototype.forEach&&(r.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in r&&!r.DOMTokenList.prototype.forEach&&(r.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Qu(r,i){return!!(r.nodeName==="IFRAME"&&i.getMeta(r))}function el(r,i){return!!(r.nodeName==="LINK"&&r.nodeType===r.ELEMENT_NODE&&r.getAttribute&&r.getAttribute("rel")==="stylesheet"&&i.getMeta(r))}function Mo(r){return r?E(r,Fv)&&"shadowRoot"in r?!!r.shadowRoot:!!D.shadowRoot(r):!1}var Qv=(function(){function r(){O(this,"id",1),O(this,"styleIDMap",new WeakMap),O(this,"idStyleMap",new Map)}var i=r.prototype;return i.getId=function(e){var t;return(t=this.styleIDMap.get(e))!=null?t:-1},i.has=function(e){return this.styleIDMap.has(e)},i.add=function(e,t){if(this.has(e))return this.getId(e);var n;return t===void 0?n=this.id++:n=t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n},i.getStyle=function(e){return this.idStyleMap.get(e)||null},i.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},i.generateId=function(){return this.id++},r})();function tl(r){var i,o=null;return"getRootNode"in r&&((i=D.getRootNode(r))==null?void 0:i.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&D.host(D.getRootNode(r))&&(o=D.host(D.getRootNode(r))),o}function em(r){for(var i=r,o;o=tl(i);)i=o;return i}function tm(r){var i=r.ownerDocument;if(!i)return!1;var o=em(r);return D.contains(i,o)}function rl(r){var i=r.ownerDocument;return i?D.contains(i,r)||tm(r):!1}var F=(function(r){return r[r.DomContentLoaded=0]="DomContentLoaded",r[r.Load=1]="Load",r[r.FullSnapshot=2]="FullSnapshot",r[r.IncrementalSnapshot=3]="IncrementalSnapshot",r[r.Meta=4]="Meta",r[r.Custom=5]="Custom",r[r.Plugin=6]="Plugin",r})(F||{}),P=(function(r){return r[r.Mutation=0]="Mutation",r[r.MouseMove=1]="MouseMove",r[r.MouseInteraction=2]="MouseInteraction",r[r.Scroll=3]="Scroll",r[r.ViewportResize=4]="ViewportResize",r[r.Input=5]="Input",r[r.TouchMove=6]="TouchMove",r[r.MediaInteraction=7]="MediaInteraction",r[r.StyleSheetRule=8]="StyleSheetRule",r[r.CanvasMutation=9]="CanvasMutation",r[r.Font=10]="Font",r[r.Log=11]="Log",r[r.Drag=12]="Drag",r[r.StyleDeclaration=13]="StyleDeclaration",r[r.Selection=14]="Selection",r[r.AdoptedStyleSheet=15]="AdoptedStyleSheet",r[r.CustomElement=16]="CustomElement",r})(P||{}),ge=(function(r){return r[r.MouseUp=0]="MouseUp",r[r.MouseDown=1]="MouseDown",r[r.Click=2]="Click",r[r.ContextMenu=3]="ContextMenu",r[r.DblClick=4]="DblClick",r[r.Focus=5]="Focus",r[r.Blur=6]="Blur",r[r.TouchStart=7]="TouchStart",r[r.TouchMove_Departed=8]="TouchMove_Departed",r[r.TouchEnd=9]="TouchEnd",r[r.TouchCancel=10]="TouchCancel",r})(ge||{}),Le=(function(r){return r[r.Mouse=0]="Mouse",r[r.Pen=1]="Pen",r[r.Touch=2]="Touch",r})(Le||{}),Et=(function(r){return r[r["2D"]=0]="2D",r[r.WebGL=1]="WebGL",r[r.WebGL2=2]="WebGL2",r})(Et||{}),At=(function(r){return r[r.Play=0]="Play",r[r.Pause=1]="Pause",r[r.Seeked=2]="Seeked",r[r.VolumeChange=3]="VolumeChange",r[r.RateChange=4]="RateChange",r})(At||{}),nl=(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})(nl||{});function il(r){return"__ln"in r}var rm=(function(){function r(){O(this,"length",0),O(this,"head",null),O(this,"tail",null)}var i=r.prototype;return i.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n<e;n++)t=(t==null?void 0:t.next)||null;return t},i.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&il(e.previousSibling)){var n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&il(e.nextSibling)&&e.nextSibling.__ln.previous){var s=e.nextSibling.__ln.previous;t.previous=s,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,s&&(s.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++},i.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},r})(),ol=function(r,i){return r+"@"+i},nm=(function(){function r(){var o=this;O(this,"frozen",!1),O(this,"locked",!1),O(this,"texts",[]),O(this,"attributes",[]),O(this,"attributeMap",new WeakMap),O(this,"removes",[]),O(this,"mapRemoves",[]),O(this,"movedMap",{}),O(this,"addedSet",new Set),O(this,"movedSet",new Set),O(this,"droppedSet",new Set),O(this,"removesSubTreeCache",new Set),O(this,"mutationCb"),O(this,"blockClass"),O(this,"blockSelector"),O(this,"maskTextClass"),O(this,"maskTextSelector"),O(this,"inlineStylesheet"),O(this,"maskInputOptions"),O(this,"maskTextFn"),O(this,"maskInputFn"),O(this,"keepIframeSrcFn"),O(this,"recordCanvas"),O(this,"inlineImages"),O(this,"slimDOMOptions"),O(this,"dataURLOptions"),O(this,"doc"),O(this,"mirror"),O(this,"iframeManager"),O(this,"stylesheetManager"),O(this,"shadowDomManager"),O(this,"canvasManager"),O(this,"processedNodeManager"),O(this,"unattachedDoc"),O(this,"processMutations",function(e){e.forEach(o.processMutation),o.emit()}),O(this,"emit",function(){if(!(o.frozen||o.locked)){for(var e=[],t=new Set,n=new rm,s=function(_){for(var L=_,j=Jt;j===Jt;)L=L&&L.nextSibling,j=L&&o.mirror.getId(L);return j},a=function(_){var L=D.parentNode(_);if(!(!L||!rl(_))){var j=!1;if(_.nodeType===Node.TEXT_NODE){var ye=L.tagName;if(ye==="TEXTAREA")return;ye==="STYLE"&&o.addedSet.has(L)&&(j=!0)}var G=Yt(L)?o.mirror.getId(tl(_)):o.mirror.getId(L),be=s(_);if(G===-1||be===-1)return n.addNode(_);var me=wt(_,{doc:o.doc,mirror:o.mirror,blockClass:o.blockClass,blockSelector:o.blockSelector,maskTextClass:o.maskTextClass,maskTextSelector:o.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:o.inlineStylesheet,maskInputOptions:o.maskInputOptions,maskTextFn:o.maskTextFn,maskInputFn:o.maskInputFn,slimDOMOptions:o.slimDOMOptions,dataURLOptions:o.dataURLOptions,recordCanvas:o.recordCanvas,inlineImages:o.inlineImages,onSerialize:function(ie){Qu(ie,o.mirror)&&o.iframeManager.addIframe(ie),el(ie,o.mirror)&&o.stylesheetManager.trackLinkElement(ie),Mo(_)&&o.shadowDomManager.addShadowRoot(D.shadowRoot(_),o.doc)},onIframeLoad:function(ie,he){o.iframeManager.attachIframe(ie,he),o.shadowDomManager.observeAttachShadow(ie)},onStylesheetLoad:function(ie,he){o.stylesheetManager.attachLinkElement(ie,he)},cssCaptured:j});me&&(e.push({parentId:G,nextId:be,node:me}),t.add(me.id))}};o.mapRemoves.length;)o.mirror.removeNodeFromMap(o.mapRemoves.shift());for(var u=I(o.movedSet),l;!(l=u()).done;){var f=l.value;sl(o.removesSubTreeCache,f,o.mirror)&&!o.movedSet.has(D.parentNode(f))||a(f)}for(var c=I(o.addedSet),h;!(h=c()).done;){var v=h.value;!al(o.droppedSet,v)&&!sl(o.removesSubTreeCache,v,o.mirror)||al(o.movedSet,v)?a(v):o.droppedSet.add(v)}for(var d=null;n.length;){var m=null;if(d){var p=o.mirror.getId(D.parentNode(d.value)),g=s(d.value);p!==-1&&g!==-1&&(m=d)}if(!m)for(var w=n.tail;w;){var S=w;if(w=w.previous,S){var b=o.mirror.getId(D.parentNode(S.value)),C=s(S.value);if(C===-1)continue;if(b!==-1){m=S;break}else{var x=S.value,M=D.parentNode(x);if(M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var R=D.host(M),$=o.mirror.getId(R);if($!==-1){m=S;break}}}}}if(!m){for(;n.head;)n.removeNode(n.head.value);break}d=m.previous,n.removeNode(m.value),a(m.value)}var T={texts:o.texts.map(function(_){var L=_.node,j=D.parentNode(L);return j&&j.tagName==="TEXTAREA"&&o.genTextAreaValueMutation(j),{id:o.mirror.getId(L),value:_.value}}).filter(function(_){return!t.has(_.id)}).filter(function(_){return o.mirror.has(_.id)}),attributes:o.attributes.map(function(_){var L=_.attributes;if(typeof L.style=="string"){var j=JSON.stringify(_.styleDiff),ye=JSON.stringify(_._unchangedStyles);j.length<L.style.length&&(j+ye).split("var(").length===L.style.split("var(").length&&(L.style=_.styleDiff)}return{id:o.mirror.getId(_.node),attributes:L}}).filter(function(_){return!t.has(_.id)}).filter(function(_){return o.mirror.has(_.id)}),removes:o.removes,adds:e};!T.texts.length&&!T.attributes.length&&!T.removes.length&&!T.adds.length||(o.texts=[],o.attributes=[],o.attributeMap=new WeakMap,o.removes=[],o.addedSet=new Set,o.movedSet=new Set,o.droppedSet=new Set,o.removesSubTreeCache=new Set,o.movedMap={},o.mutationCb(T))}}),O(this,"genTextAreaValueMutation",function(e){var t=o.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(t),o.attributeMap.set(e,t));var n=Array.from(D.childNodes(e),function(s){return D.textContent(s)||""}).join("");t.attributes.value=Pr({element:e,maskInputOptions:o.maskInputOptions,tagName:e.tagName,type:Tr(e),value:n,maskInputFn:o.maskInputFn})}),O(this,"processMutation",function(e){if(!Eo(e.target,o.mirror,o.slimDOMOptions))switch(e.type){case"characterData":{var t=D.textContent(e.target);!ve(e.target,o.blockClass,o.blockSelector,!1)&&t!==e.oldValue&&o.texts.push({value:Js(e.target,o.maskTextClass,o.maskTextSelector,!0)&&t?o.maskTextFn?o.maskTextFn(t,Ku(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{var n=e.target,s=e.attributeName,a=e.target.getAttribute(s);if(s==="value"){var u=Tr(n);a=Pr({element:n,maskInputOptions:o.maskInputOptions,tagName:n.tagName,type:u,value:a,maskInputFn:o.maskInputFn})}if(ve(e.target,o.blockClass,o.blockSelector,!1)||a===e.oldValue)return;var l=o.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&s==="src"&&!o.keepIframeSrcFn(a))if(!n.contentDocument)s="rr_src";else return;if(l||(l={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(l),o.attributeMap.set(e.target,l)),s==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!qs(n.tagName,s))if(l.attributes[s]=Ys(o.doc,et(n.tagName),et(s),a),s==="style"){if(!o.unattachedDoc)try{o.unattachedDoc=document.implementation.createHTMLDocument()}catch(S){o.unattachedDoc=o.doc}var f=o.unattachedDoc.createElement("span");e.oldValue&&f.setAttribute("style",e.oldValue);for(var c=I(Array.from(n.style)),h;!(h=c()).done;){var v=h.value,d=n.style.getPropertyValue(v),m=n.style.getPropertyPriority(v);d!==f.style.getPropertyValue(v)||m!==f.style.getPropertyPriority(v)?m===""?l.styleDiff[v]=d:l.styleDiff[v]=[d,m]:l._unchangedStyles[v]=[d,m]}for(var p=I(Array.from(f.style)),g;!(g=p()).done;){var w=g.value;n.style.getPropertyValue(w)===""&&(l.styleDiff[w]=!1)}}else s==="open"&&n.tagName==="DIALOG"&&(n.matches("dialog:modal")?l.attributes.rr_open_mode="modal":l.attributes.rr_open_mode="non-modal");break}case"childList":{if(ve(e.target,o.blockClass,o.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){o.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(S){return o.genAdds(S,e.target)}),e.removedNodes.forEach(function(S){var b=o.mirror.getId(S),C=Yt(e.target)?o.mirror.getId(D.host(e.target)):o.mirror.getId(e.target);ve(e.target,o.blockClass,o.blockSelector,!1)||Eo(S,o.mirror,o.slimDOMOptions)||!Kv(S,o.mirror)||(o.addedSet.has(S)?($o(o.addedSet,S),o.droppedSet.add(S)):o.addedSet.has(e.target)&&b===-1||Xu(e.target,o.mirror)||(o.movedSet.has(S)&&o.movedMap[ol(b,C)]?$o(o.movedSet,S):(o.removes.push({parentId:C,id:b,isShadow:Yt(e.target)&&qt(e.target)?!0:void 0}),im(S,o.removesSubTreeCache))),o.mapRemoves.push(S))});break}}}),O(this,"genAdds",function(e,t){if(!o.processedNodeManager.inOtherBuffer(e,o)&&!(o.addedSet.has(e)||o.movedSet.has(e))){if(o.mirror.hasNode(e)){if(Eo(e,o.mirror,o.slimDOMOptions))return;o.movedSet.add(e);var n=null;t&&o.mirror.hasNode(t)&&(n=o.mirror.getId(t)),n&&n!==-1&&(o.movedMap[ol(o.mirror.getId(e),n)]=!0)}else o.addedSet.add(e),o.droppedSet.delete(e);ve(e,o.blockClass,o.blockSelector,!1)||(D.childNodes(e).forEach(function(s){return o.genAdds(s)}),Mo(e)&&D.childNodes(D.shadowRoot(e)).forEach(function(s){o.processedNodeManager.add(s,o),o.genAdds(s,e)}))}})}var i=r.prototype;return i.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(n){t[n]=e[n]})},i.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},i.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},i.isFrozen=function(){return this.frozen},i.lock=function(){this.locked=!0,this.canvasManager.lock()},i.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},i.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},r})();function $o(r,i){r.delete(i),D.childNodes(i).forEach(function(o){return $o(r,o)})}function im(r,i){for(var o=[r];o.length;){var e=o.pop();i.has(e)||(i.add(e),D.childNodes(e).forEach(function(t){return o.push(t)}))}}function sl(r,i,o){return r.size===0?!1:om(r,i)}function om(r,i,o){var e=D.parentNode(i);return e?r.has(e):!1}function al(r,i){return r.size===0?!1:ul(r,i)}function ul(r,i){var o=D.parentNode(i);return o?r.has(o)?!0:ul(r,o):!1}var fr;function sm(r){fr=r}function am(){fr=void 0}var U=function(r){if(!fr)return r;var i=function(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];try{return r.apply(void 0,[].concat(e))}catch(n){if(fr&&fr(n)===!0)return;throw n}};return i},it=[];function cr(r){try{if("composedPath"in r){var i=r.composedPath();if(i.length)return i[0]}else if("path"in r&&r.path.length)return r.path[0]}catch(o){}return r&&r.target}function ll(r,i){var o=new nm;it.push(o),o.init(r);var e=new(Yu())(U(o.processMutations.bind(o)));return e.observe(i,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function um(r){var i=r.mousemoveCb,o=r.sampling,e=r.doc,t=r.mirror;if(o.mousemove===!1)return function(){};var n=typeof o.mousemove=="number"?o.mousemove:50,s=typeof o.mousemoveCallback=="number"?o.mousemoveCallback:500,a=[],u,l=lr(U(function(h){var v=Date.now()-u;i(a.map(function(d){return d.timeOffset-=v,d}),h),a=[],u=null}),s),f=U(lr(U(function(h){var v=cr(h),d=Ao(h)?h.changedTouches[0]:h,m=d.clientX,p=d.clientY;u||(u=En()),a.push({x:m,y:p,id:t.getId(v),timeOffset:En()-u}),l(typeof DragEvent!="undefined"&&E(h,DragEvent)?P.Drag:E(h,MouseEvent)?P.MouseMove:P.TouchMove)}),n,{trailing:!1})),c=[de("mousemove",f,e),de("touchmove",f,e),de("drag",f,e)];return U(function(){c.forEach(function(h){return h()})})}function lm(r){var i=r.mouseInteractionCb,o=r.doc,e=r.mirror,t=r.blockClass,n=r.blockSelector,s=r.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],l=null,f=function(c){return function(h){var v=cr(h);if(!ve(v,t,n,!0)){var d=null,m=c;if("pointerType"in h){switch(h.pointerType){case"mouse":d=Le.Mouse;break;case"touch":d=Le.Touch;break;case"pen":d=Le.Pen;break}d===Le.Touch?ge[c]===ge.MouseDown?m="TouchStart":ge[c]===ge.MouseUp&&(m="TouchEnd"):Le.Pen}else Ao(h)&&(d=Le.Touch);d!==null?(l=d,(m.startsWith("Touch")&&d===Le.Touch||m.startsWith("Mouse")&&d===Le.Mouse)&&(d=null)):ge[c]===ge.Click&&(d=l,l=null);var p=Ao(h)?h.changedTouches[0]:h;if(p){var g=e.getId(v),w=p.clientX,S=p.clientY;U(i)(N({type:ge[m],id:g,x:w,y:S},d!==null&&{pointerType:d}))}}}};return Object.keys(ge).filter(function(c){return Number.isNaN(Number(c))&&!c.endsWith("_Departed")&&a[c]!==!1}).forEach(function(c){var h=et(c),v=f(c);if(window.PointerEvent)switch(ge[c]){case ge.MouseDown:case ge.MouseUp:h=h.replace("mouse","pointer");break;case ge.TouchStart:case ge.TouchEnd:return}u.push(de(h,v,o))}),U(function(){u.forEach(function(c){return c()})})}function fl(r){var i=r.scrollCb,o=r.doc,e=r.mirror,t=r.blockClass,n=r.blockSelector,s=r.sampling,a=U(lr(U(function(u){var l=cr(u);if(!(!l||ve(l,t,n,!0))){var f=e.getId(l);if(l===o&&o.defaultView){var c=Ju(o.defaultView);i({id:f,x:c.left,y:c.top})}else i({id:f,x:l.scrollLeft,y:l.scrollTop})}}),s.scroll||100));return de("scroll",a,o)}function fm(r,i){var o=r.viewportResizeCb,e=i.win,t=-1,n=-1,s=U(lr(U(function(){var a=Hu(),u=Zu();(t!==a||n!==u)&&(o({width:Number(u),height:Number(a)}),t=a,n=u)}),200));return de("resize",s,e)}var cm=["INPUT","TEXTAREA","SELECT"],cl=new WeakMap;function hm(r){var i=r.inputCb,o=r.doc,e=r.mirror,t=r.blockClass,n=r.blockSelector,s=r.ignoreClass,a=r.ignoreSelector,u=r.maskInputOptions,l=r.maskInputFn,f=r.sampling,c=r.userTriggeredOnInput;function h(b){var C=cr(b),x=b.isTrusted,M=C&&C.tagName;if(C&&M==="OPTION"&&(C=D.parentElement(C)),!(!C||!M||cm.indexOf(M)<0||ve(C,t,n,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var R=C.value,$=!1,T=Tr(C)||"";T==="radio"||T==="checkbox"?$=C.checked:(u[M.toLowerCase()]||u[T])&&(R=Pr({element:C,maskInputOptions:u,tagName:M,type:T,value:R,maskInputFn:l})),v(C,c?{text:R,isChecked:$,userTriggered:x}:{text:R,isChecked:$});var _=C.name;T==="radio"&&_&&$&&o.querySelectorAll('input[type="radio"][name="'+_+'"]').forEach(function(L){if(L!==C){var j=L.value;v(L,c?{text:j,isChecked:!$,userTriggered:!1}:{text:j,isChecked:!$})}})}}function v(b,C){var x=cl.get(b);if(!x||x.text!==C.text||x.isChecked!==C.isChecked){cl.set(b,C);var M=e.getId(b);U(i)(N({},C,{id:M}))}}var d=f.input==="last"?["change"]:["input","change"],m=d.map(function(b){return de(b,U(h),o)}),p=o.defaultView;if(!p)return function(){m.forEach(function(b){return b()})};var g=p.Object.getOwnPropertyDescriptor(p.HTMLInputElement.prototype,"value"),w=[[p.HTMLInputElement.prototype,"value"],[p.HTMLInputElement.prototype,"checked"],[p.HTMLSelectElement.prototype,"value"],[p.HTMLTextAreaElement.prototype,"value"],[p.HTMLSelectElement.prototype,"selectedIndex"],[p.HTMLOptionElement.prototype,"selected"]];if(g&&g.set){var S;(S=m).push.apply(S,[].concat(w.map(function(b){return Rn(b[0],b[1],{set:function(){U(h)({target:this,isTrusted:!1})}},!1,p)})))}return U(function(){m.forEach(function(b){return b()})})}function An(r){var i=[];function o(e,t){if(Mn("CSSGroupingRule")&&E(e.parentRule,CSSGroupingRule)||Mn("CSSMediaRule")&&E(e.parentRule,CSSMediaRule)||Mn("CSSSupportsRule")&&E(e.parentRule,CSSSupportsRule)||Mn("CSSConditionRule")&&E(e.parentRule,CSSConditionRule)){var n=Array.from(e.parentRule.cssRules),s=n.indexOf(e);t.unshift(s)}else if(e.parentStyleSheet){var a=Array.from(e.parentStyleSheet.cssRules),u=a.indexOf(e);t.unshift(u)}return t}return o(r,i)}function Ve(r,i,o){var e,t;return r?(r.ownerNode?e=i.getId(r.ownerNode):t=o.getId(r),{styleId:t,id:e}):{}}function pm(r,i){var o=r.styleSheetRuleCb,e=r.mirror,t=r.stylesheetManager,n=i.win;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return function(){};var s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:U(function(h,v,d){var m=d[0],p=d[1],g=Ve(v,e,t.styleMirror),w=g.id,S=g.styleId;return(w&&w!==-1||S&&S!==-1)&&o({id:w,styleId:S,adds:[{rule:m,index:p}]}),h.apply(v,d)})}),n.CSSStyleSheet.prototype.addRule=function(h,v,d){d===void 0&&(d=this.cssRules.length);var m=h+" { "+v+" }";return n.CSSStyleSheet.prototype.insertRule.apply(this,[m,d])};var a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:U(function(h,v,d){var m=d[0],p=Ve(v,e,t.styleMirror),g=p.id,w=p.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,removes:[{index:m}]}),h.apply(v,d)})}),n.CSSStyleSheet.prototype.removeRule=function(h){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};var u;n.CSSStyleSheet.prototype.replace&&(u=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:U(function(h,v,d){var m=d[0],p=Ve(v,e,t.styleMirror),g=p.id,w=p.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,replace:m}),h.apply(v,d)})}));var l;n.CSSStyleSheet.prototype.replaceSync&&(l=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:U(function(h,v,d){var m=d[0],p=Ve(v,e,t.styleMirror),g=p.id,w=p.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,replaceSync:m}),h.apply(v,d)})}));var f={};$n("CSSGroupingRule")?f.CSSGroupingRule=n.CSSGroupingRule:($n("CSSMediaRule")&&(f.CSSMediaRule=n.CSSMediaRule),$n("CSSConditionRule")&&(f.CSSConditionRule=n.CSSConditionRule),$n("CSSSupportsRule")&&(f.CSSSupportsRule=n.CSSSupportsRule));var c={};return Object.entries(f).forEach(function(h){var v=h[0],d=h[1];c[v]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(c[v].insertRule,{apply:U(function(m,p,g){var w=g[0],S=g[1],b=Ve(p.parentStyleSheet,e,t.styleMirror),C=b.id,x=b.styleId;return(C&&C!==-1||x&&x!==-1)&&o({id:C,styleId:x,adds:[{rule:w,index:[].concat(An(p),[S||0])}]}),m.apply(p,g)})}),d.prototype.deleteRule=new Proxy(c[v].deleteRule,{apply:U(function(m,p,g){var w=g[0],S=Ve(p.parentStyleSheet,e,t.styleMirror),b=S.id,C=S.styleId;return(b&&b!==-1||C&&C!==-1)&&o({id:b,styleId:C,removes:[{index:[].concat(An(p),[w])}]}),m.apply(p,g)})})}),U(function(){n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=a,u&&(n.CSSStyleSheet.prototype.replace=u),l&&(n.CSSStyleSheet.prototype.replaceSync=l),Object.entries(f).forEach(function(h){var v=h[0],d=h[1];d.prototype.insertRule=c[v].insertRule,d.prototype.deleteRule=c[v].deleteRule})})}function hl(r,i){var o=r.mirror,e=r.stylesheetManager,t,n,s,a=null;i.nodeName==="#document"?a=o.getId(i):a=o.getId(D.host(i));var u=i.nodeName==="#document"?(t=i.defaultView)==null?void 0:t.Document:(s=(n=i.ownerDocument)==null?void 0:n.defaultView)==null?void 0:s.ShadowRoot,l=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!l?function(){}:(Object.defineProperty(i,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var c;return(c=l.get)==null?void 0:c.call(this)},set:function(c){var h,v=(h=l.set)==null?void 0:h.call(this,c);if(a!==null&&a!==-1)try{e.adoptStyleSheets(c,a)}catch(d){}return v}}),U(function(){Object.defineProperty(i,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function dm(r,i){var o=r.styleDeclarationCb,e=r.mirror,t=r.ignoreCSSAttributes,n=r.stylesheetManager,s=i.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:U(function(l,f,c){var h,v=c[0],d=c[1],m=c[2];if(t.has(v))return a.apply(f,[v,d,m]);var p=Ve((h=f.parentRule)==null?void 0:h.parentStyleSheet,e,n.styleMirror),g=p.id,w=p.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,set:{property:v,value:d,priority:m},index:An(f.parentRule)}),l.apply(f,c)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:U(function(l,f,c){var h,v=c[0];if(t.has(v))return u.apply(f,[v]);var d=Ve((h=f.parentRule)==null?void 0:h.parentStyleSheet,e,n.styleMirror),m=d.id,p=d.styleId;return(m&&m!==-1||p&&p!==-1)&&o({id:m,styleId:p,remove:{property:v},index:An(f.parentRule)}),l.apply(f,c)})}),U(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function vm(r){var i=r.mediaInteractionCb,o=r.blockClass,e=r.blockSelector,t=r.mirror,n=r.sampling,s=r.doc,a=U(function(l){return lr(U(function(f){var c=cr(f);if(!(!c||ve(c,o,e,!0))){var h=c.currentTime,v=c.volume,d=c.muted,m=c.playbackRate,p=c.loop;i({type:l,id:t.getId(c),currentTime:h,volume:v,muted:d,playbackRate:m,loop:p})}}),n.media||500)}),u=[de("play",a(At.Play),s),de("pause",a(At.Pause),s),de("seeked",a(At.Seeked),s),de("volumechange",a(At.VolumeChange),s),de("ratechange",a(At.RateChange),s)];return U(function(){u.forEach(function(l){return l()})})}function mm(r){var i=r.fontCb,o=r.doc,e=o.defaultView;if(!e)return function(){};var t=[],n=new WeakMap,s=e.FontFace;e.FontFace=function(l,f,c){var h=new s(l,f,c);return n.set(h,{family:l,buffer:typeof f!="string",descriptors:c,fontSource:typeof f=="string"?f:JSON.stringify(Array.from(new Uint8Array(f)))}),h};var a=nt(o.fonts,"add",function(u){return function(l){return setTimeout(U(function(){var f=n.get(l);f&&(i(f),n.delete(l))}),0),u.apply(this,[l])}});return t.push(function(){e.FontFace=s}),t.push(a),U(function(){t.forEach(function(u){return u()})})}function gm(r){var i=r.doc,o=r.mirror,e=r.blockClass,t=r.blockSelector,n=r.selectionCb,s=!0,a=U(function(){var u=i.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var l=[],f=u.rangeCount||0,c=0;c<f;c++){var h=u.getRangeAt(c),v=h.startContainer,d=h.startOffset,m=h.endContainer,p=h.endOffset,g=ve(v,e,t,!0)||ve(m,e,t,!0);g||l.push({start:o.getId(v),startOffset:d,end:o.getId(m),endOffset:p})}n({ranges:l})}});return a(),de("selectionchange",a)}function ym(r){var i=r.doc,o=r.customElementCb,e=i.defaultView;if(!e||!e.customElements)return function(){};var t=nt(e.customElements,"define",function(n){return function(s,a,u){try{o({define:{name:s}})}catch(l){console.warn("Custom element callback failed for "+s)}return n.apply(this,[s,a,u])}});return t}function wm(r,i){var o=r.mutationCb,e=r.mousemoveCb,t=r.mouseInteractionCb,n=r.scrollCb,s=r.viewportResizeCb,a=r.inputCb,u=r.mediaInteractionCb,l=r.styleSheetRuleCb,f=r.styleDeclarationCb,c=r.canvasMutationCb,h=r.fontCb,v=r.selectionCb,d=r.customElementCb;r.mutationCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.mutation){var w;(w=i).mutation.apply(w,[].concat(p))}o.apply(void 0,[].concat(p))},r.mousemoveCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.mousemove){var w;(w=i).mousemove.apply(w,[].concat(p))}e.apply(void 0,[].concat(p))},r.mouseInteractionCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.mouseInteraction){var w;(w=i).mouseInteraction.apply(w,[].concat(p))}t.apply(void 0,[].concat(p))},r.scrollCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.scroll){var w;(w=i).scroll.apply(w,[].concat(p))}n.apply(void 0,[].concat(p))},r.viewportResizeCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.viewportResize){var w;(w=i).viewportResize.apply(w,[].concat(p))}s.apply(void 0,[].concat(p))},r.inputCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.input){var w;(w=i).input.apply(w,[].concat(p))}a.apply(void 0,[].concat(p))},r.mediaInteractionCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.mediaInteaction){var w;(w=i).mediaInteaction.apply(w,[].concat(p))}u.apply(void 0,[].concat(p))},r.styleSheetRuleCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.styleSheetRule){var w;(w=i).styleSheetRule.apply(w,[].concat(p))}l.apply(void 0,[].concat(p))},r.styleDeclarationCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.styleDeclaration){var w;(w=i).styleDeclaration.apply(w,[].concat(p))}f.apply(void 0,[].concat(p))},r.canvasMutationCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.canvasMutation){var w;(w=i).canvasMutation.apply(w,[].concat(p))}c.apply(void 0,[].concat(p))},r.fontCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.font){var w;(w=i).font.apply(w,[].concat(p))}h.apply(void 0,[].concat(p))},r.selectionCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.selection){var w;(w=i).selection.apply(w,[].concat(p))}v.apply(void 0,[].concat(p))},r.customElementCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.customElement){var w;(w=i).customElement.apply(w,[].concat(p))}d.apply(void 0,[].concat(p))}}function Sm(r,i){i===void 0&&(i={});var o=r.doc.defaultView;if(!o)return function(){};wm(r,i);var e;r.recordDOM&&(e=ll(r,r.doc));var t=um(r),n=lm(r),s=fl(r),a=fm(r,{win:o}),u=hm(r),l=vm(r),f=function(){},c=function(){},h=function(){},v=function(){};r.recordDOM&&(f=pm(r,{win:o}),c=hl(r,r.doc),h=dm(r,{win:o}),r.collectFonts&&(v=mm(r)));for(var d=gm(r),m=ym(r),p=[],g=I(r.plugins),w;!(w=g()).done;){var S=w.value;p.push(S.observer(S.callback,o,S.options))}return U(function(){it.forEach(function(b){return b.reset()}),e==null||e.disconnect(),t(),n(),s(),a(),u(),l(),f(),c(),h(),v(),d(),m(),p.forEach(function(b){return b()})})}function Mn(r){return typeof window[r]!="undefined"}function $n(r){return!!(typeof window[r]!="undefined"&&window[r].prototype&&"insertRule"in window[r].prototype&&"deleteRule"in window[r].prototype)}for(var pl=(function(){function r(o){O(this,"iframeIdToRemoteIdMap",new WeakMap),O(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=o}var i=r.prototype;return i.getId=function(e,t,n,s){var a=n||this.getIdToRemoteIdMap(e),u=s||this.getRemoteIdToIdMap(e),l=a.get(t);return l||(l=this.generateIdFn(),a.set(t,l),u.set(l,t)),l},i.getIds=function(e,t){var n=this,s=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return t.map(function(u){return n.getId(e,u,s,a)})},i.getRemoteId=function(e,t,n){var s=n||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;var a=s.get(t);return a||-1},i.getRemoteIds=function(e,t){var n=this,s=this.getRemoteIdToIdMap(e);return t.map(function(a){return n.getRemoteId(e,a,s)})},i.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},i.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},i.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},r})(),bm=(function(){function r(o){O(this,"iframes",new WeakMap),O(this,"crossOriginIframeMap",new WeakMap),O(this,"crossOriginIframeMirror",new pl(js)),O(this,"crossOriginIframeStyleMirror"),O(this,"crossOriginIframeRootIdMap",new WeakMap),O(this,"mirror"),O(this,"mutationCb"),O(this,"wrappedEmit"),O(this,"loadListener"),O(this,"stylesheetManager"),O(this,"recordCrossOriginIframes"),this.mutationCb=o.mutationCb,this.wrappedEmit=o.wrappedEmit,this.stylesheetManager=o.stylesheetManager,this.recordCrossOriginIframes=o.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new pl(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=o.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var i=r.prototype;return i.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},i.addLoadListener=function(e){this.loadListener=e},i.attachIframe=function(e,t){var n,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((n=e.contentWindow)==null||n.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},i.handleMessage=function(e){var t=e;if(!(t.data.type!=="rrweb"||t.origin!==t.data.origin)){var n=e.source;if(n){var s=this.crossOriginIframeMap.get(e.source);if(s){var a=this.transformCrossOriginEvent(s,t.data.event);a&&this.wrappedEmit(a,t.data.isCheckout)}}}},i.transformCrossOriginEvent=function(e,t){var n=this,s;switch(t.type){case F.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var a=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(t.data.node,a),{timestamp:t.timestamp,type:F.IncrementalSnapshot,data:{source:P.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case F.Meta:case F.Load:case F.DomContentLoaded:return!1;case F.Plugin:return t;case F.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case F.IncrementalSnapshot:switch(t.data.source){case P.Mutation:return t.data.adds.forEach(function(u){n.replaceIds(u,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(u.node,e);var l=n.crossOriginIframeRootIdMap.get(e);l&&n.patchRootIdOnNode(u.node,l)}),t.data.removes.forEach(function(u){n.replaceIds(u,e,["parentId","id"])}),t.data.attributes.forEach(function(u){n.replaceIds(u,e,["id"])}),t.data.texts.forEach(function(u){n.replaceIds(u,e,["id"])}),t;case P.Drag:case P.TouchMove:case P.MouseMove:return t.data.positions.forEach(function(u){n.replaceIds(u,e,["id"])}),t;case P.ViewportResize:return!1;case P.MediaInteraction:case P.MouseInteraction:case P.Scroll:case P.CanvasMutation:case P.Input:return this.replaceIds(t.data,e,["id"]),t;case P.StyleSheetRule:case P.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case P.Font:return t;case P.Selection:return t.data.ranges.forEach(function(u){n.replaceIds(u,e,["start","end"])}),t;case P.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(s=t.data.styles)==null||s.forEach(function(u){n.replaceStyleIds(u,e,["styleId"])}),t}}return!1},i.replace=function(e,t,n,s){for(var a=I(s),u;!(u=a()).done;){var l=u.value;!Array.isArray(t[l])&&typeof t[l]!="number"||(Array.isArray(t[l])?t[l]=e.getIds(n,t[l]):t[l]=e.getId(n,t[l]))}return t},i.replaceIds=function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)},i.replaceStyleIds=function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)},i.replaceIdOnNode=function(e,t){var n=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(s){n.replaceIdOnNode(s,t)})},i.patchRootIdOnNode=function(e,t){var n=this;e.type!==nl.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(s){n.patchRootIdOnNode(s,t)})},r})(),Cm=(function(){function r(o){O(this,"shadowDoms",new WeakSet),O(this,"mutationCb"),O(this,"scrollCb"),O(this,"bypassOptions"),O(this,"mirror"),O(this,"restoreHandlers",[]),this.mutationCb=o.mutationCb,this.scrollCb=o.scrollCb,this.bypassOptions=o.bypassOptions,this.mirror=o.mirror,this.init()}var i=r.prototype;return i.init=function(){this.reset(),this.patchAttachShadow(Element,document)},i.addShadowRoot=function(e,t){var n=this;if(qt(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=ll(N({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(fl(N({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(D.host(e))),n.restoreHandlers.push(hl({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e))},0)}},i.observeAttachShadow=function(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},i.patchAttachShadow=function(e,t){var n=this;this.restoreHandlers.push(nt(e.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),l=D.shadowRoot(this);return l&&rl(this)&&n.addShadowRoot(l,t),u}}))},i.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},r})(),Mt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Im=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),kn=0;kn<Mt.length;kn++)Im[Mt.charCodeAt(kn)]=kn;var Om=function(i){var o=new Uint8Array(i),e,t=o.length,n="";for(e=0;e<t;e+=3)n+=Mt[o[e]>>2],n+=Mt[(o[e]&3)<<4|o[e+1]>>4],n+=Mt[(o[e+1]&15)<<2|o[e+2]>>6],n+=Mt[o[e+2]&63];return t%3===2?n=n.substring(0,n.length-1)+"=":t%3===1&&(n=n.substring(0,n.length-2)+"=="),n},dl=new Map;function xm(r,i){var o=dl.get(r);return o||(o=new Map,dl.set(r,o)),o.has(i)||o.set(i,[]),o.get(i)}var vl=function(r,i,o){if(!(!r||!(gl(r,i)||(typeof r=="undefined"?"undefined":A(r))==="object"))){var e=r.constructor.name,t=xm(o,e),n=t.indexOf(r);return n===-1&&(n=t.length,t.push(r)),n}};function _n(r,i,o){if(E(r,Array))return r.map(function(d){return _n(d,i,o)});if(r===null)return r;if(E(r,Float32Array)||E(r,Float64Array)||E(r,Int32Array)||E(r,Uint32Array)||E(r,Uint8Array)||E(r,Uint16Array)||E(r,Int16Array)||E(r,Int8Array)||E(r,Uint8ClampedArray)){var e=r.constructor.name;return{rr_type:e,args:[Object.values(r)]}}else if(E(r,ArrayBuffer)){var t=r.constructor.name,n=Om(r);return{rr_type:t,base64:n}}else if(E(r,DataView)){var s=r.constructor.name;return{rr_type:s,args:[_n(r.buffer,i,o),r.byteOffset,r.byteLength]}}else if(E(r,HTMLImageElement)){var a=r.constructor.name,u=r.src;return{rr_type:a,src:u}}else if(E(r,HTMLCanvasElement)){var l="HTMLImageElement",f=r.toDataURL();return{rr_type:l,src:f}}else if(E(r,ImageData)){var c=r.constructor.name;return{rr_type:c,args:[_n(r.data,i,o),r.width,r.height]}}else if(gl(r,i)||(typeof r=="undefined"?"undefined":A(r))==="object"){var h=r.constructor.name,v=vl(r,i,o);return{rr_type:h,index:v}}return r}var ml=function(r,i,o){return r.map(function(e){return _n(e,i,o)})},gl=function(r,i){var o=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=o.filter(function(t){return typeof i[t]=="function"});return!!e.find(function(t){return E(r,i[t])})};function Rm(r,i,o,e){for(var t=function(){var l=u.value;try{if(typeof i.CanvasRenderingContext2D.prototype[l]!="function")return"continue";var f=nt(i.CanvasRenderingContext2D.prototype,l,function(h){return function(){for(var v=this,d=arguments.length,m=new Array(d),p=0;p<d;p++)m[p]=arguments[p];return ve(this.canvas,o,e,!0)||setTimeout(function(){var g=ml(m,i,v);r(v.canvas,{type:Et["2D"],property:l,args:g})},0),h.apply(this,m)}});n.push(f)}catch(h){var c=Rn(i.CanvasRenderingContext2D.prototype,l,{set:function(d){r(this.canvas,{type:Et["2D"],property:l,args:[d],setter:!0})}});n.push(c)}},n=[],s=Object.getOwnPropertyNames(i.CanvasRenderingContext2D.prototype),a=I(s),u;!(u=a()).done;)t();return function(){n.forEach(function(l){return l()})}}function Em(r){return r==="experimental-webgl"?"webgl":r}function yl(r,i,o,e){var t=[];try{var n=nt(r.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,l=new Array(u>1?u-1:0),f=1;f<u;f++)l[f-1]=arguments[f];if(!ve(this,i,o,!0)){var c=Em(a);if("__context"in this||(this.__context=c),e&&["webgl","webgl2"].includes(c))if(l[0]&&A(l[0])==="object"){var h=l[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([a],l))}});t.push(n)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){t.forEach(function(s){return s()})}}function wl(r,i,o,e,t,n){for(var s=function(){var c=f.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))return"continue";try{if(typeof r[c]!="function")return"continue";var h=nt(r,c,function(d){return function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];var w=d.apply(this,p);if(vl(w,n,this),"tagName"in this.canvas&&!ve(this.canvas,e,t,!0)){var S=ml(p,n,this),b={type:i,property:c,args:S};o(this.canvas,b)}return w}});a.push(h)}catch(d){var v=Rn(r,c,{set:function(p){o(this.canvas,{type:i,property:c,args:[p],setter:!0})}});a.push(v)}},a=[],u=Object.getOwnPropertyNames(r),l=I(u),f;!(f=l()).done;)s();return a}function Am(r,i,o,e){var t,n=[];if((t=n).push.apply(t,[].concat(wl(i.WebGLRenderingContext.prototype,Et.WebGL,r,o,e,i))),typeof i.WebGL2RenderingContext!="undefined"){var s;(s=n).push.apply(s,[].concat(wl(i.WebGL2RenderingContext.prototype,Et.WebGL2,r,o,e,i)))}return function(){n.forEach(function(a){return a()})}}var Sl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Mm=function(r){return Uint8Array.from(atob(r),function(i){return i.charCodeAt(0)})},bl=typeof window!="undefined"&&window.Blob&&new Blob([Mm(Sl)],{type:"text/javascript;charset=utf-8"});function $m(r){var i;try{if(i=bl&&(window.URL||window.webkitURL).createObjectURL(bl),!i)throw"";var o=new Worker(i,{name:r==null?void 0:r.name});return o.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(i)}),o}catch(e){return new Worker("data:text/javascript;base64,"+Sl,{name:r==null?void 0:r.name})}finally{i&&(window.URL||window.webkitURL).revokeObjectURL(i)}}var km=(function(){function r(o){var e=this;O(this,"pendingCanvasMutations",new Map),O(this,"rafStamps",{latestId:0,invokeId:null}),O(this,"mirror"),O(this,"mutationCb"),O(this,"resetObservers"),O(this,"frozen",!1),O(this,"locked",!1),O(this,"processMutation",function(c,h){var v=e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId;(v||!e.rafStamps.invokeId)&&(e.rafStamps.invokeId=e.rafStamps.latestId),e.pendingCanvasMutations.has(c)||e.pendingCanvasMutations.set(c,[]),e.pendingCanvasMutations.get(c).push(h)});var t=o.sampling,n=t===void 0?"all":t,s=o.win,a=o.blockClass,u=o.blockSelector,l=o.recordCanvas,f=o.dataURLOptions;this.mutationCb=o.mutationCb,this.mirror=o.mirror,l&&n==="all"&&this.initCanvasMutationObserver(s,a,u),l&&typeof n=="number"&&this.initCanvasFPSObserver(n,s,a,u,{dataURLOptions:f})}var i=r.prototype;return i.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},i.freeze=function(){this.frozen=!0},i.unfreeze=function(){this.frozen=!1},i.lock=function(){this.locked=!0},i.unlock=function(){this.locked=!1},i.initCanvasFPSObserver=function(e,t,n,s,a){var u=this,l=yl(t,n,s,!0),f=new Map,c=new $m;c.onmessage=function(g){var w=g.data.id;if(f.set(w,!1),"base64"in g.data){var S=g.data,b=S.base64,C=S.type,x=S.width,M=S.height;u.mutationCb({id:w,type:Et["2D"],commands:[{property:"clearRect",args:[0,0,x,M]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:b}],type:C}]},0,0]}]})}};var h=1e3/e,v=0,d,m=function(){var g=[];return t.document.querySelectorAll("canvas").forEach(function(w){ve(w,n,s,!0)||g.push(w)}),g},p=function(g){if(v&&g-v<h){d=requestAnimationFrame(p);return}v=g;var w=u;m().forEach($r(function(S){var b,C,x,M;return Qe(this,function(R){switch(R.label){case 0:return C=w.mirror.getId(S),f.get(C)?[2]:S.width===0||S.height===0?[2]:(f.set(C,!0),["webgl","webgl2"].includes(S.__context)&&(x=S.getContext(S.__context),((b=x==null?void 0:x.getContextAttributes())==null?void 0:b.preserveDrawingBuffer)===!1&&x.clear(x.COLOR_BUFFER_BIT)),[4,createImageBitmap(S)]);case 1:return M=R.sent(),c.postMessage({id:C,bitmap:M,width:S.width,height:S.height,dataURLOptions:a.dataURLOptions},[M]),[2]}})})),d=requestAnimationFrame(p)};d=requestAnimationFrame(p),this.resetObservers=function(){l(),cancelAnimationFrame(d)}},i.initCanvasMutationObserver=function(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=yl(e,t,n,!1),a=Rm(this.processMutation.bind(this),e,t,n),u=Am(this.processMutation.bind(this),e,t,n);this.resetObservers=function(){s(),a(),u()}},i.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},i.startRAFTimestamping=function(){var e=this,t=function(n){e.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)},i.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,n){var s=e.mirror.getId(n);e.flushPendingCanvasMutationFor(n,s)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},i.flushPendingCanvasMutationFor=function(e,t){if(!(this.frozen||this.locked)){var n=this.pendingCanvasMutations.get(e);if(!(!n||t===-1)){var s=n.map(function(u){u.type;var l=Xe(u,["type"]);return l}),a=n[0].type;this.mutationCb({id:t,type:a,commands:s}),this.pendingCanvasMutations.delete(e)}}},r})(),_m=(function(){function r(o){O(this,"trackedLinkElements",new WeakSet),O(this,"mutationCb"),O(this,"adoptedStyleSheetCb"),O(this,"styleMirror",new Qv),this.mutationCb=o.mutationCb,this.adoptedStyleSheetCb=o.adoptedStyleSheetCb}var i=r.prototype;return i.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},i.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},i.adoptStyleSheets=function(e,t){var n,s=function(){var c=f.value,h=void 0;n.styleMirror.has(c)?h=n.styleMirror.getId(c):(h=n.styleMirror.add(c),u.push({styleId:h,rules:Array.from(c.rules||CSSRule,function(v,d){return{rule:Bs(v,c.href),index:d}})})),a.styleIds.push(h)};if(e.length!==0){for(var a={id:t,styleIds:[]},u=[],l=I(e),f;!(f=l()).done;)n=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},i.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},i.trackStylesheetInLinkElement=function(e){},r})(),Pm=(function(){function r(){O(this,"nodeMap",new WeakMap),O(this,"active",!1)}var i=r.prototype;return i.inOtherBuffer=function(e,t){var n=this.nodeMap.get(e);return n&&Array.from(n).some(function(s){return s!==t})},i.add=function(e,t){var n=this;this.active||(this.active=!0,requestAnimationFrame(function(){n.nodeMap=new WeakMap,n.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},i.destroy=function(){},r})(),se,Pn,ko,Tn=!1;try{if(Array.from([1],function(r){return r*2})[0]!==2){var _o=document.createElement("iframe");document.body.appendChild(_o),Array.from=((Ps=_o.contentWindow)==null?void 0:Ps.Array.from)||Array.from,document.body.removeChild(_o)}}catch(r){console.debug("Unable to override Array.from",r)}var xe=kc();function Ye(r){r===void 0&&(r={});var i=r.emit,o=r.checkoutEveryNms,e=r.checkoutEveryNth,t=r.blockClass,n=t===void 0?"rr-block":t,s=r.blockSelector,a=s===void 0?null:s,u=r.ignoreClass,l=u===void 0?"rr-ignore":u,f=r.ignoreSelector,c=f===void 0?null:f,h=r.maskTextClass,v=h===void 0?"rr-mask":h,d=r.maskTextSelector,m=d===void 0?null:d,p=r.inlineStylesheet,g=p===void 0?!0:p,w=r.maskAllInputs,S=r.maskInputOptions,b=r.slimDOMOptions,C=r.maskInputFn,x=r.maskTextFn,M=r.hooks,R=r.packFn,$=r.sampling,T=$===void 0?{}:$,_=r.dataURLOptions,L=_===void 0?{}:_,j=r.mousemoveWait,ye=r.recordDOM,G=ye===void 0?!0:ye,be=r.recordCanvas,me=be===void 0?!1:be,ie=r.recordCrossOriginIframes,he=ie===void 0?!1:ie,Ce=r.recordAfter,ut=Ce===void 0?r.recordAfter==="DOMContentLoaded"?r.recordAfter:"load":Ce,Pe=r.userTriggeredOnInput,Ut=Pe===void 0?!1:Pe,Ie=r.collectFonts,lt=Ie===void 0?!1:Ie,W=r.inlineImages,ft=W===void 0?!1:W,ct=r.plugins,zt=r.keepIframeSrcFn,Rr=zt===void 0?function(){return!1}:zt,Er=r.ignoreCSSAttributes,Rs=Er===void 0?new Set([]):Er,fi=r.errorHandler;sm(fi);var Ke=he?window.parent===window:!0,ht=!1;if(!Ke)try{window.parent.document&&(ht=!1)}catch(J){ht=!0}if(Ke&&!i)throw new Error("emit function is required");if(!Ke&&!ht)return function(){};j!==void 0&&T.mousemove===void 0&&(T.mousemove=j),xe.reset();var Wt=w===!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}:S!==void 0?S:{password:!0},Ar=b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:b==="all",headMetaDescKeywords:b==="all",headTitleMutations:b==="all"}:b||{};Xv();var jt,pt=0,Ue=function(J){for(var we=I(ct||[]),k;!(k=we()).done;){var oe=k.value;oe.eventProcessor&&(J=oe.eventProcessor(J))}return R&&!ht&&(J=R(J)),J};se=function(J,we){var k,oe=J;if(oe.timestamp=En(),(k=it[0])!=null&&k.isFrozen()&&oe.type!==F.FullSnapshot&&!(oe.type===F.IncrementalSnapshot&&oe.data.source===P.Mutation)&&it.forEach(function(Lw){return Lw.unfreeze()}),Ke)i==null||i(Ue(oe),we);else if(ht){var Pw={type:"rrweb",event:Ue(oe),origin:window.location.origin,isCheckout:we};window.parent.postMessage(Pw,"*")}if(oe.type===F.FullSnapshot)jt=oe,pt=0;else if(oe.type===F.IncrementalSnapshot){if(oe.data.source===P.Mutation&&oe.data.isAttachIframe)return;pt++;var Tw=e&&pt>=e,Nw=o&&oe.timestamp-jt.timestamp>o;(Tw||Nw)&&Pn(!0)}};for(var dt=function(J){se({type:F.IncrementalSnapshot,data:N({source:P.Mutation},J)})},ec=function(J){return se({type:F.IncrementalSnapshot,data:N({source:P.Scroll},J)})},tc=function(J){return se({type:F.IncrementalSnapshot,data:N({source:P.CanvasMutation},J)})},kw=function(J){return se({type:F.IncrementalSnapshot,data:N({source:P.AdoptedStyleSheet},J)})},vt=new _m({mutationCb:dt,adoptedStyleSheetCb:kw}),mt=new bm({mirror:xe,mutationCb:dt,stylesheetManager:vt,recordCrossOriginIframes:he,wrappedEmit:se}),_w=I(ct||[]),rc;!(rc=_w()).done;){var nc=rc.value;nc.getMirror&&nc.getMirror({nodeMirror:xe,crossOriginIframeMirror:mt.crossOriginIframeMirror,crossOriginIframeStyleMirror:mt.crossOriginIframeStyleMirror})}var Es=new Pm;ko=new km({recordCanvas:me,mutationCb:tc,win:window,blockClass:n,blockSelector:a,mirror:xe,sampling:T.canvas,dataURLOptions:L});var ci=new Cm({mutationCb:dt,scrollCb:ec,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:v,maskTextSelector:m,inlineStylesheet:g,maskInputOptions:Wt,dataURLOptions:L,maskTextFn:x,maskInputFn:C,recordCanvas:me,inlineImages:ft,sampling:T,slimDOMOptions:Ar,iframeManager:mt,stylesheetManager:vt,canvasManager:ko,keepIframeSrcFn:Rr,processedNodeManager:Es},mirror:xe});Pn=function(J){if(J===void 0&&(J=!1),!!G){se({type:F.Meta,data:{href:window.location.href,width:Zu(),height:Hu()}},J),vt.reset(),ci.init(),it.forEach(function(k){return k.lock()});var we=th(document,{mirror:xe,blockClass:n,blockSelector:a,maskTextClass:v,maskTextSelector:m,inlineStylesheet:g,maskAllInputs:Wt,maskTextFn:x,maskInputFn:C,slimDOM:Ar,dataURLOptions:L,recordCanvas:me,inlineImages:ft,onSerialize:function(k){Qu(k,xe)&&mt.addIframe(k),el(k,xe)&&vt.trackLinkElement(k),Mo(k)&&ci.addShadowRoot(D.shadowRoot(k),document)},onIframeLoad:function(k,oe){mt.attachIframe(k,oe),ci.observeAttachShadow(k)},onStylesheetLoad:function(k,oe){vt.attachLinkElement(k,oe)},keepIframeSrcFn:Rr});if(!we)return console.warn("Failed to snapshot the document");se({type:F.FullSnapshot,data:{node:we,initialOffset:Ju(window)}},J),it.forEach(function(k){return k.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&vt.adoptStyleSheets(document.adoptedStyleSheets,xe.getId(document))}};try{var Mr=[],ic=function(J){var we;return U(Sm)({mutationCb:dt,mousemoveCb:function(k,oe){return se({type:F.IncrementalSnapshot,data:{source:oe,positions:k}})},mouseInteractionCb:function(k){return se({type:F.IncrementalSnapshot,data:N({source:P.MouseInteraction},k)})},scrollCb:ec,viewportResizeCb:function(k){return se({type:F.IncrementalSnapshot,data:N({source:P.ViewportResize},k)})},inputCb:function(k){return se({type:F.IncrementalSnapshot,data:N({source:P.Input},k)})},mediaInteractionCb:function(k){return se({type:F.IncrementalSnapshot,data:N({source:P.MediaInteraction},k)})},styleSheetRuleCb:function(k){return se({type:F.IncrementalSnapshot,data:N({source:P.StyleSheetRule},k)})},styleDeclarationCb:function(k){return se({type:F.IncrementalSnapshot,data:N({source:P.StyleDeclaration},k)})},canvasMutationCb:tc,fontCb:function(k){return se({type:F.IncrementalSnapshot,data:N({source:P.Font},k)})},selectionCb:function(k){se({type:F.IncrementalSnapshot,data:N({source:P.Selection},k)})},customElementCb:function(k){se({type:F.IncrementalSnapshot,data:N({source:P.CustomElement},k)})},blockClass:n,ignoreClass:l,ignoreSelector:c,maskTextClass:v,maskTextSelector:m,maskInputOptions:Wt,inlineStylesheet:g,sampling:T,recordDOM:G,recordCanvas:me,inlineImages:ft,userTriggeredOnInput:Ut,collectFonts:lt,doc:J,maskInputFn:C,maskTextFn:x,keepIframeSrcFn:Rr,blockSelector:a,slimDOMOptions:Ar,dataURLOptions:L,mirror:xe,iframeManager:mt,stylesheetManager:vt,shadowDomManager:ci,processedNodeManager:Es,canvasManager:ko,ignoreCSSAttributes:Rs,plugins:((we=ct==null?void 0:ct.filter(function(k){return k.observer}))==null?void 0:we.map(function(k){return{observer:k.observer,options:k.options,callback:function(oe){return se({type:F.Plugin,data:{plugin:k.name,payload:oe}})}}}))||[]},M)};mt.addLoadListener(function(J){try{Mr.push(ic(J.contentDocument))}catch(we){console.warn(we)}});var As=function(){Pn(),Mr.push(ic(document)),Tn=!0};return document.readyState==="interactive"||document.readyState==="complete"?As():(Mr.push(de("DOMContentLoaded",function(){se({type:F.DomContentLoaded,data:{}}),ut==="DOMContentLoaded"&&As()})),Mr.push(de("load",function(){se({type:F.Load,data:{}}),ut==="load"&&As()},window))),function(){Mr.forEach(function(J){try{J()}catch(k){var we=String(k).toLowerCase();we.includes("cross-origin")||console.warn(k)}}),Es.destroy(),Tn=!1,am()}}catch(J){console.warn(J)}}Ye.addCustomEvent=function(r,i){if(!Tn)throw new Error("please add custom event after start recording");se({type:F.Custom,data:{tag:r,payload:i}})},Ye.freezePage=function(){it.forEach(function(r){return r.freeze()})},Ye.takeFullSnapshot=function(r){if(!Tn)throw new Error("please take full snapshot after start recording");Pn(r)},Ye.mirror=xe;var Cl;(function(r){r[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped"})(Cl||(Cl={})),Ye.addCustomEvent,Ye.freezePage,Ye.takeFullSnapshot;var Il={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ol={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Nn={},Tm=function(){return!!globalThis.Zone};function Po(r){if(Nn[r])return Nn[r];var i=globalThis[r],o=i.prototype,e=r in Il?Il[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 Ol?Ol[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&&!Tm())return Nn[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?Nn[r]=l:o}catch(f){return o}}var To={};function qe(r,i,o){var e,t=r+"."+String(o);if(To[t])return To[t].call(i);var n=Po(r),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(To[t]=s,s.call(i)):i[o]}var No={};function xl(r,i,o){var e=r+"."+String(o);if(No[e])return No[e].bind(i);var t=Po(r),n=t[o];return typeof n!="function"?i[o]:(No[e]=n,n.bind(i))}function Nm(r){return qe("Node",r,"childNodes")}function Lm(r){return qe("Node",r,"parentNode")}function Dm(r){return qe("Node",r,"parentElement")}function Fm(r){return qe("Node",r,"textContent")}function Bm(r,i){return xl("Node",r,"contains")(i)}function Um(r){return xl("Node",r,"getRootNode")()}function zm(r){return!r||!("host"in r)?null:qe("ShadowRoot",r,"host")}function Wm(r){return r.styleSheets}function jm(r){return!r||!("shadowRoot"in r)?null:qe("Element",r,"shadowRoot")}function Gm(r,i){return qe("Element",r,"querySelector")(i)}function Vm(r,i){return qe("Element",r,"querySelectorAll")(i)}function Ym(){return Po("MutationObserver").constructor}function qm(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 Rl={childNodes:Nm,parentNode:Lm,parentElement:Dm,textContent:Fm,contains:Bm,getRootNode:Um,host:zm,styleSheets:Wm,shadowRoot:jm,querySelector:Gm,querySelectorAll:Vm,mutationObserver:Ym,patch:qm};function Lo(r,i,o){if(!r)return!1;if(r.nodeType!==r.ELEMENT_NODE)return Lo(Rl.parentNode(r),i);for(var e=r.classList.length;e--;){var t=r.classList[e];if(i.test(t))return!0}return Lo(Rl.parentNode(r),i)}function Jm(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Hm(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 Do={exports:{}},Q=String,El=function(){return{isColorSupported:!1,reset:Q,bold:Q,dim:Q,italic:Q,underline:Q,inverse:Q,hidden:Q,strikethrough:Q,black:Q,red:Q,green:Q,yellow:Q,blue:Q,magenta:Q,cyan:Q,white:Q,gray:Q,bgBlack:Q,bgRed:Q,bgGreen:Q,bgYellow:Q,bgBlue:Q,bgMagenta:Q,bgCyan:Q,bgWhite:Q}};Do.exports=El(),Do.exports.createColors=El;var Zm=Do.exports,Km={},Xm=Object.freeze(Object.defineProperty({__proto__:null,default:Km},Symbol.toStringTag,{value:"Module"})),le=Hm(Xm),Al=Zm,Ml=le,Fo=(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=Al.isColorSupported),Ml&&t&&(s=Ml(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=Al.createColors(!0),d=v.bold,m=v.gray,p=v.red;c=function(g){return d(p(g))},h=function(g){return m(g)}}else c=h=function(g){return g};return a.slice(u,l).map(function(g,w){var S=u+1+w,b=" "+(" "+S).slice(-f)+" | ";if(S===n.line){var C=h(b.replace(/\d/g," "))+g.slice(0,n.column-1).replace(/[^\t]/g," ");return c(">")+h(b)+g+"\n "+C+c("^")}return" "+h(b)+g}).join("\n")},o.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},i})(Vt(Error)),Bo=Fo;Fo.default=Fo;var Je={};Je.isClean=Symbol("isClean"),Je.my=Symbol("my");var $l={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Qm(r){return r[0].toUpperCase()+r.slice(1)}var Uo=(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 $l[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"+Qm(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=$l[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})(),kl=Uo;Uo.default=Uo;var eg=kl;function zo(r,i){var o=new eg(i);o.stringify(r)}var Ln=zo;zo.default=zo;var Dn=Je.isClean,tg=Je.my,rg=Bo,ng=kl,ig=Ln;function Wo(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":A(t);e==="parent"&&n==="object"?i&&(o[e]=i):e==="source"?o[e]=t:Array.isArray(t)?o[e]=t.map(function(s){return Wo(s,o)}):(n==="object"&&t!==null&&(t=Wo(t)),o[e]=t)}return o}var jo=(function(){function r(o){o===void 0&&(o={}),this.raws={},this[Dn]=!1,this[tg]=!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=Wo(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 rg(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[Dn]){this[Dn]=!1;for(var e=this;e=e.parent;)e[Dn]=!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 ng;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":A(c))==="object"&&c.toJSON?c.toJSON(null,t):c});else if((typeof l=="undefined"?"undefined":A(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=ig),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})(),Fn=jo;jo.default=jo;var og=Fn,Go=(function(r){ee(i,r);function i(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=N({},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})(og),Bn=Go;Go.default=Go;var sg="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ag=function(r){r===void 0&&(r=21);for(var i="",o=r;o--;)i+=sg[Math.random()*64|0];return i},ug={nanoid:ag},_l=le.SourceMapConsumer,Pl=le.SourceMapGenerator,lg=le.existsSync,fg=le.readFileSync,Vo=le.dirname,cg=le.join;function hg(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var Yo=(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=Vo(this.mapFile)),n&&(this.text=n)}}var i=r.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new _l(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 hg(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":A(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=Vo(e),lg(e))return this.mapFile=e,fg(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,_l))return Pl.fromSourceMap(t).toString();if(E(t,Pl))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=cg(Vo(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})(),Tl=Yo;Yo.default=Yo;var pg=le.SourceMapConsumer,dg=le.SourceMapGenerator,Nl=le.fileURLToPath,Un=le.pathToFileURL,qo=le.isAbsolute,Jo=le.resolve,vg=ug.nanoid,Ho=le,Ll=Bo,mg=Tl,Zo=Symbol("fromOffsetCache"),gg=!!(pg&&dg),Dl=!!(Jo&&qo),zn=(function(){function r(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":A(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&&(!Dl||/^\w+:\/\//.test(e.from)||qo(e.from)?this.file=e.from:this.file=Jo(e.from)),Dl&&gg){var t=new mg(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 "+vg(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":A(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 m=this.origin(t,n,u,l);return m?a=new Ll(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,s.plugin):a=new Ll(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&&(Un&&(a.input.url=Un(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var t,n;if(this[Zo])n=this[Zo];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[Zo]=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:Jo(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;qo(u.source)?f=Un(u.source):f=new URL(u.source,this.map.consumer().sourceRoot||Un(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(Nl)c.file=Nl(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=N({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Z(r,[{key:"from",get:function(){return this.file||this.id}}]),r})(),Wn=zn;zn.default=zn,Ho&&Ho.registerInput&&Ho.registerInput(zn);var Fl=le.SourceMapConsumer,jn=le.SourceMapGenerator,Gn=le.dirname,Bl=le.relative,Ul=le.resolve,zl=le.sep,Wl=le.pathToFileURL,yg=Wn,wg=!!(Fl&&jn),Sg=!!(Gn&&Ul&&Bl&&zl),bg=(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||Gn(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Fl(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(),Sg&&wg&&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=jn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new jn({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 jn({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?Gn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Gn(Ul(n,this.mapOpts.annotation)));var s=Bl(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 t=new yg(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!t[a]){t[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 t=this.memoizedFileURLs.get(e);if(t)return t;if(Wl){var n=Wl(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 t=this.memoizedURLs.get(e);if(t)return t;zl==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},r})(),jl=bg,Cg=Fn,Ko=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="comment",e}return i})(Cg),Vn=Ko;Ko.default=Ko;var Gl=Je.isClean,Vl=Je.my,Yl=Bn,ql=Vn,Ig=Fn,Jl,Xo,Qo,Hl;function Zl(r){return r.map(function(i){return i.nodes&&(i.nodes=Zl(i.nodes)),delete i.source,i})}function Kl(r){if(r[Gl]=!1,r.proxyOf.nodes)for(var i=I(r.proxyOf.nodes),o;!(o=i()).done;){var e=o.value;Kl(e)}}var De=(function(r){ee(i,r);function i(){return r.apply(this,arguments)||this}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(var a=I(n),u;!(u=a()).done;)for(var l=u.value,f=this.normalize(l,this.last),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(t){if(r.prototype.cleanRaws.call(this,t),this.nodes)for(var n=I(this.nodes),s;!(s=n()).done;){var a=s.value;a.cleanRaws(t)}},o.each=function(t){if(this.proxyOf.nodes){for(var n=this.getIterator(),s,a;this.indexes[n]<this.proxyOf.nodes.length&&(s=this.indexes[n],a=t(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}},o.every=function(t){return this.nodes.every(t)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t},o.getProxyProcessor=function(){return{get:function(n,s){return s==="proxyOf"?n:n[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];var f;return(f=n)[s].apply(f,[].concat(u.map(function(c){return typeof c=="function"?function(h,v){return c(h.toProxy(),v)}:c})))}:s==="every"||s==="some"?function(a){return n[s](function(u){for(var l=arguments.length,f=new Array(l>1?l-1:0),c=1;c<l;c++)f[c-1]=arguments[c];return a.apply(void 0,[].concat([u.toProxy()],f))})}:s==="root"?function(){return n.root().toProxy()}:s==="nodes"?n.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?n[s].toProxy():n[s]:n[s]},set:function(n,s,a){return n[s]===a||(n[s]=a,(s==="name"||s==="params"||s==="selector")&&n.markDirty()),!0}}},o.index=function(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))},o.insertAfter=function(t,n){var s=this.index(t),a=this.normalize(n,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(var u=I(a),l;!(l=u()).done;){var f=l.value;this.proxyOf.nodes.splice(s+1,0,f)}var c;for(var h in this.indexes)c=this.indexes[h],s<c&&(this.indexes[h]=c+a.length);return this.markDirty(),this},o.insertBefore=function(t,n){var s=this.index(t),a=s===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[s],a).reverse();s=this.index(t);for(var l=I(u),f;!(f=l()).done;){var c=f.value;this.proxyOf.nodes.splice(s,0,c)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(t,n){var s=this;if(typeof t=="string")t=Zl(Jl(t).nodes);else if(typeof t=="undefined")t=[];else if(Array.isArray(t)){t=t.slice(0);for(var a=I(t),u;!(u=a()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(var f=I(t),c;!(c=f()).done;){var h=c.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new Yl(t)]}else if(t.selector)t=[new Xo(t)];else if(t.name)t=[new Qo(t)];else if(t.text)t=[new ql(t)];else throw new Error("Unknown node type in node creation");var v=t.map(function(d){return d[Vl]||i.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Gl]&&Kl(d),typeof d.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(d.raws.before=n.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return v},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n=n.reverse();for(var a=I(n),u;!(u=a()).done;){for(var l=u.value,f=this.normalize(l,this.first,"prepend").reverse(),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+f.length}return this.markDirty(),this},o.push=function(t){return t.parent=this,this.proxyOf.nodes.push(t),this},o.removeAll=function(){for(var t=I(this.proxyOf.nodes),n;!(n=t()).done;){var s=n.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=t&&(this.indexes[s]=n-1);return this.markDirty(),this},o.replaceValues=function(t,n,s){return s||(s=n,n={}),this.walkDecls(function(a){n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,s))}),this.markDirty(),this},o.some=function(t){return this.nodes.some(t)},o.walk=function(t){return this.each(function(n,s){var a;try{a=t(n,s)}catch(u){throw n.addToError(u)}return a!==!1&&n.walk&&(a=n.walk(t)),a})},o.walkAtRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&t.test(s.name))return n(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="atrule")return n(s,a)}))},o.walkComments=function(t){return this.walk(function(n,s){if(n.type==="comment")return t(n,s)})},o.walkDecls=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&t.test(s.prop))return n(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="decl")return n(s,a)}))},o.walkRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&t.test(s.selector))return n(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="rule")return n(s,a)}))},Z(i,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),i})(Ig);De.registerParse=function(r){Jl=r},De.registerRule=function(r){Xo=r},De.registerAtRule=function(r){Qo=r},De.registerRoot=function(r){Hl=r};var ot=De;De.default=De,De.rebuild=function(r){r.type==="atrule"?Object.setPrototypeOf(r,Qo.prototype):r.type==="rule"?Object.setPrototypeOf(r,Xo.prototype):r.type==="decl"?Object.setPrototypeOf(r,Yl.prototype):r.type==="comment"?Object.setPrototypeOf(r,ql.prototype):r.type==="root"&&Object.setPrototypeOf(r,Hl.prototype),r[Vl]=!0,r.nodes&&r.nodes.forEach(function(i){De.rebuild(i)})};var Og=ot,Xl,Ql,hr=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,N({type:"document"},e))||this,t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.toResult=function(t){t===void 0&&(t={});var n=new Xl(new Ql,this,t);return n.stringify()},i})(Og);hr.registerLazyResult=function(r){Xl=r},hr.registerProcessor=function(r){Ql=r};var es=hr;hr.default=hr;var ef={},tf=function(i){ef[i]||(ef[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},ts=(function(){function r(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(var n in e)this[n]=e[n]}var i=r.prototype;return i.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},r})(),rf=ts;ts.default=ts;var xg=rf,rs=(function(){function r(o,e,t){this.processor=o,this.messages=[],this.root=e,this.opts=t,this.css=void 0,this.map=void 0}var i=r.prototype;return i.toString=function(){return this.css},i.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new xg(e,t);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Z(r,[{key:"content",get:function(){return this.css}}]),r})(),ns=rs;rs.default=rs;var is=39,nf=34,Yn=92,of=47,qn=10,pr=32,Jn=12,Hn=9,Zn=13,Rg=91,Eg=93,Ag=40,Mg=41,$g=123,kg=125,_g=59,Pg=42,Tg=58,Ng=64,Kn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Xn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Lg=/.[\r\n"'(/\\]/,sf=/[\da-f]/i,Dg=function(i,o){o===void 0&&(o={});var e=i.css.valueOf(),t=o.ignoreErrors,n,s,a,u,l,f,c,h,v,d,m=e.length,p=0,g=[],w=[];function S(){return p}function b(R){throw i.error("Unclosed "+R,p)}function C(){return w.length===0&&p>=m}function x(R){if(w.length)return w.pop();if(!(p>=m)){var $=R?R.ignoreUnclosed:!1;switch(n=e.charCodeAt(p),n){case qn:case pr:case Hn:case Zn:case Jn:{s=p;do s+=1,n=e.charCodeAt(s);while(n===pr||n===qn||n===Hn||n===Zn||n===Jn);d=["space",e.slice(p,s)],p=s-1;break}case Rg:case Eg:case $g:case kg:case Tg:case _g:case Mg:{var T=String.fromCharCode(n);d=[T,T,p];break}case Ag:{if(h=g.length?g.pop()[1]:"",v=e.charCodeAt(p+1),h==="url"&&v!==is&&v!==nf&&v!==pr&&v!==qn&&v!==Hn&&v!==Jn&&v!==Zn){s=p;do{if(f=!1,s=e.indexOf(")",s+1),s===-1)if(t||$){s=p;break}else b("bracket");for(c=s;e.charCodeAt(c-1)===Yn;)c-=1,f=!f}while(f);d=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),u=e.slice(p,s+1),s===-1||Lg.test(u)?d=["(","(",p]:(d=["brackets",u,p,s],p=s);break}case is:case nf:{a=n===is?"'":'"',s=p;do{if(f=!1,s=e.indexOf(a,s+1),s===-1)if(t||$){s=p+1;break}else b("string");for(c=s;e.charCodeAt(c-1)===Yn;)c-=1,f=!f}while(f);d=["string",e.slice(p,s+1),p,s],p=s;break}case Ng:{Kn.lastIndex=p+1,Kn.test(e),Kn.lastIndex===0?s=e.length-1:s=Kn.lastIndex-2,d=["at-word",e.slice(p,s+1),p,s],p=s;break}case Yn:{for(s=p,l=!0;e.charCodeAt(s+1)===Yn;)s+=1,l=!l;if(n=e.charCodeAt(s+1),l&&n!==of&&n!==pr&&n!==qn&&n!==Hn&&n!==Zn&&n!==Jn&&(s+=1,sf.test(e.charAt(s)))){for(;sf.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===pr&&(s+=1)}d=["word",e.slice(p,s+1),p,s],p=s;break}default:{n===of&&e.charCodeAt(p+1)===Pg?(s=e.indexOf("*/",p+2)+1,s===0&&(t||$?s=e.length:b("comment")),d=["comment",e.slice(p,s+1),p,s],p=s):(Xn.lastIndex=p+1,Xn.test(e),Xn.lastIndex===0?s=e.length-1:s=Xn.lastIndex-2,d=["word",e.slice(p,s+1),p,s],g.push(d),p=s);break}}return p++,d}}function M(R){w.push(R)}return{back:M,endOfFile:C,nextToken:x,position:S}},af=ot,Qn=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="atrule",t}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.append).call.apply(a,[].concat([this],n))},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.prepend).call.apply(a,[].concat([this],n))},i})(af),os=Qn;Qn.default=Qn,af.registerAtRule(Qn);var uf=ot,lf,ff,$t=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="root",t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.normalize=function(t,n,s){var a=r.prototype.normalize.call(this,t);if(n){if(s==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var u=I(a),l;!(l=u()).done;){var f=l.value;f.raws.before=n.raws.before}}return a},o.removeChild=function(t,n){var s=this.index(t);return!n&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),r.prototype.removeChild.call(this,t)},o.toResult=function(t){t===void 0&&(t={});var n=new lf(new ff,this,t);return n.stringify()},i})(uf);$t.registerLazyResult=function(r){lf=r},$t.registerProcessor=function(r){ff=r};var dr=$t;$t.default=$t,uf.registerRoot($t);var vr={comma:function(i){return vr.split(i,[","],!0)},space:function(i){var o=[" ","\n"," "];return vr.split(i,o)},split:function(i,o,e){for(var t=[],n="",s=!1,a=0,u=!1,l="",f=!1,c=I(i),h;!(h=c()).done;){var v=h.value;f?f=!1:v==="\\"?f=!0:u?v===l&&(u=!1):v==='"'||v==="'"?(u=!0,l=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=v}return(e||n!=="")&&t.push(n.trim()),t}},cf=vr;vr.default=vr;var hf=ot,Fg=cf,ei=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return Z(i,[{key:"selectors",get:function(){return Fg.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(hf),ss=ei;ei.default=ei,hf.registerRule(ei);var Bg=Bn,Ug=Dg,zg=Vn,Wg=os,jg=dr,pf=ss,df={empty:!0,space:!0};function Gg(r){for(var i=r.length-1;i>=0;i--){var o=r[i],e=o[3]||o[2];if(e)return e}}var Vg=(function(){function r(o){this.input=o,this.root=new jg,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var i=r.prototype;return i.atrule=function(e){var t=new Wg;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,s,a,u=!1,l=!1,f=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(f.length>0){for(a=f.length-1,s=f[a];s&&s[0]==="space";)s=f[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(t.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(t,"params",f),u&&(e=f[f.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)},i.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,s,a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},i.colon=function(e){for(var t=0,n,s,a,u=I(e.entries()),l;!(l=u()).done;){var f=l.value,c=f[0],h=f[1];if(n=h,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return c}a=n}return!1},i.comment=function(e){var t=new zg;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}},i.createTokenizer=function(){this.tokenizer=Ug(this.input)},i.decl=function(e,t){var n=new Bg;this.init(n,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||Gg(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var l=[],f;e.length&&(f=e[0][0],!(f!=="space"&&f!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;var h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),d="",m=c;m>0;m--){var p=v[m][0];if(d.trim().indexOf("!")===0&&p!=="space")break;d=v.pop()[1]+d}d.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=d,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});g&&(n.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(n,"value",l.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var t=new pf;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},i.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},i.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},i.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var t=!1,n=null,s=!1,a=null,u=[],l=e[1].startsWith("--"),f=[],c=e;c;){if(n=c[0],f.push(c),n==="("||n==="[")a||(a=c),u.push(n==="("?")":"]");else if(l&&s&&n==="{")a||(a=c),u.push("}");else if(u.length===0)if(n===";")if(s){this.decl(f,l);return}else break;else if(n==="{"){this.rule(f);return}else if(n==="}"){this.tokenizer.back(f.pop()),t=!0;break}else n===":"&&(s=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),u.length>0&&this.unclosedBracket(a),t&&s){if(!l)for(;f.length&&(c=f[f.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,l)}else this.unknownWord(f)},i.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},i.precheckMissedSemicolon=function(){},i.raw=function(e,t,n,s){for(var a,u,l=n.length,f="",c=!0,h,v,d=0;d<l;d+=1)a=n[d],u=a[0],u==="space"&&d===l-1&&!s?c=!1:u==="comment"?(v=n[d-1]?n[d-1][0]:"empty",h=n[d+1]?n[d+1][0]:"empty",!df[v]&&!df[h]?f.slice(-1)===","?c=!1:f+=a[1]:c=!1):f+=a[1];if(!c){var m=n.reduce(function(p,g){return p+g[1]},"");e.raws[t]={raw:m,value:f}}e[t]=f},i.rule=function(e){e.pop();var t=new pf;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},i.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,t){for(var n="",s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},r})(),Yg=Vg,qg=ot,Jg=Yg,Hg=Wn;function ti(r,i){var o=new Hg(r,i),e=new Jg(o);try{e.parse()}catch(t){throw process.env.NODE_ENV!=="production"&&t.name==="CssSyntaxError"&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return e.root}var as=ti;ti.default=ti,qg.registerParse(ti);var $e=Je.isClean,Zg=Je.my,Kg=jl,Xg=Ln,Qg=ot,ey=es,ty=tf,vf=ns,ry=as,ny=dr,iy={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},oy={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},sy={Once:!0,postcssPlugin:!0,prepare:!0},kt=0;function mr(r){return(typeof r=="undefined"?"undefined":A(r))==="object"&&typeof r.then=="function"}function mf(r){var i=!1,o=iy[r.type];return r.type==="decl"?i=r.prop.toLowerCase():r.type==="atrule"&&(i=r.name.toLowerCase()),i&&r.append?[o,o+"-"+i,kt,o+"Exit",o+"Exit-"+i]:i?[o,o+"-"+i,o+"Exit",o+"Exit-"+i]:r.append?[o,kt,o+"Exit"]:[o,o+"Exit"]}function gf(r){var i;return r.type==="document"?i=["Document",kt,"DocumentExit"]:r.type==="root"?i=["Root",kt,"RootExit"]:i=mf(r),{eventIndex:0,events:i,iterator:0,node:r,visitorIndex:0,visitors:[]}}function us(r){return r[$e]=!1,r.nodes&&r.nodes.forEach(function(i){return us(i)}),r}var ls={},_t=(function(){function r(o,e,t){var n=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":A(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=us(e);else if(E(e,r)||E(e,vf))s=us(e.root),e.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=e.map);else{var a=ry;t.syntax&&(a=t.syntax.parse),t.parser&&(a=t.parser),a.parse&&(a=a.parse);try{s=a(e,t)}catch(u){this.processed=!0,this.error=u}s&&!s[Zg]&&Qg.rebuild(s)}this.result=new vf(o,s,t),this.helpers=N({},ls,{postcss:ls,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":A(u))==="object"&&u.prepare?N({},u,u.prepare(n.result)):u})}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){var s=n.postcssPlugin,a=n.postcssVersion,u=this.result.processor.version,l=a.split("."),f=u.split(".");(l[0]!==f[0]||parseInt(l[1])>parseInt(f[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(f,c,h){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([f,h])},n=I(this.plugins),s;!(s=n()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":A(a))==="object")for(var u in a){if(!oy[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!sy[u])if(A(a[u])==="object")for(var l in a[u])l==="*"?t(a,u,a[u][l]):t(a,u+"-"+l.toLowerCase(),a[u][l]);else typeof a[u]=="function"&&t(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return $r(function(){var t,n,s,a,u,l,f,c,h,v,d,m;return Qe(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],s=e.runOnRoot(n),!mr(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw a=p.sent(),e.handleError(a);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,p.label=7;case 7:if(u[$e])return[3,14];u[$e]=!0,l=[gf(u)],p.label=8;case 8:if(!(l.length>0))return[3,13];if(f=e.visitTick(l),!mr(f))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,f];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),h=l[l.length-1].node,e.handleError(c,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var g,w,S,b,C;return Qe(this,function(x){switch(x.label){case 0:g=m.value,w=g[0],S=g[1],e.result.lastPlugin=w,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(b=u.nodes.map(function(M){return S(M,e.helpers)}),[4,Promise.all(b)]);case 2:return x.sent(),[3,5];case 3:return[4,S(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},d=I(e.listeners.OnceExit),p.label=15;case 15:return(m=d()).done?[3,18]:[5,pi(v())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":A(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(s){return e.Once(s,t.helpers)});return mr(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},i.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Xg;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new Kg(t,this.result.root,this.result.opts),s=n.generate();return this.result.css=s[0],this.result.map=s[1],this.result},i.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=I(this.plugins),t;!(t=e()).done;){var n=t.value,s=this.runOnRoot(n);if(mr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[$e];)a[$e]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),l;!(l=u()).done;){var f=l.value;this.visitSync(this.listeners.OnceExit,f)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||ty("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this.css},i.visitSync=function(e,t){for(var n=I(e),s;!(s=n()).done;){var a=s.value,u=a[0],l=a[1];this.result.lastPlugin=u;var f=void 0;try{f=l(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(mr(f))throw this.getAsyncError()}},i.visitTick=function(e){var t=e[e.length-1],n=t.node,s=t.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){var a=s[t.visitorIndex],u=a[0],l=a[1];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=u;try{return l(n.toProxy(),this.helpers)}catch(d){throw this.handleError(d,n)}}if(t.iterator!==0){for(var f=t.iterator,c;c=n.nodes[n.indexes[f]];)if(n.indexes[f]+=1,!c[$e]){c[$e]=!0,e.push(gf(c));return}t.iterator=0,delete n.indexes[f]}for(var h=t.events;t.eventIndex<h.length;){var v=h[t.eventIndex];if(t.eventIndex+=1,v===kt){n.nodes&&n.nodes.length&&(n[$e]=!0,t.iterator=n.getIterator());return}else if(this.listeners[v]){t.visitors=this.listeners[v];return}}e.pop()},i.walkSync=function(e){var t=this;e[$e]=!0;for(var n=mf(e),s=I(n),a;!(a=s()).done;){var u=a.value;if(u===kt)e.nodes&&e.each(function(f){f[$e]||t.walkSync(f)});else{var l=this.listeners[u];if(l&&this.visitSync(l,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},Z(r,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),r})();_t.registerPostcss=function(r){ls=r};var yf=_t;_t.default=_t,ny.registerLazyResult(_t),ey.registerLazyResult(_t);var ay=jl,uy=Ln,ly=tf,fy=as,cy=ns,fs=(function(){function r(o,e,t){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=t,this._map=void 0;var n,s=uy;this.result=new cy(this._processor,n,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new ay(s,n,this._opts,e);if(u.isMap()){var l=u.generate(),f=l[0],c=l[1];f&&(this.result.css=f),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||ly("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this._css},i.warnings=function(){return[]},Z(r,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=fy;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r})(),hy=fs;fs.default=fs;var py=hy,dy=yf,vy=es,my=dr,gr=(function(){function r(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var i=r.prototype;return i.normalize=function(e){for(var t=[],n=I(e),s;!(s=n()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":A(a))==="object"&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if((typeof a=="undefined"?"undefined":A(a))==="object"&&a.postcssPlugin)t.push(a);else if(typeof a=="function")t.push(a);else if((typeof a=="undefined"?"undefined":A(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return t},i.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new py(this,e,t):new dy(this,e,t)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},r})(),gy=gr;gr.default=gr,my.registerProcessor(gr),vy.registerProcessor(gr);var yy=Bn,wy=Tl,Sy=Vn,by=os,Cy=Wn,Iy=dr,Oy=ss;function yr(r,i){if(Array.isArray(r))return r.map(function(c){return yr(c)});var o=r.inputs,e=Xe(r,["inputs"]);if(o){i=[];for(var t=I(o),n;!(n=t()).done;){var s=n.value,a=N({},s,{__proto__:Cy.prototype});a.map&&(a.map=N({},a.map,{__proto__:wy.prototype})),i.push(a)}}if(e.nodes&&(e.nodes=r.nodes.map(function(c){return yr(c,i)})),e.source){var u=e.source,l=u.inputId,f=Xe(u,["inputId"]);e.source=f,l!=null&&(e.source.input=i[l])}if(e.type==="root")return new Iy(e);if(e.type==="decl")return new yy(e);if(e.type==="rule")return new Oy(e);if(e.type==="comment")return new Sy(e);if(e.type==="atrule")return new by(e);throw new Error("Unknown node type: "+r.type)}var xy=yr;yr.default=yr;var Ry=Bo,wf=Bn,Ey=yf,Ay=ot,cs=gy,My=Ln,$y=xy,Sf=es,ky=rf,bf=Vn,Cf=os,_y=ns,Py=Wn,Ty=as,Ny=cf,If=ss,Of=dr,Ly=Fn;function q(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new cs(i)}q.plugin=function(i,o){var e=!1;function t(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(i+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(i+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var l=o.apply(void 0,[].concat(a));return l.postcssPlugin=i,l.postcssVersion=new cs().version,l}var n;return Object.defineProperty(t,"postcss",{get:function(){return n||(n=t()),n}}),t.process=function(s,a,u){return q([t(u)]).process(s,a)},t},q.stringify=My,q.parse=Ty,q.fromJSON=$y,q.list=Ny,q.comment=function(r){return new bf(r)},q.atRule=function(r){return new Cf(r)},q.decl=function(r){return new wf(r)},q.rule=function(r){return new If(r)},q.root=function(r){return new Of(r)},q.document=function(r){return new Sf(r)},q.CssSyntaxError=Ry,q.Declaration=wf,q.Container=Ay,q.Processor=cs,q.Document=Sf,q.Comment=bf,q.Warning=ky,q.AtRule=Cf,q.Result=_y,q.Input=Py,q.Rule=If,q.Root=Of,q.Node=Ly,Ey.registerPostcss(q);var Dy=q;q.default=q;var ne=Jm(Dy);ne.stringify,ne.fromJSON,ne.plugin,ne.parse,ne.list,ne.document,ne.comment,ne.atRule,ne.rule,ne.decl,ne.root,ne.CssSyntaxError,ne.Declaration,ne.Container,ne.Processor,ne.Document,ne.Comment,ne.Warning,ne.AtRule,ne.Result,ne.Input,ne.Rule,ne.Root,ne.Node;var Fy=Object.defineProperty,By=function(r,i,o){return i in r?Fy(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},ri=function(r,i,o){return By(r,(typeof i=="undefined"?"undefined":A(i))!=="symbol"?i+"":i,o)};function Uy(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 Pt=(function(){function r(o){ri(this,"fileName"),ri(this,"functionName"),ri(this,"lineNumber"),ri(this,"columnNumber"),this.fileName=o.fileName||"",this.functionName=o.functionName||"",this.lineNumber=o.lineNumber,this.columnNumber=o.columnNumber}var i=r.prototype;return i.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},r})(),zy=/(^|@)\S+:\d+/,xf=/^\s*at .*(\S+:\d+|\(native\))/m,Wy=/^(eval@)?(\[native code])?$/,hs={parse:function(i){return i?typeof i.stacktrace!="undefined"||typeof i["opera#sourceloc"]!="undefined"?this.parseOpera(i):i.stack&&i.stack.match(xf)?this.parseV8OrIE(i):i.stack?this.parseFFOrSafari(i):(console.warn("[console-record-plugin]: Failed to parse error object:",i),[]):[]},extractLocation:function(i){if(i.indexOf(":")===-1)return[i];var o=/(.+?)(?::(\d+))?(?::(\d+))?$/,e=o.exec(i.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+i);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(i){var o=i.stack.split("\n").filter(function(e){return!!e.match(xf)},this);return o.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=n?t.replace(n[0],""):t;var s=t.split(/\s+/).slice(1),a=this.extractLocation(n?n[1]:s.pop()),u=s.join(" ")||void 0,l=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new Pt({functionName:u,fileName:l,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(i){var o=i.stack.split("\n").filter(function(e){return!e.match(Wy)},this);return o.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),e.indexOf("@")===-1&&e.indexOf(":")===-1)return new Pt({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),s=n&&n[1]?n[1]:void 0,a=this.extractLocation(e.replace(t,""));return new Pt({functionName:s,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})},this)},parseOpera:function(i){return!i.stacktrace||i.message.indexOf("\n")>-1&&i.message.split("\n").length>i.stacktrace.split("\n").length?this.parseOpera9(i):i.stack?this.parseOpera11(i):this.parseOpera10(i)},parseOpera9:function(i){for(var o=/Line (\d+).*script (?:in )?(\S+)/i,e=i.message.split("\n"),t=[],n=2,s=e.length;n<s;n+=2){var a=o.exec(e[n]);a&&t.push(new Pt({fileName:a[2],lineNumber:parseFloat(a[1])}))}return t},parseOpera10:function(i){for(var o=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=i.stacktrace.split("\n"),t=[],n=0,s=e.length;n<s;n+=2){var a=o.exec(e[n]);a&&t.push(new Pt({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return t},parseOpera11:function(i){var o=i.stack.split("\n").filter(function(e){return!!e.match(zy)&&!e.match(/^Error created at/)},this);return o.map(function(e){var t=e.split("@"),n=this.extractLocation(t.pop()),s=t.shift()||"",a=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Pt({functionName:a,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})},this)}};function jy(r){if(!r||!r.outerHTML)return"";for(var i="";r.parentElement;){var o=r.localName;if(!o)break;o=o.toLowerCase();var e=r.parentElement,t=[];if(e.children&&e.children.length>0)for(var n=0;n<e.children.length;n++){var s=e.children[n];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===o&&t.push(s)}t.length>1&&(o+=":eq("+t.indexOf(r)+")"),i=o+(i?">"+i:""),r=e}return i}function ps(r){return Object.prototype.toString.call(r)==="[object Object]"}function Rf(r,i){if(i===0)return!0;for(var o=Object.keys(r),e=I(o),t;!(t=e()).done;){var n=t.value;if(ps(r[n])&&Rf(r[n],i-1))return!0}return!1}function Tt(r,i){var o={numOfKeysLimit:50,depthOfLimit:4};Object.assign(o,i);var e=[],t=[];return JSON.stringify(r,function(a,u){if(e.length>0){var l=e.indexOf(this);~l?e.splice(l+1):e.push(this),~l?t.splice(l,1/0,a):t.push(a),~e.indexOf(u)&&(e[0]===u?u="[Circular ~]":u="[Circular ~."+t.slice(0,e.indexOf(u)).join(".")+"]")}else e.push(u);if(u===null)return u;if(u===void 0)return"undefined";if(n(u))return s(u);if((typeof u=="undefined"?"undefined":A(u))==="bigint")return u.toString()+"n";if(E(u,Event)){var f={};for(var c in u){var h=u[c];Array.isArray(h)?f[c]=jy(h.length?h[0]:null):f[c]=h}return f}else{if(E(u,Node))return E(u,HTMLElement)?u?u.outerHTML:"":u.nodeName;if(E(u,Error))return u.stack?u.stack+"\nEnd of stack for Error object":u.name+": "+u.message}return u});function n(a){return!!(ps(a)&&Object.keys(a).length>o.numOfKeysLimit||typeof a=="function"||ps(a)&&Rf(a,o.depthOfLimit))}function s(a){var u=a.toString();return o.stringLengthLimit&&u.length>o.stringLengthLimit&&(u=""+u.slice(0,o.stringLengthLimit)+"..."),u}}var Ef={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function Gy(r,i,o){var e=o?Object.assign({},Ef,o):Ef,t=e.logger;if(!t)return function(){};var n;typeof t=="string"?n=i[t]:n=t;var s=0,a=!1,u=[];if(e.level.includes("error")){var l=function(m){var p=m.message,g=m.error,w=hs.parse(g).map(function(b){return b.toString()}),S=[Tt(p,e.stringifyOptions)];r({level:"error",trace:w,payload:S})};i.addEventListener("error",l),u.push(function(){i.removeEventListener("error",l)});var f=function(m){var p,g;E(m.reason,Error)?(p=m.reason,g=[Tt("Uncaught (in promise) "+p.name+": "+p.message,e.stringifyOptions)]):(p=new Error,g=[Tt("Uncaught (in promise)",e.stringifyOptions),Tt(m.reason,e.stringifyOptions)]);var w=hs.parse(p).map(function(S){return S.toString()});r({level:"error",trace:w,payload:g})};i.addEventListener("unhandledrejection",f),u.push(function(){i.removeEventListener("unhandledrejection",f)})}for(var c=I(e.level),h;!(h=c()).done;){var v=h.value;u.push(d(n,v))}return function(){u.forEach(function(m){return m()})};function d(m,p){var g=this;return m[p]?Uy(m,p,function(w){var S=g;return function(){for(var b=arguments.length,C=new Array(b),x=0;x<b;x++)C[x]=arguments[x];if(w.apply(S,C),!(p==="assert"&&C[0])&&!a){a=!0;try{var M=hs.parse(new Error).map(function(T){return T.toString()}).splice(1),R=p==="assert"?C.slice(1):C,$=R.map(function(T){return Tt(T,e.stringifyOptions)});s++,s<e.lengthThreshold?r({level:p,trace:M,payload:$}):s===e.lengthThreshold&&r({level:"warn",trace:[],payload:[Tt("The number of log records reached the threshold.")]})}catch(T){w.apply(void 0,[].concat(["rrweb logger error:",T],C))}finally{a=!1}}}}):function(){}}}var Vy="rrweb/console@1",Yy=function(r){return{name:Vy,observer:Gy,options:r}},Af=z.setImmediate,He,ds,vs,Mf=Object.prototype.toString,qy=typeof Af!="undefined"?function(i){return Af(i)}:setTimeout;try{Object.defineProperty({},"x",{}),He=function(i,o,e,t){return Object.defineProperty(i,o,{value:e,writable:!0,configurable:t!==!1})}}catch(r){He=function(o,e,t){return o[e]=t,o}}vs=(function(){var i,o,e;function t(n,s){this.fn=n,this.self=s,this.next=void 0}return{add:function(s,a){e=new t(s,a),o?o.next=e:i=e,o=e,e=void 0},drain:function(){var s=i;for(i=o=ds=void 0;s;)s.fn.call(s.self),s=s.next}}})();function ni(r,i){vs.add(r,i),ds||(ds=qy(vs.drain))}function $f(r){var i,o=typeof r;return r!==null&&(o==="object"||o==="function")&&(i=r.then),typeof i=="function"?i:!1}function ms(){for(var r=0;r<this.chain.length;r++)Jy(this,this.state===1?this.chain[r].success:this.chain[r].failure,this.chain[r]);this.chain.length=0}function Jy(r,i,o){var e,t;try{i===!1?o.reject(r.msg):(i===!0?e=r.msg:e=i.call(void 0,r.msg),e===o.promise?o.reject(TypeError("Promise-chain cycle")):(t=$f(e))?t.call(e,o.resolve,o.reject):o.resolve(e))}catch(n){o.reject(n)}}function kf(r){var i,o=this;if(!o.triggered){o.triggered=!0,o.def&&(o=o.def);try{(i=$f(r))?ni(function(){var e=new Pf(o);try{i.call(r,function(){kf.apply(e,arguments)},function(){wr.apply(e,arguments)})}catch(t){wr.call(e,t)}}):(o.msg=r,o.state=1,o.chain.length>0&&ni(ms,o))}catch(e){wr.call(new Pf(o),e)}}}function wr(r){var i=this;i.triggered||(i.triggered=!0,i.def&&(i=i.def),i.msg=r,i.state=2,i.chain.length>0&&ni(ms,i))}function _f(r,i,o,e){for(var t=0;t<i.length;t++)(function(s){r.resolve(i[s]).then(function(u){o(s,u)},e)})(t)}function Pf(r){this.def=r,this.triggered=!1}function Hy(r){this.promise=r,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Ze(r){if(typeof r!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var i=new Hy(this);this.then=function(e,t){var n={success:typeof e=="function"?e:!0,failure:typeof t=="function"?t:!1};return n.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");n.resolve=a,n.reject=u}),i.chain.push(n),i.state!==0&&ni(ms,i),n.promise},this.catch=function(e){return this.then(void 0,e)};try{r.call(void 0,function(e){kf.call(i,e)},function(e){wr.call(i,e)})}catch(o){wr.call(i,o)}}var Tf=He({},"constructor",Ze,!1);Ze.prototype=Tf,He(Tf,"__NPO__",0,!1),He(Ze,"resolve",function(i){var o=this;return i&&typeof i=="object"&&i.__NPO__===1?i:new o(function(t,n){if(typeof t!="function"||typeof n!="function")throw TypeError("Not a function");t(i)})}),He(Ze,"reject",function(i){return new this(function(e,t){if(typeof e!="function"||typeof t!="function")throw TypeError("Not a function");t(i)})}),He(Ze,"all",function(i){var o=this;return Mf.call(i)!=="[object Array]"?o.reject(TypeError("Not an array")):i.length===0?o.resolve([]):new o(function(t,n){if(typeof t!="function"||typeof n!="function")throw TypeError("Not a function");var s=i.length,a=Array(s),u=0;_f(o,i,function(f,c){a[f]=c,++u===s&&t(a)},n)})}),He(Ze,"race",function(i){var o=this;return Mf.call(i)!=="[object Array]"?o.reject(TypeError("Not an array")):new o(function(t,n){if(typeof t!="function"||typeof n!="function")throw TypeError("Not a function");_f(o,i,function(a,u){t(u)},n)})});var B;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?B=Promise:B=Ze;var gs={LIB_VERSION:"2.74.0"},ii=1440*60*1e3,ys=8*1e3,oi=Array.prototype,Zy=Function.prototype,Nf=Object.prototype,st=oi.slice,Sr=Nf.toString,si=Nf.hasOwnProperty,br=z.console,Nt=z.navigator,Se=z.document,Cr=z.opera,Lf=z.screen,at=Nt.userAgent,ws=Zy.bind,Df=oi.forEach,Ff=oi.indexOf,Bf=oi.map,Ky=Array.isArray,Ss={},y={trim:function(r){return r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Re={log:function(){},warn:function(){},error:function(){},critical:function(){if(!y.isUndefined(br)&&br){var r=["Mixpanel error:"].concat(y.toArray(arguments));try{br.error.apply(br,r)}catch(i){y.each(r,function(o){br.error(o)})}}}},bs=function(r,i){return function(){return arguments[0]="["+i+"] "+arguments[0],r.apply(Re,arguments)}},Lt=function(r){return{log:bs(Re.log,r),error:bs(Re.error,r),critical:bs(Re.critical,r)}};y.bind=function(r,i){var o,e;if(ws&&r.bind===ws)return ws.apply(r,st.call(arguments,1));if(!y.isFunction(r))throw new TypeError;return o=st.call(arguments,2),e=function(){if(!(this instanceof e))return r.apply(i,o.concat(st.call(arguments)));var t={};t.prototype=r.prototype;var n=new t;t.prototype=null;var s=r.apply(n,o.concat(st.call(arguments)));return Object(s)===s?s:n},e},y.each=function(r,i,o){if(r!=null){if(Df&&r.forEach===Df)r.forEach(i,o);else if(r.length===+r.length){for(var e=0,t=r.length;e<t;e++)if(e in r&&i.call(o,r[e],e,r)===Ss)return}else for(var n in r)if(si.call(r,n)&&i.call(o,r[n],n,r)===Ss)return}},y.extend=function(r){return y.each(st.call(arguments,1),function(i){for(var o in i)i[o]!==void 0&&(r[o]=i[o])}),r},y.isArray=Ky||function(r){return Sr.call(r)==="[object Array]"},y.isFunction=function(r){try{return/^\s*\bfunction\b/.test(r)}catch(i){return!1}},y.isArguments=function(r){return!!(r&&si.call(r,"callee"))},y.toArray=function(r){return r?r.toArray?r.toArray():y.isArray(r)||y.isArguments(r)?st.call(r):y.values(r):[]},y.map=function(r,i,o){if(Bf&&r.map===Bf)return r.map(i,o);var e=[];return y.each(r,function(t){e.push(i.call(o,t))}),e},y.keys=function(r){var i=[];return r===null||y.each(r,function(o,e){i[i.length]=e}),i},y.values=function(r){var i=[];return r===null||y.each(r,function(o){i[i.length]=o}),i},y.include=function(r,i){var o=!1;return r===null?o:Ff&&r.indexOf===Ff?r.indexOf(i)!=-1:(y.each(r,function(e){if(o||(o=e===i))return Ss}),o)},y.includes=function(r,i){return r.indexOf(i)!==-1},y.inherit=function(r,i){return r.prototype=new i,r.prototype.constructor=r,r.superclass=i.prototype,r},y.isObject=function(r){return r===Object(r)&&!y.isArray(r)},y.isEmptyObject=function(r){if(y.isObject(r)){for(var i in r)if(si.call(r,i))return!1;return!0}return!1},y.isUndefined=function(r){return r===void 0},y.isString=function(r){return Sr.call(r)=="[object String]"},y.isDate=function(r){return Sr.call(r)=="[object Date]"},y.isNumber=function(r){return Sr.call(r)=="[object Number]"},y.isElement=function(r){return!!(r&&r.nodeType===1)},y.encodeDates=function(r){return y.each(r,function(i,o){y.isDate(i)?r[o]=y.formatDate(i):y.isObject(i)&&(r[o]=y.encodeDates(i))}),r},y.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},y.formatDate=function(r){function i(o){return o<10?"0"+o:o}return r.getUTCFullYear()+"-"+i(r.getUTCMonth()+1)+"-"+i(r.getUTCDate())+"T"+i(r.getUTCHours())+":"+i(r.getUTCMinutes())+":"+i(r.getUTCSeconds())},y.strip_empty_properties=function(r){var i={};return y.each(r,function(o,e){y.isString(o)&&o.length>0&&(i[e]=o)}),i},y.truncate=function(r,i){var o;return typeof r=="string"?o=r.slice(0,i):y.isArray(r)?(o=[],y.each(r,function(e){o.push(y.truncate(e,i))})):y.isObject(r)?(o={},y.each(r,function(e,t){o[t]=y.truncate(e,i)})):o=r,o},y.JSONEncode=(function(){return function(r){var i=r,o=function(t){var n=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return n.lastIndex=0,n.test(t)?'"'+t.replace(n,function(a){var u=s[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'},e=function(t,n){var s="",a=" ",u=0,l="",f="",c=0,h=s,v=[],d=n[t];switch(d&&typeof d=="object"&&typeof d.toJSON=="function"&&(d=d.toJSON(t)),typeof d){case"string":return o(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(s+=a,v=[],Sr.apply(d)==="[object Array]"){for(c=d.length,u=0;u<c;u+=1)v[u]=e(u,d)||"null";return f=v.length===0?"[]":s?"[\n"+s+v.join(",\n"+s)+"\n"+h+"]":"["+v.join(",")+"]",s=h,f}for(l in d)si.call(d,l)&&(f=e(l,d),f&&v.push(o(l)+(s?": ":":")+f));return f=v.length===0?"{}":s?"{"+v.join(",")+h+"}":"{"+v.join(",")+"}",s=h,f}};return e("",{"":i})}})(),y.JSONDecode=(function(){var r,i,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},e,t=function(v){var d=new SyntaxError(v);throw d.at=r,d.text=e,d},n=function(v){return v&&v!==i&&t("Expected '"+v+"' instead of '"+i+"'"),i=e.charAt(r),r+=1,i},s=function(){var v,d="";for(i==="-"&&(d="-",n("-"));i>="0"&&i<="9";)d+=i,n();if(i===".")for(d+=".";n()&&i>="0"&&i<="9";)d+=i;if(i==="e"||i==="E")for(d+=i,n(),(i==="-"||i==="+")&&(d+=i,n());i>="0"&&i<="9";)d+=i,n();if(v=+d,!isFinite(v))t("Bad number");else return v},a=function(){var v,d,m="",p;if(i==='"')for(;n();){if(i==='"')return n(),m;if(i==="\\")if(n(),i==="u"){for(p=0,d=0;d<4&&(v=parseInt(n(),16),!!isFinite(v));d+=1)p=p*16+v;m+=String.fromCharCode(p)}else if(typeof o[i]=="string")m+=o[i];else break;else m+=i}t("Bad string")},u=function(){for(;i&&i<=" ";)n()},l=function(){switch(i){case"t":return n("t"),n("r"),n("u"),n("e"),!0;case"f":return n("f"),n("a"),n("l"),n("s"),n("e"),!1;case"n":return n("n"),n("u"),n("l"),n("l"),null}t('Unexpected "'+i+'"')},f,c=function(){var v=[];if(i==="["){if(n("["),u(),i==="]")return n("]"),v;for(;i;){if(v.push(f()),u(),i==="]")return n("]"),v;n(","),u()}}t("Bad array")},h=function(){var v,d={};if(i==="{"){if(n("{"),u(),i==="}")return n("}"),d;for(;i;){if(v=a(),u(),n(":"),Object.hasOwnProperty.call(d,v)&&t('Duplicate key "'+v+'"'),d[v]=f(),u(),i==="}")return n("}"),d;n(","),u()}}t("Bad object")};return f=function(){switch(u(),i){case"{":return h();case"[":return c();case'"':return a();case"-":return s();default:return i>="0"&&i<="9"?s():l()}},function(v){var d;return e=v,r=0,i=" ",d=f(),u(),i&&t("Syntax error"),d}})(),y.base64Encode=function(r){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o,e,t,n,s,a,u,l,f=0,c=0,h="",v=[];if(!r)return r;r=y.utf8Encode(r);do o=r.charCodeAt(f++),e=r.charCodeAt(f++),t=r.charCodeAt(f++),l=o<<16|e<<8|t,n=l>>18&63,s=l>>12&63,a=l>>6&63,u=l&63,v[c++]=i.charAt(n)+i.charAt(s)+i.charAt(a)+i.charAt(u);while(f<r.length);switch(h=v.join(""),r.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"=";break}return h},y.utf8Encode=function(r){r=(r+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var i="",o,e,t=0,n;for(o=e=0,t=r.length,n=0;n<t;n++){var s=r.charCodeAt(n),a=null;s<128?e++:s>127&&s<2048?a=String.fromCharCode(s>>6|192,s&63|128):a=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),a!==null&&(e>o&&(i+=r.substring(o,e)),i+=a,o=e=n+1)}return e>o&&(i+=r.substring(o,r.length)),i},y.UUID=function(){try{return z.crypto.randomUUID()}catch(o){for(var r=new Array(36),i=0;i<36;i++)r[i]=Math.floor(Math.random()*16);return r[14]=4,r[19]=r[19]&=-5,r[19]=r[19]|=8,r[8]=r[13]=r[18]=r[23]="-",y.map(r,function(e){return e.toString(16)}).join("")}};var Uf=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];y.isBlockedUA=function(r){var i;for(r=r.toLowerCase(),i=0;i<Uf.length;i++)if(r.indexOf(Uf[i])!==-1)return!0;return!1},y.HTTPBuildQuery=function(r,i){var o,e,t=[];return y.isUndefined(i)&&(i="&"),y.each(r,function(n,s){o=encodeURIComponent(n.toString()),e=encodeURIComponent(s),t[t.length]=e+"="+o}),t.join(i)},y.getQueryParam=function(r,i){i=i.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var o="[\\?&]"+i+"=([^&#]*)",e=new RegExp(o),t=e.exec(r);if(t===null||t&&typeof t[1]!="string"&&t[1].length)return"";var n=t[1];try{n=decodeURIComponent(n)}catch(s){Re.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},y.cookie={get:function(r){for(var i=r+"=",o=Se.cookie.split(";"),e=0;e<o.length;e++){for(var t=o[e];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(i)===0)return decodeURIComponent(t.substring(i.length,t.length))}return null},parse:function(r){var i;try{i=y.JSONDecode(y.cookie.get(r))||{}}catch(o){}return i},set_seconds:function(r,i,o,e,t,n,s){var a="",u="",l="";if(s)a="; domain="+s;else if(e){var f=Vf(Se.location.hostname);a=f?"; domain=."+f:""}if(o){var c=new Date;c.setTime(c.getTime()+o*1e3),u="; expires="+c.toGMTString()}n&&(t=!0,l="; SameSite=None"),t&&(l+="; secure"),Se.cookie=r+"="+encodeURIComponent(i)+u+"; path=/"+a+l},set:function(r,i,o,e,t,n,s){var a="",u="",l="";if(s)a="; domain="+s;else if(e){var f=Vf(Se.location.hostname);a=f?"; domain=."+f:""}if(o){var c=new Date;c.setTime(c.getTime()+o*24*60*60*1e3),u="; expires="+c.toGMTString()}n&&(t=!0,l="; SameSite=None"),t&&(l+="; secure");var h=r+"="+encodeURIComponent(i)+u+"; path=/"+a+l;return Se.cookie=h,h},remove:function(r,i,o){y.cookie.set(r,"",-1,i,!1,!1,o)}};var zf=function(r){var i=!0;try{var o="__mplss_"+Os(8),e="xyz";r.setItem(o,e),r.getItem(o)!==e&&(i=!1),r.removeItem(o)}catch(t){i=!1}return i},Cs=null,Ir=function(r,i){return Cs!==null&&!i?Cs:Cs=zf(r||z.localStorage)},Is=null,Xy=function(r,i){return Is!==null&&!i?Is:Is=zf(r||z.sessionStorage)};function Wf(r,i,o){var e=function(t){Re.error(i+" error: "+t)};return{is_supported:function(t){var n=o(r,t);return n||Re.error(i+" unsupported"),n},error:e,get:function(t){try{return r.getItem(t)}catch(n){e(n)}return null},parse:function(t){try{return y.JSONDecode(r.getItem(t))||{}}catch(n){}return null},set:function(t,n){try{r.setItem(t,n)}catch(s){e(s)}},remove:function(t){try{r.removeItem(t)}catch(n){e(n)}}}}var jf=null,Gf=null;try{jf=z.localStorage,Gf=z.sessionStorage}catch(r){}y.localStorage=Wf(jf,"localStorage",Ir),y.sessionStorage=Wf(Gf,"sessionStorage",Xy),y.register_event=(function(){var r=function(e,t,n,s,a){if(!e){Re.error("No valid element provided to register_event");return}if(e.addEventListener&&!s)e.addEventListener(t,n,!!a);else{var u="on"+t,l=e[u];e[u]=i(e,n,l)}};function i(e,t,n){var s=function(a){if(a=a||o(z.event),!!a){var u=!0,l,f;return y.isFunction(n)&&(l=n(a)),f=t.call(e,a),(l===!1||f===!1)&&(u=!1),u}};return s}function o(e){return e&&(e.preventDefault=o.preventDefault,e.stopPropagation=o.stopPropagation),e}return o.preventDefault=function(){this.returnValue=!1},o.stopPropagation=function(){this.cancelBubble=!0},r})();var Qy=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');y.dom_query=(function(){function r(t){return t.all?t.all:t.getElementsByTagName("*")}var i=/[\t\r\n]/g;function o(t,n){var s=" "+n+" ";return(" "+t.className+" ").replace(i," ").indexOf(s)>=0}function e(t){if(!Se.getElementsByTagName)return[];var n=t.split(" "),s,a,u,l,f,c,h,v,d,m,p=[Se];for(c=0;c<n.length;c++){if(s=n[c].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var g=a[1],w=Se.getElementById(g);if(!w||u&&w.nodeName.toLowerCase()!=u)return[];p=[w];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var S=a[1];for(u||(u="*"),l=[],f=0,h=0;h<p.length;h++)for(u=="*"?d=r(p[h]):d=p[h].getElementsByTagName(u),v=0;v<d.length;v++)l[f++]=d[v];for(p=[],m=0,h=0;h<l.length;h++)l[h].className&&y.isString(l[h].className)&&o(l[h],S)&&(p[m++]=l[h]);continue}var b=s.match(Qy);if(b){u=b[1];var C=b[2],x=b[3],M=b[4];for(u||(u="*"),l=[],f=0,h=0;h<p.length;h++)for(u=="*"?d=r(p[h]):d=p[h].getElementsByTagName(u),v=0;v<d.length;v++)l[f++]=d[v];p=[],m=0;var R;switch(x){case"=":R=function($){return $.getAttribute(C)==M};break;case"~":R=function($){return $.getAttribute(C).match(new RegExp("\\b"+M+"\\b"))};break;case"|":R=function($){return $.getAttribute(C).match(new RegExp("^"+M+"-?"))};break;case"^":R=function($){return $.getAttribute(C).indexOf(M)===0};break;case"$":R=function($){return $.getAttribute(C).lastIndexOf(M)==$.getAttribute(C).length-M.length};break;case"*":R=function($){return $.getAttribute(C).indexOf(M)>-1};break;default:R=function($){return $.getAttribute(C)}}for(p=[],m=0,h=0;h<l.length;h++)R(l[h])&&(p[m++]=l[h]);continue}for(u=s,l=[],f=0,h=0;h<p.length;h++)for(d=p[h].getElementsByTagName(u),v=0;v<d.length;v++)l[f++]=d[v];p=l}return p}return function(t){return y.isElement(t)?[t]:y.isObject(t)&&!y.isUndefined(t.length)?t:e.call(this,t)}})();var ew=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],tw=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];y.info={campaignParams:function(r){var i="",o={};return y.each(ew,function(e){i=y.getQueryParam(Se.URL,e),i.length?o[e]=i:r!==void 0&&(o[e]=r)}),o},clickParams:function(){var r="",i={};return y.each(tw,function(o){r=y.getQueryParam(Se.URL,o),r.length&&(i[o]=r)}),i},marketingParams:function(){return y.extend(y.info.campaignParams(),y.info.clickParams())},searchEngine:function(r){return r.search("https?://(.*)google.([^/?]*)")===0?"google":r.search("https?://(.*)bing.com")===0?"bing":r.search("https?://(.*)yahoo.com")===0?"yahoo":r.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(r){var i=y.info.searchEngine(r),o=i!="yahoo"?"q":"p",e={};if(i!==null){e.$search_engine=i;var t=y.getQueryParam(r,o);t.length&&(e.mp_keyword=t)}return e},browser:function(r,i,o){return i=i||"",o||y.includes(r," OPR/")?y.includes(r,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(r)?"BlackBerry":y.includes(r,"IEMobile")||y.includes(r,"WPDesktop")?"Internet Explorer Mobile":y.includes(r,"SamsungBrowser/")?"Samsung Internet":y.includes(r,"Edge")||y.includes(r,"Edg/")?"Microsoft Edge":y.includes(r,"FBIOS")?"Facebook Mobile":y.includes(r,"Whale/")?"Whale Browser":y.includes(r,"Chrome")?"Chrome":y.includes(r,"CriOS")?"Chrome iOS":y.includes(r,"UCWEB")||y.includes(r,"UCBrowser")?"UC Browser":y.includes(r,"FxiOS")?"Firefox iOS":y.includes(i,"Apple")?y.includes(r,"Mobile")?"Mobile Safari":"Safari":y.includes(r,"Android")?"Android Mobile":y.includes(r,"Konqueror")?"Konqueror":y.includes(r,"Firefox")?"Firefox":y.includes(r,"MSIE")||y.includes(r,"Trident/")?"Internet Explorer":y.includes(r,"Gecko")?"Mozilla":""},browserVersion:function(r,i,o){var e=y.info.browser(r,i,o),t={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},n=t[e];if(n===void 0)return null;var s=r.match(n);return s?parseFloat(s[s.length-2]):null},os:function(){var r=at;return/Windows/i.test(r)?/Phone/.test(r)||/WPDesktop/.test(r)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(r)?"iOS":/Android/.test(r)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(r)?"BlackBerry":/Mac/i.test(r)?"Mac OS X":/Linux/.test(r)?"Linux":/CrOS/.test(r)?"Chrome OS":""},device:function(r){return/Windows Phone/i.test(r)||/WPDesktop/.test(r)?"Windows Phone":/iPad/.test(r)?"iPad":/iPod/.test(r)?"iPod Touch":/iPhone/.test(r)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(r)?"BlackBerry":/Android/.test(r)?"Android":""},referringDomain:function(r){var i=r.split("/");return i.length>=3?i[2]:""},currentUrl:function(){return z.location.href},properties:function(r){return typeof r!="object"&&(r={}),y.extend(y.strip_empty_properties({$os:y.info.os(),$browser:y.info.browser(at,Nt.vendor,Cr),$referrer:Se.referrer,$referring_domain:y.info.referringDomain(Se.referrer),$device:y.info.device(at)}),{$current_url:y.info.currentUrl(),$browser_version:y.info.browserVersion(at,Nt.vendor,Cr),$screen_height:Lf.height,$screen_width:Lf.width,mp_lib:"web",$lib_version:gs.LIB_VERSION,$insert_id:Os(),time:y.timestamp()/1e3},y.strip_empty_properties(r))},people_properties:function(){return y.extend(y.strip_empty_properties({$os:y.info.os(),$browser:y.info.browser(at,Nt.vendor,Cr)}),{$browser_version:y.info.browserVersion(at,Nt.vendor,Cr)})},mpPageViewProperties:function(){return y.strip_empty_properties({current_page_title:Se.title,current_domain:z.location.hostname,current_url_path:z.location.pathname,current_url_protocol:z.location.protocol,current_url_search:z.location.search})}};var rw=function(r,i){var o=null,e=[];return function(t){var n=this;return e.push(t),o||(o=new B(function(s){setTimeout(function(){var a=r.apply(n,[e]);o=null,e=[],s(a)},i)})),o}},Os=function(r){var i=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return r?i.substring(0,r):i},nw=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,iw=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Vf=function(r){var i=iw,o=r.split("."),e=o[o.length-1];(e.length>4||e==="com"||e==="org")&&(i=nw);var t=r.match(i);return t?t[0]:""},ow=function(){var r=z.navigator.onLine;return y.isUndefined(r)||r},xs=function(){},ai=null,ui=null;typeof JSON!="undefined"&&(ai=JSON.stringify,ui=JSON.parse),ai=ai||y.JSONEncode,ui=ui||y.JSONDecode;var sw=function(r,i,o){if(!z.CompressionStream)return!1;var e=y.info.browser(r,i,o),t=y.info.browserVersion(r,i,o);return!((e==="Safari"||e==="Mobile Safari")&&t>=16.4&&t<16.6)};y.info=y.info,y.info.browser=y.info.browser,y.info.browserVersion=y.info.browserVersion,y.info.device=y.info.device,y.info.properties=y.info.properties,y.isBlockedUA=y.isBlockedUA,y.isEmptyObject=y.isEmptyObject,y.isObject=y.isObject,y.JSONDecode=y.JSONDecode,y.JSONEncode=y.JSONEncode,y.toArray=y.toArray,y.NPO=Ze;var aw="mixpanelBrowserDb",Yf="mixpanelRecordingEvents",qf="mixpanelRecordingRegistry",uw=1,lw=[Yf,qf],ke=function(r){this.dbPromise=null,this.storeName=r};ke.prototype._openDb=function(){return new B(function(r,i){var o=z.indexedDB.open(aw,uw);o.onerror=function(){i(o.error)},o.onsuccess=function(){r(o.result)},o.onupgradeneeded=function(e){var t=e.target.result;lw.forEach(function(n){t.createObjectStore(n)})}})},ke.prototype.init=function(){return z.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(r){return r instanceof z.IDBDatabase?B.resolve():B.reject(r)})):B.reject("indexedDB is not supported in this browser")},ke.prototype.isInitialized=function(){return!!this.dbPromise},ke.prototype.makeTransaction=function(r,i){var o=this.storeName,e=function(t){return new B(function(n,s){var a=t.transaction(o,r);a.oncomplete=function(){n(a)},a.onabort=a.onerror=function(){s(a.error)},i(a.objectStore(o))})};return this.dbPromise.then(e).catch(function(t){return t&&t.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):B.reject(t)}.bind(this))},ke.prototype.setItem=function(r,i){return this.makeTransaction("readwrite",function(o){o.put(i,r)})},ke.prototype.getItem=function(r){var i;return this.makeTransaction("readonly",function(o){i=o.get(r)}).then(function(){return i.result})},ke.prototype.removeItem=function(r){return this.makeTransaction("readwrite",function(i){i.delete(r)})},ke.prototype.getAll=function(){var r;return this.makeTransaction("readonly",function(i){r=i.getAll()}).then(function(){return r.result})};var fw="__mp_opt_in_out_";function cw(r,i){if(mw(i))return Re.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var o=vw(r,i)==="0";return o&&Re.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),o}function hw(r){return gw(r,function(i){return this.get_config(i)})}function pw(r){return r=r||{},r.persistenceType==="localStorage"?y.localStorage:y.cookie}function dw(r,i){return i=i||{},(i.persistencePrefix||fw)+r}function vw(r,i){return pw(i).get(dw(r,i))}function mw(r){if(r&&r.ignoreDnt)return!1;var i=r&&r.window||z,o=i.navigator||{},e=!1;return y.each([o.doNotTrack,o.msDoNotTrack,i.doNotTrack],function(t){y.includes([!0,1,"1","yes"],t)&&(e=!0)}),e}function gw(r,i){return function(){var o=!1;try{var e=i.call(this,"token"),t=i.call(this,"ignore_dnt"),n=i.call(this,"opt_out_tracking_persistence_type"),s=i.call(this,"opt_out_tracking_cookie_prefix"),a=i.call(this,"window");e&&(o=cw(e,{ignoreDnt:t,persistenceType:n,persistencePrefix:s,window:a}))}catch(l){Re.error("Unexpected error when checking tracking opt-out status: "+l)}if(!o)return r.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var yw=Lt("lock"),Jf=function(r,i){i=i||{},this.storageKey=r,this.storage=i.storage||z.localStorage,this.pollIntervalMS=i.pollIntervalMS||100,this.timeoutMS=i.timeoutMS||2e3,this.promiseImpl=i.promiseImpl||B};Jf.prototype.withLock=function(r,i){var o=this.promiseImpl;return new o(y.bind(function(e,t){var n=i||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,l=this.timeoutMS,f=this.storage,c=a+":X",h=a+":Y",v=a+":Z",d=function(S){if(new Date().getTime()-s>l){yw.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+n+"]"),f.removeItem(v),f.removeItem(h),g();return}setTimeout(function(){try{S()}catch(b){t(b)}},u*(Math.random()+.1))},m=function(S,b){S()?b():d(function(){m(S,b)})},p=function(){var S=f.getItem(h);return S&&S!==n?!1:(f.setItem(h,n),f.getItem(h)===n?!0:(Ir(f,!0)||t(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){f.setItem(c,n),m(p,function(){if(f.getItem(c)===n){w();return}d(function(){if(f.getItem(h)!==n){g();return}m(function(){return!f.getItem(v)},w)})})},w=function(){f.setItem(v,"1");var S=function(){f.removeItem(v),f.getItem(h)===n&&f.removeItem(h),f.getItem(c)===n&&f.removeItem(c)};r().then(function(b){S(),e(b)}).catch(function(b){S(),t(b)})};try{if(Ir(f,!0))g();else throw new Error("localStorage support check failed")}catch(S){t(S)}},this))};var Dt=function(r){this.storage=r||z.localStorage};Dt.prototype.init=function(){return B.resolve()},Dt.prototype.isInitialized=function(){return!0},Dt.prototype.setItem=function(r,i){return new B(y.bind(function(o,e){try{this.storage.setItem(r,ai(i))}catch(t){e(t)}o()},this))},Dt.prototype.getItem=function(r){return new B(y.bind(function(i,o){var e;try{e=ui(this.storage.getItem(r))}catch(t){o(t)}i(e)},this))},Dt.prototype.removeItem=function(r){return new B(y.bind(function(i,o){try{this.storage.removeItem(r)}catch(e){o(e)}i()},this))};var Hf=Lt("batch"),_e=function(r,i){i=i||{},this.storageKey=r,this.usePersistence=i.usePersistence,this.usePersistence&&(this.queueStorage=i.queueStorage||new Dt,this.lock=new Jf(r,{storage:i.sharedLockStorage||z.localStorage,timeoutMS:i.sharedLockTimeoutMS})),this.reportError=i.errorReporter||y.bind(Hf.error,Hf),this.pid=i.pid||null,this.memQueue=[],this.initialized=!1,i.enqueueThrottleMs?this.enqueuePersisted=rw(y.bind(this._enqueuePersisted,this),i.enqueueThrottleMs):this.enqueuePersisted=y.bind(function(o){return this._enqueuePersisted([o])},this)};_e.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?B.resolve():this.queueStorage.init().then(y.bind(function(){this.initialized=!0},this)).catch(y.bind(function(r){this.reportError("Error initializing queue persistence. Disabling persistence",r),this.initialized=!0,this.usePersistence=!1},this))},_e.prototype.enqueue=function(r,i){var o={id:Os(),flushAfter:new Date().getTime()+i*2,payload:r};return this.usePersistence?this.enqueuePersisted(o):(this.memQueue.push(o),B.resolve(!0))},_e.prototype._enqueuePersisted=function(r){var i=y.bind(function(){return this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(o){return this.saveToStorage(o.concat(r))},this)).then(y.bind(function(o){return o&&(this.memQueue=this.memQueue.concat(r)),o},this)).catch(y.bind(function(o){return this.reportError("Error enqueueing items",o,r),!1},this))},this);return this.lock.withLock(i,this.pid).catch(y.bind(function(o){return this.reportError("Error acquiring storage lock",o),!1},this))},_e.prototype.fillBatch=function(r){var i=this.memQueue.slice(0,r);return this.usePersistence&&i.length<r?this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(o){if(o.length){var e={};y.each(i,function(s){e[s.id]=!0});for(var t=0;t<o.length;t++){var n=o[t];if(new Date().getTime()>n.flushAfter&&!e[n.id]&&(n.orphaned=!0,i.push(n),i.length>=r))break}}return i},this)):B.resolve(i)};var Zf=function(r,i){var o=[];return y.each(r,function(e){e.id&&!i[e.id]&&o.push(e)}),o};_e.prototype.removeItemsByID=function(r){var i={};if(y.each(r,function(e){i[e]=!0}),this.memQueue=Zf(this.memQueue,i),this.usePersistence){var o=y.bind(function(){return this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(e){return e=Zf(e,i),this.saveToStorage(e)},this)).then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.id&&i[n.id])throw new Error("Item not removed from storage")}return!0},this)).catch(y.bind(function(e){return this.reportError("Error removing items",e,r),!1},this))},this);return this.lock.withLock(o,this.pid).catch(y.bind(function(e){return this.reportError("Error acquiring storage lock",e),Ir(this.lock.storage,!0)?!1:o().then(y.bind(function(t){return t||this.queueStorage.removeItem(this.storageKey).then(function(){return t})},this)).catch(y.bind(function(t){return this.reportError("Error clearing queue",t),!1},this))},this))}else return B.resolve(!0)};var Kf=function(r,i){var o=[];return y.each(r,function(e){var t=e.id;if(t in i){var n=i[t];n!==null&&(e.payload=n,o.push(e))}else o.push(e)}),o};_e.prototype.updatePayloads=function(r){return this.memQueue=Kf(this.memQueue,r),this.usePersistence?this.lock.withLock(y.bind(function(){return this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(o){return o=Kf(o,r),this.saveToStorage(o)},this)).catch(y.bind(function(o){return this.reportError("Error updating items",r,o),!1},this))},this),this.pid).catch(y.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this)):B.resolve(!0)},_e.prototype.readFromStorage=function(){return this.ensureInit().then(y.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(y.bind(function(r){return r&&(y.isArray(r)||(this.reportError("Invalid storage entry:",r),r=null)),r||[]},this)).catch(y.bind(function(r){return this.reportError("Error retrieving queue",r),[]},this))},_e.prototype.saveToStorage=function(r){return this.ensureInit().then(y.bind(function(){return this.queueStorage.setItem(this.storageKey,r)},this)).then(function(){return!0}).catch(y.bind(function(i){return this.reportError("Error saving queue",i),!1},this))},_e.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(y.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):B.resolve()};var ww=600*1e3,Or=Lt("batch"),Ee=function(r,i){this.errorReporter=i.errorReporter,this.queue=new _e(r,{errorReporter:y.bind(this.reportError,this),queueStorage:i.queueStorage,sharedLockStorage:i.sharedLockStorage,sharedLockTimeoutMS:i.sharedLockTimeoutMS,usePersistence:i.usePersistence,enqueueThrottleMs:i.enqueueThrottleMs}),this.libConfig=i.libConfig,this.sendRequest=i.sendRequestFunc,this.beforeSendHook=i.beforeSendHook,this.stopAllBatching=i.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=i.flushOnlyOnInterval||!1,this._flushPromise=null};Ee.prototype.enqueue=function(r){return this.queue.enqueue(r,this.flushInterval)},Ee.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Ee.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Ee.prototype.clear=function(){return this.queue.clear()},Ee.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Ee.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Ee.prototype.scheduleFlush=function(r){this.flushInterval=r,this.stopped||(this.timeoutID=setTimeout(y.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Ee.prototype.sendRequestPromise=function(r,i){return new B(y.bind(function(o){this.sendRequest(r,i,o)},this))},Ee.prototype.flush=function(r){if(this.requestInProgress)return Or.log("Flush: Request already in progress"),B.resolve();this.requestInProgress=!0,r=r||{};var i=this.libConfig.batch_request_timeout_ms,o=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(y.bind(function(t){var n=t.length===e,s=[],a={};if(y.each(t,function(c){var h=c.payload;if(this.beforeSendHook&&!c.orphaned&&(h=this.beforeSendHook(h)),h){h.event&&h.properties&&(h.properties=y.extend({},h.properties,{mp_sent_by_lib_version:gs.LIB_VERSION}));var v=!0,d=c.id;d?(this.itemIdsSentSuccessfully[d]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:c,batchSize:t.length,timesSent:this.itemIdsSentSuccessfully[d]}),v=!1):this.reportError("[dupe] found item with no ID",{item:c}),v&&s.push(h)}a[c.id]=h},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),B.resolve();var u=y.bind(function(){return this.queue.removeItemsByID(y.map(t,function(c){return c.id})).then(y.bind(function(c){return y.each(t,y.bind(function(h){var v=h.id;v?(this.itemIdsSentSuccessfully[v]=this.itemIdsSentSuccessfully[v]||0,this.itemIdsSentSuccessfully[v]++,this.itemIdsSentSuccessfully[v]>5&&this.reportError("[dupe] item ID sent too many times",{item:h,batchSize:t.length,timesSent:this.itemIdsSentSuccessfully[v]})):this.reportError("[dupe] found item with no ID while removing",{item:h})},this)),c?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!n?(this.resetFlush(),B.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),B.resolve())},this))},this),l=y.bind(function(c){this.requestInProgress=!1;try{if(r.unloading)return this.queue.updatePayloads(a);if(y.isObject(c)&&c.error==="timeout"&&new Date().getTime()-o>=i)return this.reportError("Network timeout; retrying"),this.flush();if(y.isObject(c)&&(c.httpStatusCode>=500||c.httpStatusCode===429||c.httpStatusCode<=0&&!ow()||c.error==="timeout")){var h=this.flushInterval*2;return c.retryAfter&&(h=parseInt(c.retryAfter,10)*1e3||h),h=Math.min(ww,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),B.resolve()}else if(y.isObject(c)&&c.httpStatusCode===413)if(t.length>1){var v=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,v,t.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),B.resolve()}else return this.reportError("Single-event request too large; dropping",t),this.resetBatchSize(),u();else return u()}catch(d){this.reportError("Error handling API response",d),this.resetFlush()}},this),f={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:i};return r.unloading&&(f.transport="sendBeacon"),Or.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,f).then(l)},this)).catch(y.bind(function(t){this.reportError("Error flushing request queue",t),this.resetFlush()},this))},Ee.prototype.reportError=function(r,i){if(Or.error.apply(Or.error,arguments),this.errorReporter)try{i instanceof Error||(i=new Error(r)),this.errorReporter(r,i)}catch(o){Or.error(o)}};var Xf=function(r){var i=Date.now();return!r||i>r.maxExpires||i>r.idleExpires},Sw=250;Lt("autocapture");function bw(r){var i=(r.name||r.id||"").toString().toLowerCase();if(typeof i=="string"){var o=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(o.test(i.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}var Qf=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",Cw="data-rr-is-password",Iw=["password","email","tel","hidden"];function li(r){return r?Array.isArray(r)?r:[r]:[]}function Ow(r){var i={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},o=r.get_config("record_mask_input_selector"),e=r.get_config("record_unmask_input_selector"),t=r.get_config("record_mask_all_inputs");i.input.maskingSelector=li(o).join(","),i.input.unmaskingSelector=li(e).join(","),t!==void 0&&(i.input.maskAll=t);var n=r.get_config("record_mask_text_selector"),s=r.get_config("record_unmask_text_selector"),a=r.get_config("record_mask_all_text"),u=r.get_config("record_mask_text_class"),l=li(n);if(u)if(u instanceof RegExp)i.text._legacyClassRegex=u;else{var f="."+u;l.indexOf(f)===-1&&l.push(f)}return i.text.maskingSelector=l.join(","),i.text.unmaskingSelector=li(s).join(","),a===void 0&&n!==void 0?i.text.maskAll=!1:a!==void 0&&(i.text.maskAll=a),i}function Ft(r,i){return i?!!r.closest(i):!1}function xw(r,i){var o=(r.getAttribute("type")||"").toLowerCase();if(Iw.indexOf(o)!==-1)return!0;var e=(r.getAttribute("autocomplete")||"").toLowerCase();return e&&e!==""&&e!=="off"||r.hasAttribute(Cw)||bw(r)?!0:i.input.maskAll?!Ft(r,i.input.unmaskingSelector):!!(Ft(r,i.input.maskingSelector)||Ft(r,Qf))}function Rw(r,i){return r?i.text._legacyClassRegex&&Lo(r,i.text._legacyClassRegex)?!0:i.text.maskAll?!Ft(r,i.text.unmaskingSelector):!!(Ft(r,i.text.maskingSelector)||Ft(r,Qf)):!1}var Bt=Lt("recorder"),Ew=z.CompressionStream,Aw={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},Mw=new Set([P.MouseMove,P.MouseInteraction,P.Scroll,P.ViewportResize,P.Input,P.TouchMove,P.MediaInteraction,P.Drag,P.Selection]);function $w(r){return r.type===F.IncrementalSnapshot&&Mw.has(r.data.source)}var fe=function(r){this._mixpanel=r.mixpanelInstance,this._onIdleTimeout=r.onIdleTimeout||xs,this._onMaxLengthReached=r.onMaxLengthReached||xs,this._onBatchSent=r.onBatchSent||xs,this._rrwebRecord=r.rrwebRecord||null,this._stopRecording=null,this.replayId=r.replayId,this.batchStartUrl=r.batchStartUrl||null,this.replayStartUrl=r.replayStartUrl||null,this.idleExpires=r.idleExpires||null,this.maxExpires=r.maxExpires||null,this.replayStartTime=r.replayStartTime||null,this.lastEventTimestamp=r.lastEventTimestamp||null,this.seqNo=r.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=ii,this.recordMinMs=0;var i=Ir(r.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new ke(Yf),this.batcher=new Ee(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Aw,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:r.sharedLockStorage,usePersistence:i,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:Sw,sharedLockTimeoutMS:10*1e3})};fe.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var r={distinct_id:String(this._mixpanel.get_distinct_id())},i=this._mixpanel.get_property("$device_id");i&&(r.$device_id=i);var o=this._mixpanel.get_property("$user_id");return o&&(r.$user_id=o),r},fe.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},fe.prototype.getConfig=function(r){return this._mixpanel.get_config(r)},fe.prototype.get_config=function(r){return this.getConfig(r)},fe.prototype.startRecording=function(r){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){Bt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>ii&&(this.recordMaxMs=ii,Bt.critical("record_max_ms cannot be greater than "+ii+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=y.info.currentUrl(),this.replayStartUrl=y.info.currentUrl()),r||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var i=function(){clearTimeout(this.idleTimeoutId);var n=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,n),this.idleExpires=new Date().getTime()+n}.bind(this);i();var o=this.getConfig("record_block_selector");(o===""||o===null)&&(o=void 0);var e=Ow(this._mixpanel);try{this._stopRecording=this._rrwebRecord({emit:function(n){if(this.idleExpires&&this.idleExpires<n.timestamp){this._onIdleTimeout();return}$w(n)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),i()),this.__enqueuePromise=this.batcher.enqueue(n),(this.lastEventTimestamp===null||n.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=n.timestamp)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:o,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(xw,e),maskTextFn:this._getMaskFn(Rw,e),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[Yy({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}})]:[]})}catch(n){this.reportError("Unexpected error when starting rrweb recording.",n)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var t=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),t)},fe.prototype.stopRecording=function(r){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(o){this.reportError("Error with rrweb stopRecording",o)}this._stopRecording=null}var i;return this.batcher.stopped?i=this.batcher.clear():r||(i=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),i},fe.prototype.isRrwebStopped=function(){return this._stopRecording===null},fe.prototype.flushEventsWithOptOut=function(r,i,o){var e=function(t){t===0&&(this.stopRecording(),o({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(r,i,o,e)},fe.prototype.serialize=function(){var r;try{r=this._mixpanel.get_tab_id()}catch(i){this.reportError("Error getting tab ID for serialization ",i),r=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:r}},fe.deserialize=function(r,i){var o=new fe(y.extend({},i,{replayId:r.replayId,batchStartUrl:r.batchStartUrl,replayStartUrl:r.replayStartUrl,idleExpires:r.idleExpires,maxExpires:r.maxExpires,replayStartTime:r.replayStartTime,lastEventTimestamp:r.lastEventTimestamp,seqNo:r.seqNo,sharedLockStorage:i.sharedLockStorage}));return o},fe.prototype._sendRequest=function(r,i,o,e){var t=function(s,a){s.status===200&&this.replayId===r&&(this.seqNo++,this.batchStartUrl=y.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.headers.get("Retry-After")})}.bind(this),n=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");z.fetch(n+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(i),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:o}).then(function(s){s.json().then(function(a){t(s,a)}).catch(function(a){e({error:a})})}).catch(function(s){e({error:s,httpStatusCode:0})})},fe.prototype._flushEvents=hw(function(r,i,o){var e=r.length;if(e>0){for(var t=this.replayId,n=1/0,s=-1/0,a=!1,u=0;u<e;u++)n=Math.min(n,r[u].timestamp),s=Math.max(s,r[u].timestamp),r[u].type===F.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){o({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=n}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=n);var l=s-this.replayStartTime,f={$current_url:this.batchStartUrl,$lib_version:gs.LIB_VERSION,batch_start_time:n/1e3,mp_lib:"web",replay_id:t,replay_length_ms:l,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},c=JSON.stringify(r);if(Object.assign(f,this.getUserIdInfo()),sw(at,Nt.vendor,Cr)){var h=new Blob([c],{type:"application/json"}).stream(),v=h.pipeThrough(new Ew("gzip"));new Response(v).blob().then(function(d){f.format="gzip",this._sendRequest(t,f,d,o)}.bind(this))}else f.format="body",this._sendRequest(t,f,c,o)}}),fe.prototype.reportError=function(r,i){Bt.error.apply(Bt.error,arguments);try{!i&&!(r instanceof Error)&&(r=new Error(r)),this.getConfig("error_reporter")(r,i)}catch(o){Bt.error(o)}},fe.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},fe.prototype._getRecordMinMs=function(){var r=this.getConfig("record_min_ms");return r>ys?(Bt.critical("record_min_ms cannot be greater than "+ys+"ms. Capping value."),ys):r},fe.prototype._getMaskFn=function(r,i){return function(o,e){if(!o.trim().length)return"";var t=!0;try{t=r(e,i)}catch(s){this.reportError("Error checking if text should be masked, defaulting to masked",s)}if(t){var n=Math.min(o.length,1e4);return"*".repeat(n)}else return o}.bind(this)};var Fe=function(r){this.idb=new ke(qf),this.errorReporter=r.errorReporter,this.mixpanelInstance=r.mixpanelInstance,this.sharedLockStorage=r.sharedLockStorage};Fe.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Fe.prototype.handleError=function(r){this.errorReporter("IndexedDB error: ",r)},Fe.prototype.setActiveRecording=function(r){if(!this.isPersistenceEnabled())return B.resolve();var i=r.tabId;return i?this.idb.init().then(function(){return this.idb.setItem(i,r)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),B.resolve())},Fe.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(r){return Xf(r)?null:r}.bind(this)).catch(this.handleError.bind(this)):B.resolve(null)},Fe.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Fe.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(r){if(r)return r.maxExpires=0,this.setActiveRecording(r)}.bind(this)).catch(this.handleError.bind(this))},Fe.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):B.resolve()},Fe.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(r){var i=r.filter(function(o){return Xf(o)}).map(function(o){var e=fe.deserialize(o,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return e.unloadPersistedData().then(function(){return this.idb.removeItem(o.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return B.all(i)}.bind(this)).catch(this.handleError.bind(this)):B.resolve([])};var xr=Lt("recorder"),Be=function(r,i,o){this.mixpanelInstance=r,this.rrwebRecord=i||Ye,this.sharedLockStorage=o,this.recordingRegistry=new Fe({mixpanelInstance:this.mixpanelInstance,errorReporter:xr.error,sharedLockStorage:o}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Be.prototype.startRecording=function(r){if(r=r||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){xr.log("Recording already in progress, skipping startRecording.");return}var i=function(){xr.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),o=function(){xr.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),e=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),t={mixpanelInstance:this.mixpanelInstance,onBatchSent:e,onIdleTimeout:i,onMaxLengthReached:o,replayId:y.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return r.activeSerializedRecording?this.activeRecording=fe.deserialize(r.activeSerializedRecording,t):this.activeRecording=new fe(t),this.activeRecording.startRecording(r.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Be.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},Be.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Be.prototype._stopCurrentRecording=function(r,i){if(this.activeRecording){var o=this.activeRecording.stopRecording(r);return i&&(this.activeRecording=null),o}return B.resolve()},Be.prototype.resumeRecording=function(r){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),B.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(i){return i&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:i}):r?this.startRecording({shouldStopBatcher:!1}):(xr.log("No resumable recording found."),null)}.bind(this))},Be.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Be.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Be.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),z.__mp_recorder=Be})();
1
+ (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.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 t=new Mh(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!t[a]){t[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 t=this.memoizedFileURLs.get(e);if(t)return t;if(ha){var n=ha(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 t=this.memoizedURLs.get(e);if(t)return t;ca==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},r})(),pa=_h,Ph=zr,Ti=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="comment",e}return i})(Ph),Jr=Ti;Ti.default=Ti;var da=Ge.isClean,va=Ge.my,ma=Wr,ga=Jr,Th=zr,ya,Ni,Li,wa;function Sa(r){return r.map(function(i){return i.nodes&&(i.nodes=Sa(i.nodes)),delete i.source,i})}function ba(r){if(r[da]=!1,r.proxyOf.nodes)for(var i=I(r.proxyOf.nodes),o;!(o=i()).done;){var e=o.value;ba(e)}}var Ne=(function(r){ee(i,r);function i(){return r.apply(this,arguments)||this}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(var a=I(n),u;!(u=a()).done;)for(var l=u.value,f=this.normalize(l,this.last),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(t){if(r.prototype.cleanRaws.call(this,t),this.nodes)for(var n=I(this.nodes),s;!(s=n()).done;){var a=s.value;a.cleanRaws(t)}},o.each=function(t){if(this.proxyOf.nodes){for(var n=this.getIterator(),s,a;this.indexes[n]<this.proxyOf.nodes.length&&(s=this.indexes[n],a=t(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}},o.every=function(t){return this.nodes.every(t)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t},o.getProxyProcessor=function(){return{get:function(n,s){return s==="proxyOf"?n:n[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];var f;return(f=n)[s].apply(f,[].concat(u.map(function(c){return typeof c=="function"?function(h,v){return c(h.toProxy(),v)}:c})))}:s==="every"||s==="some"?function(a){return n[s](function(u){for(var l=arguments.length,f=new Array(l>1?l-1:0),c=1;c<l;c++)f[c-1]=arguments[c];return a.apply(void 0,[].concat([u.toProxy()],f))})}:s==="root"?function(){return n.root().toProxy()}:s==="nodes"?n.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?n[s].toProxy():n[s]:n[s]},set:function(n,s,a){return n[s]===a||(n[s]=a,(s==="name"||s==="params"||s==="selector")&&n.markDirty()),!0}}},o.index=function(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))},o.insertAfter=function(t,n){var s=this.index(t),a=this.normalize(n,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(var u=I(a),l;!(l=u()).done;){var f=l.value;this.proxyOf.nodes.splice(s+1,0,f)}var c;for(var h in this.indexes)c=this.indexes[h],s<c&&(this.indexes[h]=c+a.length);return this.markDirty(),this},o.insertBefore=function(t,n){var s=this.index(t),a=s===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[s],a).reverse();s=this.index(t);for(var l=I(u),f;!(f=l()).done;){var c=f.value;this.proxyOf.nodes.splice(s,0,c)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(t,n){var s=this;if(typeof t=="string")t=Sa(ya(t).nodes);else if(typeof t=="undefined")t=[];else if(Array.isArray(t)){t=t.slice(0);for(var a=I(t),u;!(u=a()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(var f=I(t),c;!(c=f()).done;){var h=c.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new ma(t)]}else if(t.selector)t=[new Ni(t)];else if(t.name)t=[new Li(t)];else if(t.text)t=[new ga(t)];else throw new Error("Unknown node type in node creation");var v=t.map(function(d){return d[va]||i.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[da]&&ba(d),typeof d.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(d.raws.before=n.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return v},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n=n.reverse();for(var a=I(n),u;!(u=a()).done;){for(var l=u.value,f=this.normalize(l,this.first,"prepend").reverse(),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+f.length}return this.markDirty(),this},o.push=function(t){return t.parent=this,this.proxyOf.nodes.push(t),this},o.removeAll=function(){for(var t=I(this.proxyOf.nodes),n;!(n=t()).done;){var s=n.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=t&&(this.indexes[s]=n-1);return this.markDirty(),this},o.replaceValues=function(t,n,s){return s||(s=n,n={}),this.walkDecls(function(a){n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,s))}),this.markDirty(),this},o.some=function(t){return this.nodes.some(t)},o.walk=function(t){return this.each(function(n,s){var a;try{a=t(n,s)}catch(u){throw n.addToError(u)}return a!==!1&&n.walk&&(a=n.walk(t)),a})},o.walkAtRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&t.test(s.name))return n(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="atrule")return n(s,a)}))},o.walkComments=function(t){return this.walk(function(n,s){if(n.type==="comment")return t(n,s)})},o.walkDecls=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&t.test(s.prop))return n(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="decl")return n(s,a)}))},o.walkRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&t.test(s.selector))return n(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="rule")return n(s,a)}))},Z(i,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),i})(Th);Ne.registerParse=function(r){ya=r},Ne.registerRule=function(r){Ni=r},Ne.registerAtRule=function(r){Li=r},Ne.registerRoot=function(r){wa=r};var nt=Ne;Ne.default=Ne,Ne.rebuild=function(r){r.type==="atrule"?Object.setPrototypeOf(r,Li.prototype):r.type==="rule"?Object.setPrototypeOf(r,Ni.prototype):r.type==="decl"?Object.setPrototypeOf(r,ma.prototype):r.type==="comment"?Object.setPrototypeOf(r,ga.prototype):r.type==="root"&&Object.setPrototypeOf(r,wa.prototype),r[va]=!0,r.nodes&&r.nodes.forEach(function(i){Ne.rebuild(i)})};var Nh=nt,Ca,Ia,Kt=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,T({type:"document"},e))||this,t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.toResult=function(t){t===void 0&&(t={});var n=new Ca(new Ia,this,t);return n.stringify()},i})(Nh);Kt.registerLazyResult=function(r){Ca=r},Kt.registerProcessor=function(r){Ia=r};var Di=Kt;Kt.default=Kt;var Oa={},xa=function(i){Oa[i]||(Oa[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},Fi=(function(){function r(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(var n in e)this[n]=e[n]}var i=r.prototype;return i.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},r})(),Ra=Fi;Fi.default=Fi;var Lh=Ra,Bi=(function(){function r(o,e,t){this.processor=o,this.messages=[],this.root=e,this.opts=t,this.css=void 0,this.map=void 0}var i=r.prototype;return i.toString=function(){return this.css},i.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Lh(e,t);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Z(r,[{key:"content",get:function(){return this.css}}]),r})(),Ui=Bi;Bi.default=Bi;var zi=39,Ea=34,Hr=92,Aa=47,Zr=10,Xt=32,Kr=12,Xr=9,Qr=13,Dh=91,Fh=93,Bh=40,Uh=41,zh=123,Wh=125,jh=59,Gh=42,Vh=58,Yh=64,en=/[\t\n\f\r "#'()/;[\\\]{}]/g,tn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,qh=/.[\r\n"'(/\\]/,Ma=/[\da-f]/i,Jh=function(i,o){o===void 0&&(o={});var e=i.css.valueOf(),t=o.ignoreErrors,n,s,a,u,l,f,c,h,v,d,g=e.length,p=0,m=[],w=[];function S(){return p}function b(R){throw i.error("Unclosed "+R,p)}function C(){return w.length===0&&p>=g}function x(R){if(w.length)return w.pop();if(!(p>=g)){var k=R?R.ignoreUnclosed:!1;switch(n=e.charCodeAt(p),n){case Zr:case Xt:case Xr:case Qr:case Kr:{s=p;do s+=1,n=e.charCodeAt(s);while(n===Xt||n===Zr||n===Xr||n===Qr||n===Kr);d=["space",e.slice(p,s)],p=s-1;break}case Dh:case Fh:case zh:case Wh:case Vh:case jh:case Uh:{var N=String.fromCharCode(n);d=[N,N,p];break}case Bh:{if(h=m.length?m.pop()[1]:"",v=e.charCodeAt(p+1),h==="url"&&v!==zi&&v!==Ea&&v!==Xt&&v!==Zr&&v!==Xr&&v!==Kr&&v!==Qr){s=p;do{if(f=!1,s=e.indexOf(")",s+1),s===-1)if(t||k){s=p;break}else b("bracket");for(c=s;e.charCodeAt(c-1)===Hr;)c-=1,f=!f}while(f);d=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),u=e.slice(p,s+1),s===-1||qh.test(u)?d=["(","(",p]:(d=["brackets",u,p,s],p=s);break}case zi:case Ea:{a=n===zi?"'":'"',s=p;do{if(f=!1,s=e.indexOf(a,s+1),s===-1)if(t||k){s=p+1;break}else b("string");for(c=s;e.charCodeAt(c-1)===Hr;)c-=1,f=!f}while(f);d=["string",e.slice(p,s+1),p,s],p=s;break}case Yh:{en.lastIndex=p+1,en.test(e),en.lastIndex===0?s=e.length-1:s=en.lastIndex-2,d=["at-word",e.slice(p,s+1),p,s],p=s;break}case Hr:{for(s=p,l=!0;e.charCodeAt(s+1)===Hr;)s+=1,l=!l;if(n=e.charCodeAt(s+1),l&&n!==Aa&&n!==Xt&&n!==Zr&&n!==Xr&&n!==Qr&&n!==Kr&&(s+=1,Ma.test(e.charAt(s)))){for(;Ma.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Xt&&(s+=1)}d=["word",e.slice(p,s+1),p,s],p=s;break}default:{n===Aa&&e.charCodeAt(p+1)===Gh?(s=e.indexOf("*/",p+2)+1,s===0&&(t||k?s=e.length:b("comment")),d=["comment",e.slice(p,s+1),p,s],p=s):(tn.lastIndex=p+1,tn.test(e),tn.lastIndex===0?s=e.length-1:s=tn.lastIndex-2,d=["word",e.slice(p,s+1),p,s],m.push(d),p=s);break}}return p++,d}}function $(R){w.push(R)}return{back:$,endOfFile:C,nextToken:x,position:S}},$a=nt,rn=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="atrule",t}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.append).call.apply(a,[].concat([this],n))},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.prepend).call.apply(a,[].concat([this],n))},i})($a),Wi=rn;rn.default=rn,$a.registerAtRule(rn);var ka=nt,_a,Pa,bt=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="root",t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.normalize=function(t,n,s){var a=r.prototype.normalize.call(this,t);if(n){if(s==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var u=I(a),l;!(l=u()).done;){var f=l.value;f.raws.before=n.raws.before}}return a},o.removeChild=function(t,n){var s=this.index(t);return!n&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),r.prototype.removeChild.call(this,t)},o.toResult=function(t){t===void 0&&(t={});var n=new _a(new Pa,this,t);return n.stringify()},i})(ka);bt.registerLazyResult=function(r){_a=r},bt.registerProcessor=function(r){Pa=r};var Qt=bt;bt.default=bt,ka.registerRoot(bt);var er={comma:function(i){return er.split(i,[","],!0)},space:function(i){var o=[" ","\n"," "];return er.split(i,o)},split:function(i,o,e){for(var t=[],n="",s=!1,a=0,u=!1,l="",f=!1,c=I(i),h;!(h=c()).done;){var v=h.value;f?f=!1:v==="\\"?f=!0:u?v===l&&(u=!1):v==='"'||v==="'"?(u=!0,l=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=v}return(e||n!=="")&&t.push(n.trim()),t}},Ta=er;er.default=er;var Na=nt,Hh=Ta,nn=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return Z(i,[{key:"selectors",get:function(){return Hh.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(Na),ji=nn;nn.default=nn,Na.registerRule(nn);var Zh=Wr,Kh=Jh,Xh=Jr,Qh=Wi,ep=Qt,La=ji,Da={empty:!0,space:!0};function tp(r){for(var i=r.length-1;i>=0;i--){var o=r[i],e=o[3]||o[2];if(e)return e}}var rp=(function(){function r(o){this.input=o,this.root=new ep,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var i=r.prototype;return i.atrule=function(e){var t=new Qh;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,s,a,u=!1,l=!1,f=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(f.length>0){for(a=f.length-1,s=f[a];s&&s[0]==="space";)s=f[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(t.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(t,"params",f),u&&(e=f[f.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)},i.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,s,a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},i.colon=function(e){for(var t=0,n,s,a,u=I(e.entries()),l;!(l=u()).done;){var f=l.value,c=f[0],h=f[1];if(n=h,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return c}a=n}return!1},i.comment=function(e){var t=new Xh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}},i.createTokenizer=function(){this.tokenizer=Kh(this.input)},i.decl=function(e,t){var n=new Zh;this.init(n,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||tp(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var l=[],f;e.length&&(f=e[0][0],!(f!=="space"&&f!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;var h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),d="",g=c;g>0;g--){var p=v[g][0];if(d.trim().indexOf("!")===0&&p!=="space")break;d=v.pop()[1]+d}d.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=d,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});m&&(n.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(n,"value",l.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var t=new La;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},i.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},i.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},i.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var t=!1,n=null,s=!1,a=null,u=[],l=e[1].startsWith("--"),f=[],c=e;c;){if(n=c[0],f.push(c),n==="("||n==="[")a||(a=c),u.push(n==="("?")":"]");else if(l&&s&&n==="{")a||(a=c),u.push("}");else if(u.length===0)if(n===";")if(s){this.decl(f,l);return}else break;else if(n==="{"){this.rule(f);return}else if(n==="}"){this.tokenizer.back(f.pop()),t=!0;break}else n===":"&&(s=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),u.length>0&&this.unclosedBracket(a),t&&s){if(!l)for(;f.length&&(c=f[f.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,l)}else this.unknownWord(f)},i.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},i.precheckMissedSemicolon=function(){},i.raw=function(e,t,n,s){for(var a,u,l=n.length,f="",c=!0,h,v,d=0;d<l;d+=1)a=n[d],u=a[0],u==="space"&&d===l-1&&!s?c=!1:u==="comment"?(v=n[d-1]?n[d-1][0]:"empty",h=n[d+1]?n[d+1][0]:"empty",!Da[v]&&!Da[h]?f.slice(-1)===","?c=!1:f+=a[1]:c=!1):f+=a[1];if(!c){var g=n.reduce(function(p,m){return p+m[1]},"");e.raws[t]={raw:g,value:f}}e[t]=f},i.rule=function(e){e.pop();var t=new La;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},i.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,t){for(var n="",s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},r})(),np=rp,ip=nt,op=np,sp=Vr;function on(r,i){var o=new sp(r,i),e=new op(o);try{e.parse()}catch(t){throw process.env.NODE_ENV!=="production"&&t.name==="CssSyntaxError"&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return e.root}var Gi=on;on.default=on,ip.registerParse(on);var Ae=Ge.isClean,ap=Ge.my,up=pa,lp=Br,fp=nt,cp=Di,hp=xa,Fa=Ui,pp=Gi,dp=Qt,vp={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},mp={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},gp={Once:!0,postcssPlugin:!0,prepare:!0},Ct=0;function tr(r){return(typeof r=="undefined"?"undefined":M(r))==="object"&&typeof r.then=="function"}function Ba(r){var i=!1,o=vp[r.type];return r.type==="decl"?i=r.prop.toLowerCase():r.type==="atrule"&&(i=r.name.toLowerCase()),i&&r.append?[o,o+"-"+i,Ct,o+"Exit",o+"Exit-"+i]:i?[o,o+"-"+i,o+"Exit",o+"Exit-"+i]:r.append?[o,Ct,o+"Exit"]:[o,o+"Exit"]}function Ua(r){var i;return r.type==="document"?i=["Document",Ct,"DocumentExit"]:r.type==="root"?i=["Root",Ct,"RootExit"]:i=Ba(r),{eventIndex:0,events:i,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Vi(r){return r[Ae]=!1,r.nodes&&r.nodes.forEach(function(i){return Vi(i)}),r}var Yi={},It=(function(){function r(o,e,t){var n=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":M(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=Vi(e);else if(E(e,r)||E(e,Fa))s=Vi(e.root),e.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=e.map);else{var a=pp;t.syntax&&(a=t.syntax.parse),t.parser&&(a=t.parser),a.parse&&(a=a.parse);try{s=a(e,t)}catch(u){this.processed=!0,this.error=u}s&&!s[ap]&&fp.rebuild(s)}this.result=new Fa(o,s,t),this.helpers=T({},Yi,{postcss:Yi,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":M(u))==="object"&&u.prepare?T({},u,u.prepare(n.result)):u})}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){var s=n.postcssPlugin,a=n.postcssVersion,u=this.result.processor.version,l=a.split("."),f=u.split(".");(l[0]!==f[0]||parseInt(l[1])>parseInt(f[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(f,c,h){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([f,h])},n=I(this.plugins),s;!(s=n()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":M(a))==="object")for(var u in a){if(!mp[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!gp[u])if(M(a[u])==="object")for(var l in a[u])l==="*"?t(a,u,a[u][l]):t(a,u+"-"+l.toLowerCase(),a[u][l]);else typeof a[u]=="function"&&t(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return kr(function(){var t,n,s,a,u,l,f,c,h,v,d,g;return tt(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],s=e.runOnRoot(n),!tr(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw a=p.sent(),e.handleError(a);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,p.label=7;case 7:if(u[Ae])return[3,14];u[Ae]=!0,l=[Ua(u)],p.label=8;case 8:if(!(l.length>0))return[3,13];if(f=e.visitTick(l),!tr(f))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,f];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),h=l[l.length-1].node,e.handleError(c,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var m,w,S,b,C;return tt(this,function(x){switch(x.label){case 0:m=g.value,w=m[0],S=m[1],e.result.lastPlugin=w,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(b=u.nodes.map(function($){return S($,e.helpers)}),[4,Promise.all(b)]);case 2:return x.sent(),[3,5];case 3:return[4,S(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},d=I(e.listeners.OnceExit),p.label=15;case 15:return(g=d()).done?[3,18]:[5,di(v())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":M(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(s){return e.Once(s,t.helpers)});return tr(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},i.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=lp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new up(t,this.result.root,this.result.opts),s=n.generate();return this.result.css=s[0],this.result.map=s[1],this.result},i.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=I(this.plugins),t;!(t=e()).done;){var n=t.value,s=this.runOnRoot(n);if(tr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ae];)a[Ae]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),l;!(l=u()).done;){var f=l.value;this.visitSync(this.listeners.OnceExit,f)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||hp("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this.css},i.visitSync=function(e,t){for(var n=I(e),s;!(s=n()).done;){var a=s.value,u=a[0],l=a[1];this.result.lastPlugin=u;var f=void 0;try{f=l(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(tr(f))throw this.getAsyncError()}},i.visitTick=function(e){var t=e[e.length-1],n=t.node,s=t.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){var a=s[t.visitorIndex],u=a[0],l=a[1];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=u;try{return l(n.toProxy(),this.helpers)}catch(d){throw this.handleError(d,n)}}if(t.iterator!==0){for(var f=t.iterator,c;c=n.nodes[n.indexes[f]];)if(n.indexes[f]+=1,!c[Ae]){c[Ae]=!0,e.push(Ua(c));return}t.iterator=0,delete n.indexes[f]}for(var h=t.events;t.eventIndex<h.length;){var v=h[t.eventIndex];if(t.eventIndex+=1,v===Ct){n.nodes&&n.nodes.length&&(n[Ae]=!0,t.iterator=n.getIterator());return}else if(this.listeners[v]){t.visitors=this.listeners[v];return}}e.pop()},i.walkSync=function(e){var t=this;e[Ae]=!0;for(var n=Ba(e),s=I(n),a;!(a=s()).done;){var u=a.value;if(u===Ct)e.nodes&&e.each(function(f){f[Ae]||t.walkSync(f)});else{var l=this.listeners[u];if(l&&this.visitSync(l,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},Z(r,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),r})();It.registerPostcss=function(r){Yi=r};var za=It;It.default=It,dp.registerLazyResult(It),cp.registerLazyResult(It);var yp=pa,wp=Br,Sp=xa,bp=Gi,Cp=Ui,qi=(function(){function r(o,e,t){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=t,this._map=void 0;var n,s=wp;this.result=new Cp(this._processor,n,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new yp(s,n,this._opts,e);if(u.isMap()){var l=u.generate(),f=l[0],c=l[1];f&&(this.result.css=f),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Sp("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this._css},i.warnings=function(){return[]},Z(r,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=bp;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r})(),Ip=qi;qi.default=qi;var Op=Ip,xp=za,Rp=Di,Ep=Qt,rr=(function(){function r(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var i=r.prototype;return i.normalize=function(e){for(var t=[],n=I(e),s;!(s=n()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":M(a))==="object"&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&a.postcssPlugin)t.push(a);else if(typeof a=="function")t.push(a);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return t},i.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Op(this,e,t):new xp(this,e,t)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},r})(),Ap=rr;rr.default=rr,Ep.registerProcessor(rr),Rp.registerProcessor(rr);var Mp=Wr,$p=ia,kp=Jr,_p=Wi,Pp=Vr,Tp=Qt,Np=ji;function nr(r,i){if(Array.isArray(r))return r.map(function(c){return nr(c)});var o=r.inputs,e=et(r,["inputs"]);if(o){i=[];for(var t=I(o),n;!(n=t()).done;){var s=n.value,a=T({},s,{__proto__:Pp.prototype});a.map&&(a.map=T({},a.map,{__proto__:$p.prototype})),i.push(a)}}if(e.nodes&&(e.nodes=r.nodes.map(function(c){return nr(c,i)})),e.source){var u=e.source,l=u.inputId,f=et(u,["inputId"]);e.source=f,l!=null&&(e.source.input=i[l])}if(e.type==="root")return new Tp(e);if(e.type==="decl")return new Mp(e);if(e.type==="rule")return new Np(e);if(e.type==="comment")return new kp(e);if(e.type==="atrule")return new _p(e);throw new Error("Unknown node type: "+r.type)}var Lp=nr;nr.default=nr;var Dp=Ci,Wa=Wr,Fp=za,Bp=nt,Ji=Ap,Up=Br,zp=Lp,ja=Di,Wp=Ra,Ga=Jr,Va=Wi,jp=Ui,Gp=Vr,Vp=Gi,Yp=Ta,Ya=ji,qa=Qt,qp=zr;function V(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Ji(i)}V.plugin=function(i,o){var e=!1;function t(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(i+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(i+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var l=o.apply(void 0,[].concat(a));return l.postcssPlugin=i,l.postcssVersion=new Ji().version,l}var n;return Object.defineProperty(t,"postcss",{get:function(){return n||(n=t()),n}}),t.process=function(s,a,u){return V([t(u)]).process(s,a)},t},V.stringify=Up,V.parse=Vp,V.fromJSON=zp,V.list=Yp,V.comment=function(r){return new Ga(r)},V.atRule=function(r){return new Va(r)},V.decl=function(r){return new Wa(r)},V.rule=function(r){return new Ya(r)},V.root=function(r){return new qa(r)},V.document=function(r){return new ja(r)},V.CssSyntaxError=Dp,V.Declaration=Wa,V.Container=Bp,V.Processor=Ji,V.Document=ja,V.Comment=Ga,V.Warning=Wp,V.AtRule=Va,V.Result=jp,V.Input=Gp,V.Rule=Ya,V.Root=qa,V.Node=qp,Fp.registerPostcss(V);var Jp=V;V.default=V;var te=oh(Jp);te.stringify,te.fromJSON,te.plugin,te.parse,te.list,te.document,te.comment,te.atRule,te.rule,te.decl,te.root,te.CssSyntaxError,te.Declaration,te.Container,te.Processor,te.Document,te.Comment,te.Warning,te.AtRule,te.Result,te.Input,te.Rule,te.Root,te.Node;var Hp=Object.defineProperty,Zp=function(r,i,o){return i in r?Hp(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},Oe=function(r,i,o){return Zp(r,(typeof i=="undefined"?"undefined":M(i))!=="symbol"?i+"":i,o)};function Kp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Xp(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 Hi={exports:{}},X=String,Ja=function(){return{isColorSupported:!1,reset:X,bold:X,dim:X,italic:X,underline:X,inverse:X,hidden:X,strikethrough:X,black:X,red:X,green:X,yellow:X,blue:X,magenta:X,cyan:X,white:X,gray:X,bgBlack:X,bgRed:X,bgGreen:X,bgYellow:X,bgBlue:X,bgMagenta:X,bgCyan:X,bgWhite:X}};Hi.exports=Ja(),Hi.exports.createColors=Ja;var Qp=Hi.exports,ed={},td=Object.freeze(Object.defineProperty({__proto__:null,default:ed},Symbol.toStringTag,{value:"Module"})),le=Xp(td),Ha=Qp,Za=le,Zi=(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=Ha.isColorSupported),Za&&t&&(s=Za(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=Ha.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)),Ki=Zi;Zi.default=Zi;var Ve={};Ve.isClean=Symbol("isClean"),Ve.my=Symbol("my");var Ka={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function rd(r){return r[0].toUpperCase()+r.slice(1)}var Xi=(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 Ka[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"+rd(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=Ka[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})(),Xa=Xi;Xi.default=Xi;var nd=Xa;function Qi(r,i){var o=new nd(i);o.stringify(r)}var sn=Qi;Qi.default=Qi;var an=Ve.isClean,id=Ve.my,od=Ki,sd=Xa,ad=sn;function eo(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 eo(s,o)}):(n==="object"&&t!==null&&(t=eo(t)),o[e]=t)}return o}var to=(function(){function r(o){o===void 0&&(o={}),this.raws={},this[an]=!1,this[id]=!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=eo(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 od(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[an]){this[an]=!1;for(var e=this;e=e.parent;)e[an]=!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 sd;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=ad),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})(),un=to;to.default=to;var ud=un,ro=(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})(ud),ln=ro;ro.default=ro;var ld="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",fd=function(r){r===void 0&&(r=21);for(var i="",o=r;o--;)i+=ld[Math.random()*64|0];return i},cd={nanoid:fd},Qa=le.SourceMapConsumer,eu=le.SourceMapGenerator,hd=le.existsSync,pd=le.readFileSync,no=le.dirname,dd=le.join;function vd(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var io=(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=no(this.mapFile)),n&&(this.text=n)}}var i=r.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new Qa(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 vd(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=no(e),hd(e))return this.mapFile=e,pd(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,Qa))return eu.fromSourceMap(t).toString();if(E(t,eu))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=dd(no(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})(),tu=io;io.default=io;var md=le.SourceMapConsumer,gd=le.SourceMapGenerator,ru=le.fileURLToPath,fn=le.pathToFileURL,oo=le.isAbsolute,so=le.resolve,yd=cd.nanoid,ao=le,nu=Ki,wd=tu,uo=Symbol("fromOffsetCache"),Sd=!!(md&&gd),iu=!!(so&&oo),cn=(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&&(!iu||/^\w+:\/\//.test(e.from)||oo(e.from)?this.file=e.from:this.file=so(e.from)),iu&&Sd){var t=new wd(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 "+yd(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 nu(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 nu(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&&(fn&&(a.input.url=fn(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var t,n;if(this[uo])n=this[uo];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[uo]=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:so(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;oo(u.source)?f=fn(u.source):f=new URL(u.source,this.map.consumer().sourceRoot||fn(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(ru)c.file=ru(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})(),hn=cn;cn.default=cn,ao&&ao.registerInput&&ao.registerInput(cn);var ou=le.SourceMapConsumer,pn=le.SourceMapGenerator,dn=le.dirname,su=le.relative,au=le.resolve,uu=le.sep,lu=le.pathToFileURL,bd=hn,Cd=!!(ou&&pn),Id=!!(dn&&au&&su&&uu),Od=(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||dn(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new ou(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(),Id&&Cd&&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=pn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new pn({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 pn({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?dn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=dn(au(n,this.mapOpts.annotation)));var s=su(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 t=new bd(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!t[a]){t[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 t=this.memoizedFileURLs.get(e);if(t)return t;if(lu){var n=lu(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 t=this.memoizedURLs.get(e);if(t)return t;uu==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},r})(),fu=Od,xd=un,lo=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="comment",e}return i})(xd),vn=lo;lo.default=lo;var cu=Ve.isClean,hu=Ve.my,pu=ln,du=vn,Rd=un,vu,fo,co,mu;function gu(r){return r.map(function(i){return i.nodes&&(i.nodes=gu(i.nodes)),delete i.source,i})}function yu(r){if(r[cu]=!1,r.proxyOf.nodes)for(var i=I(r.proxyOf.nodes),o;!(o=i()).done;){var e=o.value;yu(e)}}var Le=(function(r){ee(i,r);function i(){return r.apply(this,arguments)||this}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(var a=I(n),u;!(u=a()).done;)for(var l=u.value,f=this.normalize(l,this.last),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(t){if(r.prototype.cleanRaws.call(this,t),this.nodes)for(var n=I(this.nodes),s;!(s=n()).done;){var a=s.value;a.cleanRaws(t)}},o.each=function(t){if(this.proxyOf.nodes){for(var n=this.getIterator(),s,a;this.indexes[n]<this.proxyOf.nodes.length&&(s=this.indexes[n],a=t(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}},o.every=function(t){return this.nodes.every(t)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t},o.getProxyProcessor=function(){return{get:function(n,s){return s==="proxyOf"?n:n[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];var f;return(f=n)[s].apply(f,[].concat(u.map(function(c){return typeof c=="function"?function(h,v){return c(h.toProxy(),v)}:c})))}:s==="every"||s==="some"?function(a){return n[s](function(u){for(var l=arguments.length,f=new Array(l>1?l-1:0),c=1;c<l;c++)f[c-1]=arguments[c];return a.apply(void 0,[].concat([u.toProxy()],f))})}:s==="root"?function(){return n.root().toProxy()}:s==="nodes"?n.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?n[s].toProxy():n[s]:n[s]},set:function(n,s,a){return n[s]===a||(n[s]=a,(s==="name"||s==="params"||s==="selector")&&n.markDirty()),!0}}},o.index=function(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))},o.insertAfter=function(t,n){var s=this.index(t),a=this.normalize(n,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(var u=I(a),l;!(l=u()).done;){var f=l.value;this.proxyOf.nodes.splice(s+1,0,f)}var c;for(var h in this.indexes)c=this.indexes[h],s<c&&(this.indexes[h]=c+a.length);return this.markDirty(),this},o.insertBefore=function(t,n){var s=this.index(t),a=s===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[s],a).reverse();s=this.index(t);for(var l=I(u),f;!(f=l()).done;){var c=f.value;this.proxyOf.nodes.splice(s,0,c)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(t,n){var s=this;if(typeof t=="string")t=gu(vu(t).nodes);else if(typeof t=="undefined")t=[];else if(Array.isArray(t)){t=t.slice(0);for(var a=I(t),u;!(u=a()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(var f=I(t),c;!(c=f()).done;){var h=c.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new pu(t)]}else if(t.selector)t=[new fo(t)];else if(t.name)t=[new co(t)];else if(t.text)t=[new du(t)];else throw new Error("Unknown node type in node creation");var v=t.map(function(d){return d[hu]||i.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[cu]&&yu(d),typeof d.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(d.raws.before=n.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return v},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n=n.reverse();for(var a=I(n),u;!(u=a()).done;){for(var l=u.value,f=this.normalize(l,this.first,"prepend").reverse(),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+f.length}return this.markDirty(),this},o.push=function(t){return t.parent=this,this.proxyOf.nodes.push(t),this},o.removeAll=function(){for(var t=I(this.proxyOf.nodes),n;!(n=t()).done;){var s=n.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=t&&(this.indexes[s]=n-1);return this.markDirty(),this},o.replaceValues=function(t,n,s){return s||(s=n,n={}),this.walkDecls(function(a){n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,s))}),this.markDirty(),this},o.some=function(t){return this.nodes.some(t)},o.walk=function(t){return this.each(function(n,s){var a;try{a=t(n,s)}catch(u){throw n.addToError(u)}return a!==!1&&n.walk&&(a=n.walk(t)),a})},o.walkAtRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&t.test(s.name))return n(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="atrule")return n(s,a)}))},o.walkComments=function(t){return this.walk(function(n,s){if(n.type==="comment")return t(n,s)})},o.walkDecls=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&t.test(s.prop))return n(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="decl")return n(s,a)}))},o.walkRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&t.test(s.selector))return n(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="rule")return n(s,a)}))},Z(i,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),i})(Rd);Le.registerParse=function(r){vu=r},Le.registerRule=function(r){fo=r},Le.registerAtRule=function(r){co=r},Le.registerRoot=function(r){mu=r};var it=Le;Le.default=Le,Le.rebuild=function(r){r.type==="atrule"?Object.setPrototypeOf(r,co.prototype):r.type==="rule"?Object.setPrototypeOf(r,fo.prototype):r.type==="decl"?Object.setPrototypeOf(r,pu.prototype):r.type==="comment"?Object.setPrototypeOf(r,du.prototype):r.type==="root"&&Object.setPrototypeOf(r,mu.prototype),r[hu]=!0,r.nodes&&r.nodes.forEach(function(i){Le.rebuild(i)})};var Ed=it,wu,Su,ir=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,T({type:"document"},e))||this,t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.toResult=function(t){t===void 0&&(t={});var n=new wu(new Su,this,t);return n.stringify()},i})(Ed);ir.registerLazyResult=function(r){wu=r},ir.registerProcessor=function(r){Su=r};var ho=ir;ir.default=ir;var bu={},Cu=function(i){bu[i]||(bu[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},po=(function(){function r(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(var n in e)this[n]=e[n]}var i=r.prototype;return i.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},r})(),Iu=po;po.default=po;var Ad=Iu,vo=(function(){function r(o,e,t){this.processor=o,this.messages=[],this.root=e,this.opts=t,this.css=void 0,this.map=void 0}var i=r.prototype;return i.toString=function(){return this.css},i.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Ad(e,t);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Z(r,[{key:"content",get:function(){return this.css}}]),r})(),mo=vo;vo.default=vo;var go=39,Ou=34,mn=92,xu=47,gn=10,or=32,yn=12,wn=9,Sn=13,Md=91,$d=93,kd=40,_d=41,Pd=123,Td=125,Nd=59,Ld=42,Dd=58,Fd=64,bn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Cn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Bd=/.[\r\n"'(/\\]/,Ru=/[\da-f]/i,Ud=function(i,o){o===void 0&&(o={});var e=i.css.valueOf(),t=o.ignoreErrors,n,s,a,u,l,f,c,h,v,d,g=e.length,p=0,m=[],w=[];function S(){return p}function b(R){throw i.error("Unclosed "+R,p)}function C(){return w.length===0&&p>=g}function x(R){if(w.length)return w.pop();if(!(p>=g)){var k=R?R.ignoreUnclosed:!1;switch(n=e.charCodeAt(p),n){case gn:case or:case wn:case Sn:case yn:{s=p;do s+=1,n=e.charCodeAt(s);while(n===or||n===gn||n===wn||n===Sn||n===yn);d=["space",e.slice(p,s)],p=s-1;break}case Md:case $d:case Pd:case Td:case Dd:case Nd:case _d:{var N=String.fromCharCode(n);d=[N,N,p];break}case kd:{if(h=m.length?m.pop()[1]:"",v=e.charCodeAt(p+1),h==="url"&&v!==go&&v!==Ou&&v!==or&&v!==gn&&v!==wn&&v!==yn&&v!==Sn){s=p;do{if(f=!1,s=e.indexOf(")",s+1),s===-1)if(t||k){s=p;break}else b("bracket");for(c=s;e.charCodeAt(c-1)===mn;)c-=1,f=!f}while(f);d=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),u=e.slice(p,s+1),s===-1||Bd.test(u)?d=["(","(",p]:(d=["brackets",u,p,s],p=s);break}case go:case Ou:{a=n===go?"'":'"',s=p;do{if(f=!1,s=e.indexOf(a,s+1),s===-1)if(t||k){s=p+1;break}else b("string");for(c=s;e.charCodeAt(c-1)===mn;)c-=1,f=!f}while(f);d=["string",e.slice(p,s+1),p,s],p=s;break}case Fd:{bn.lastIndex=p+1,bn.test(e),bn.lastIndex===0?s=e.length-1:s=bn.lastIndex-2,d=["at-word",e.slice(p,s+1),p,s],p=s;break}case mn:{for(s=p,l=!0;e.charCodeAt(s+1)===mn;)s+=1,l=!l;if(n=e.charCodeAt(s+1),l&&n!==xu&&n!==or&&n!==gn&&n!==wn&&n!==Sn&&n!==yn&&(s+=1,Ru.test(e.charAt(s)))){for(;Ru.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===or&&(s+=1)}d=["word",e.slice(p,s+1),p,s],p=s;break}default:{n===xu&&e.charCodeAt(p+1)===Ld?(s=e.indexOf("*/",p+2)+1,s===0&&(t||k?s=e.length:b("comment")),d=["comment",e.slice(p,s+1),p,s],p=s):(Cn.lastIndex=p+1,Cn.test(e),Cn.lastIndex===0?s=e.length-1:s=Cn.lastIndex-2,d=["word",e.slice(p,s+1),p,s],m.push(d),p=s);break}}return p++,d}}function $(R){w.push(R)}return{back:$,endOfFile:C,nextToken:x,position:S}},Eu=it,In=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="atrule",t}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.append).call.apply(a,[].concat([this],n))},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.prepend).call.apply(a,[].concat([this],n))},i})(Eu),yo=In;In.default=In,Eu.registerAtRule(In);var Au=it,Mu,$u,Ot=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="root",t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.normalize=function(t,n,s){var a=r.prototype.normalize.call(this,t);if(n){if(s==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var u=I(a),l;!(l=u()).done;){var f=l.value;f.raws.before=n.raws.before}}return a},o.removeChild=function(t,n){var s=this.index(t);return!n&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),r.prototype.removeChild.call(this,t)},o.toResult=function(t){t===void 0&&(t={});var n=new Mu(new $u,this,t);return n.stringify()},i})(Au);Ot.registerLazyResult=function(r){Mu=r},Ot.registerProcessor=function(r){$u=r};var sr=Ot;Ot.default=Ot,Au.registerRoot(Ot);var ar={comma:function(i){return ar.split(i,[","],!0)},space:function(i){var o=[" ","\n"," "];return ar.split(i,o)},split:function(i,o,e){for(var t=[],n="",s=!1,a=0,u=!1,l="",f=!1,c=I(i),h;!(h=c()).done;){var v=h.value;f?f=!1:v==="\\"?f=!0:u?v===l&&(u=!1):v==='"'||v==="'"?(u=!0,l=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=v}return(e||n!=="")&&t.push(n.trim()),t}},ku=ar;ar.default=ar;var _u=it,zd=ku,On=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return Z(i,[{key:"selectors",get:function(){return zd.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(_u),wo=On;On.default=On,_u.registerRule(On);var Wd=ln,jd=Ud,Gd=vn,Vd=yo,Yd=sr,Pu=wo,Tu={empty:!0,space:!0};function qd(r){for(var i=r.length-1;i>=0;i--){var o=r[i],e=o[3]||o[2];if(e)return e}}var Jd=(function(){function r(o){this.input=o,this.root=new Yd,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var i=r.prototype;return i.atrule=function(e){var t=new Vd;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,s,a,u=!1,l=!1,f=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(f.length>0){for(a=f.length-1,s=f[a];s&&s[0]==="space";)s=f[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(t.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(t,"params",f),u&&(e=f[f.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)},i.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,s,a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},i.colon=function(e){for(var t=0,n,s,a,u=I(e.entries()),l;!(l=u()).done;){var f=l.value,c=f[0],h=f[1];if(n=h,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return c}a=n}return!1},i.comment=function(e){var t=new Gd;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}},i.createTokenizer=function(){this.tokenizer=jd(this.input)},i.decl=function(e,t){var n=new Wd;this.init(n,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||qd(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var l=[],f;e.length&&(f=e[0][0],!(f!=="space"&&f!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;var h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),d="",g=c;g>0;g--){var p=v[g][0];if(d.trim().indexOf("!")===0&&p!=="space")break;d=v.pop()[1]+d}d.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=d,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});m&&(n.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(n,"value",l.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var t=new Pu;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},i.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},i.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},i.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var t=!1,n=null,s=!1,a=null,u=[],l=e[1].startsWith("--"),f=[],c=e;c;){if(n=c[0],f.push(c),n==="("||n==="[")a||(a=c),u.push(n==="("?")":"]");else if(l&&s&&n==="{")a||(a=c),u.push("}");else if(u.length===0)if(n===";")if(s){this.decl(f,l);return}else break;else if(n==="{"){this.rule(f);return}else if(n==="}"){this.tokenizer.back(f.pop()),t=!0;break}else n===":"&&(s=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),u.length>0&&this.unclosedBracket(a),t&&s){if(!l)for(;f.length&&(c=f[f.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,l)}else this.unknownWord(f)},i.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},i.precheckMissedSemicolon=function(){},i.raw=function(e,t,n,s){for(var a,u,l=n.length,f="",c=!0,h,v,d=0;d<l;d+=1)a=n[d],u=a[0],u==="space"&&d===l-1&&!s?c=!1:u==="comment"?(v=n[d-1]?n[d-1][0]:"empty",h=n[d+1]?n[d+1][0]:"empty",!Tu[v]&&!Tu[h]?f.slice(-1)===","?c=!1:f+=a[1]:c=!1):f+=a[1];if(!c){var g=n.reduce(function(p,m){return p+m[1]},"");e.raws[t]={raw:g,value:f}}e[t]=f},i.rule=function(e){e.pop();var t=new Pu;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},i.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,t){for(var n="",s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},r})(),Hd=Jd,Zd=it,Kd=Hd,Xd=hn;function xn(r,i){var o=new Xd(r,i),e=new Kd(o);try{e.parse()}catch(t){throw process.env.NODE_ENV!=="production"&&t.name==="CssSyntaxError"&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return e.root}var So=xn;xn.default=xn,Zd.registerParse(xn);var Me=Ve.isClean,Qd=Ve.my,ev=fu,tv=sn,rv=it,nv=ho,iv=Cu,Nu=mo,ov=So,sv=sr,av={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},uv={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},lv={Once:!0,postcssPlugin:!0,prepare:!0},xt=0;function ur(r){return(typeof r=="undefined"?"undefined":M(r))==="object"&&typeof r.then=="function"}function Lu(r){var i=!1,o=av[r.type];return r.type==="decl"?i=r.prop.toLowerCase():r.type==="atrule"&&(i=r.name.toLowerCase()),i&&r.append?[o,o+"-"+i,xt,o+"Exit",o+"Exit-"+i]:i?[o,o+"-"+i,o+"Exit",o+"Exit-"+i]:r.append?[o,xt,o+"Exit"]:[o,o+"Exit"]}function Du(r){var i;return r.type==="document"?i=["Document",xt,"DocumentExit"]:r.type==="root"?i=["Root",xt,"RootExit"]:i=Lu(r),{eventIndex:0,events:i,iterator:0,node:r,visitorIndex:0,visitors:[]}}function bo(r){return r[Me]=!1,r.nodes&&r.nodes.forEach(function(i){return bo(i)}),r}var Co={},Rt=(function(){function r(o,e,t){var n=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":M(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=bo(e);else if(E(e,r)||E(e,Nu))s=bo(e.root),e.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=e.map);else{var a=ov;t.syntax&&(a=t.syntax.parse),t.parser&&(a=t.parser),a.parse&&(a=a.parse);try{s=a(e,t)}catch(u){this.processed=!0,this.error=u}s&&!s[Qd]&&rv.rebuild(s)}this.result=new Nu(o,s,t),this.helpers=T({},Co,{postcss:Co,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":M(u))==="object"&&u.prepare?T({},u,u.prepare(n.result)):u})}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){var s=n.postcssPlugin,a=n.postcssVersion,u=this.result.processor.version,l=a.split("."),f=u.split(".");(l[0]!==f[0]||parseInt(l[1])>parseInt(f[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(f,c,h){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([f,h])},n=I(this.plugins),s;!(s=n()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":M(a))==="object")for(var u in a){if(!uv[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!lv[u])if(M(a[u])==="object")for(var l in a[u])l==="*"?t(a,u,a[u][l]):t(a,u+"-"+l.toLowerCase(),a[u][l]);else typeof a[u]=="function"&&t(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return kr(function(){var t,n,s,a,u,l,f,c,h,v,d,g;return tt(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],s=e.runOnRoot(n),!ur(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw a=p.sent(),e.handleError(a);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,p.label=7;case 7:if(u[Me])return[3,14];u[Me]=!0,l=[Du(u)],p.label=8;case 8:if(!(l.length>0))return[3,13];if(f=e.visitTick(l),!ur(f))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,f];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),h=l[l.length-1].node,e.handleError(c,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var m,w,S,b,C;return tt(this,function(x){switch(x.label){case 0:m=g.value,w=m[0],S=m[1],e.result.lastPlugin=w,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(b=u.nodes.map(function($){return S($,e.helpers)}),[4,Promise.all(b)]);case 2:return x.sent(),[3,5];case 3:return[4,S(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},d=I(e.listeners.OnceExit),p.label=15;case 15:return(g=d()).done?[3,18]:[5,di(v())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":M(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(s){return e.Once(s,t.helpers)});return ur(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},i.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=tv;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new ev(t,this.result.root,this.result.opts),s=n.generate();return this.result.css=s[0],this.result.map=s[1],this.result},i.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=I(this.plugins),t;!(t=e()).done;){var n=t.value,s=this.runOnRoot(n);if(ur(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Me];)a[Me]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),l;!(l=u()).done;){var f=l.value;this.visitSync(this.listeners.OnceExit,f)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||iv("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this.css},i.visitSync=function(e,t){for(var n=I(e),s;!(s=n()).done;){var a=s.value,u=a[0],l=a[1];this.result.lastPlugin=u;var f=void 0;try{f=l(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(ur(f))throw this.getAsyncError()}},i.visitTick=function(e){var t=e[e.length-1],n=t.node,s=t.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){var a=s[t.visitorIndex],u=a[0],l=a[1];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=u;try{return l(n.toProxy(),this.helpers)}catch(d){throw this.handleError(d,n)}}if(t.iterator!==0){for(var f=t.iterator,c;c=n.nodes[n.indexes[f]];)if(n.indexes[f]+=1,!c[Me]){c[Me]=!0,e.push(Du(c));return}t.iterator=0,delete n.indexes[f]}for(var h=t.events;t.eventIndex<h.length;){var v=h[t.eventIndex];if(t.eventIndex+=1,v===xt){n.nodes&&n.nodes.length&&(n[Me]=!0,t.iterator=n.getIterator());return}else if(this.listeners[v]){t.visitors=this.listeners[v];return}}e.pop()},i.walkSync=function(e){var t=this;e[Me]=!0;for(var n=Lu(e),s=I(n),a;!(a=s()).done;){var u=a.value;if(u===xt)e.nodes&&e.each(function(f){f[Me]||t.walkSync(f)});else{var l=this.listeners[u];if(l&&this.visitSync(l,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},Z(r,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),r})();Rt.registerPostcss=function(r){Co=r};var Fu=Rt;Rt.default=Rt,sv.registerLazyResult(Rt),nv.registerLazyResult(Rt);var fv=fu,cv=sn,hv=Cu,pv=So,dv=mo,Io=(function(){function r(o,e,t){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=t,this._map=void 0;var n,s=cv;this.result=new dv(this._processor,n,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new fv(s,n,this._opts,e);if(u.isMap()){var l=u.generate(),f=l[0],c=l[1];f&&(this.result.css=f),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||hv("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this._css},i.warnings=function(){return[]},Z(r,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=pv;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r})(),vv=Io;Io.default=Io;var mv=vv,gv=Fu,yv=ho,wv=sr,lr=(function(){function r(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var i=r.prototype;return i.normalize=function(e){for(var t=[],n=I(e),s;!(s=n()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":M(a))==="object"&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&a.postcssPlugin)t.push(a);else if(typeof a=="function")t.push(a);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return t},i.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new mv(this,e,t):new gv(this,e,t)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},r})(),Sv=lr;lr.default=lr,wv.registerProcessor(lr),yv.registerProcessor(lr);var bv=ln,Cv=tu,Iv=vn,Ov=yo,xv=hn,Rv=sr,Ev=wo;function fr(r,i){if(Array.isArray(r))return r.map(function(c){return fr(c)});var o=r.inputs,e=et(r,["inputs"]);if(o){i=[];for(var t=I(o),n;!(n=t()).done;){var s=n.value,a=T({},s,{__proto__:xv.prototype});a.map&&(a.map=T({},a.map,{__proto__:Cv.prototype})),i.push(a)}}if(e.nodes&&(e.nodes=r.nodes.map(function(c){return fr(c,i)})),e.source){var u=e.source,l=u.inputId,f=et(u,["inputId"]);e.source=f,l!=null&&(e.source.input=i[l])}if(e.type==="root")return new Rv(e);if(e.type==="decl")return new bv(e);if(e.type==="rule")return new Ev(e);if(e.type==="comment")return new Iv(e);if(e.type==="atrule")return new Ov(e);throw new Error("Unknown node type: "+r.type)}var Av=fr;fr.default=fr;var Mv=Ki,Bu=ln,$v=Fu,kv=it,Oo=Sv,_v=sn,Pv=Av,Uu=ho,Tv=Iu,zu=vn,Wu=yo,Nv=mo,Lv=hn,Dv=So,Fv=ku,ju=wo,Gu=sr,Bv=un;function Y(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Oo(i)}Y.plugin=function(i,o){var e=!1;function t(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(i+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(i+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var l=o.apply(void 0,[].concat(a));return l.postcssPlugin=i,l.postcssVersion=new Oo().version,l}var n;return Object.defineProperty(t,"postcss",{get:function(){return n||(n=t()),n}}),t.process=function(s,a,u){return Y([t(u)]).process(s,a)},t},Y.stringify=_v,Y.parse=Dv,Y.fromJSON=Pv,Y.list=Fv,Y.comment=function(r){return new zu(r)},Y.atRule=function(r){return new Wu(r)},Y.decl=function(r){return new Bu(r)},Y.rule=function(r){return new ju(r)},Y.root=function(r){return new Gu(r)},Y.document=function(r){return new Uu(r)},Y.CssSyntaxError=Mv,Y.Declaration=Bu,Y.Container=kv,Y.Processor=Oo,Y.Document=Uu,Y.Comment=zu,Y.Warning=Tv,Y.AtRule=Wu,Y.Result=Nv,Y.Input=Lv,Y.Rule=ju,Y.Root=Gu,Y.Node=Bv,$v.registerPostcss(Y);var Uv=Y;Y.default=Y;var re=Kp(Uv);re.stringify,re.fromJSON,re.plugin,re.parse,re.list,re.document,re.comment,re.atRule,re.rule,re.decl,re.root,re.CssSyntaxError,re.Declaration,re.Container,re.Processor,re.Document,re.Comment,re.Warning,re.AtRule,re.Result,re.Input,re.Rule,re.Root,re.Node;var zv=(function(){function r(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];Oe(this,"parentElement",null),Oe(this,"parentNode",null),Oe(this,"ownerDocument"),Oe(this,"firstChild",null),Oe(this,"lastChild",null),Oe(this,"previousSibling",null),Oe(this,"nextSibling",null),Oe(this,"ELEMENT_NODE",1),Oe(this,"TEXT_NODE",3),Oe(this,"nodeType"),Oe(this,"nodeName"),Oe(this,"RRNodeType")}var i=r.prototype;return i.contains=function(e){if(E(e,r)){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1},i.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},i.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},i.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},i.toString=function(){return"RRNode"},Z(r,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),r})(),Vu={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Yu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Rn={},Wv=function(){return!!globalThis.Zone};function xo(r){if(Rn[r])return Rn[r];var i=globalThis[r],o=i.prototype,e=r in Vu?Vu[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 Yu?Yu[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&&!Wv())return Rn[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?Rn[r]=l:o}catch(f){return o}}var Ro={};function Ye(r,i,o){var e,t=r+"."+String(o);if(Ro[t])return Ro[t].call(i);var n=xo(r),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(Ro[t]=s,s.call(i)):i[o]}var Eo={};function qu(r,i,o){var e=r+"."+String(o);if(Eo[e])return Eo[e].bind(i);var t=xo(r),n=t[o];return typeof n!="function"?i[o]:(Eo[e]=n,n.bind(i))}function jv(r){return Ye("Node",r,"childNodes")}function Gv(r){return Ye("Node",r,"parentNode")}function Vv(r){return Ye("Node",r,"parentElement")}function Yv(r){return Ye("Node",r,"textContent")}function qv(r,i){return qu("Node",r,"contains")(i)}function Jv(r){return qu("Node",r,"getRootNode")()}function Hv(r){return!r||!("host"in r)?null:Ye("ShadowRoot",r,"host")}function Zv(r){return r.styleSheets}function Kv(r){return!r||!("shadowRoot"in r)?null:Ye("Element",r,"shadowRoot")}function Xv(r,i){return Ye("Element",r,"querySelector")(i)}function Qv(r,i){return Ye("Element",r,"querySelectorAll")(i)}function Ju(){return xo("MutationObserver").constructor}function ot(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 D={childNodes:jv,parentNode:Gv,parentElement:Vv,textContent:Yv,contains:qv,getRootNode:Jv,host:Hv,styleSheets:Zv,shadowRoot:Kv,querySelector:Xv,querySelectorAll:Qv,mutationObserver:Ju,patch:ot};function me(r,i,o){o===void 0&&(o=document);var e={capture:!0,passive:!0};return o.addEventListener(r,i,e),function(){return o.removeEventListener(r,i,e)}}var Et="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",Hu={map:{},getId:function(){return console.error(Et),-1},getNode:function(){return console.error(Et),null},removeNodeFromMap:function(){console.error(Et)},has:function(){return console.error(Et),!1},reset:function(){console.error(Et)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Hu=new Proxy(Hu,{get:function(i,o,e){return o==="map"&&console.error(Et),Reflect.get(i,o,e)}}));function cr(r,i,o){o===void 0&&(o={});var e=null,t=0;return function(){for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];var u=Date.now();!t&&o.leading===!1&&(t=u);var l=i-(u-t),f=this;l<=0||l>i?(e&&(clearTimeout(e),e=null),t=u,r.apply(f,s)):!e&&o.trailing!==!1&&(e=setTimeout(function(){t=o.leading===!1?0:Date.now(),e=null,r.apply(f,s)},l))}}function En(r,i,o,e,t){t===void 0&&(t=window);var n=t.Object.getOwnPropertyDescriptor(r,i);return t.Object.defineProperty(r,i,e?o:{set:function(a){var u=this;setTimeout(function(){o.set.call(u,a)},0),n&&n.set&&n.set.call(this,a)}}),function(){return En(r,i,n||{},!0)}}var An=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(An=function(){return new Date().getTime()});function Zu(r){var i,o,e,t,n=r.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:r.pageXOffset!==void 0?r.pageXOffset:n.documentElement.scrollLeft||(n==null?void 0:n.body)&&((i=D.parentElement(n.body))==null?void 0:i.scrollLeft)||((o=n==null?void 0:n.body)==null?void 0:o.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:r.pageYOffset!==void 0?r.pageYOffset:(n==null?void 0:n.documentElement.scrollTop)||(n==null?void 0:n.body)&&((e=D.parentElement(n.body))==null?void 0:e.scrollTop)||((t=n==null?void 0:n.body)==null?void 0:t.scrollTop)||0}}function Ku(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Xu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Qu(r){if(!r)return null;var i=r.nodeType===r.ELEMENT_NODE?r:D.parentElement(r);return i}function ge(r,i,o,e){if(!r)return!1;var t=Qu(r);if(!t)return!1;try{if(typeof i=="string"){if(t.classList.contains(i)||e&&t.closest("."+i)!==null)return!0}else if(Fr(t,i,e))return!0}catch(n){}return!!(o&&(t.matches(o)||e&&t.closest(o)!==null))}function em(r,i){return i.getId(r)!==-1}function Ao(r,i,o){return r.tagName==="TITLE"&&o.headTitleMutations?!0:i.getId(r)===Zt}function el(r,i){if(Jt(r))return!1;var o=i.getId(r);if(!i.has(o))return!0;var e=D.parentNode(r);return e&&e.nodeType===r.DOCUMENT_NODE?!1:e?el(e,i):!0}function Mo(r){return!!r.changedTouches}function tm(r){r===void 0&&(r=window),"NodeList"in r&&!r.NodeList.prototype.forEach&&(r.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in r&&!r.DOMTokenList.prototype.forEach&&(r.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function tl(r,i){return!!(r.nodeName==="IFRAME"&&i.getMeta(r))}function rl(r,i){return!!(r.nodeName==="LINK"&&r.nodeType===r.ELEMENT_NODE&&r.getAttribute&&r.getAttribute("rel")==="stylesheet"&&i.getMeta(r))}function $o(r){return r?E(r,zv)&&"shadowRoot"in r?!!r.shadowRoot:!!D.shadowRoot(r):!1}var rm=(function(){function r(){O(this,"id",1),O(this,"styleIDMap",new WeakMap),O(this,"idStyleMap",new Map)}var i=r.prototype;return i.getId=function(e){var t;return(t=this.styleIDMap.get(e))!=null?t:-1},i.has=function(e){return this.styleIDMap.has(e)},i.add=function(e,t){if(this.has(e))return this.getId(e);var n;return t===void 0?n=this.id++:n=t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n},i.getStyle=function(e){return this.idStyleMap.get(e)||null},i.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},i.generateId=function(){return this.id++},i.remove=function(e){var t=this.styleIDMap.get(e);return t!==void 0?(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0):!1},r})();function nl(r){var i,o=null;return"getRootNode"in r&&((i=D.getRootNode(r))==null?void 0:i.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&D.host(D.getRootNode(r))&&(o=D.host(D.getRootNode(r))),o}function nm(r){for(var i=r,o;o=nl(i);)i=o;return i}function im(r){var i=r.ownerDocument;if(!i)return!1;var o=nm(r);return D.contains(i,o)}function il(r){var i=r.ownerDocument;return i?D.contains(i,r)||im(r):!1}var F=(function(r){return r[r.DomContentLoaded=0]="DomContentLoaded",r[r.Load=1]="Load",r[r.FullSnapshot=2]="FullSnapshot",r[r.IncrementalSnapshot=3]="IncrementalSnapshot",r[r.Meta=4]="Meta",r[r.Custom=5]="Custom",r[r.Plugin=6]="Plugin",r})(F||{}),P=(function(r){return r[r.Mutation=0]="Mutation",r[r.MouseMove=1]="MouseMove",r[r.MouseInteraction=2]="MouseInteraction",r[r.Scroll=3]="Scroll",r[r.ViewportResize=4]="ViewportResize",r[r.Input=5]="Input",r[r.TouchMove=6]="TouchMove",r[r.MediaInteraction=7]="MediaInteraction",r[r.StyleSheetRule=8]="StyleSheetRule",r[r.CanvasMutation=9]="CanvasMutation",r[r.Font=10]="Font",r[r.Log=11]="Log",r[r.Drag=12]="Drag",r[r.StyleDeclaration=13]="StyleDeclaration",r[r.Selection=14]="Selection",r[r.AdoptedStyleSheet=15]="AdoptedStyleSheet",r[r.CustomElement=16]="CustomElement",r})(P||{}),we=(function(r){return r[r.MouseUp=0]="MouseUp",r[r.MouseDown=1]="MouseDown",r[r.Click=2]="Click",r[r.ContextMenu=3]="ContextMenu",r[r.DblClick=4]="DblClick",r[r.Focus=5]="Focus",r[r.Blur=6]="Blur",r[r.TouchStart=7]="TouchStart",r[r.TouchMove_Departed=8]="TouchMove_Departed",r[r.TouchEnd=9]="TouchEnd",r[r.TouchCancel=10]="TouchCancel",r})(we||{}),De=(function(r){return r[r.Mouse=0]="Mouse",r[r.Pen=1]="Pen",r[r.Touch=2]="Touch",r})(De||{}),At=(function(r){return r[r["2D"]=0]="2D",r[r.WebGL=1]="WebGL",r[r.WebGL2=2]="WebGL2",r})(At||{}),Mt=(function(r){return r[r.Play=0]="Play",r[r.Pause=1]="Pause",r[r.Seeked=2]="Seeked",r[r.VolumeChange=3]="VolumeChange",r[r.RateChange=4]="RateChange",r})(Mt||{}),ol=(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})(ol||{});function sl(r){return"__ln"in r}var om=(function(){function r(){O(this,"length",0),O(this,"head",null),O(this,"tail",null)}var i=r.prototype;return i.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n<e;n++)t=(t==null?void 0:t.next)||null;return t},i.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&sl(e.previousSibling)){var n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&sl(e.nextSibling)&&e.nextSibling.__ln.previous){var s=e.nextSibling.__ln.previous;t.previous=s,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,s&&(s.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++},i.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},r})(),al=function(r,i){return r+"@"+i},sm=(function(){function r(){var o=this;O(this,"frozen",!1),O(this,"locked",!1),O(this,"texts",[]),O(this,"attributes",[]),O(this,"attributeMap",new WeakMap),O(this,"removes",[]),O(this,"mapRemoves",[]),O(this,"movedMap",{}),O(this,"addedSet",new Set),O(this,"movedSet",new Set),O(this,"droppedSet",new Set),O(this,"removesSubTreeCache",new Set),O(this,"mutationCb"),O(this,"blockClass"),O(this,"blockSelector"),O(this,"maskTextClass"),O(this,"maskTextSelector"),O(this,"inlineStylesheet"),O(this,"maskInputOptions"),O(this,"maskTextFn"),O(this,"maskInputFn"),O(this,"keepIframeSrcFn"),O(this,"recordCanvas"),O(this,"inlineImages"),O(this,"slimDOMOptions"),O(this,"dataURLOptions"),O(this,"doc"),O(this,"mirror"),O(this,"iframeManager"),O(this,"stylesheetManager"),O(this,"shadowDomManager"),O(this,"canvasManager"),O(this,"processedNodeManager"),O(this,"unattachedDoc"),O(this,"processMutations",function(e){e.forEach(o.processMutation),o.emit()}),O(this,"emit",function(){if(!(o.frozen||o.locked)){for(var e=[],t=new Set,n=new om,s=function(_){for(var L=_,ie=Zt;ie===Zt;)L=L&&L.nextSibling,ie=L&&o.mirror.getId(L);return ie},a=function(_){var L=D.parentNode(_);if(!(!L||!il(_))){var ie=!1;if(_.nodeType===Node.TEXT_NODE){var z=L.tagName;if(z==="TEXTAREA")return;z==="STYLE"&&o.addedSet.has(L)&&(ie=!0)}var Ce=Jt(L)?o.mirror.getId(nl(_)):o.mirror.getId(L),Se=s(_);if(Ce===-1||Se===-1)return n.addNode(_);var pe=St(_,{doc:o.doc,mirror:o.mirror,blockClass:o.blockClass,blockSelector:o.blockSelector,maskTextClass:o.maskTextClass,maskTextSelector:o.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:o.inlineStylesheet,maskInputOptions:o.maskInputOptions,maskTextFn:o.maskTextFn,maskInputFn:o.maskInputFn,slimDOMOptions:o.slimDOMOptions,dataURLOptions:o.dataURLOptions,recordCanvas:o.recordCanvas,inlineImages:o.inlineImages,onSerialize:function(oe){tl(oe,o.mirror)&&o.iframeManager.addIframe(oe),rl(oe,o.mirror)&&o.stylesheetManager.trackLinkElement(oe),$o(_)&&o.shadowDomManager.addShadowRoot(D.shadowRoot(_),o.doc)},onIframeLoad:function(oe,de){o.iframeManager.attachIframe(oe,de),o.shadowDomManager.observeAttachShadow(oe)},onStylesheetLoad:function(oe,de){o.stylesheetManager.attachLinkElement(oe,de)},cssCaptured:ie});pe&&(e.push({parentId:Ce,nextId:Se,node:pe}),t.add(pe.id))}};o.mapRemoves.length;){var u=o.mapRemoves.shift();if(u.nodeName==="IFRAME")try{o.iframeManager.removeIframe(u)}catch(_){}else o.stylesheetManager.cleanupStylesheetsForRemovedNode(u);o.mirror.removeNodeFromMap(u)}for(var l=I(o.movedSet),f;!(f=l()).done;){var c=f.value;ul(o.removesSubTreeCache,c,o.mirror)&&!o.movedSet.has(D.parentNode(c))||a(c)}for(var h=I(o.addedSet),v;!(v=h()).done;){var d=v.value;!ll(o.droppedSet,d)&&!ul(o.removesSubTreeCache,d,o.mirror)||ll(o.movedSet,d)?a(d):o.droppedSet.add(d)}for(var g=null;n.length;){var p=null;if(g){var m=o.mirror.getId(D.parentNode(g.value)),w=s(g.value);m!==-1&&w!==-1&&(p=g)}if(!p)for(var S=n.tail;S;){var b=S;if(S=S.previous,b){var C=o.mirror.getId(D.parentNode(b.value)),x=s(b.value);if(x===-1)continue;if(C!==-1){p=b;break}else{var $=b.value,R=D.parentNode($);if(R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=D.host(R),N=o.mirror.getId(k);if(N!==-1){p=b;break}}}}}if(!p){for(;n.head;)n.removeNode(n.head.value);break}g=p.previous,n.removeNode(p.value),a(p.value)}var ae={texts:o.texts.map(function(_){var L=_.node,ie=D.parentNode(L);return ie&&ie.tagName==="TEXTAREA"&&o.genTextAreaValueMutation(ie),{id:o.mirror.getId(L),value:_.value}}).filter(function(_){return!t.has(_.id)}).filter(function(_){return o.mirror.has(_.id)}),attributes:o.attributes.map(function(_){var L=_.attributes;if(typeof L.style=="string"){var ie=JSON.stringify(_.styleDiff),z=JSON.stringify(_._unchangedStyles);ie.length<L.style.length&&(ie+z).split("var(").length===L.style.split("var(").length&&(L.style=_.styleDiff)}return{id:o.mirror.getId(_.node),attributes:L}}).filter(function(_){return!t.has(_.id)}).filter(function(_){return o.mirror.has(_.id)}),removes:o.removes,adds:e};!ae.texts.length&&!ae.attributes.length&&!ae.removes.length&&!ae.adds.length||(o.texts=[],o.attributes=[],o.attributeMap=new WeakMap,o.removes=[],o.addedSet=new Set,o.movedSet=new Set,o.droppedSet=new Set,o.removesSubTreeCache=new Set,o.movedMap={},o.mutationCb(ae))}}),O(this,"genTextAreaValueMutation",function(e){var t=o.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(t),o.attributeMap.set(e,t));var n=Array.from(D.childNodes(e),function(s){return D.textContent(s)||""}).join("");t.attributes.value=Tr({element:e,maskInputOptions:o.maskInputOptions,tagName:e.tagName,type:Nr(e),value:n,maskInputFn:o.maskInputFn})}),O(this,"processMutation",function(e){if(!Ao(e.target,o.mirror,o.slimDOMOptions))switch(e.type){case"characterData":{var t=D.textContent(e.target);!ge(e.target,o.blockClass,o.blockSelector,!1)&&t!==e.oldValue&&o.texts.push({value:Zs(e.target,o.maskTextClass,o.maskTextSelector,!0)&&t?o.maskTextFn?o.maskTextFn(t,Qu(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{var n=e.target,s=e.attributeName,a=e.target.getAttribute(s);if(s==="value"){var u=Nr(n);a=Tr({element:n,maskInputOptions:o.maskInputOptions,tagName:n.tagName,type:u,value:a,maskInputFn:o.maskInputFn})}if(ge(e.target,o.blockClass,o.blockSelector,!1)||a===e.oldValue)return;var l=o.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&s==="src"&&!o.keepIframeSrcFn(a))if(!n.contentDocument)s="rr_src";else return;if(l||(l={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(l),o.attributeMap.set(e.target,l)),s==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Hs(n.tagName,s))if(l.attributes[s]=Js(o.doc,rt(n.tagName),rt(s),a),s==="style"){if(!o.unattachedDoc)try{o.unattachedDoc=document.implementation.createHTMLDocument()}catch(S){o.unattachedDoc=o.doc}var f=o.unattachedDoc.createElement("span");e.oldValue&&f.setAttribute("style",e.oldValue);for(var c=I(Array.from(n.style)),h;!(h=c()).done;){var v=h.value,d=n.style.getPropertyValue(v),g=n.style.getPropertyPriority(v);d!==f.style.getPropertyValue(v)||g!==f.style.getPropertyPriority(v)?g===""?l.styleDiff[v]=d:l.styleDiff[v]=[d,g]:l._unchangedStyles[v]=[d,g]}for(var p=I(Array.from(f.style)),m;!(m=p()).done;){var w=m.value;n.style.getPropertyValue(w)===""&&(l.styleDiff[w]=!1)}}else s==="open"&&n.tagName==="DIALOG"&&(n.matches("dialog:modal")?l.attributes.rr_open_mode="modal":l.attributes.rr_open_mode="non-modal");break}case"childList":{if(ge(e.target,o.blockClass,o.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){o.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(S){return o.genAdds(S,e.target)}),e.removedNodes.forEach(function(S){var b=o.mirror.getId(S),C=Jt(e.target)?o.mirror.getId(D.host(e.target)):o.mirror.getId(e.target);ge(e.target,o.blockClass,o.blockSelector,!1)||Ao(S,o.mirror,o.slimDOMOptions)||!em(S,o.mirror)||(o.addedSet.has(S)?(ko(o.addedSet,S),o.droppedSet.add(S)):o.addedSet.has(e.target)&&b===-1||el(e.target,o.mirror)||(o.movedSet.has(S)&&o.movedMap[al(b,C)]?ko(o.movedSet,S):(o.removes.push({parentId:C,id:b,isShadow:Jt(e.target)&&Ht(e.target)?!0:void 0}),am(S,o.removesSubTreeCache))),o.mapRemoves.push(S))});break}}}),O(this,"genAdds",function(e,t){if(!o.processedNodeManager.inOtherBuffer(e,o)&&!(o.addedSet.has(e)||o.movedSet.has(e))){if(o.mirror.hasNode(e)){if(Ao(e,o.mirror,o.slimDOMOptions))return;o.movedSet.add(e);var n=null;t&&o.mirror.hasNode(t)&&(n=o.mirror.getId(t)),n&&n!==-1&&(o.movedMap[al(o.mirror.getId(e),n)]=!0)}else o.addedSet.add(e),o.droppedSet.delete(e);ge(e,o.blockClass,o.blockSelector,!1)||(D.childNodes(e).forEach(function(s){return o.genAdds(s)}),$o(e)&&D.childNodes(D.shadowRoot(e)).forEach(function(s){o.processedNodeManager.add(s,o),o.genAdds(s,e)}))}})}var i=r.prototype;return i.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(n){t[n]=e[n]})},i.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},i.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},i.isFrozen=function(){return this.frozen},i.lock=function(){this.locked=!0,this.canvasManager.lock()},i.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},i.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},i.getDoc=function(){return this.doc},r})();function ko(r,i){r.delete(i),D.childNodes(i).forEach(function(o){return ko(r,o)})}function am(r,i){for(var o=[r];o.length;){var e=o.pop();i.has(e)||(i.add(e),D.childNodes(e).forEach(function(t){return o.push(t)}))}}function ul(r,i,o){return r.size===0?!1:um(r,i)}function um(r,i,o){var e=D.parentNode(i);return e?r.has(e):!1}function ll(r,i){return r.size===0?!1:fl(r,i)}function fl(r,i){var o=D.parentNode(i);return o?r.has(o)?!0:fl(r,o):!1}var hr;function lm(r){hr=r}function fm(){hr=void 0}var U=function(r){if(!hr)return r;var i=function(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];try{return r.apply(void 0,[].concat(e))}catch(n){if(hr&&hr(n)===!0)return;throw n}};return i},$e=[];function pr(r){try{if("composedPath"in r){var i=r.composedPath();if(i.length)return i[0]}else if("path"in r&&r.path.length)return r.path[0]}catch(o){}return r&&r.target}function cl(r,i){var o=new sm;$e.push(o),o.init(r);var e=new(Ju())(U(o.processMutations.bind(o)));return e.observe(i,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function cm(r){for(var i=$e.length-1;i>=0;i--){var o=$e[i];o.getDoc()===r&&$e.splice(i,1)}}function hm(r){var i=r.mousemoveCb,o=r.sampling,e=r.doc,t=r.mirror;if(o.mousemove===!1)return function(){};var n=typeof o.mousemove=="number"?o.mousemove:50,s=typeof o.mousemoveCallback=="number"?o.mousemoveCallback:500,a=[],u,l=cr(U(function(h){var v=Date.now()-u;i(a.map(function(d){return d.timeOffset-=v,d}),h),a=[],u=null}),s),f=U(cr(U(function(h){var v=pr(h),d=Mo(h)?h.changedTouches[0]:h,g=d.clientX,p=d.clientY;u||(u=An()),a.push({x:g,y:p,id:t.getId(v),timeOffset:An()-u}),l(typeof DragEvent!="undefined"&&E(h,DragEvent)?P.Drag:E(h,MouseEvent)?P.MouseMove:P.TouchMove)}),n,{trailing:!1})),c=[me("mousemove",f,e),me("touchmove",f,e),me("drag",f,e)];return U(function(){c.forEach(function(h){return h()})})}function pm(r){var i=r.mouseInteractionCb,o=r.doc,e=r.mirror,t=r.blockClass,n=r.blockSelector,s=r.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],l=null,f=function(c){return function(h){var v=pr(h);if(!ge(v,t,n,!0)){var d=null,g=c;if("pointerType"in h){switch(h.pointerType){case"mouse":d=De.Mouse;break;case"touch":d=De.Touch;break;case"pen":d=De.Pen;break}d===De.Touch?we[c]===we.MouseDown?g="TouchStart":we[c]===we.MouseUp&&(g="TouchEnd"):De.Pen}else Mo(h)&&(d=De.Touch);d!==null?(l=d,(g.startsWith("Touch")&&d===De.Touch||g.startsWith("Mouse")&&d===De.Mouse)&&(d=null)):we[c]===we.Click&&(d=l,l=null);var p=Mo(h)?h.changedTouches[0]:h;if(p){var m=e.getId(v),w=p.clientX,S=p.clientY;U(i)(T({type:we[g],id:m,x:w,y:S},d!==null&&{pointerType:d}))}}}};return Object.keys(we).filter(function(c){return Number.isNaN(Number(c))&&!c.endsWith("_Departed")&&a[c]!==!1}).forEach(function(c){var h=rt(c),v=f(c);if(window.PointerEvent)switch(we[c]){case we.MouseDown:case we.MouseUp:h=h.replace("mouse","pointer");break;case we.TouchStart:case we.TouchEnd:return}u.push(me(h,v,o))}),U(function(){u.forEach(function(c){return c()})})}function hl(r){var i=r.scrollCb,o=r.doc,e=r.mirror,t=r.blockClass,n=r.blockSelector,s=r.sampling,a=U(cr(U(function(u){var l=pr(u);if(!(!l||ge(l,t,n,!0))){var f=e.getId(l);if(l===o&&o.defaultView){var c=Zu(o.defaultView);i({id:f,x:c.left,y:c.top})}else i({id:f,x:l.scrollLeft,y:l.scrollTop})}}),s.scroll||100));return me("scroll",a,o)}function dm(r,i){var o=r.viewportResizeCb,e=i.win,t=-1,n=-1,s=U(cr(U(function(){var a=Ku(),u=Xu();(t!==a||n!==u)&&(o({width:Number(u),height:Number(a)}),t=a,n=u)}),200));return me("resize",s,e)}var vm=["INPUT","TEXTAREA","SELECT"],pl=new WeakMap;function mm(r){var i=r.inputCb,o=r.doc,e=r.mirror,t=r.blockClass,n=r.blockSelector,s=r.ignoreClass,a=r.ignoreSelector,u=r.maskInputOptions,l=r.maskInputFn,f=r.sampling,c=r.userTriggeredOnInput;function h(b){var C=pr(b),x=b.isTrusted,$=C&&C.tagName;if(C&&$==="OPTION"&&(C=D.parentElement(C)),!(!C||!$||vm.indexOf($)<0||ge(C,t,n,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var R=C.value,k=!1,N=Nr(C)||"";N==="radio"||N==="checkbox"?k=C.checked:(u[$.toLowerCase()]||u[N])&&(R=Tr({element:C,maskInputOptions:u,tagName:$,type:N,value:R,maskInputFn:l})),v(C,c?{text:R,isChecked:k,userTriggered:x}:{text:R,isChecked:k});var ae=C.name;N==="radio"&&ae&&k&&o.querySelectorAll('input[type="radio"][name="'+ae+'"]').forEach(function(_){if(_!==C){var L=_.value;v(_,c?{text:L,isChecked:!k,userTriggered:!1}:{text:L,isChecked:!k})}})}}function v(b,C){var x=pl.get(b);if(!x||x.text!==C.text||x.isChecked!==C.isChecked){pl.set(b,C);var $=e.getId(b);U(i)(T({},C,{id:$}))}}var d=f.input==="last"?["change"]:["input","change"],g=d.map(function(b){return me(b,U(h),o)}),p=o.defaultView;if(!p)return function(){g.forEach(function(b){return b()})};var m=p.Object.getOwnPropertyDescriptor(p.HTMLInputElement.prototype,"value"),w=[[p.HTMLInputElement.prototype,"value"],[p.HTMLInputElement.prototype,"checked"],[p.HTMLSelectElement.prototype,"value"],[p.HTMLTextAreaElement.prototype,"value"],[p.HTMLSelectElement.prototype,"selectedIndex"],[p.HTMLOptionElement.prototype,"selected"]];if(m&&m.set){var S;(S=g).push.apply(S,[].concat(w.map(function(b){return En(b[0],b[1],{set:function(){U(h)({target:this,isTrusted:!1})}},!1,p)})))}return U(function(){g.forEach(function(b){return b()})})}function Mn(r){var i=[];function o(e,t){if($n("CSSGroupingRule")&&E(e.parentRule,CSSGroupingRule)||$n("CSSMediaRule")&&E(e.parentRule,CSSMediaRule)||$n("CSSSupportsRule")&&E(e.parentRule,CSSSupportsRule)||$n("CSSConditionRule")&&E(e.parentRule,CSSConditionRule)){var n=Array.from(e.parentRule.cssRules),s=n.indexOf(e);t.unshift(s)}else if(e.parentStyleSheet){var a=Array.from(e.parentStyleSheet.cssRules),u=a.indexOf(e);t.unshift(u)}return t}return o(r,i)}function qe(r,i,o){var e,t;return r?(r.ownerNode?e=i.getId(r.ownerNode):t=o.getId(r),{styleId:t,id:e}):{}}function gm(r,i){var o=r.styleSheetRuleCb,e=r.mirror,t=r.stylesheetManager,n=i.win;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return function(){};var s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:U(function(h,v,d){var g=d[0],p=d[1],m=qe(v,e,t.styleMirror),w=m.id,S=m.styleId;return(w&&w!==-1||S&&S!==-1)&&o({id:w,styleId:S,adds:[{rule:g,index:p}]}),h.apply(v,d)})}),n.CSSStyleSheet.prototype.addRule=function(h,v,d){d===void 0&&(d=this.cssRules.length);var g=h+" { "+v+" }";return n.CSSStyleSheet.prototype.insertRule.apply(this,[g,d])};var a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:U(function(h,v,d){var g=d[0],p=qe(v,e,t.styleMirror),m=p.id,w=p.styleId;return(m&&m!==-1||w&&w!==-1)&&o({id:m,styleId:w,removes:[{index:g}]}),h.apply(v,d)})}),n.CSSStyleSheet.prototype.removeRule=function(h){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};var u;n.CSSStyleSheet.prototype.replace&&(u=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:U(function(h,v,d){var g=d[0],p=qe(v,e,t.styleMirror),m=p.id,w=p.styleId;return(m&&m!==-1||w&&w!==-1)&&o({id:m,styleId:w,replace:g}),h.apply(v,d)})}));var l;n.CSSStyleSheet.prototype.replaceSync&&(l=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:U(function(h,v,d){var g=d[0],p=qe(v,e,t.styleMirror),m=p.id,w=p.styleId;return(m&&m!==-1||w&&w!==-1)&&o({id:m,styleId:w,replaceSync:g}),h.apply(v,d)})}));var f={};kn("CSSGroupingRule")?f.CSSGroupingRule=n.CSSGroupingRule:(kn("CSSMediaRule")&&(f.CSSMediaRule=n.CSSMediaRule),kn("CSSConditionRule")&&(f.CSSConditionRule=n.CSSConditionRule),kn("CSSSupportsRule")&&(f.CSSSupportsRule=n.CSSSupportsRule));var c={};return Object.entries(f).forEach(function(h){var v=h[0],d=h[1];c[v]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(c[v].insertRule,{apply:U(function(g,p,m){var w=m[0],S=m[1],b=qe(p.parentStyleSheet,e,t.styleMirror),C=b.id,x=b.styleId;return(C&&C!==-1||x&&x!==-1)&&o({id:C,styleId:x,adds:[{rule:w,index:[].concat(Mn(p),[S||0])}]}),g.apply(p,m)})}),d.prototype.deleteRule=new Proxy(c[v].deleteRule,{apply:U(function(g,p,m){var w=m[0],S=qe(p.parentStyleSheet,e,t.styleMirror),b=S.id,C=S.styleId;return(b&&b!==-1||C&&C!==-1)&&o({id:b,styleId:C,removes:[{index:[].concat(Mn(p),[w])}]}),g.apply(p,m)})})}),U(function(){n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=a,u&&(n.CSSStyleSheet.prototype.replace=u),l&&(n.CSSStyleSheet.prototype.replaceSync=l),Object.entries(f).forEach(function(h){var v=h[0],d=h[1];d.prototype.insertRule=c[v].insertRule,d.prototype.deleteRule=c[v].deleteRule})})}function dl(r,i){var o=r.mirror,e=r.stylesheetManager,t,n,s,a=null;i.nodeName==="#document"?a=o.getId(i):a=o.getId(D.host(i));var u=i.nodeName==="#document"?(t=i.defaultView)==null?void 0:t.Document:(s=(n=i.ownerDocument)==null?void 0:n.defaultView)==null?void 0:s.ShadowRoot,l=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!l?function(){}:(Object.defineProperty(i,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var c;return(c=l.get)==null?void 0:c.call(this)},set:function(c){var h,v=(h=l.set)==null?void 0:h.call(this,c);if(a!==null&&a!==-1)try{e.adoptStyleSheets(c,a)}catch(d){}return v}}),U(function(){Object.defineProperty(i,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function ym(r,i){var o=r.styleDeclarationCb,e=r.mirror,t=r.ignoreCSSAttributes,n=r.stylesheetManager,s=i.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:U(function(l,f,c){var h,v=c[0],d=c[1],g=c[2];if(t.has(v))return a.apply(f,[v,d,g]);var p=qe((h=f.parentRule)==null?void 0:h.parentStyleSheet,e,n.styleMirror),m=p.id,w=p.styleId;return(m&&m!==-1||w&&w!==-1)&&o({id:m,styleId:w,set:{property:v,value:d,priority:g},index:Mn(f.parentRule)}),l.apply(f,c)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:U(function(l,f,c){var h,v=c[0];if(t.has(v))return u.apply(f,[v]);var d=qe((h=f.parentRule)==null?void 0:h.parentStyleSheet,e,n.styleMirror),g=d.id,p=d.styleId;return(g&&g!==-1||p&&p!==-1)&&o({id:g,styleId:p,remove:{property:v},index:Mn(f.parentRule)}),l.apply(f,c)})}),U(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function wm(r){var i=r.mediaInteractionCb,o=r.blockClass,e=r.blockSelector,t=r.mirror,n=r.sampling,s=r.doc,a=U(function(l){return cr(U(function(f){var c=pr(f);if(!(!c||ge(c,o,e,!0))){var h=c.currentTime,v=c.volume,d=c.muted,g=c.playbackRate,p=c.loop;i({type:l,id:t.getId(c),currentTime:h,volume:v,muted:d,playbackRate:g,loop:p})}}),n.media||500)}),u=[me("play",a(Mt.Play),s),me("pause",a(Mt.Pause),s),me("seeked",a(Mt.Seeked),s),me("volumechange",a(Mt.VolumeChange),s),me("ratechange",a(Mt.RateChange),s)];return U(function(){u.forEach(function(l){return l()})})}function Sm(r){var i=r.fontCb,o=r.doc,e=o.defaultView;if(!e)return function(){};var t=[],n=new WeakMap,s=e.FontFace;e.FontFace=function(l,f,c){var h=new s(l,f,c);return n.set(h,{family:l,buffer:typeof f!="string",descriptors:c,fontSource:typeof f=="string"?f:JSON.stringify(Array.from(new Uint8Array(f)))}),h};var a=ot(o.fonts,"add",function(u){return function(l){return setTimeout(U(function(){var f=n.get(l);f&&(i(f),n.delete(l))}),0),u.apply(this,[l])}});return t.push(function(){e.FontFace=s}),t.push(a),U(function(){t.forEach(function(u){return u()})})}function bm(r){var i=r.doc,o=r.mirror,e=r.blockClass,t=r.blockSelector,n=r.selectionCb,s=!0,a=U(function(){var u=i.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var l=[],f=u.rangeCount||0,c=0;c<f;c++){var h=u.getRangeAt(c),v=h.startContainer,d=h.startOffset,g=h.endContainer,p=h.endOffset,m=ge(v,e,t,!0)||ge(g,e,t,!0);m||l.push({start:o.getId(v),startOffset:d,end:o.getId(g),endOffset:p})}n({ranges:l})}});return a(),me("selectionchange",a)}function Cm(r){var i=r.doc,o=r.customElementCb,e=i.defaultView;if(!e||!e.customElements)return function(){};var t=ot(e.customElements,"define",function(n){return function(s,a,u){try{o({define:{name:s}})}catch(l){console.warn("Custom element callback failed for "+s)}return n.apply(this,[s,a,u])}});return t}function Im(r,i){var o=r.mutationCb,e=r.mousemoveCb,t=r.mouseInteractionCb,n=r.scrollCb,s=r.viewportResizeCb,a=r.inputCb,u=r.mediaInteractionCb,l=r.styleSheetRuleCb,f=r.styleDeclarationCb,c=r.canvasMutationCb,h=r.fontCb,v=r.selectionCb,d=r.customElementCb;r.mutationCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.mutation){var w;(w=i).mutation.apply(w,[].concat(p))}o.apply(void 0,[].concat(p))},r.mousemoveCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.mousemove){var w;(w=i).mousemove.apply(w,[].concat(p))}e.apply(void 0,[].concat(p))},r.mouseInteractionCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.mouseInteraction){var w;(w=i).mouseInteraction.apply(w,[].concat(p))}t.apply(void 0,[].concat(p))},r.scrollCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.scroll){var w;(w=i).scroll.apply(w,[].concat(p))}n.apply(void 0,[].concat(p))},r.viewportResizeCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.viewportResize){var w;(w=i).viewportResize.apply(w,[].concat(p))}s.apply(void 0,[].concat(p))},r.inputCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.input){var w;(w=i).input.apply(w,[].concat(p))}a.apply(void 0,[].concat(p))},r.mediaInteractionCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.mediaInteaction){var w;(w=i).mediaInteaction.apply(w,[].concat(p))}u.apply(void 0,[].concat(p))},r.styleSheetRuleCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.styleSheetRule){var w;(w=i).styleSheetRule.apply(w,[].concat(p))}l.apply(void 0,[].concat(p))},r.styleDeclarationCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.styleDeclaration){var w;(w=i).styleDeclaration.apply(w,[].concat(p))}f.apply(void 0,[].concat(p))},r.canvasMutationCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.canvasMutation){var w;(w=i).canvasMutation.apply(w,[].concat(p))}c.apply(void 0,[].concat(p))},r.fontCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.font){var w;(w=i).font.apply(w,[].concat(p))}h.apply(void 0,[].concat(p))},r.selectionCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.selection){var w;(w=i).selection.apply(w,[].concat(p))}v.apply(void 0,[].concat(p))},r.customElementCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.customElement){var w;(w=i).customElement.apply(w,[].concat(p))}d.apply(void 0,[].concat(p))}}function Om(r,i){i===void 0&&(i={});var o=r.doc.defaultView;if(!o)return function(){};Im(r,i);var e;r.recordDOM&&(e=cl(r,r.doc));var t=hm(r),n=pm(r),s=hl(r),a=dm(r,{win:o}),u=mm(r),l=wm(r),f=function(){},c=function(){},h=function(){},v=function(){};r.recordDOM&&(f=gm(r,{win:o}),c=dl(r,r.doc),h=ym(r,{win:o}),r.collectFonts&&(v=Sm(r)));for(var d=bm(r),g=Cm(r),p=[],m=I(r.plugins),w;!(w=m()).done;){var S=w.value;p.push(S.observer(S.callback,o,S.options))}return U(function(){$e.forEach(function(b){return b.reset()}),e==null||e.disconnect(),t(),n(),s(),a(),u(),l(),f(),c(),h(),v(),d(),g(),p.forEach(function(b){return b()})})}function $n(r){return typeof window[r]!="undefined"}function kn(r){return!!(typeof window[r]!="undefined"&&window[r].prototype&&"insertRule"in window[r].prototype&&"deleteRule"in window[r].prototype)}for(var vl=(function(){function r(o){O(this,"iframeIdToRemoteIdMap",new WeakMap),O(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=o}var i=r.prototype;return i.getId=function(e,t,n,s){var a=n||this.getIdToRemoteIdMap(e),u=s||this.getRemoteIdToIdMap(e),l=a.get(t);return l||(l=this.generateIdFn(),a.set(t,l),u.set(l,t)),l},i.getIds=function(e,t){var n=this,s=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return t.map(function(u){return n.getId(e,u,s,a)})},i.getRemoteId=function(e,t,n){var s=n||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;var a=s.get(t);return a||-1},i.getRemoteIds=function(e,t){var n=this,s=this.getRemoteIdToIdMap(e);return t.map(function(a){return n.getRemoteId(e,a,s)})},i.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},i.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},i.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},r})(),xm=(function(){function r(o){O(this,"iframes",new WeakMap),O(this,"crossOriginIframeMap",new WeakMap),O(this,"crossOriginIframeMirror",new vl(Vs)),O(this,"crossOriginIframeStyleMirror"),O(this,"crossOriginIframeRootIdMap",new WeakMap),O(this,"iframeContentDocumentMap",new WeakMap),O(this,"iframeObserverCleanupMap",new WeakMap),O(this,"mirror"),O(this,"mutationCb"),O(this,"wrappedEmit"),O(this,"loadListener"),O(this,"stylesheetManager"),O(this,"recordCrossOriginIframes"),this.mutationCb=o.mutationCb,this.wrappedEmit=o.wrappedEmit,this.stylesheetManager=o.stylesheetManager,this.recordCrossOriginIframes=o.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new vl(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=o.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var i=r.prototype;return i.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},i.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},i.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},i.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},i.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var n=this.iframeObserverCleanupMap.get(e);if(n){try{n()}catch(s){}this.iframeObserverCleanupMap.delete(e)}},i.addLoadListener=function(e){this.loadListener=e},i.attachIframe=function(e,t){var n,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&((n=e.contentWindow)==null||n.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},i.handleMessage=function(e){var t=e;if(!(t.data.type!=="rrweb"||t.origin!==t.data.origin)){var n=e.source;if(n){var s=this.crossOriginIframeMap.get(e.source);if(s){var a=this.transformCrossOriginEvent(s,t.data.event);a&&this.wrappedEmit(a,t.data.isCheckout)}}}},i.transformCrossOriginEvent=function(e,t){var n=this,s;switch(t.type){case F.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var a=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(t.data.node,a),{timestamp:t.timestamp,type:F.IncrementalSnapshot,data:{source:P.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case F.Meta:case F.Load:case F.DomContentLoaded:return!1;case F.Plugin:return t;case F.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case F.IncrementalSnapshot:switch(t.data.source){case P.Mutation:return t.data.adds.forEach(function(u){n.replaceIds(u,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(u.node,e);var l=n.crossOriginIframeRootIdMap.get(e);l&&n.patchRootIdOnNode(u.node,l)}),t.data.removes.forEach(function(u){n.replaceIds(u,e,["parentId","id"])}),t.data.attributes.forEach(function(u){n.replaceIds(u,e,["id"])}),t.data.texts.forEach(function(u){n.replaceIds(u,e,["id"])}),t;case P.Drag:case P.TouchMove:case P.MouseMove:return t.data.positions.forEach(function(u){n.replaceIds(u,e,["id"])}),t;case P.ViewportResize:return!1;case P.MediaInteraction:case P.MouseInteraction:case P.Scroll:case P.CanvasMutation:case P.Input:return this.replaceIds(t.data,e,["id"]),t;case P.StyleSheetRule:case P.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case P.Font:return t;case P.Selection:return t.data.ranges.forEach(function(u){n.replaceIds(u,e,["start","end"])}),t;case P.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(s=t.data.styles)==null||s.forEach(function(u){n.replaceStyleIds(u,e,["styleId"])}),t}}return!1},i.replace=function(e,t,n,s){for(var a=I(s),u;!(u=a()).done;){var l=u.value;!Array.isArray(t[l])&&typeof t[l]!="number"||(Array.isArray(t[l])?t[l]=e.getIds(n,t[l]):t[l]=e.getId(n,t[l]))}return t},i.replaceIds=function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)},i.replaceStyleIds=function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)},i.replaceIdOnNode=function(e,t){var n=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(s){n.replaceIdOnNode(s,t)})},i.patchRootIdOnNode=function(e,t){var n=this;e.type!==ol.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(s){n.patchRootIdOnNode(s,t)})},r})(),Rm=(function(){function r(o){O(this,"shadowDoms",new WeakSet),O(this,"mutationCb"),O(this,"scrollCb"),O(this,"bypassOptions"),O(this,"mirror"),O(this,"restoreHandlers",[]),this.mutationCb=o.mutationCb,this.scrollCb=o.scrollCb,this.bypassOptions=o.bypassOptions,this.mirror=o.mirror,this.init()}var i=r.prototype;return i.init=function(){this.reset(),this.patchAttachShadow(Element,document)},i.addShadowRoot=function(e,t){var n=this;if(Ht(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=cl(T({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(hl(T({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(D.host(e))),n.restoreHandlers.push(dl({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e))},0)}},i.observeAttachShadow=function(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},i.patchAttachShadow=function(e,t){var n=this;this.restoreHandlers.push(ot(e.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),l=D.shadowRoot(this);return l&&il(this)&&n.addShadowRoot(l,t),u}}))},i.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},r})(),$t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Em=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),_n=0;_n<$t.length;_n++)Em[$t.charCodeAt(_n)]=_n;var Am=function(i){var o=new Uint8Array(i),e,t=o.length,n="";for(e=0;e<t;e+=3)n+=$t[o[e]>>2],n+=$t[(o[e]&3)<<4|o[e+1]>>4],n+=$t[(o[e+1]&15)<<2|o[e+2]>>6],n+=$t[o[e+2]&63];return t%3===2?n=n.substring(0,n.length-1)+"=":t%3===1&&(n=n.substring(0,n.length-2)+"=="),n},ml=new Map;function Mm(r,i){var o=ml.get(r);return o||(o=new Map,ml.set(r,o)),o.has(i)||o.set(i,[]),o.get(i)}var gl=function(r,i,o){if(!(!r||!(wl(r,i)||(typeof r=="undefined"?"undefined":M(r))==="object"))){var e=r.constructor.name,t=Mm(o,e),n=t.indexOf(r);return n===-1&&(n=t.length,t.push(r)),n}};function Pn(r,i,o){if(E(r,Array))return r.map(function(d){return Pn(d,i,o)});if(r===null)return r;if(E(r,Float32Array)||E(r,Float64Array)||E(r,Int32Array)||E(r,Uint32Array)||E(r,Uint8Array)||E(r,Uint16Array)||E(r,Int16Array)||E(r,Int8Array)||E(r,Uint8ClampedArray)){var e=r.constructor.name;return{rr_type:e,args:[Object.values(r)]}}else if(E(r,ArrayBuffer)){var t=r.constructor.name,n=Am(r);return{rr_type:t,base64:n}}else if(E(r,DataView)){var s=r.constructor.name;return{rr_type:s,args:[Pn(r.buffer,i,o),r.byteOffset,r.byteLength]}}else if(E(r,HTMLImageElement)){var a=r.constructor.name,u=r.src;return{rr_type:a,src:u}}else if(E(r,HTMLCanvasElement)){var l="HTMLImageElement",f=r.toDataURL();return{rr_type:l,src:f}}else if(E(r,ImageData)){var c=r.constructor.name;return{rr_type:c,args:[Pn(r.data,i,o),r.width,r.height]}}else if(wl(r,i)||(typeof r=="undefined"?"undefined":M(r))==="object"){var h=r.constructor.name,v=gl(r,i,o);return{rr_type:h,index:v}}return r}var yl=function(r,i,o){return r.map(function(e){return Pn(e,i,o)})},wl=function(r,i){var o=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=o.filter(function(t){return typeof i[t]=="function"});return!!e.find(function(t){return E(r,i[t])})};function $m(r,i,o,e){for(var t=function(){var l=u.value;try{if(typeof i.CanvasRenderingContext2D.prototype[l]!="function")return"continue";var f=ot(i.CanvasRenderingContext2D.prototype,l,function(h){return function(){for(var v=this,d=arguments.length,g=new Array(d),p=0;p<d;p++)g[p]=arguments[p];return ge(this.canvas,o,e,!0)||setTimeout(function(){var m=yl(g,i,v);r(v.canvas,{type:At["2D"],property:l,args:m})},0),h.apply(this,g)}});n.push(f)}catch(h){var c=En(i.CanvasRenderingContext2D.prototype,l,{set:function(d){r(this.canvas,{type:At["2D"],property:l,args:[d],setter:!0})}});n.push(c)}},n=[],s=Object.getOwnPropertyNames(i.CanvasRenderingContext2D.prototype),a=I(s),u;!(u=a()).done;)t();return function(){n.forEach(function(l){return l()})}}function km(r){return r==="experimental-webgl"?"webgl":r}function Sl(r,i,o,e){var t=[];try{var n=ot(r.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,l=new Array(u>1?u-1:0),f=1;f<u;f++)l[f-1]=arguments[f];if(!ge(this,i,o,!0)){var c=km(a);if("__context"in this||(this.__context=c),e&&["webgl","webgl2"].includes(c))if(l[0]&&M(l[0])==="object"){var h=l[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([a],l))}});t.push(n)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){t.forEach(function(s){return s()})}}function bl(r,i,o,e,t,n){for(var s=function(){var c=f.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))return"continue";try{if(typeof r[c]!="function")return"continue";var h=ot(r,c,function(d){return function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];var w=d.apply(this,p);if(gl(w,n,this),"tagName"in this.canvas&&!ge(this.canvas,e,t,!0)){var S=yl(p,n,this),b={type:i,property:c,args:S};o(this.canvas,b)}return w}});a.push(h)}catch(d){var v=En(r,c,{set:function(p){o(this.canvas,{type:i,property:c,args:[p],setter:!0})}});a.push(v)}},a=[],u=Object.getOwnPropertyNames(r),l=I(u),f;!(f=l()).done;)s();return a}function _m(r,i,o,e){var t,n=[];if((t=n).push.apply(t,[].concat(bl(i.WebGLRenderingContext.prototype,At.WebGL,r,o,e,i))),typeof i.WebGL2RenderingContext!="undefined"){var s;(s=n).push.apply(s,[].concat(bl(i.WebGL2RenderingContext.prototype,At.WebGL2,r,o,e,i)))}return function(){n.forEach(function(a){return a()})}}var Cl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Pm=function(r){return Uint8Array.from(atob(r),function(i){return i.charCodeAt(0)})},Il=typeof window!="undefined"&&window.Blob&&new Blob([Pm(Cl)],{type:"text/javascript;charset=utf-8"});function Tm(r){var i;try{if(i=Il&&(window.URL||window.webkitURL).createObjectURL(Il),!i)throw"";var o=new Worker(i,{name:r==null?void 0:r.name});return o.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(i)}),o}catch(e){return new Worker("data:text/javascript;base64,"+Cl,{name:r==null?void 0:r.name})}finally{i&&(window.URL||window.webkitURL).revokeObjectURL(i)}}var Nm=(function(){function r(o){var e=this;O(this,"pendingCanvasMutations",new Map),O(this,"rafStamps",{latestId:0,invokeId:null}),O(this,"mirror"),O(this,"mutationCb"),O(this,"resetObservers"),O(this,"frozen",!1),O(this,"locked",!1),O(this,"processMutation",function(c,h){var v=e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId;(v||!e.rafStamps.invokeId)&&(e.rafStamps.invokeId=e.rafStamps.latestId),e.pendingCanvasMutations.has(c)||e.pendingCanvasMutations.set(c,[]),e.pendingCanvasMutations.get(c).push(h)});var t=o.sampling,n=t===void 0?"all":t,s=o.win,a=o.blockClass,u=o.blockSelector,l=o.recordCanvas,f=o.dataURLOptions;this.mutationCb=o.mutationCb,this.mirror=o.mirror,l&&n==="all"&&this.initCanvasMutationObserver(s,a,u),l&&typeof n=="number"&&this.initCanvasFPSObserver(n,s,a,u,{dataURLOptions:f})}var i=r.prototype;return i.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},i.freeze=function(){this.frozen=!0},i.unfreeze=function(){this.frozen=!1},i.lock=function(){this.locked=!0},i.unlock=function(){this.locked=!1},i.initCanvasFPSObserver=function(e,t,n,s,a){var u=this,l=Sl(t,n,s,!0),f=new Map,c=new Tm;c.onmessage=function(m){var w=m.data.id;if(f.set(w,!1),"base64"in m.data){var S=m.data,b=S.base64,C=S.type,x=S.width,$=S.height;u.mutationCb({id:w,type:At["2D"],commands:[{property:"clearRect",args:[0,0,x,$]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:b}],type:C}]},0,0]}]})}};var h=1e3/e,v=0,d,g=function(){var m=[];return t.document.querySelectorAll("canvas").forEach(function(w){ge(w,n,s,!0)||m.push(w)}),m},p=function(m){if(v&&m-v<h){d=requestAnimationFrame(p);return}v=m;var w=u;g().forEach(kr(function(S){var b,C,x,$;return tt(this,function(R){switch(R.label){case 0:return C=w.mirror.getId(S),f.get(C)?[2]:S.width===0||S.height===0?[2]:(f.set(C,!0),["webgl","webgl2"].includes(S.__context)&&(x=S.getContext(S.__context),((b=x==null?void 0:x.getContextAttributes())==null?void 0:b.preserveDrawingBuffer)===!1&&x.clear(x.COLOR_BUFFER_BIT)),[4,createImageBitmap(S)]);case 1:return $=R.sent(),c.postMessage({id:C,bitmap:$,width:S.width,height:S.height,dataURLOptions:a.dataURLOptions},[$]),[2]}})})),d=requestAnimationFrame(p)};d=requestAnimationFrame(p),this.resetObservers=function(){l(),cancelAnimationFrame(d)}},i.initCanvasMutationObserver=function(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=Sl(e,t,n,!1),a=$m(this.processMutation.bind(this),e,t,n),u=_m(this.processMutation.bind(this),e,t,n);this.resetObservers=function(){s(),a(),u()}},i.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},i.startRAFTimestamping=function(){var e=this,t=function(n){e.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)},i.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,n){var s=e.mirror.getId(n);e.flushPendingCanvasMutationFor(n,s)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},i.flushPendingCanvasMutationFor=function(e,t){if(!(this.frozen||this.locked)){var n=this.pendingCanvasMutations.get(e);if(!(!n||t===-1)){var s=n.map(function(u){u.type;var l=et(u,["type"]);return l}),a=n[0].type;this.mutationCb({id:t,type:a,commands:s}),this.pendingCanvasMutations.delete(e)}}},r})(),Lm=(function(){function r(o){O(this,"trackedLinkElements",new WeakSet),O(this,"mutationCb"),O(this,"adoptedStyleSheetCb"),O(this,"styleMirror",new rm),this.mutationCb=o.mutationCb,this.adoptedStyleSheetCb=o.adoptedStyleSheetCb}var i=r.prototype;return i.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},i.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},i.adoptStyleSheets=function(e,t){var n,s=function(){var c=f.value,h=void 0;n.styleMirror.has(c)?h=n.styleMirror.getId(c):(h=n.styleMirror.add(c),u.push({styleId:h,rules:Array.from(c.rules||CSSRule,function(v,d){return{rule:zs(v,c.href),index:d}})})),a.styleIds.push(h)};if(e.length!==0){for(var a={id:t,styleIds:[]},u=[],l=I(e),f;!(f=l()).done;)n=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},i.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},i.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var n=e;if(n.adoptedStyleSheets)for(var s=I(n.adoptedStyleSheets),a;!(a=s()).done;){var u=a.value;this.styleMirror.remove(u)}}if(e.nodeName==="STYLE"){var l=e;l.sheet&&this.styleMirror.remove(l.sheet)}if(e.nodeName==="LINK"&&e.rel==="stylesheet"){var f=e;f.sheet&&this.styleMirror.remove(f.sheet)}e.childNodes&&e.childNodes.forEach(function(c){t.cleanupStylesheetsForRemovedNode(c)})}catch(c){}},i.trackStylesheetInLinkElement=function(e){},r})(),Dm=(function(){function r(){O(this,"nodeMap",new WeakMap),O(this,"active",!1)}var i=r.prototype;return i.inOtherBuffer=function(e,t){var n=this.nodeMap.get(e);return n&&Array.from(n).some(function(s){return s!==t})},i.add=function(e,t){var n=this;this.active||(this.active=!0,requestAnimationFrame(function(){n.nodeMap=new WeakMap,n.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},i.destroy=function(){},r})(),se,Tn,_o,Nn=!1;try{if(Array.from([1],function(r){return r*2})[0]!==2){var Po=document.createElement("iframe");document.body.appendChild(Po),Array.from=((Ns=Po.contentWindow)==null?void 0:Ns.Array.from)||Array.from,document.body.removeChild(Po)}}catch(r){console.debug("Unable to override Array.from",r)}var xe=Tc();function Je(r){r===void 0&&(r={});var i=r.emit,o=r.checkoutEveryNms,e=r.checkoutEveryNth,t=r.blockClass,n=t===void 0?"rr-block":t,s=r.blockSelector,a=s===void 0?null:s,u=r.ignoreClass,l=u===void 0?"rr-ignore":u,f=r.ignoreSelector,c=f===void 0?null:f,h=r.maskTextClass,v=h===void 0?"rr-mask":h,d=r.maskTextSelector,g=d===void 0?null:d,p=r.inlineStylesheet,m=p===void 0?!0:p,w=r.maskAllInputs,S=r.maskInputOptions,b=r.slimDOMOptions,C=r.maskInputFn,x=r.maskTextFn,$=r.hooks,R=r.packFn,k=r.sampling,N=k===void 0?{}:k,ae=r.dataURLOptions,_=ae===void 0?{}:ae,L=r.mousemoveWait,ie=r.recordDOM,z=ie===void 0?!0:ie,Ce=r.recordCanvas,Se=Ce===void 0?!1:Ce,pe=r.recordCrossOriginIframes,oe=pe===void 0?!1:pe,de=r.recordAfter,lt=de===void 0?r.recordAfter==="DOMContentLoaded"?r.recordAfter:"load":de,Te=r.userTriggeredOnInput,zt=Te===void 0?!1:Te,Ie=r.collectFonts,ft=Ie===void 0?!1:Ie,j=r.inlineImages,ct=j===void 0?!1:j,ht=r.plugins,Wt=r.keepIframeSrcFn,Ar=Wt===void 0?function(){return!1}:Wt,Mr=r.ignoreCSSAttributes,Es=Mr===void 0?new Set([]):Mr,ci=r.errorHandler;lm(ci);var Qe=oe?window.parent===window:!0,pt=!1;if(!Qe)try{window.parent.document&&(pt=!1)}catch(G){pt=!0}if(Qe&&!i)throw new Error("emit function is required");if(!Qe&&!pt)return function(){};L!==void 0&&N.mousemove===void 0&&(N.mousemove=L),xe.reset();var jt=w===!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}:S!==void 0?S:{password:!0},$r=b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:b==="all",headMetaDescKeywords:b==="all",headTitleMutations:b==="all"}:b||{};tm();var Gt,dt=0,ze=function(G){for(var ye=I(ht||[]),A;!(A=ye()).done;){var H=A.value;H.eventProcessor&&(G=H.eventProcessor(G))}return R&&!pt&&(G=R(G)),G};se=function(G,ye){var A,H=G;if(H.timestamp=An(),(A=$e[0])!=null&&A.isFrozen()&&H.type!==F.FullSnapshot&&!(H.type===F.IncrementalSnapshot&&H.data.source===P.Mutation)&&$e.forEach(function(Fw){return Fw.unfreeze()}),Qe)i==null||i(ze(H),ye);else if(pt){var Vt={type:"rrweb",event:ze(H),origin:window.location.origin,isCheckout:ye};window.parent.postMessage(Vt,"*")}if(H.type===F.FullSnapshot)Gt=H,dt=0;else if(H.type===F.IncrementalSnapshot){if(H.data.source===P.Mutation&&H.data.isAttachIframe)return;dt++;var $s=e&&dt>=e,Dw=o&&H.timestamp-Gt.timestamp>o;($s||Dw)&&Tn(!0)}};for(var vt=function(G){se({type:F.IncrementalSnapshot,data:T({source:P.Mutation},G)})},rc=function(G){return se({type:F.IncrementalSnapshot,data:T({source:P.Scroll},G)})},nc=function(G){return se({type:F.IncrementalSnapshot,data:T({source:P.CanvasMutation},G)})},Nw=function(G){return se({type:F.IncrementalSnapshot,data:T({source:P.AdoptedStyleSheet},G)})},mt=new Lm({mutationCb:vt,adoptedStyleSheetCb:Nw}),We=new xm({mirror:xe,mutationCb:vt,stylesheetManager:mt,recordCrossOriginIframes:oe,wrappedEmit:se}),Lw=I(ht||[]),ic;!(ic=Lw()).done;){var oc=ic.value;oc.getMirror&&oc.getMirror({nodeMirror:xe,crossOriginIframeMirror:We.crossOriginIframeMirror,crossOriginIframeStyleMirror:We.crossOriginIframeStyleMirror})}var As=new Dm;_o=new Nm({recordCanvas:Se,mutationCb:nc,win:window,blockClass:n,blockSelector:a,mirror:xe,sampling:N.canvas,dataURLOptions:_});var hi=new Rm({mutationCb:vt,scrollCb:rc,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:v,maskTextSelector:g,inlineStylesheet:m,maskInputOptions:jt,dataURLOptions:_,maskTextFn:x,maskInputFn:C,recordCanvas:Se,inlineImages:ct,sampling:N,slimDOMOptions:$r,iframeManager:We,stylesheetManager:mt,canvasManager:_o,keepIframeSrcFn:Ar,processedNodeManager:As},mirror:xe});Tn=function(G){if(G===void 0&&(G=!1),!!z){se({type:F.Meta,data:{href:window.location.href,width:Xu(),height:Ku()}},G),mt.reset(),hi.init(),$e.forEach(function(A){return A.lock()});var ye=ih(document,{mirror:xe,blockClass:n,blockSelector:a,maskTextClass:v,maskTextSelector:g,inlineStylesheet:m,maskAllInputs:jt,maskTextFn:x,maskInputFn:C,slimDOM:$r,dataURLOptions:_,recordCanvas:Se,inlineImages:ct,onSerialize:function(A){tl(A,xe)&&We.addIframe(A),rl(A,xe)&&mt.trackLinkElement(A),$o(A)&&hi.addShadowRoot(D.shadowRoot(A),document)},onIframeLoad:function(A,H){We.attachIframe(A,H),hi.observeAttachShadow(A)},onStylesheetLoad:function(A,H){mt.attachLinkElement(A,H)},keepIframeSrcFn:Ar});if(!ye)return console.warn("Failed to snapshot the document");se({type:F.FullSnapshot,data:{node:ye,initialOffset:Zu(window)}},G),$e.forEach(function(A){return A.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&mt.adoptStyleSheets(document.adoptedStyleSheets,xe.getId(document))}};try{var gt=[],sc=function(G){var ye;return U(Om)({mutationCb:vt,mousemoveCb:function(A,H){return se({type:F.IncrementalSnapshot,data:{source:H,positions:A}})},mouseInteractionCb:function(A){return se({type:F.IncrementalSnapshot,data:T({source:P.MouseInteraction},A)})},scrollCb:rc,viewportResizeCb:function(A){return se({type:F.IncrementalSnapshot,data:T({source:P.ViewportResize},A)})},inputCb:function(A){return se({type:F.IncrementalSnapshot,data:T({source:P.Input},A)})},mediaInteractionCb:function(A){return se({type:F.IncrementalSnapshot,data:T({source:P.MediaInteraction},A)})},styleSheetRuleCb:function(A){return se({type:F.IncrementalSnapshot,data:T({source:P.StyleSheetRule},A)})},styleDeclarationCb:function(A){return se({type:F.IncrementalSnapshot,data:T({source:P.StyleDeclaration},A)})},canvasMutationCb:nc,fontCb:function(A){return se({type:F.IncrementalSnapshot,data:T({source:P.Font},A)})},selectionCb:function(A){se({type:F.IncrementalSnapshot,data:T({source:P.Selection},A)})},customElementCb:function(A){se({type:F.IncrementalSnapshot,data:T({source:P.CustomElement},A)})},blockClass:n,ignoreClass:l,ignoreSelector:c,maskTextClass:v,maskTextSelector:g,maskInputOptions:jt,inlineStylesheet:m,sampling:N,recordDOM:z,recordCanvas:Se,inlineImages:ct,userTriggeredOnInput:zt,collectFonts:ft,doc:G,maskInputFn:C,maskTextFn:x,keepIframeSrcFn:Ar,blockSelector:a,slimDOMOptions:$r,dataURLOptions:_,mirror:xe,iframeManager:We,stylesheetManager:mt,shadowDomManager:hi,processedNodeManager:As,canvasManager:_o,ignoreCSSAttributes:Es,plugins:((ye=ht==null?void 0:ht.filter(function(A){return A.observer}))==null?void 0:ye.map(function(A){return{observer:A.observer,options:A.options,callback:function(H){return se({type:F.Plugin,data:{plugin:A.name,payload:H}})}}}))||[]},$)};We.addLoadListener(function(G){try{var ye=G.contentDocument,A=sc(ye);gt.push(A);var H=We.getObserverCleanup(G);We.setObserverCleanup(G,function(){if(H)try{H()}catch($s){}try{A();var Vt=gt.indexOf(A);Vt!==-1&&gt.splice(Vt,1),cm(ye)}catch($s){}})}catch(Vt){console.warn(Vt)}});var Ms=function(){Tn(),gt.push(sc(document)),Nn=!0};return document.readyState==="interactive"||document.readyState==="complete"?Ms():(gt.push(me("DOMContentLoaded",function(){se({type:F.DomContentLoaded,data:{}}),lt==="DOMContentLoaded"&&Ms()})),gt.push(me("load",function(){se({type:F.Load,data:{}}),lt==="load"&&Ms()},window))),function(){gt.forEach(function(G){try{G()}catch(A){var ye=String(A).toLowerCase();ye.includes("cross-origin")||console.warn(A)}}),As.destroy(),Nn=!1,fm()}}catch(G){console.warn(G)}}Je.addCustomEvent=function(r,i){if(!Nn)throw new Error("please add custom event after start recording");se({type:F.Custom,data:{tag:r,payload:i}})},Je.freezePage=function(){$e.forEach(function(r){return r.freeze()})},Je.takeFullSnapshot=function(r){if(!Nn)throw new Error("please take full snapshot after start recording");Tn(r)},Je.mirror=xe;var Ol;(function(r){r[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped"})(Ol||(Ol={})),Je.addCustomEvent,Je.freezePage,Je.takeFullSnapshot;var xl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Rl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ln={},Fm=function(){return!!globalThis.Zone};function To(r){if(Ln[r])return Ln[r];var i=globalThis[r],o=i.prototype,e=r in xl?xl[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 Rl?Rl[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&&!Fm())return Ln[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?Ln[r]=l:o}catch(f){return o}}var No={};function He(r,i,o){var e,t=r+"."+String(o);if(No[t])return No[t].call(i);var n=To(r),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(No[t]=s,s.call(i)):i[o]}var Lo={};function El(r,i,o){var e=r+"."+String(o);if(Lo[e])return Lo[e].bind(i);var t=To(r),n=t[o];return typeof n!="function"?i[o]:(Lo[e]=n,n.bind(i))}function Bm(r){return He("Node",r,"childNodes")}function Um(r){return He("Node",r,"parentNode")}function zm(r){return He("Node",r,"parentElement")}function Wm(r){return He("Node",r,"textContent")}function jm(r,i){return El("Node",r,"contains")(i)}function Gm(r){return El("Node",r,"getRootNode")()}function Vm(r){return!r||!("host"in r)?null:He("ShadowRoot",r,"host")}function Ym(r){return r.styleSheets}function qm(r){return!r||!("shadowRoot"in r)?null:He("Element",r,"shadowRoot")}function Jm(r,i){return He("Element",r,"querySelector")(i)}function Hm(r,i){return He("Element",r,"querySelectorAll")(i)}function Zm(){return To("MutationObserver").constructor}function Km(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 Al={childNodes:Bm,parentNode:Um,parentElement:zm,textContent:Wm,contains:jm,getRootNode:Gm,host:Vm,styleSheets:Ym,shadowRoot:qm,querySelector:Jm,querySelectorAll:Hm,mutationObserver:Zm,patch:Km};function Do(r,i,o){if(!r)return!1;if(r.nodeType!==r.ELEMENT_NODE)return Do(Al.parentNode(r),i);for(var e=r.classList.length;e--;){var t=r.classList[e];if(i.test(t))return!0}return Do(Al.parentNode(r),i)}function Xm(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Qm(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 Fo={exports:{}},Q=String,Ml=function(){return{isColorSupported:!1,reset:Q,bold:Q,dim:Q,italic:Q,underline:Q,inverse:Q,hidden:Q,strikethrough:Q,black:Q,red:Q,green:Q,yellow:Q,blue:Q,magenta:Q,cyan:Q,white:Q,gray:Q,bgBlack:Q,bgRed:Q,bgGreen:Q,bgYellow:Q,bgBlue:Q,bgMagenta:Q,bgCyan:Q,bgWhite:Q}};Fo.exports=Ml(),Fo.exports.createColors=Ml;var eg=Fo.exports,tg={},rg=Object.freeze(Object.defineProperty({__proto__:null,default:tg},Symbol.toStringTag,{value:"Module"})),fe=Qm(rg),$l=eg,kl=fe,Bo=(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=$l.isColorSupported),kl&&t&&(s=kl(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=$l.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)),Uo=Bo;Bo.default=Bo;var Ze={};Ze.isClean=Symbol("isClean"),Ze.my=Symbol("my");var _l={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function ng(r){return r[0].toUpperCase()+r.slice(1)}var zo=(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 _l[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"+ng(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=_l[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})(),Pl=zo;zo.default=zo;var ig=Pl;function Wo(r,i){var o=new ig(i);o.stringify(r)}var Dn=Wo;Wo.default=Wo;var Fn=Ze.isClean,og=Ze.my,sg=Uo,ag=Pl,ug=Dn;function jo(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 jo(s,o)}):(n==="object"&&t!==null&&(t=jo(t)),o[e]=t)}return o}var Go=(function(){function r(o){o===void 0&&(o={}),this.raws={},this[Fn]=!1,this[og]=!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=jo(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 sg(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[Fn]){this[Fn]=!1;for(var e=this;e=e.parent;)e[Fn]=!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 ag;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=ug),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})(),Bn=Go;Go.default=Go;var lg=Bn,Vo=(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})(lg),Un=Vo;Vo.default=Vo;var fg="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",cg=function(r){r===void 0&&(r=21);for(var i="",o=r;o--;)i+=fg[Math.random()*64|0];return i},hg={nanoid:cg},Tl=fe.SourceMapConsumer,Nl=fe.SourceMapGenerator,pg=fe.existsSync,dg=fe.readFileSync,Yo=fe.dirname,vg=fe.join;function mg(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var qo=(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=Yo(this.mapFile)),n&&(this.text=n)}}var i=r.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new Tl(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 mg(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=Yo(e),pg(e))return this.mapFile=e,dg(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,Tl))return Nl.fromSourceMap(t).toString();if(E(t,Nl))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=vg(Yo(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})(),Ll=qo;qo.default=qo;var gg=fe.SourceMapConsumer,yg=fe.SourceMapGenerator,Dl=fe.fileURLToPath,zn=fe.pathToFileURL,Jo=fe.isAbsolute,Ho=fe.resolve,wg=hg.nanoid,Zo=fe,Fl=Uo,Sg=Ll,Ko=Symbol("fromOffsetCache"),bg=!!(gg&&yg),Bl=!!(Ho&&Jo),Wn=(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&&(!Bl||/^\w+:\/\//.test(e.from)||Jo(e.from)?this.file=e.from:this.file=Ho(e.from)),Bl&&bg){var t=new Sg(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 "+wg(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 Fl(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 Fl(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&&(zn&&(a.input.url=zn(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var t,n;if(this[Ko])n=this[Ko];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[Ko]=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:Ho(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;Jo(u.source)?f=zn(u.source):f=new URL(u.source,this.map.consumer().sourceRoot||zn(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(Dl)c.file=Dl(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})(),jn=Wn;Wn.default=Wn,Zo&&Zo.registerInput&&Zo.registerInput(Wn);var Ul=fe.SourceMapConsumer,Gn=fe.SourceMapGenerator,Vn=fe.dirname,zl=fe.relative,Wl=fe.resolve,jl=fe.sep,Gl=fe.pathToFileURL,Cg=jn,Ig=!!(Ul&&Gn),Og=!!(Vn&&Wl&&zl&&jl),xg=(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||Vn(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Ul(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(),Og&&Ig&&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=Gn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Gn({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 Gn({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?Vn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Vn(Wl(n,this.mapOpts.annotation)));var s=zl(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 t=new Cg(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!t[a]){t[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 t=this.memoizedFileURLs.get(e);if(t)return t;if(Gl){var n=Gl(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 t=this.memoizedURLs.get(e);if(t)return t;jl==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},r})(),Vl=xg,Rg=Bn,Xo=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="comment",e}return i})(Rg),Yn=Xo;Xo.default=Xo;var Yl=Ze.isClean,ql=Ze.my,Jl=Un,Hl=Yn,Eg=Bn,Zl,Qo,es,Kl;function Xl(r){return r.map(function(i){return i.nodes&&(i.nodes=Xl(i.nodes)),delete i.source,i})}function Ql(r){if(r[Yl]=!1,r.proxyOf.nodes)for(var i=I(r.proxyOf.nodes),o;!(o=i()).done;){var e=o.value;Ql(e)}}var Fe=(function(r){ee(i,r);function i(){return r.apply(this,arguments)||this}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(var a=I(n),u;!(u=a()).done;)for(var l=u.value,f=this.normalize(l,this.last),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(t){if(r.prototype.cleanRaws.call(this,t),this.nodes)for(var n=I(this.nodes),s;!(s=n()).done;){var a=s.value;a.cleanRaws(t)}},o.each=function(t){if(this.proxyOf.nodes){for(var n=this.getIterator(),s,a;this.indexes[n]<this.proxyOf.nodes.length&&(s=this.indexes[n],a=t(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}},o.every=function(t){return this.nodes.every(t)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t},o.getProxyProcessor=function(){return{get:function(n,s){return s==="proxyOf"?n:n[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];var f;return(f=n)[s].apply(f,[].concat(u.map(function(c){return typeof c=="function"?function(h,v){return c(h.toProxy(),v)}:c})))}:s==="every"||s==="some"?function(a){return n[s](function(u){for(var l=arguments.length,f=new Array(l>1?l-1:0),c=1;c<l;c++)f[c-1]=arguments[c];return a.apply(void 0,[].concat([u.toProxy()],f))})}:s==="root"?function(){return n.root().toProxy()}:s==="nodes"?n.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?n[s].toProxy():n[s]:n[s]},set:function(n,s,a){return n[s]===a||(n[s]=a,(s==="name"||s==="params"||s==="selector")&&n.markDirty()),!0}}},o.index=function(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))},o.insertAfter=function(t,n){var s=this.index(t),a=this.normalize(n,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(var u=I(a),l;!(l=u()).done;){var f=l.value;this.proxyOf.nodes.splice(s+1,0,f)}var c;for(var h in this.indexes)c=this.indexes[h],s<c&&(this.indexes[h]=c+a.length);return this.markDirty(),this},o.insertBefore=function(t,n){var s=this.index(t),a=s===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[s],a).reverse();s=this.index(t);for(var l=I(u),f;!(f=l()).done;){var c=f.value;this.proxyOf.nodes.splice(s,0,c)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(t,n){var s=this;if(typeof t=="string")t=Xl(Zl(t).nodes);else if(typeof t=="undefined")t=[];else if(Array.isArray(t)){t=t.slice(0);for(var a=I(t),u;!(u=a()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(var f=I(t),c;!(c=f()).done;){var h=c.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new Jl(t)]}else if(t.selector)t=[new Qo(t)];else if(t.name)t=[new es(t)];else if(t.text)t=[new Hl(t)];else throw new Error("Unknown node type in node creation");var v=t.map(function(d){return d[ql]||i.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Yl]&&Ql(d),typeof d.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(d.raws.before=n.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return v},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n=n.reverse();for(var a=I(n),u;!(u=a()).done;){for(var l=u.value,f=this.normalize(l,this.first,"prepend").reverse(),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+f.length}return this.markDirty(),this},o.push=function(t){return t.parent=this,this.proxyOf.nodes.push(t),this},o.removeAll=function(){for(var t=I(this.proxyOf.nodes),n;!(n=t()).done;){var s=n.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=t&&(this.indexes[s]=n-1);return this.markDirty(),this},o.replaceValues=function(t,n,s){return s||(s=n,n={}),this.walkDecls(function(a){n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,s))}),this.markDirty(),this},o.some=function(t){return this.nodes.some(t)},o.walk=function(t){return this.each(function(n,s){var a;try{a=t(n,s)}catch(u){throw n.addToError(u)}return a!==!1&&n.walk&&(a=n.walk(t)),a})},o.walkAtRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&t.test(s.name))return n(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="atrule")return n(s,a)}))},o.walkComments=function(t){return this.walk(function(n,s){if(n.type==="comment")return t(n,s)})},o.walkDecls=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&t.test(s.prop))return n(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="decl")return n(s,a)}))},o.walkRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&t.test(s.selector))return n(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="rule")return n(s,a)}))},Z(i,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),i})(Eg);Fe.registerParse=function(r){Zl=r},Fe.registerRule=function(r){Qo=r},Fe.registerAtRule=function(r){es=r},Fe.registerRoot=function(r){Kl=r};var st=Fe;Fe.default=Fe,Fe.rebuild=function(r){r.type==="atrule"?Object.setPrototypeOf(r,es.prototype):r.type==="rule"?Object.setPrototypeOf(r,Qo.prototype):r.type==="decl"?Object.setPrototypeOf(r,Jl.prototype):r.type==="comment"?Object.setPrototypeOf(r,Hl.prototype):r.type==="root"&&Object.setPrototypeOf(r,Kl.prototype),r[ql]=!0,r.nodes&&r.nodes.forEach(function(i){Fe.rebuild(i)})};var Ag=st,ef,tf,dr=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,T({type:"document"},e))||this,t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.toResult=function(t){t===void 0&&(t={});var n=new ef(new tf,this,t);return n.stringify()},i})(Ag);dr.registerLazyResult=function(r){ef=r},dr.registerProcessor=function(r){tf=r};var ts=dr;dr.default=dr;var rf={},nf=function(i){rf[i]||(rf[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},rs=(function(){function r(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(var n in e)this[n]=e[n]}var i=r.prototype;return i.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},r})(),of=rs;rs.default=rs;var Mg=of,ns=(function(){function r(o,e,t){this.processor=o,this.messages=[],this.root=e,this.opts=t,this.css=void 0,this.map=void 0}var i=r.prototype;return i.toString=function(){return this.css},i.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Mg(e,t);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Z(r,[{key:"content",get:function(){return this.css}}]),r})(),is=ns;ns.default=ns;var os=39,sf=34,qn=92,af=47,Jn=10,vr=32,Hn=12,Zn=9,Kn=13,$g=91,kg=93,_g=40,Pg=41,Tg=123,Ng=125,Lg=59,Dg=42,Fg=58,Bg=64,Xn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ug=/.[\r\n"'(/\\]/,uf=/[\da-f]/i,zg=function(i,o){o===void 0&&(o={});var e=i.css.valueOf(),t=o.ignoreErrors,n,s,a,u,l,f,c,h,v,d,g=e.length,p=0,m=[],w=[];function S(){return p}function b(R){throw i.error("Unclosed "+R,p)}function C(){return w.length===0&&p>=g}function x(R){if(w.length)return w.pop();if(!(p>=g)){var k=R?R.ignoreUnclosed:!1;switch(n=e.charCodeAt(p),n){case Jn:case vr:case Zn:case Kn:case Hn:{s=p;do s+=1,n=e.charCodeAt(s);while(n===vr||n===Jn||n===Zn||n===Kn||n===Hn);d=["space",e.slice(p,s)],p=s-1;break}case $g:case kg:case Tg:case Ng:case Fg:case Lg:case Pg:{var N=String.fromCharCode(n);d=[N,N,p];break}case _g:{if(h=m.length?m.pop()[1]:"",v=e.charCodeAt(p+1),h==="url"&&v!==os&&v!==sf&&v!==vr&&v!==Jn&&v!==Zn&&v!==Hn&&v!==Kn){s=p;do{if(f=!1,s=e.indexOf(")",s+1),s===-1)if(t||k){s=p;break}else b("bracket");for(c=s;e.charCodeAt(c-1)===qn;)c-=1,f=!f}while(f);d=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),u=e.slice(p,s+1),s===-1||Ug.test(u)?d=["(","(",p]:(d=["brackets",u,p,s],p=s);break}case os:case sf:{a=n===os?"'":'"',s=p;do{if(f=!1,s=e.indexOf(a,s+1),s===-1)if(t||k){s=p+1;break}else b("string");for(c=s;e.charCodeAt(c-1)===qn;)c-=1,f=!f}while(f);d=["string",e.slice(p,s+1),p,s],p=s;break}case Bg:{Xn.lastIndex=p+1,Xn.test(e),Xn.lastIndex===0?s=e.length-1:s=Xn.lastIndex-2,d=["at-word",e.slice(p,s+1),p,s],p=s;break}case qn:{for(s=p,l=!0;e.charCodeAt(s+1)===qn;)s+=1,l=!l;if(n=e.charCodeAt(s+1),l&&n!==af&&n!==vr&&n!==Jn&&n!==Zn&&n!==Kn&&n!==Hn&&(s+=1,uf.test(e.charAt(s)))){for(;uf.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===vr&&(s+=1)}d=["word",e.slice(p,s+1),p,s],p=s;break}default:{n===af&&e.charCodeAt(p+1)===Dg?(s=e.indexOf("*/",p+2)+1,s===0&&(t||k?s=e.length:b("comment")),d=["comment",e.slice(p,s+1),p,s],p=s):(Qn.lastIndex=p+1,Qn.test(e),Qn.lastIndex===0?s=e.length-1:s=Qn.lastIndex-2,d=["word",e.slice(p,s+1),p,s],m.push(d),p=s);break}}return p++,d}}function $(R){w.push(R)}return{back:$,endOfFile:C,nextToken:x,position:S}},lf=st,ei=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="atrule",t}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.append).call.apply(a,[].concat([this],n))},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.prepend).call.apply(a,[].concat([this],n))},i})(lf),ss=ei;ei.default=ei,lf.registerAtRule(ei);var ff=st,cf,hf,kt=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="root",t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.normalize=function(t,n,s){var a=r.prototype.normalize.call(this,t);if(n){if(s==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var u=I(a),l;!(l=u()).done;){var f=l.value;f.raws.before=n.raws.before}}return a},o.removeChild=function(t,n){var s=this.index(t);return!n&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),r.prototype.removeChild.call(this,t)},o.toResult=function(t){t===void 0&&(t={});var n=new cf(new hf,this,t);return n.stringify()},i})(ff);kt.registerLazyResult=function(r){cf=r},kt.registerProcessor=function(r){hf=r};var mr=kt;kt.default=kt,ff.registerRoot(kt);var gr={comma:function(i){return gr.split(i,[","],!0)},space:function(i){var o=[" ","\n"," "];return gr.split(i,o)},split:function(i,o,e){for(var t=[],n="",s=!1,a=0,u=!1,l="",f=!1,c=I(i),h;!(h=c()).done;){var v=h.value;f?f=!1:v==="\\"?f=!0:u?v===l&&(u=!1):v==='"'||v==="'"?(u=!0,l=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=v}return(e||n!=="")&&t.push(n.trim()),t}},pf=gr;gr.default=gr;var df=st,Wg=pf,ti=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return Z(i,[{key:"selectors",get:function(){return Wg.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(df),as=ti;ti.default=ti,df.registerRule(ti);var jg=Un,Gg=zg,Vg=Yn,Yg=ss,qg=mr,vf=as,mf={empty:!0,space:!0};function Jg(r){for(var i=r.length-1;i>=0;i--){var o=r[i],e=o[3]||o[2];if(e)return e}}var Hg=(function(){function r(o){this.input=o,this.root=new qg,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var i=r.prototype;return i.atrule=function(e){var t=new Yg;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,s,a,u=!1,l=!1,f=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(f.length>0){for(a=f.length-1,s=f[a];s&&s[0]==="space";)s=f[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(t.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(t,"params",f),u&&(e=f[f.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)},i.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,s,a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},i.colon=function(e){for(var t=0,n,s,a,u=I(e.entries()),l;!(l=u()).done;){var f=l.value,c=f[0],h=f[1];if(n=h,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return c}a=n}return!1},i.comment=function(e){var t=new Vg;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}},i.createTokenizer=function(){this.tokenizer=Gg(this.input)},i.decl=function(e,t){var n=new jg;this.init(n,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||Jg(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var l=[],f;e.length&&(f=e[0][0],!(f!=="space"&&f!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;var h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),d="",g=c;g>0;g--){var p=v[g][0];if(d.trim().indexOf("!")===0&&p!=="space")break;d=v.pop()[1]+d}d.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=d,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});m&&(n.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(n,"value",l.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var t=new vf;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},i.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},i.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},i.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var t=!1,n=null,s=!1,a=null,u=[],l=e[1].startsWith("--"),f=[],c=e;c;){if(n=c[0],f.push(c),n==="("||n==="[")a||(a=c),u.push(n==="("?")":"]");else if(l&&s&&n==="{")a||(a=c),u.push("}");else if(u.length===0)if(n===";")if(s){this.decl(f,l);return}else break;else if(n==="{"){this.rule(f);return}else if(n==="}"){this.tokenizer.back(f.pop()),t=!0;break}else n===":"&&(s=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),u.length>0&&this.unclosedBracket(a),t&&s){if(!l)for(;f.length&&(c=f[f.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,l)}else this.unknownWord(f)},i.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},i.precheckMissedSemicolon=function(){},i.raw=function(e,t,n,s){for(var a,u,l=n.length,f="",c=!0,h,v,d=0;d<l;d+=1)a=n[d],u=a[0],u==="space"&&d===l-1&&!s?c=!1:u==="comment"?(v=n[d-1]?n[d-1][0]:"empty",h=n[d+1]?n[d+1][0]:"empty",!mf[v]&&!mf[h]?f.slice(-1)===","?c=!1:f+=a[1]:c=!1):f+=a[1];if(!c){var g=n.reduce(function(p,m){return p+m[1]},"");e.raws[t]={raw:g,value:f}}e[t]=f},i.rule=function(e){e.pop();var t=new vf;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},i.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,t){for(var n="",s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},r})(),Zg=Hg,Kg=st,Xg=Zg,Qg=jn;function ri(r,i){var o=new Qg(r,i),e=new Xg(o);try{e.parse()}catch(t){throw process.env.NODE_ENV!=="production"&&t.name==="CssSyntaxError"&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return e.root}var us=ri;ri.default=ri,Kg.registerParse(ri);var ke=Ze.isClean,ey=Ze.my,ty=Vl,ry=Dn,ny=st,iy=ts,oy=nf,gf=is,sy=us,ay=mr,uy={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ly={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},fy={Once:!0,postcssPlugin:!0,prepare:!0},_t=0;function yr(r){return(typeof r=="undefined"?"undefined":M(r))==="object"&&typeof r.then=="function"}function yf(r){var i=!1,o=uy[r.type];return r.type==="decl"?i=r.prop.toLowerCase():r.type==="atrule"&&(i=r.name.toLowerCase()),i&&r.append?[o,o+"-"+i,_t,o+"Exit",o+"Exit-"+i]:i?[o,o+"-"+i,o+"Exit",o+"Exit-"+i]:r.append?[o,_t,o+"Exit"]:[o,o+"Exit"]}function wf(r){var i;return r.type==="document"?i=["Document",_t,"DocumentExit"]:r.type==="root"?i=["Root",_t,"RootExit"]:i=yf(r),{eventIndex:0,events:i,iterator:0,node:r,visitorIndex:0,visitors:[]}}function ls(r){return r[ke]=!1,r.nodes&&r.nodes.forEach(function(i){return ls(i)}),r}var fs={},Pt=(function(){function r(o,e,t){var n=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":M(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=ls(e);else if(E(e,r)||E(e,gf))s=ls(e.root),e.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=e.map);else{var a=sy;t.syntax&&(a=t.syntax.parse),t.parser&&(a=t.parser),a.parse&&(a=a.parse);try{s=a(e,t)}catch(u){this.processed=!0,this.error=u}s&&!s[ey]&&ny.rebuild(s)}this.result=new gf(o,s,t),this.helpers=T({},fs,{postcss:fs,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":M(u))==="object"&&u.prepare?T({},u,u.prepare(n.result)):u})}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){var s=n.postcssPlugin,a=n.postcssVersion,u=this.result.processor.version,l=a.split("."),f=u.split(".");(l[0]!==f[0]||parseInt(l[1])>parseInt(f[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(f,c,h){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([f,h])},n=I(this.plugins),s;!(s=n()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":M(a))==="object")for(var u in a){if(!ly[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!fy[u])if(M(a[u])==="object")for(var l in a[u])l==="*"?t(a,u,a[u][l]):t(a,u+"-"+l.toLowerCase(),a[u][l]);else typeof a[u]=="function"&&t(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return kr(function(){var t,n,s,a,u,l,f,c,h,v,d,g;return tt(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],s=e.runOnRoot(n),!yr(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw a=p.sent(),e.handleError(a);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,p.label=7;case 7:if(u[ke])return[3,14];u[ke]=!0,l=[wf(u)],p.label=8;case 8:if(!(l.length>0))return[3,13];if(f=e.visitTick(l),!yr(f))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,f];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),h=l[l.length-1].node,e.handleError(c,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var m,w,S,b,C;return tt(this,function(x){switch(x.label){case 0:m=g.value,w=m[0],S=m[1],e.result.lastPlugin=w,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(b=u.nodes.map(function($){return S($,e.helpers)}),[4,Promise.all(b)]);case 2:return x.sent(),[3,5];case 3:return[4,S(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},d=I(e.listeners.OnceExit),p.label=15;case 15:return(g=d()).done?[3,18]:[5,di(v())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":M(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(s){return e.Once(s,t.helpers)});return yr(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},i.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=ry;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new ty(t,this.result.root,this.result.opts),s=n.generate();return this.result.css=s[0],this.result.map=s[1],this.result},i.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=I(this.plugins),t;!(t=e()).done;){var n=t.value,s=this.runOnRoot(n);if(yr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[ke];)a[ke]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),l;!(l=u()).done;){var f=l.value;this.visitSync(this.listeners.OnceExit,f)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||oy("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this.css},i.visitSync=function(e,t){for(var n=I(e),s;!(s=n()).done;){var a=s.value,u=a[0],l=a[1];this.result.lastPlugin=u;var f=void 0;try{f=l(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(yr(f))throw this.getAsyncError()}},i.visitTick=function(e){var t=e[e.length-1],n=t.node,s=t.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){var a=s[t.visitorIndex],u=a[0],l=a[1];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=u;try{return l(n.toProxy(),this.helpers)}catch(d){throw this.handleError(d,n)}}if(t.iterator!==0){for(var f=t.iterator,c;c=n.nodes[n.indexes[f]];)if(n.indexes[f]+=1,!c[ke]){c[ke]=!0,e.push(wf(c));return}t.iterator=0,delete n.indexes[f]}for(var h=t.events;t.eventIndex<h.length;){var v=h[t.eventIndex];if(t.eventIndex+=1,v===_t){n.nodes&&n.nodes.length&&(n[ke]=!0,t.iterator=n.getIterator());return}else if(this.listeners[v]){t.visitors=this.listeners[v];return}}e.pop()},i.walkSync=function(e){var t=this;e[ke]=!0;for(var n=yf(e),s=I(n),a;!(a=s()).done;){var u=a.value;if(u===_t)e.nodes&&e.each(function(f){f[ke]||t.walkSync(f)});else{var l=this.listeners[u];if(l&&this.visitSync(l,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},Z(r,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),r})();Pt.registerPostcss=function(r){fs=r};var Sf=Pt;Pt.default=Pt,ay.registerLazyResult(Pt),iy.registerLazyResult(Pt);var cy=Vl,hy=Dn,py=nf,dy=us,vy=is,cs=(function(){function r(o,e,t){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=t,this._map=void 0;var n,s=hy;this.result=new vy(this._processor,n,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new cy(s,n,this._opts,e);if(u.isMap()){var l=u.generate(),f=l[0],c=l[1];f&&(this.result.css=f),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||py("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this._css},i.warnings=function(){return[]},Z(r,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=dy;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r})(),my=cs;cs.default=cs;var gy=my,yy=Sf,wy=ts,Sy=mr,wr=(function(){function r(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var i=r.prototype;return i.normalize=function(e){for(var t=[],n=I(e),s;!(s=n()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":M(a))==="object"&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&a.postcssPlugin)t.push(a);else if(typeof a=="function")t.push(a);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return t},i.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new gy(this,e,t):new yy(this,e,t)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},r})(),by=wr;wr.default=wr,Sy.registerProcessor(wr),wy.registerProcessor(wr);var Cy=Un,Iy=Ll,Oy=Yn,xy=ss,Ry=jn,Ey=mr,Ay=as;function Sr(r,i){if(Array.isArray(r))return r.map(function(c){return Sr(c)});var o=r.inputs,e=et(r,["inputs"]);if(o){i=[];for(var t=I(o),n;!(n=t()).done;){var s=n.value,a=T({},s,{__proto__:Ry.prototype});a.map&&(a.map=T({},a.map,{__proto__:Iy.prototype})),i.push(a)}}if(e.nodes&&(e.nodes=r.nodes.map(function(c){return Sr(c,i)})),e.source){var u=e.source,l=u.inputId,f=et(u,["inputId"]);e.source=f,l!=null&&(e.source.input=i[l])}if(e.type==="root")return new Ey(e);if(e.type==="decl")return new Cy(e);if(e.type==="rule")return new Ay(e);if(e.type==="comment")return new Oy(e);if(e.type==="atrule")return new xy(e);throw new Error("Unknown node type: "+r.type)}var My=Sr;Sr.default=Sr;var $y=Uo,bf=Un,ky=Sf,_y=st,hs=by,Py=Dn,Ty=My,Cf=ts,Ny=of,If=Yn,Of=ss,Ly=is,Dy=jn,Fy=us,By=pf,xf=as,Rf=mr,Uy=Bn;function q(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new hs(i)}q.plugin=function(i,o){var e=!1;function t(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(i+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(i+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var l=o.apply(void 0,[].concat(a));return l.postcssPlugin=i,l.postcssVersion=new hs().version,l}var n;return Object.defineProperty(t,"postcss",{get:function(){return n||(n=t()),n}}),t.process=function(s,a,u){return q([t(u)]).process(s,a)},t},q.stringify=Py,q.parse=Fy,q.fromJSON=Ty,q.list=By,q.comment=function(r){return new If(r)},q.atRule=function(r){return new Of(r)},q.decl=function(r){return new bf(r)},q.rule=function(r){return new xf(r)},q.root=function(r){return new Rf(r)},q.document=function(r){return new Cf(r)},q.CssSyntaxError=$y,q.Declaration=bf,q.Container=_y,q.Processor=hs,q.Document=Cf,q.Comment=If,q.Warning=Ny,q.AtRule=Of,q.Result=Ly,q.Input=Dy,q.Rule=xf,q.Root=Rf,q.Node=Uy,ky.registerPostcss(q);var zy=q;q.default=q;var ne=Xm(zy);ne.stringify,ne.fromJSON,ne.plugin,ne.parse,ne.list,ne.document,ne.comment,ne.atRule,ne.rule,ne.decl,ne.root,ne.CssSyntaxError,ne.Declaration,ne.Container,ne.Processor,ne.Document,ne.Comment,ne.Warning,ne.AtRule,ne.Result,ne.Input,ne.Rule,ne.Root,ne.Node;var Wy=Object.defineProperty,jy=function(r,i,o){return i in r?Wy(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},ni=function(r,i,o){return jy(r,(typeof i=="undefined"?"undefined":M(i))!=="symbol"?i+"":i,o)};function Gy(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 Tt=(function(){function r(o){ni(this,"fileName"),ni(this,"functionName"),ni(this,"lineNumber"),ni(this,"columnNumber"),this.fileName=o.fileName||"",this.functionName=o.functionName||"",this.lineNumber=o.lineNumber,this.columnNumber=o.columnNumber}var i=r.prototype;return i.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},r})(),Vy=/(^|@)\S+:\d+/,Ef=/^\s*at .*(\S+:\d+|\(native\))/m,Yy=/^(eval@)?(\[native code])?$/,ps={parse:function(i){return i?typeof i.stacktrace!="undefined"||typeof i["opera#sourceloc"]!="undefined"?this.parseOpera(i):i.stack&&i.stack.match(Ef)?this.parseV8OrIE(i):i.stack?this.parseFFOrSafari(i):(console.warn("[console-record-plugin]: Failed to parse error object:",i),[]):[]},extractLocation:function(i){if(i.indexOf(":")===-1)return[i];var o=/(.+?)(?::(\d+))?(?::(\d+))?$/,e=o.exec(i.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+i);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(i){var o=i.stack.split("\n").filter(function(e){return!!e.match(Ef)},this);return o.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=n?t.replace(n[0],""):t;var s=t.split(/\s+/).slice(1),a=this.extractLocation(n?n[1]:s.pop()),u=s.join(" ")||void 0,l=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new Tt({functionName:u,fileName:l,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(i){var o=i.stack.split("\n").filter(function(e){return!e.match(Yy)},this);return o.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),e.indexOf("@")===-1&&e.indexOf(":")===-1)return new Tt({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),s=n&&n[1]?n[1]:void 0,a=this.extractLocation(e.replace(t,""));return new Tt({functionName:s,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})},this)},parseOpera:function(i){return!i.stacktrace||i.message.indexOf("\n")>-1&&i.message.split("\n").length>i.stacktrace.split("\n").length?this.parseOpera9(i):i.stack?this.parseOpera11(i):this.parseOpera10(i)},parseOpera9:function(i){for(var o=/Line (\d+).*script (?:in )?(\S+)/i,e=i.message.split("\n"),t=[],n=2,s=e.length;n<s;n+=2){var a=o.exec(e[n]);a&&t.push(new Tt({fileName:a[2],lineNumber:parseFloat(a[1])}))}return t},parseOpera10:function(i){for(var o=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=i.stacktrace.split("\n"),t=[],n=0,s=e.length;n<s;n+=2){var a=o.exec(e[n]);a&&t.push(new Tt({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return t},parseOpera11:function(i){var o=i.stack.split("\n").filter(function(e){return!!e.match(Vy)&&!e.match(/^Error created at/)},this);return o.map(function(e){var t=e.split("@"),n=this.extractLocation(t.pop()),s=t.shift()||"",a=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Tt({functionName:a,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})},this)}};function qy(r){if(!r||!r.outerHTML)return"";for(var i="";r.parentElement;){var o=r.localName;if(!o)break;o=o.toLowerCase();var e=r.parentElement,t=[];if(e.children&&e.children.length>0)for(var n=0;n<e.children.length;n++){var s=e.children[n];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===o&&t.push(s)}t.length>1&&(o+=":eq("+t.indexOf(r)+")"),i=o+(i?">"+i:""),r=e}return i}function ds(r){return Object.prototype.toString.call(r)==="[object Object]"}function Af(r,i){if(i===0)return!0;for(var o=Object.keys(r),e=I(o),t;!(t=e()).done;){var n=t.value;if(ds(r[n])&&Af(r[n],i-1))return!0}return!1}function Nt(r,i){var o={numOfKeysLimit:50,depthOfLimit:4};Object.assign(o,i);var e=[],t=[];return JSON.stringify(r,function(a,u){if(e.length>0){var l=e.indexOf(this);~l?e.splice(l+1):e.push(this),~l?t.splice(l,1/0,a):t.push(a),~e.indexOf(u)&&(e[0]===u?u="[Circular ~]":u="[Circular ~."+t.slice(0,e.indexOf(u)).join(".")+"]")}else e.push(u);if(u===null)return u;if(u===void 0)return"undefined";if(n(u))return s(u);if((typeof u=="undefined"?"undefined":M(u))==="bigint")return u.toString()+"n";if(E(u,Event)){var f={};for(var c in u){var h=u[c];Array.isArray(h)?f[c]=qy(h.length?h[0]:null):f[c]=h}return f}else{if(E(u,Node))return E(u,HTMLElement)?u?u.outerHTML:"":u.nodeName;if(E(u,Error))return u.stack?u.stack+"\nEnd of stack for Error object":u.name+": "+u.message}return u});function n(a){return!!(ds(a)&&Object.keys(a).length>o.numOfKeysLimit||typeof a=="function"||ds(a)&&Af(a,o.depthOfLimit))}function s(a){var u=a.toString();return o.stringLengthLimit&&u.length>o.stringLengthLimit&&(u=""+u.slice(0,o.stringLengthLimit)+"..."),u}}var Mf={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function Jy(r,i,o){var e=o?Object.assign({},Mf,o):Mf,t=e.logger;if(!t)return function(){};var n;typeof t=="string"?n=i[t]:n=t;var s=0,a=!1,u=[];if(e.level.includes("error")){var l=function(g){var p=g.message,m=g.error,w=ps.parse(m).map(function(b){return b.toString()}),S=[Nt(p,e.stringifyOptions)];r({level:"error",trace:w,payload:S})};i.addEventListener("error",l),u.push(function(){i.removeEventListener("error",l)});var f=function(g){var p,m;E(g.reason,Error)?(p=g.reason,m=[Nt("Uncaught (in promise) "+p.name+": "+p.message,e.stringifyOptions)]):(p=new Error,m=[Nt("Uncaught (in promise)",e.stringifyOptions),Nt(g.reason,e.stringifyOptions)]);var w=ps.parse(p).map(function(S){return S.toString()});r({level:"error",trace:w,payload:m})};i.addEventListener("unhandledrejection",f),u.push(function(){i.removeEventListener("unhandledrejection",f)})}for(var c=I(e.level),h;!(h=c()).done;){var v=h.value;u.push(d(n,v))}return function(){u.forEach(function(g){return g()})};function d(g,p){var m=this;return g[p]?Gy(g,p,function(w){var S=m;return function(){for(var b=arguments.length,C=new Array(b),x=0;x<b;x++)C[x]=arguments[x];if(w.apply(S,C),!(p==="assert"&&C[0])&&!a){a=!0;try{var $=ps.parse(new Error).map(function(N){return N.toString()}).splice(1),R=p==="assert"?C.slice(1):C,k=R.map(function(N){return Nt(N,e.stringifyOptions)});s++,s<e.lengthThreshold?r({level:p,trace:$,payload:k}):s===e.lengthThreshold&&r({level:"warn",trace:[],payload:[Nt("The number of log records reached the threshold.")]})}catch(N){w.apply(void 0,[].concat(["rrweb logger error:",N],C))}finally{a=!1}}}}):function(){}}}var Hy="rrweb/console@1",Zy=function(r){return{name:Hy,observer:Jy,options:r}},$f=W.setImmediate,Ke,vs,ms,kf=Object.prototype.toString,Ky=typeof $f!="undefined"?function(i){return $f(i)}:setTimeout;try{Object.defineProperty({},"x",{}),Ke=function(i,o,e,t){return Object.defineProperty(i,o,{value:e,writable:!0,configurable:t!==!1})}}catch(r){Ke=function(o,e,t){return o[e]=t,o}}ms=(function(){var i,o,e;function t(n,s){this.fn=n,this.self=s,this.next=void 0}return{add:function(s,a){e=new t(s,a),o?o.next=e:i=e,o=e,e=void 0},drain:function(){var s=i;for(i=o=vs=void 0;s;)s.fn.call(s.self),s=s.next}}})();function ii(r,i){ms.add(r,i),vs||(vs=Ky(ms.drain))}function _f(r){var i,o=typeof r;return r!==null&&(o==="object"||o==="function")&&(i=r.then),typeof i=="function"?i:!1}function gs(){for(var r=0;r<this.chain.length;r++)Xy(this,this.state===1?this.chain[r].success:this.chain[r].failure,this.chain[r]);this.chain.length=0}function Xy(r,i,o){var e,t;try{i===!1?o.reject(r.msg):(i===!0?e=r.msg:e=i.call(void 0,r.msg),e===o.promise?o.reject(TypeError("Promise-chain cycle")):(t=_f(e))?t.call(e,o.resolve,o.reject):o.resolve(e))}catch(n){o.reject(n)}}function Pf(r){var i,o=this;if(!o.triggered){o.triggered=!0,o.def&&(o=o.def);try{(i=_f(r))?ii(function(){var e=new Nf(o);try{i.call(r,function(){Pf.apply(e,arguments)},function(){br.apply(e,arguments)})}catch(t){br.call(e,t)}}):(o.msg=r,o.state=1,o.chain.length>0&&ii(gs,o))}catch(e){br.call(new Nf(o),e)}}}function br(r){var i=this;i.triggered||(i.triggered=!0,i.def&&(i=i.def),i.msg=r,i.state=2,i.chain.length>0&&ii(gs,i))}function Tf(r,i,o,e){for(var t=0;t<i.length;t++)(function(s){r.resolve(i[s]).then(function(u){o(s,u)},e)})(t)}function Nf(r){this.def=r,this.triggered=!1}function Qy(r){this.promise=r,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Xe(r){if(typeof r!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var i=new Qy(this);this.then=function(e,t){var n={success:typeof e=="function"?e:!0,failure:typeof t=="function"?t:!1};return n.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");n.resolve=a,n.reject=u}),i.chain.push(n),i.state!==0&&ii(gs,i),n.promise},this.catch=function(e){return this.then(void 0,e)};try{r.call(void 0,function(e){Pf.call(i,e)},function(e){br.call(i,e)})}catch(o){br.call(i,o)}}var Lf=Ke({},"constructor",Xe,!1);Xe.prototype=Lf,Ke(Lf,"__NPO__",0,!1),Ke(Xe,"resolve",function(i){var o=this;return i&&typeof i=="object"&&i.__NPO__===1?i:new o(function(t,n){if(typeof t!="function"||typeof n!="function")throw TypeError("Not a function");t(i)})}),Ke(Xe,"reject",function(i){return new this(function(e,t){if(typeof e!="function"||typeof t!="function")throw TypeError("Not a function");t(i)})}),Ke(Xe,"all",function(i){var o=this;return kf.call(i)!=="[object Array]"?o.reject(TypeError("Not an array")):i.length===0?o.resolve([]):new o(function(t,n){if(typeof t!="function"||typeof n!="function")throw TypeError("Not a function");var s=i.length,a=Array(s),u=0;Tf(o,i,function(f,c){a[f]=c,++u===s&&t(a)},n)})}),Ke(Xe,"race",function(i){var o=this;return kf.call(i)!=="[object Array]"?o.reject(TypeError("Not an array")):new o(function(t,n){if(typeof t!="function"||typeof n!="function")throw TypeError("Not a function");Tf(o,i,function(a,u){t(u)},n)})});var B;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?B=Promise:B=Xe;var ys={LIB_VERSION:"2.75.0"},oi=1440*60*1e3,ws=8*1e3,si=Array.prototype,ew=Function.prototype,Df=Object.prototype,at=si.slice,Cr=Df.toString,ai=Df.hasOwnProperty,Ir=W.console,Lt=W.navigator,be=W.document,Or=W.opera,Ff=W.screen,ut=Lt.userAgent,Ss=ew.bind,Bf=si.forEach,Uf=si.indexOf,zf=si.map,tw=Array.isArray,bs={},y={trim:function(r){return r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Re={log:function(){},warn:function(){},error:function(){},critical:function(){if(!y.isUndefined(Ir)&&Ir){var r=["Mixpanel error:"].concat(y.toArray(arguments));try{Ir.error.apply(Ir,r)}catch(i){y.each(r,function(o){Ir.error(o)})}}}},Cs=function(r,i){return function(){return arguments[0]="["+i+"] "+arguments[0],r.apply(Re,arguments)}},Dt=function(r){return{log:Cs(Re.log,r),error:Cs(Re.error,r),critical:Cs(Re.critical,r)}};y.bind=function(r,i){var o,e;if(Ss&&r.bind===Ss)return Ss.apply(r,at.call(arguments,1));if(!y.isFunction(r))throw new TypeError;return o=at.call(arguments,2),e=function(){if(!(this instanceof e))return r.apply(i,o.concat(at.call(arguments)));var t={};t.prototype=r.prototype;var n=new t;t.prototype=null;var s=r.apply(n,o.concat(at.call(arguments)));return Object(s)===s?s:n},e},y.each=function(r,i,o){if(r!=null){if(Bf&&r.forEach===Bf)r.forEach(i,o);else if(r.length===+r.length){for(var e=0,t=r.length;e<t;e++)if(e in r&&i.call(o,r[e],e,r)===bs)return}else for(var n in r)if(ai.call(r,n)&&i.call(o,r[n],n,r)===bs)return}},y.extend=function(r){return y.each(at.call(arguments,1),function(i){for(var o in i)i[o]!==void 0&&(r[o]=i[o])}),r},y.isArray=tw||function(r){return Cr.call(r)==="[object Array]"},y.isFunction=function(r){return typeof r=="function"},y.isArguments=function(r){return!!(r&&ai.call(r,"callee"))},y.toArray=function(r){return r?r.toArray?r.toArray():y.isArray(r)||y.isArguments(r)?at.call(r):y.values(r):[]},y.map=function(r,i,o){if(zf&&r.map===zf)return r.map(i,o);var e=[];return y.each(r,function(t){e.push(i.call(o,t))}),e},y.keys=function(r){var i=[];return r===null||y.each(r,function(o,e){i[i.length]=e}),i},y.values=function(r){var i=[];return r===null||y.each(r,function(o){i[i.length]=o}),i},y.include=function(r,i){var o=!1;return r===null?o:Uf&&r.indexOf===Uf?r.indexOf(i)!=-1:(y.each(r,function(e){if(o||(o=e===i))return bs}),o)},y.includes=function(r,i){return r.indexOf(i)!==-1},y.inherit=function(r,i){return r.prototype=new i,r.prototype.constructor=r,r.superclass=i.prototype,r},y.isObject=function(r){return r===Object(r)&&!y.isArray(r)},y.isEmptyObject=function(r){if(y.isObject(r)){for(var i in r)if(ai.call(r,i))return!1;return!0}return!1},y.isUndefined=function(r){return r===void 0},y.isString=function(r){return Cr.call(r)=="[object String]"},y.isDate=function(r){return Cr.call(r)=="[object Date]"},y.isNumber=function(r){return Cr.call(r)=="[object Number]"},y.isElement=function(r){return!!(r&&r.nodeType===1)},y.encodeDates=function(r){return y.each(r,function(i,o){y.isDate(i)?r[o]=y.formatDate(i):y.isObject(i)&&(r[o]=y.encodeDates(i))}),r},y.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},y.formatDate=function(r){function i(o){return o<10?"0"+o:o}return r.getUTCFullYear()+"-"+i(r.getUTCMonth()+1)+"-"+i(r.getUTCDate())+"T"+i(r.getUTCHours())+":"+i(r.getUTCMinutes())+":"+i(r.getUTCSeconds())},y.strip_empty_properties=function(r){var i={};return y.each(r,function(o,e){y.isString(o)&&o.length>0&&(i[e]=o)}),i},y.truncate=function(r,i){var o;return typeof r=="string"?o=r.slice(0,i):y.isArray(r)?(o=[],y.each(r,function(e){o.push(y.truncate(e,i))})):y.isObject(r)?(o={},y.each(r,function(e,t){o[t]=y.truncate(e,i)})):o=r,o},y.JSONEncode=(function(){return function(r){var i=r,o=function(t){var n=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return n.lastIndex=0,n.test(t)?'"'+t.replace(n,function(a){var u=s[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'},e=function(t,n){var s="",a=" ",u=0,l="",f="",c=0,h=s,v=[],d=n[t];switch(d&&typeof d=="object"&&typeof d.toJSON=="function"&&(d=d.toJSON(t)),typeof d){case"string":return o(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(s+=a,v=[],Cr.apply(d)==="[object Array]"){for(c=d.length,u=0;u<c;u+=1)v[u]=e(u,d)||"null";return f=v.length===0?"[]":s?"[\n"+s+v.join(",\n"+s)+"\n"+h+"]":"["+v.join(",")+"]",s=h,f}for(l in d)ai.call(d,l)&&(f=e(l,d),f&&v.push(o(l)+(s?": ":":")+f));return f=v.length===0?"{}":s?"{"+v.join(",")+h+"}":"{"+v.join(",")+"}",s=h,f}};return e("",{"":i})}})(),y.JSONDecode=(function(){var r,i,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},e,t=function(v){var d=new SyntaxError(v);throw d.at=r,d.text=e,d},n=function(v){return v&&v!==i&&t("Expected '"+v+"' instead of '"+i+"'"),i=e.charAt(r),r+=1,i},s=function(){var v,d="";for(i==="-"&&(d="-",n("-"));i>="0"&&i<="9";)d+=i,n();if(i===".")for(d+=".";n()&&i>="0"&&i<="9";)d+=i;if(i==="e"||i==="E")for(d+=i,n(),(i==="-"||i==="+")&&(d+=i,n());i>="0"&&i<="9";)d+=i,n();if(v=+d,!isFinite(v))t("Bad number");else return v},a=function(){var v,d,g="",p;if(i==='"')for(;n();){if(i==='"')return n(),g;if(i==="\\")if(n(),i==="u"){for(p=0,d=0;d<4&&(v=parseInt(n(),16),!!isFinite(v));d+=1)p=p*16+v;g+=String.fromCharCode(p)}else if(typeof o[i]=="string")g+=o[i];else break;else g+=i}t("Bad string")},u=function(){for(;i&&i<=" ";)n()},l=function(){switch(i){case"t":return n("t"),n("r"),n("u"),n("e"),!0;case"f":return n("f"),n("a"),n("l"),n("s"),n("e"),!1;case"n":return n("n"),n("u"),n("l"),n("l"),null}t('Unexpected "'+i+'"')},f,c=function(){var v=[];if(i==="["){if(n("["),u(),i==="]")return n("]"),v;for(;i;){if(v.push(f()),u(),i==="]")return n("]"),v;n(","),u()}}t("Bad array")},h=function(){var v,d={};if(i==="{"){if(n("{"),u(),i==="}")return n("}"),d;for(;i;){if(v=a(),u(),n(":"),Object.hasOwnProperty.call(d,v)&&t('Duplicate key "'+v+'"'),d[v]=f(),u(),i==="}")return n("}"),d;n(","),u()}}t("Bad object")};return f=function(){switch(u(),i){case"{":return h();case"[":return c();case'"':return a();case"-":return s();default:return i>="0"&&i<="9"?s():l()}},function(v){var d;return e=v,r=0,i=" ",d=f(),u(),i&&t("Syntax error"),d}})(),y.base64Encode=function(r){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o,e,t,n,s,a,u,l,f=0,c=0,h="",v=[];if(!r)return r;r=y.utf8Encode(r);do o=r.charCodeAt(f++),e=r.charCodeAt(f++),t=r.charCodeAt(f++),l=o<<16|e<<8|t,n=l>>18&63,s=l>>12&63,a=l>>6&63,u=l&63,v[c++]=i.charAt(n)+i.charAt(s)+i.charAt(a)+i.charAt(u);while(f<r.length);switch(h=v.join(""),r.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"=";break}return h},y.utf8Encode=function(r){r=(r+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var i="",o,e,t=0,n;for(o=e=0,t=r.length,n=0;n<t;n++){var s=r.charCodeAt(n),a=null;s<128?e++:s>127&&s<2048?a=String.fromCharCode(s>>6|192,s&63|128):a=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),a!==null&&(e>o&&(i+=r.substring(o,e)),i+=a,o=e=n+1)}return e>o&&(i+=r.substring(o,r.length)),i},y.UUID=function(){try{return W.crypto.randomUUID()}catch(o){for(var r=new Array(36),i=0;i<36;i++)r[i]=Math.floor(Math.random()*16);return r[14]=4,r[19]=r[19]&=-5,r[19]=r[19]|=8,r[8]=r[13]=r[18]=r[23]="-",y.map(r,function(e){return e.toString(16)}).join("")}};var Wf=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];y.isBlockedUA=function(r){var i;for(r=r.toLowerCase(),i=0;i<Wf.length;i++)if(r.indexOf(Wf[i])!==-1)return!0;return!1},y.HTTPBuildQuery=function(r,i){var o,e,t=[];return y.isUndefined(i)&&(i="&"),y.each(r,function(n,s){o=encodeURIComponent(n.toString()),e=encodeURIComponent(s),t[t.length]=e+"="+o}),t.join(i)},y.getQueryParam=function(r,i){i=i.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var o="[\\?&]"+i+"=([^&#]*)",e=new RegExp(o),t=e.exec(r);if(t===null||t&&typeof t[1]!="string"&&t[1].length)return"";var n=t[1];try{n=decodeURIComponent(n)}catch(s){Re.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},y.cookie={get:function(r){for(var i=r+"=",o=be.cookie.split(";"),e=0;e<o.length;e++){for(var t=o[e];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(i)===0)return decodeURIComponent(t.substring(i.length,t.length))}return null},parse:function(r){var i;try{i=y.JSONDecode(y.cookie.get(r))||{}}catch(o){}return i},set_seconds:function(r,i,o,e,t,n,s){var a="",u="",l="";if(s)a="; domain="+s;else if(e){var f=qf(be.location.hostname);a=f?"; domain=."+f:""}if(o){var c=new Date;c.setTime(c.getTime()+o*1e3),u="; expires="+c.toGMTString()}n&&(t=!0,l="; SameSite=None"),t&&(l+="; secure"),be.cookie=r+"="+encodeURIComponent(i)+u+"; path=/"+a+l},set:function(r,i,o,e,t,n,s){var a="",u="",l="";if(s)a="; domain="+s;else if(e){var f=qf(be.location.hostname);a=f?"; domain=."+f:""}if(o){var c=new Date;c.setTime(c.getTime()+o*24*60*60*1e3),u="; expires="+c.toGMTString()}n&&(t=!0,l="; SameSite=None"),t&&(l+="; secure");var h=r+"="+encodeURIComponent(i)+u+"; path=/"+a+l;return be.cookie=h,h},remove:function(r,i,o){y.cookie.set(r,"",-1,i,!1,!1,o)}};var jf=function(r){var i=!0;try{var o="__mplss_"+xs(8),e="xyz";r.setItem(o,e),r.getItem(o)!==e&&(i=!1),r.removeItem(o)}catch(t){i=!1}return i},Is=null,xr=function(r,i){return Is!==null&&!i?Is:Is=jf(r||W.localStorage)},Os=null,rw=function(r,i){return Os!==null&&!i?Os:Os=jf(r||W.sessionStorage)};function Gf(r,i,o){var e=function(t){Re.error(i+" error: "+t)};return{is_supported:function(t){var n=o(r,t);return n||Re.error(i+" unsupported"),n},error:e,get:function(t){try{return r.getItem(t)}catch(n){e(n)}return null},parse:function(t){try{return y.JSONDecode(r.getItem(t))||{}}catch(n){}return null},set:function(t,n){try{r.setItem(t,n)}catch(s){e(s)}},remove:function(t){try{r.removeItem(t)}catch(n){e(n)}}}}var Vf=null,Yf=null;try{Vf=W.localStorage,Yf=W.sessionStorage}catch(r){}y.localStorage=Gf(Vf,"localStorage",xr),y.sessionStorage=Gf(Yf,"sessionStorage",rw),y.register_event=(function(){var r=function(e,t,n,s,a){if(!e){Re.error("No valid element provided to register_event");return}if(e.addEventListener&&!s)e.addEventListener(t,n,!!a);else{var u="on"+t,l=e[u];e[u]=i(e,n,l)}};function i(e,t,n){var s=function(a){if(a=a||o(W.event),!!a){var u=!0,l,f;return y.isFunction(n)&&(l=n(a)),f=t.call(e,a),(l===!1||f===!1)&&(u=!1),u}};return s}function o(e){return e&&(e.preventDefault=o.preventDefault,e.stopPropagation=o.stopPropagation),e}return o.preventDefault=function(){this.returnValue=!1},o.stopPropagation=function(){this.cancelBubble=!0},r})();var nw=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');y.dom_query=(function(){function r(t){return t.all?t.all:t.getElementsByTagName("*")}var i=/[\t\r\n]/g;function o(t,n){var s=" "+n+" ";return(" "+t.className+" ").replace(i," ").indexOf(s)>=0}function e(t){if(!be.getElementsByTagName)return[];var n=t.split(" "),s,a,u,l,f,c,h,v,d,g,p=[be];for(c=0;c<n.length;c++){if(s=n[c].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var m=a[1],w=be.getElementById(m);if(!w||u&&w.nodeName.toLowerCase()!=u)return[];p=[w];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var S=a[1];for(u||(u="*"),l=[],f=0,h=0;h<p.length;h++)for(u=="*"?d=r(p[h]):d=p[h].getElementsByTagName(u),v=0;v<d.length;v++)l[f++]=d[v];for(p=[],g=0,h=0;h<l.length;h++)l[h].className&&y.isString(l[h].className)&&o(l[h],S)&&(p[g++]=l[h]);continue}var b=s.match(nw);if(b){u=b[1];var C=b[2],x=b[3],$=b[4];for(u||(u="*"),l=[],f=0,h=0;h<p.length;h++)for(u=="*"?d=r(p[h]):d=p[h].getElementsByTagName(u),v=0;v<d.length;v++)l[f++]=d[v];p=[],g=0;var R;switch(x){case"=":R=function(k){return k.getAttribute(C)==$};break;case"~":R=function(k){return k.getAttribute(C).match(new RegExp("\\b"+$+"\\b"))};break;case"|":R=function(k){return k.getAttribute(C).match(new RegExp("^"+$+"-?"))};break;case"^":R=function(k){return k.getAttribute(C).indexOf($)===0};break;case"$":R=function(k){return k.getAttribute(C).lastIndexOf($)==k.getAttribute(C).length-$.length};break;case"*":R=function(k){return k.getAttribute(C).indexOf($)>-1};break;default:R=function(k){return k.getAttribute(C)}}for(p=[],g=0,h=0;h<l.length;h++)R(l[h])&&(p[g++]=l[h]);continue}for(u=s,l=[],f=0,h=0;h<p.length;h++)for(d=p[h].getElementsByTagName(u),v=0;v<d.length;v++)l[f++]=d[v];p=l}return p}return function(t){return y.isElement(t)?[t]:y.isObject(t)&&!y.isUndefined(t.length)?t:e.call(this,t)}})();var iw=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],ow=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];y.info={campaignParams:function(r){var i="",o={};return y.each(iw,function(e){i=y.getQueryParam(be.URL,e),i.length?o[e]=i:r!==void 0&&(o[e]=r)}),o},clickParams:function(){var r="",i={};return y.each(ow,function(o){r=y.getQueryParam(be.URL,o),r.length&&(i[o]=r)}),i},marketingParams:function(){return y.extend(y.info.campaignParams(),y.info.clickParams())},searchEngine:function(r){return r.search("https?://(.*)google.([^/?]*)")===0?"google":r.search("https?://(.*)bing.com")===0?"bing":r.search("https?://(.*)yahoo.com")===0?"yahoo":r.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(r){var i=y.info.searchEngine(r),o=i!="yahoo"?"q":"p",e={};if(i!==null){e.$search_engine=i;var t=y.getQueryParam(r,o);t.length&&(e.mp_keyword=t)}return e},browser:function(r,i,o){return i=i||"",o||y.includes(r," OPR/")?y.includes(r,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(r)?"BlackBerry":y.includes(r,"IEMobile")||y.includes(r,"WPDesktop")?"Internet Explorer Mobile":y.includes(r,"SamsungBrowser/")?"Samsung Internet":y.includes(r,"Edge")||y.includes(r,"Edg/")?"Microsoft Edge":y.includes(r,"FBIOS")?"Facebook Mobile":y.includes(r,"Whale/")?"Whale Browser":y.includes(r,"Chrome")?"Chrome":y.includes(r,"CriOS")?"Chrome iOS":y.includes(r,"UCWEB")||y.includes(r,"UCBrowser")?"UC Browser":y.includes(r,"FxiOS")?"Firefox iOS":y.includes(i,"Apple")?y.includes(r,"Mobile")?"Mobile Safari":"Safari":y.includes(r,"Android")?"Android Mobile":y.includes(r,"Konqueror")?"Konqueror":y.includes(r,"Firefox")?"Firefox":y.includes(r,"MSIE")||y.includes(r,"Trident/")?"Internet Explorer":y.includes(r,"Gecko")?"Mozilla":""},browserVersion:function(r,i,o){var e=y.info.browser(r,i,o),t={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},n=t[e];if(n===void 0)return null;var s=r.match(n);return s?parseFloat(s[s.length-2]):null},os:function(){var r=ut;return/Windows/i.test(r)?/Phone/.test(r)||/WPDesktop/.test(r)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(r)?"iOS":/Android/.test(r)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(r)?"BlackBerry":/Mac/i.test(r)?"Mac OS X":/Linux/.test(r)?"Linux":/CrOS/.test(r)?"Chrome OS":""},device:function(r){return/Windows Phone/i.test(r)||/WPDesktop/.test(r)?"Windows Phone":/iPad/.test(r)?"iPad":/iPod/.test(r)?"iPod Touch":/iPhone/.test(r)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(r)?"BlackBerry":/Android/.test(r)?"Android":""},referringDomain:function(r){var i=r.split("/");return i.length>=3?i[2]:""},currentUrl:function(){return W.location.href},properties:function(r){return typeof r!="object"&&(r={}),y.extend(y.strip_empty_properties({$os:y.info.os(),$browser:y.info.browser(ut,Lt.vendor,Or),$referrer:be.referrer,$referring_domain:y.info.referringDomain(be.referrer),$device:y.info.device(ut)}),{$current_url:y.info.currentUrl(),$browser_version:y.info.browserVersion(ut,Lt.vendor,Or),$screen_height:Ff.height,$screen_width:Ff.width,mp_lib:"web",$lib_version:ys.LIB_VERSION,$insert_id:xs(),time:y.timestamp()/1e3},y.strip_empty_properties(r))},people_properties:function(){return y.extend(y.strip_empty_properties({$os:y.info.os(),$browser:y.info.browser(ut,Lt.vendor,Or)}),{$browser_version:y.info.browserVersion(ut,Lt.vendor,Or)})},mpPageViewProperties:function(){return y.strip_empty_properties({current_page_title:be.title,current_domain:W.location.hostname,current_url_path:W.location.pathname,current_url_protocol:W.location.protocol,current_url_search:W.location.search})}};var sw=function(r,i){var o=null,e=[];return function(t){var n=this;return e.push(t),o||(o=new B(function(s){setTimeout(function(){var a=r.apply(n,[e]);o=null,e=[],s(a)},i)})),o}},xs=function(r){var i=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return r?i.substring(0,r):i},aw=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,uw=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,qf=function(r){var i=uw,o=r.split("."),e=o[o.length-1];(e.length>4||e==="com"||e==="org")&&(i=aw);var t=r.match(i);return t?t[0]:""},lw=function(){var r=W.navigator.onLine;return y.isUndefined(r)||r},Rs=function(){},ui=null,li=null;typeof JSON!="undefined"&&(ui=JSON.stringify,li=JSON.parse),ui=ui||y.JSONEncode,li=li||y.JSONDecode;var fw=function(r,i,o){if(!W.CompressionStream)return!1;var e=y.info.browser(r,i,o),t=y.info.browserVersion(r,i,o);return!((e==="Safari"||e==="Mobile Safari")&&t>=16.4&&t<16.6)};y.info=y.info,y.info.browser=y.info.browser,y.info.browserVersion=y.info.browserVersion,y.info.device=y.info.device,y.info.properties=y.info.properties,y.isBlockedUA=y.isBlockedUA,y.isEmptyObject=y.isEmptyObject,y.isObject=y.isObject,y.JSONDecode=y.JSONDecode,y.JSONEncode=y.JSONEncode,y.toArray=y.toArray,y.NPO=Xe;var cw="mixpanelBrowserDb",Jf="mixpanelRecordingEvents",Hf="mixpanelRecordingRegistry",hw=1,pw=[Jf,Hf],_e=function(r){this.dbPromise=null,this.storeName=r};_e.prototype._openDb=function(){return new B(function(r,i){var o=W.indexedDB.open(cw,hw);o.onerror=function(){i(o.error)},o.onsuccess=function(){r(o.result)},o.onupgradeneeded=function(e){var t=e.target.result;pw.forEach(function(n){t.createObjectStore(n)})}})},_e.prototype.init=function(){return W.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(r){return r instanceof W.IDBDatabase?B.resolve():B.reject(r)})):B.reject("indexedDB is not supported in this browser")},_e.prototype.isInitialized=function(){return!!this.dbPromise},_e.prototype.makeTransaction=function(r,i){var o=this.storeName,e=function(t){return new B(function(n,s){var a=t.transaction(o,r);a.oncomplete=function(){n(a)},a.onabort=a.onerror=function(){s(a.error)},i(a.objectStore(o))})};return this.dbPromise.then(e).catch(function(t){return t&&t.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):B.reject(t)}.bind(this))},_e.prototype.setItem=function(r,i){return this.makeTransaction("readwrite",function(o){o.put(i,r)})},_e.prototype.getItem=function(r){var i;return this.makeTransaction("readonly",function(o){i=o.get(r)}).then(function(){return i.result})},_e.prototype.removeItem=function(r){return this.makeTransaction("readwrite",function(i){i.delete(r)})},_e.prototype.getAll=function(){var r;return this.makeTransaction("readonly",function(i){r=i.getAll()}).then(function(){return r.result})};var dw="__mp_opt_in_out_";function vw(r,i){if(Sw(i))return Re.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var o=ww(r,i)==="0";return o&&Re.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),o}function mw(r){return bw(r,function(i){return this.get_config(i)})}function gw(r){return r=r||{},r.persistenceType==="localStorage"?y.localStorage:y.cookie}function yw(r,i){return i=i||{},(i.persistencePrefix||dw)+r}function ww(r,i){return gw(i).get(yw(r,i))}function Sw(r){if(r&&r.ignoreDnt)return!1;var i=r&&r.window||W,o=i.navigator||{},e=!1;return y.each([o.doNotTrack,o.msDoNotTrack,i.doNotTrack],function(t){y.includes([!0,1,"1","yes"],t)&&(e=!0)}),e}function bw(r,i){return function(){var o=!1;try{var e=i.call(this,"token"),t=i.call(this,"ignore_dnt"),n=i.call(this,"opt_out_tracking_persistence_type"),s=i.call(this,"opt_out_tracking_cookie_prefix"),a=i.call(this,"window");e&&(o=vw(e,{ignoreDnt:t,persistenceType:n,persistencePrefix:s,window:a}))}catch(l){Re.error("Unexpected error when checking tracking opt-out status: "+l)}if(!o)return r.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var Cw=Dt("lock"),Zf=function(r,i){i=i||{},this.storageKey=r,this.storage=i.storage||W.localStorage,this.pollIntervalMS=i.pollIntervalMS||100,this.timeoutMS=i.timeoutMS||2e3,this.promiseImpl=i.promiseImpl||B};Zf.prototype.withLock=function(r,i){var o=this.promiseImpl;return new o(y.bind(function(e,t){var n=i||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,l=this.timeoutMS,f=this.storage,c=a+":X",h=a+":Y",v=a+":Z",d=function(S){if(new Date().getTime()-s>l){Cw.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+n+"]"),f.removeItem(v),f.removeItem(h),m();return}setTimeout(function(){try{S()}catch(b){t(b)}},u*(Math.random()+.1))},g=function(S,b){S()?b():d(function(){g(S,b)})},p=function(){var S=f.getItem(h);return S&&S!==n?!1:(f.setItem(h,n),f.getItem(h)===n?!0:(xr(f,!0)||t(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){f.setItem(c,n),g(p,function(){if(f.getItem(c)===n){w();return}d(function(){if(f.getItem(h)!==n){m();return}g(function(){return!f.getItem(v)},w)})})},w=function(){f.setItem(v,"1");var S=function(){f.removeItem(v),f.getItem(h)===n&&f.removeItem(h),f.getItem(c)===n&&f.removeItem(c)};r().then(function(b){S(),e(b)}).catch(function(b){S(),t(b)})};try{if(xr(f,!0))m();else throw new Error("localStorage support check failed")}catch(S){t(S)}},this))};var Ft=function(r){this.storage=r||W.localStorage};Ft.prototype.init=function(){return B.resolve()},Ft.prototype.isInitialized=function(){return!0},Ft.prototype.setItem=function(r,i){return new B(y.bind(function(o,e){try{this.storage.setItem(r,ui(i))}catch(t){e(t)}o()},this))},Ft.prototype.getItem=function(r){return new B(y.bind(function(i,o){var e;try{e=li(this.storage.getItem(r))}catch(t){o(t)}i(e)},this))},Ft.prototype.removeItem=function(r){return new B(y.bind(function(i,o){try{this.storage.removeItem(r)}catch(e){o(e)}i()},this))};var Kf=Dt("batch"),Pe=function(r,i){i=i||{},this.storageKey=r,this.usePersistence=i.usePersistence,this.usePersistence&&(this.queueStorage=i.queueStorage||new Ft,this.lock=new Zf(r,{storage:i.sharedLockStorage||W.localStorage,timeoutMS:i.sharedLockTimeoutMS})),this.reportError=i.errorReporter||y.bind(Kf.error,Kf),this.pid=i.pid||null,this.memQueue=[],this.initialized=!1,i.enqueueThrottleMs?this.enqueuePersisted=sw(y.bind(this._enqueuePersisted,this),i.enqueueThrottleMs):this.enqueuePersisted=y.bind(function(o){return this._enqueuePersisted([o])},this)};Pe.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?B.resolve():this.queueStorage.init().then(y.bind(function(){this.initialized=!0},this)).catch(y.bind(function(r){this.reportError("Error initializing queue persistence. Disabling persistence",r),this.initialized=!0,this.usePersistence=!1},this))},Pe.prototype.enqueue=function(r,i){var o={id:xs(),flushAfter:new Date().getTime()+i*2,payload:r};return this.usePersistence?this.enqueuePersisted(o):(this.memQueue.push(o),B.resolve(!0))},Pe.prototype._enqueuePersisted=function(r){var i=y.bind(function(){return this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(o){return this.saveToStorage(o.concat(r))},this)).then(y.bind(function(o){return o&&(this.memQueue=this.memQueue.concat(r)),o},this)).catch(y.bind(function(o){return this.reportError("Error enqueueing items",o,r),!1},this))},this);return this.lock.withLock(i,this.pid).catch(y.bind(function(o){return this.reportError("Error acquiring storage lock",o),!1},this))},Pe.prototype.fillBatch=function(r){var i=this.memQueue.slice(0,r);return this.usePersistence&&i.length<r?this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(o){if(o.length){var e={};y.each(i,function(s){e[s.id]=!0});for(var t=0;t<o.length;t++){var n=o[t];if(new Date().getTime()>n.flushAfter&&!e[n.id]&&(n.orphaned=!0,i.push(n),i.length>=r))break}}return i},this)):B.resolve(i)};var Xf=function(r,i){var o=[];return y.each(r,function(e){e.id&&!i[e.id]&&o.push(e)}),o};Pe.prototype.removeItemsByID=function(r){var i={};if(y.each(r,function(e){i[e]=!0}),this.memQueue=Xf(this.memQueue,i),this.usePersistence){var o=y.bind(function(){return this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(e){return e=Xf(e,i),this.saveToStorage(e)},this)).then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.id&&i[n.id])throw new Error("Item not removed from storage")}return!0},this)).catch(y.bind(function(e){return this.reportError("Error removing items",e,r),!1},this))},this);return this.lock.withLock(o,this.pid).catch(y.bind(function(e){return this.reportError("Error acquiring storage lock",e),xr(this.lock.storage,!0)?!1:o().then(y.bind(function(t){return t||this.queueStorage.removeItem(this.storageKey).then(function(){return t})},this)).catch(y.bind(function(t){return this.reportError("Error clearing queue",t),!1},this))},this))}else return B.resolve(!0)};var Qf=function(r,i){var o=[];return y.each(r,function(e){var t=e.id;if(t in i){var n=i[t];n!==null&&(e.payload=n,o.push(e))}else o.push(e)}),o};Pe.prototype.updatePayloads=function(r){return this.memQueue=Qf(this.memQueue,r),this.usePersistence?this.lock.withLock(y.bind(function(){return this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(o){return o=Qf(o,r),this.saveToStorage(o)},this)).catch(y.bind(function(o){return this.reportError("Error updating items",r,o),!1},this))},this),this.pid).catch(y.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this)):B.resolve(!0)},Pe.prototype.readFromStorage=function(){return this.ensureInit().then(y.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(y.bind(function(r){return r&&(y.isArray(r)||(this.reportError("Invalid storage entry:",r),r=null)),r||[]},this)).catch(y.bind(function(r){return this.reportError("Error retrieving queue",r),[]},this))},Pe.prototype.saveToStorage=function(r){return this.ensureInit().then(y.bind(function(){return this.queueStorage.setItem(this.storageKey,r)},this)).then(function(){return!0}).catch(y.bind(function(i){return this.reportError("Error saving queue",i),!1},this))},Pe.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(y.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):B.resolve()};var Iw=600*1e3,Rr=Dt("batch"),Ee=function(r,i){this.errorReporter=i.errorReporter,this.queue=new Pe(r,{errorReporter:y.bind(this.reportError,this),queueStorage:i.queueStorage,sharedLockStorage:i.sharedLockStorage,sharedLockTimeoutMS:i.sharedLockTimeoutMS,usePersistence:i.usePersistence,enqueueThrottleMs:i.enqueueThrottleMs}),this.libConfig=i.libConfig,this.sendRequest=i.sendRequestFunc,this.beforeSendHook=i.beforeSendHook,this.stopAllBatching=i.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=i.flushOnlyOnInterval||!1,this._flushPromise=null};Ee.prototype.enqueue=function(r){return this.queue.enqueue(r,this.flushInterval)},Ee.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Ee.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Ee.prototype.clear=function(){return this.queue.clear()},Ee.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Ee.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Ee.prototype.scheduleFlush=function(r){this.flushInterval=r,this.stopped||(this.timeoutID=setTimeout(y.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Ee.prototype.sendRequestPromise=function(r,i){return new B(y.bind(function(o){this.sendRequest(r,i,o)},this))},Ee.prototype.flush=function(r){if(this.requestInProgress)return Rr.log("Flush: Request already in progress"),B.resolve();this.requestInProgress=!0,r=r||{};var i=this.libConfig.batch_request_timeout_ms,o=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(y.bind(function(t){var n=t.length===e,s=[],a={};if(y.each(t,function(c){var h=c.payload;if(this.beforeSendHook&&!c.orphaned&&(h=this.beforeSendHook(h)),h){h.event&&h.properties&&(h.properties=y.extend({},h.properties,{mp_sent_by_lib_version:ys.LIB_VERSION}));var v=!0,d=c.id;d?(this.itemIdsSentSuccessfully[d]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:c,batchSize:t.length,timesSent:this.itemIdsSentSuccessfully[d]}),v=!1):this.reportError("[dupe] found item with no ID",{item:c}),v&&s.push(h)}a[c.id]=h},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),B.resolve();var u=y.bind(function(){return this.queue.removeItemsByID(y.map(t,function(c){return c.id})).then(y.bind(function(c){return y.each(t,y.bind(function(h){var v=h.id;v?(this.itemIdsSentSuccessfully[v]=this.itemIdsSentSuccessfully[v]||0,this.itemIdsSentSuccessfully[v]++,this.itemIdsSentSuccessfully[v]>5&&this.reportError("[dupe] item ID sent too many times",{item:h,batchSize:t.length,timesSent:this.itemIdsSentSuccessfully[v]})):this.reportError("[dupe] found item with no ID while removing",{item:h})},this)),c?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!n?(this.resetFlush(),B.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),B.resolve())},this))},this),l=y.bind(function(c){this.requestInProgress=!1;try{if(r.unloading)return this.queue.updatePayloads(a);if(y.isObject(c)&&c.error==="timeout"&&new Date().getTime()-o>=i)return this.reportError("Network timeout; retrying"),this.flush();if(y.isObject(c)&&(c.httpStatusCode>=500||c.httpStatusCode===429||c.httpStatusCode<=0&&!lw()||c.error==="timeout")){var h=this.flushInterval*2;return c.retryAfter&&(h=parseInt(c.retryAfter,10)*1e3||h),h=Math.min(Iw,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),B.resolve()}else if(y.isObject(c)&&c.httpStatusCode===413)if(t.length>1){var v=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,v,t.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),B.resolve()}else return this.reportError("Single-event request too large; dropping",t),this.resetBatchSize(),u();else return u()}catch(d){this.reportError("Error handling API response",d),this.resetFlush()}},this),f={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:i};return r.unloading&&(f.transport="sendBeacon"),Rr.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,f).then(l)},this)).catch(y.bind(function(t){this.reportError("Error flushing request queue",t),this.resetFlush()},this))},Ee.prototype.reportError=function(r,i){if(Rr.error.apply(Rr.error,arguments),this.errorReporter)try{i instanceof Error||(i=new Error(r)),this.errorReporter(r,i)}catch(o){Rr.error(o)}};var ec=function(r){var i=Date.now();return!r||i>r.maxExpires||i>r.idleExpires},Ow=250;Dt("autocapture");function xw(r){var i=(r.name||r.id||"").toString().toLowerCase();if(typeof i=="string"){var o=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(o.test(i.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}var tc=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",Rw="data-rr-is-password",Ew=["password","email","tel","hidden"];function fi(r){return r?Array.isArray(r)?r:[r]:[]}function Aw(r){var i={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},o=r.get_config("record_mask_input_selector"),e=r.get_config("record_unmask_input_selector"),t=r.get_config("record_mask_all_inputs");i.input.maskingSelector=fi(o).join(","),i.input.unmaskingSelector=fi(e).join(","),t!==void 0&&(i.input.maskAll=t);var n=r.get_config("record_mask_text_selector"),s=r.get_config("record_unmask_text_selector"),a=r.get_config("record_mask_all_text"),u=r.get_config("record_mask_text_class"),l=fi(n);if(u)if(u instanceof RegExp)i.text._legacyClassRegex=u;else{var f="."+u;l.indexOf(f)===-1&&l.push(f)}return i.text.maskingSelector=l.join(","),i.text.unmaskingSelector=fi(s).join(","),a===void 0&&n!==void 0?i.text.maskAll=!1:a!==void 0&&(i.text.maskAll=a),i}function Bt(r,i){return i?!!r.closest(i):!1}function Mw(r,i){var o=(r.getAttribute("type")||"").toLowerCase();if(Ew.indexOf(o)!==-1)return!0;var e=(r.getAttribute("autocomplete")||"").toLowerCase();return e&&e!==""&&e!=="off"||r.hasAttribute(Rw)||xw(r)?!0:i.input.maskAll?!Bt(r,i.input.unmaskingSelector):!!(Bt(r,i.input.maskingSelector)||Bt(r,tc))}function $w(r,i){return r?i.text._legacyClassRegex&&Do(r,i.text._legacyClassRegex)?!0:i.text.maskAll?!Bt(r,i.text.unmaskingSelector):!!(Bt(r,i.text.maskingSelector)||Bt(r,tc)):!1}var Ut=Dt("recorder"),kw=W.CompressionStream,_w={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},Pw=new Set([P.MouseMove,P.MouseInteraction,P.Scroll,P.ViewportResize,P.Input,P.TouchMove,P.MediaInteraction,P.Drag,P.Selection]);function Tw(r){return r.type===F.IncrementalSnapshot&&Pw.has(r.data.source)}var ce=function(r){this._mixpanel=r.mixpanelInstance,this._onIdleTimeout=r.onIdleTimeout||Rs,this._onMaxLengthReached=r.onMaxLengthReached||Rs,this._onBatchSent=r.onBatchSent||Rs,this._rrwebRecord=r.rrwebRecord||null,this._stopRecording=null,this.replayId=r.replayId,this.batchStartUrl=r.batchStartUrl||null,this.replayStartUrl=r.replayStartUrl||null,this.idleExpires=r.idleExpires||null,this.maxExpires=r.maxExpires||null,this.replayStartTime=r.replayStartTime||null,this.lastEventTimestamp=r.lastEventTimestamp||null,this.seqNo=r.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=oi,this.recordMinMs=0;var i=xr(r.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new _e(Jf),this.batcher=new Ee(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:_w,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:r.sharedLockStorage,usePersistence:i,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:Ow,sharedLockTimeoutMS:10*1e3})};ce.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var r={distinct_id:String(this._mixpanel.get_distinct_id())},i=this._mixpanel.get_property("$device_id");i&&(r.$device_id=i);var o=this._mixpanel.get_property("$user_id");return o&&(r.$user_id=o),r},ce.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},ce.prototype.getConfig=function(r){return this._mixpanel.get_config(r)},ce.prototype.get_config=function(r){return this.getConfig(r)},ce.prototype.startRecording=function(r){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){Ut.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>oi&&(this.recordMaxMs=oi,Ut.critical("record_max_ms cannot be greater than "+oi+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=y.info.currentUrl(),this.replayStartUrl=y.info.currentUrl()),r||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var i=function(){clearTimeout(this.idleTimeoutId);var n=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,n),this.idleExpires=new Date().getTime()+n}.bind(this);i();var o=this.getConfig("record_block_selector");(o===""||o===null)&&(o=void 0);var e=Aw(this._mixpanel);try{this._stopRecording=this._rrwebRecord({emit:function(n){if(this.idleExpires&&this.idleExpires<n.timestamp){this._onIdleTimeout();return}Tw(n)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),i()),this.__enqueuePromise=this.batcher.enqueue(n),(this.lastEventTimestamp===null||n.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=n.timestamp)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:o,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(Mw,e),maskTextFn:this._getMaskFn($w,e),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[Zy({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}})]:[]})}catch(n){this.reportError("Unexpected error when starting rrweb recording.",n)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var t=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),t)},ce.prototype.stopRecording=function(r){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(o){this.reportError("Error with rrweb stopRecording",o)}this._stopRecording=null}var i;return this.batcher.stopped?i=this.batcher.clear():r||(i=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),i},ce.prototype.isRrwebStopped=function(){return this._stopRecording===null},ce.prototype.flushEventsWithOptOut=function(r,i,o){var e=function(t){t===0&&(this.stopRecording(),o({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(r,i,o,e)},ce.prototype.serialize=function(){var r;try{r=this._mixpanel.get_tab_id()}catch(i){this.reportError("Error getting tab ID for serialization ",i),r=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:r}},ce.deserialize=function(r,i){var o=new ce(y.extend({},i,{replayId:r.replayId,batchStartUrl:r.batchStartUrl,replayStartUrl:r.replayStartUrl,idleExpires:r.idleExpires,maxExpires:r.maxExpires,replayStartTime:r.replayStartTime,lastEventTimestamp:r.lastEventTimestamp,seqNo:r.seqNo,sharedLockStorage:i.sharedLockStorage}));return o},ce.prototype._sendRequest=function(r,i,o,e){var t=function(s,a){s.status===200&&this.replayId===r&&(this.seqNo++,this.batchStartUrl=y.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.headers.get("Retry-After")})}.bind(this),n=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");W.fetch(n+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(i),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:o}).then(function(s){s.json().then(function(a){t(s,a)}).catch(function(a){e({error:a})})}).catch(function(s){e({error:s,httpStatusCode:0})})},ce.prototype._flushEvents=mw(function(r,i,o){var e=r.length;if(e>0){for(var t=this.replayId,n=1/0,s=-1/0,a=!1,u=0;u<e;u++)n=Math.min(n,r[u].timestamp),s=Math.max(s,r[u].timestamp),r[u].type===F.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){o({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=n}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=n);var l=s-this.replayStartTime,f={$current_url:this.batchStartUrl,$lib_version:ys.LIB_VERSION,batch_start_time:n/1e3,mp_lib:"web",replay_id:t,replay_length_ms:l,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},c=JSON.stringify(r);if(Object.assign(f,this.getUserIdInfo()),fw(ut,Lt.vendor,Or)){var h=new Blob([c],{type:"application/json"}).stream(),v=h.pipeThrough(new kw("gzip"));new Response(v).blob().then(function(d){f.format="gzip",this._sendRequest(t,f,d,o)}.bind(this))}else f.format="body",this._sendRequest(t,f,c,o)}}),ce.prototype.reportError=function(r,i){Ut.error.apply(Ut.error,arguments);try{!i&&!(r instanceof Error)&&(r=new Error(r)),this.getConfig("error_reporter")(r,i)}catch(o){Ut.error(o)}},ce.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},ce.prototype._getRecordMinMs=function(){var r=this.getConfig("record_min_ms");return r>ws?(Ut.critical("record_min_ms cannot be greater than "+ws+"ms. Capping value."),ws):r},ce.prototype._getMaskFn=function(r,i){return function(o,e){if(!o.trim().length)return"";var t=!0;try{t=r(e,i)}catch(s){this.reportError("Error checking if text should be masked, defaulting to masked",s)}if(t){var n=Math.min(o.length,1e4);return"*".repeat(n)}else return o}.bind(this)};var Be=function(r){this.idb=new _e(Hf),this.errorReporter=r.errorReporter,this.mixpanelInstance=r.mixpanelInstance,this.sharedLockStorage=r.sharedLockStorage};Be.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Be.prototype.handleError=function(r){this.errorReporter("IndexedDB error: ",r)},Be.prototype.setActiveRecording=function(r){if(!this.isPersistenceEnabled())return B.resolve();var i=r.tabId;return i?this.idb.init().then(function(){return this.idb.setItem(i,r)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),B.resolve())},Be.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(r){return ec(r)?null:r}.bind(this)).catch(this.handleError.bind(this)):B.resolve(null)},Be.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Be.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(r){if(r)return r.maxExpires=0,this.setActiveRecording(r)}.bind(this)).catch(this.handleError.bind(this))},Be.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):B.resolve()},Be.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(r){var i=r.filter(function(o){return ec(o)}).map(function(o){var e=ce.deserialize(o,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return e.unloadPersistedData().then(function(){return this.idb.removeItem(o.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return B.all(i)}.bind(this)).catch(this.handleError.bind(this)):B.resolve([])};var Er=Dt("recorder"),Ue=function(r,i,o){this.mixpanelInstance=r,this.rrwebRecord=i||Je,this.sharedLockStorage=o,this.recordingRegistry=new Be({mixpanelInstance:this.mixpanelInstance,errorReporter:Er.error,sharedLockStorage:o}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Ue.prototype.startRecording=function(r){if(r=r||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Er.log("Recording already in progress, skipping startRecording.");return}var i=function(){Er.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),o=function(){Er.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),e=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),t={mixpanelInstance:this.mixpanelInstance,onBatchSent:e,onIdleTimeout:i,onMaxLengthReached:o,replayId:y.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return r.activeSerializedRecording?this.activeRecording=ce.deserialize(r.activeSerializedRecording,t):this.activeRecording=new ce(t),this.activeRecording.startRecording(r.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Ue.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},Ue.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Ue.prototype._stopCurrentRecording=function(r,i){if(this.activeRecording){var o=this.activeRecording.stopRecording(r);return i&&(this.activeRecording=null),o}return B.resolve()},Ue.prototype.resumeRecording=function(r){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),B.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(i){return i&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:i}):r?this.startRecording({shouldStopBatcher:!1}):(Er.log("No resumable recording found."),null)}.bind(this))},Ue.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Ue.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Ue.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),W[ac]=Ue})();
2
2
  //# sourceMappingURL=mixpanel-recorder.min.js.map