mixpanel-browser 2.73.0 → 2.74.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 (43) hide show
  1. package/.claude/settings.local.json +12 -0
  2. package/.eslintrc.json +7 -4
  3. package/.github/workflows/integration-tests.yml +52 -0
  4. package/.github/workflows/unit-tests.yml +40 -0
  5. package/CHANGELOG.md +7 -0
  6. package/README.md +1 -1
  7. package/build.sh +1 -5
  8. package/dist/mixpanel-core.cjs.d.ts +12 -1
  9. package/dist/mixpanel-core.cjs.js +115 -15
  10. package/dist/mixpanel-recorder.js +5255 -687
  11. package/dist/mixpanel-recorder.min.js +1 -1
  12. package/dist/mixpanel-recorder.min.js.map +1 -1
  13. package/dist/mixpanel-with-async-recorder.cjs.d.ts +12 -1
  14. package/dist/mixpanel-with-async-recorder.cjs.js +115 -15
  15. package/dist/mixpanel-with-recorder.d.ts +12 -1
  16. package/dist/mixpanel-with-recorder.js +6720 -2079
  17. package/dist/mixpanel-with-recorder.min.d.ts +12 -1
  18. package/dist/mixpanel-with-recorder.min.js +1 -1
  19. package/dist/mixpanel.amd.d.ts +12 -1
  20. package/dist/mixpanel.amd.js +6720 -2079
  21. package/dist/mixpanel.cjs.d.ts +12 -1
  22. package/dist/mixpanel.cjs.js +6720 -2079
  23. package/dist/mixpanel.globals.js +115 -15
  24. package/dist/mixpanel.min.js +174 -172
  25. package/dist/mixpanel.module.d.ts +12 -1
  26. package/dist/mixpanel.module.js +6720 -2079
  27. package/dist/mixpanel.umd.d.ts +12 -1
  28. package/dist/mixpanel.umd.js +6720 -2079
  29. package/dist/rrweb-bundled.js +4315 -591
  30. package/dist/rrweb-compiled.js +4962 -641
  31. package/package.json +30 -5
  32. package/rollup.config.mjs +254 -224
  33. package/src/autocapture/utils.js +15 -7
  34. package/src/config.js +1 -1
  35. package/src/index.d.ts +12 -1
  36. package/src/mixpanel-core.js +89 -5
  37. package/src/recorder/masking.js +197 -0
  38. package/src/recorder/rrweb-entrypoint.js +2 -1
  39. package/src/recorder/session-recording.js +43 -4
  40. package/src/recorder/utils.js +5 -1
  41. package/src/utils.js +11 -2
  42. package/testServer.js +51 -7
  43. package/.github/workflows/tests.yml +0 -25
@@ -1,2 +1,2 @@
1
- (function(){"use strict";var z;if(typeof window=="undefined"){var so={hostname:""};z={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:so,referrer:""},screen:{width:0,height:0},location:so,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else z=window;function ao(t,n){(n==null||n>t.length)&&(n=t.length);for(var o=0,e=new Array(n);o<n;o++)e[o]=t[o];return e}function uo(t,n,o,e,r,i,s){try{var a=t[i](s),u=a.value}catch(l){o(l);return}a.done?n(u):Promise.resolve(u).then(e,r)}function In(t){return function(){var n=this,o=arguments;return new Promise(function(e,r){var i=t.apply(n,o);function s(u){uo(i,e,r,s,a,"next",u)}function a(u){uo(i,e,r,s,a,"throw",u)}s(void 0)})}}function lr(t,n,o){return lo()?lr=Reflect.construct:lr=function(r,i,s){var a=[null];a.push.apply(a,i);var u=Function.bind.apply(r,a),l=new u;return s&&Mt(l,s.prototype),l},lr.apply(null,arguments)}function Pu(t,n){for(var o=0;o<n.length;o++){var e=n[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function se(t,n,o){return n&&Pu(t.prototype,n),t}function U(){return U=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])}return t},U.apply(this,arguments)}function On(t){return On=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},On(t)}function ue(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&Mt(t,n)}function M(t,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function Nu(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function At(t,n){if(t==null)return{};var o={},e=Object.keys(t),r,i;for(i=0;i<e.length;i++)r=e[i],!(n.indexOf(r)>=0)&&(o[r]=t[r]);return o}function Mt(t,n){return Mt=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},Mt(t,n)}function N(t){"@swc/helpers - typeof";return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function $u(t,n){if(t){if(typeof t=="string")return ao(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(o);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ao(t,n)}}function cr(t){var n=typeof Map=="function"?new Map:void 0;return cr=function(e){if(e===null||!Nu(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return lr(e,arguments,On(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Mt(r,e)},cr(t)}function lo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(lo=function(){return!!t})()}function O(t,n){var o=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=$u(t))||n){o&&(t=o);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function kt(t,n){var o,e,r,i,s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(l){return function(c){return u([l,c])}}function u(l){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,e&&(r=l[0]&2?e.return:l[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,l[1])).done)return r;switch(e=0,r&&(l=[l[0]&2,r.value]),l[0]){case 0:case 1:r=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,e=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){s=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){s.label=l[1];break}if(l[0]===6&&s.label<r[1]){s.label=r[1],r=l;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(l);break}r[2]&&s.ops.pop(),s.trys.pop();continue}l=n.call(t,s)}catch(c){l=[6,c],e=0}finally{o=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function co(t){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&t[n],e=0;if(o)return o.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var Lu=Object.defineProperty,Du=function(t,n,o){return n in t?Lu(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o},I=function(t,n,o){return Du(t,(typeof n=="undefined"?"undefined":N(n))!=="symbol"?n+"":n,o)},fo,Fu=Object.defineProperty,Bu=function(t,n,o){return n in t?Fu(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o},ho=function(t,n,o){return Bu(t,(typeof n=="undefined"?"undefined":N(n))!=="symbol"?n+"":n,o)},ie=function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t}(ie||{}),po={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},vo={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},fr={},Uu=function(){return!!globalThis.Zone};function Rn(t){if(fr[t])return fr[t];var n=globalThis[t],o=n.prototype,e=t in po?po[t]:void 0,r=!!(e&&e.every(function(c){var f,h;return!!((h=(f=Object.getOwnPropertyDescriptor(o,c))==null?void 0:f.get)!=null&&h.toString().includes("[native code]"))})),i=t in vo?vo[t]:void 0,s=!!(i&&i.every(function(c){var f;return typeof o[c]=="function"&&((f=o[c])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!Uu())return fr[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var l=u[t].prototype;return document.body.removeChild(a),l?fr[t]=l:o}catch(c){return o}}var xn={};function $e(t,n,o){var e,r=t+"."+String(o);if(xn[r])return xn[r].call(n);var i=Rn(t),s=(e=Object.getOwnPropertyDescriptor(i,o))==null?void 0:e.get;return s?(xn[r]=s,s.call(n)):n[o]}var En={};function mo(t,n,o){var e=t+"."+String(o);if(En[e])return En[e].bind(n);var r=Rn(t),i=r[o];return typeof i!="function"?n[o]:(En[e]=i,i.bind(n))}function zu(t){return $e("Node",t,"childNodes")}function Wu(t){return $e("Node",t,"parentNode")}function Gu(t){return $e("Node",t,"parentElement")}function ju(t){return $e("Node",t,"textContent")}function Vu(t,n){return mo("Node",t,"contains")(n)}function Yu(t){return mo("Node",t,"getRootNode")()}function qu(t){return!t||!("host"in t)?null:$e("ShadowRoot",t,"host")}function Hu(t){return t.styleSheets}function Ju(t){return!t||!("shadowRoot"in t)?null:$e("Element",t,"shadowRoot")}function Zu(t,n){return $e("Element",t,"querySelector")(n)}function Ku(t,n){return $e("Element",t,"querySelectorAll")(n)}function Xu(){return Rn("MutationObserver").constructor}function Qu(t,n,o){try{if(!(n in t))return function(){};var e=t[n],r=o(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(i){return function(){}}}var le={childNodes:zu,parentNode:Wu,parentElement:Gu,textContent:ju,contains:Vu,getRootNode:Yu,host:qu,styleSheets:Hu,shadowRoot:Ju,querySelector:Zu,querySelectorAll:Ku,mutationObserver:Xu,patch:Qu};function go(t){return t.nodeType===t.ELEMENT_NODE}function _t(t){var n=t&&"host"in t&&"mode"in t&&le.host(t)||null;return!!(n&&"shadowRoot"in n&&le.shadowRoot(n)===t)}function Tt(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function el(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function tl(t){var n=t.cssText;if(n.split('"').length<3)return n;var o=["@import","url("+JSON.stringify(t.href)+")"];return t.layerName===""?o.push("layer"):t.layerName&&o.push("layer("+t.layerName+")"),t.supportsText&&o.push("supports("+t.supportsText+")"),t.media.length&&o.push(t.media.mediaText),o.join(" ")+";"}function An(t){try{var n=t.rules||t.cssRules;if(!n)return null;var o=t.href;!o&&t.ownerNode&&t.ownerNode.ownerDocument&&(o=t.ownerNode.ownerDocument.location.href);var e=Array.from(n,function(r){return yo(r,o)}).join("");return el(e)}catch(r){return null}}function yo(t,n){if(nl(t)){var o;try{o=An(t.styleSheet)||tl(t)}catch(r){o=t.cssText}return t.styleSheet.href?pr(o,t.styleSheet.href):o}else{var e=t.cssText;return il(t)&&t.selectorText.includes(":")&&(e=rl(e)),n?pr(e,n):e}}function rl(t){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(n,"$1\\$2")}function nl(t){return"styleSheet"in t}function il(t){return"selectorText"in t}var wo=function(){function t(){ho(this,"idNodeMap",new Map),ho(this,"nodeMetaMap",new WeakMap)}var n=t.prototype;return n.getId=function(e){var r;if(!e)return-1;var i=(r=this.getMeta(e))==null?void 0:r.id;return i!=null?i:-1},n.getNode=function(e){return this.idNodeMap.get(e)||null},n.getIds=function(){return Array.from(this.idNodeMap.keys())},n.getMeta=function(e){return this.nodeMetaMap.get(e)||null},n.removeNodeFromMap=function(e){var r=this,i=this.getId(e);this.idNodeMap.delete(i),e.childNodes&&e.childNodes.forEach(function(s){return r.removeNodeFromMap(s)})},n.has=function(e){return this.idNodeMap.has(e)},n.hasNode=function(e){return this.nodeMetaMap.has(e)},n.add=function(e,r){var i=r.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,r)},n.replace=function(e,r){var i=this.getNode(e);if(i){var s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(e,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t}();function ol(){return new wo}function hr(t){var n=t.element,o=t.maskInputOptions,e=t.tagName,r=t.type,i=t.value,s=t.maskInputFn,a=i||"",u=r&&je(r);return(o[e.toLowerCase()]||u&&o[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function je(t){return t.toLowerCase()}var bo="__rrweb_original__";function sl(t){var n=t.getContext("2d");if(!n)return!0;for(var o=50,e=0;e<t.width;e+=o)for(var r=0;r<t.height;r+=o){var i=n.getImageData,s=bo in i?i[bo]:i,a=new Uint32Array(s.call(n,e,r,Math.min(o,t.width-e),Math.min(o,t.height-r)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function dr(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?je(n):null}function So(t,n){var o;try{o=new URL(t,n!=null?n:window.location.href)}catch(s){return null}var e=/\.([0-9a-z]+)(?:$)/i,r=o.pathname.match(e),i;return(i=r==null?void 0:r[1])!=null?i:null}function al(t){var n="";return t.indexOf("//")>-1?n=t.split("/").slice(0,3).join("/"):n=t.split("/")[0],n=n.split("?")[0],n}var ul=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ll=/^(?:[a-z+]+:)?\/\//i,cl=/^www\..*/i,fl=/^(data:)([^,]*),(.*)/i;function pr(t,n){return(t||"").replace(ul,function(o,e,r,i,s,a){var u=r||s||a,l=e||i||"";if(!u)return o;if(ll.test(u)||cl.test(u)||fl.test(u))return"url("+l+u+l+")";if(u[0]==="/")return"url("+l+(al(n)+u)+l+")";var c=n.split("/"),f=u.split("/");c.pop();for(var h=O(f),v;!(v=h()).done;){var p=v.value;p!=="."&&(p===".."?c.pop():c.push(p))}return"url("+l+c.join("/")+l+")"})}function vr(t,n){return n===void 0&&(n=!1),n?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function hl(t,n,o){o===void 0&&(o=!1);var e=Array.from(n.childNodes),r=[],i=0;if(e.length>1&&t&&typeof t=="string"){for(var s=vr(t,o),a=s.length/t.length,u=1;u<e.length;u++)if(e[u].textContent&&typeof e[u].textContent=="string"){for(var l=vr(e[u].textContent,o),c=100,f=3;f<l.length&&(l[f].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,f),1)!==-1);f++);for(;f<l.length;f++){var h=l.substring(0,f),v=s.split(h),p=-1;if(v.length===2)p=v[0].length;else if(v.length>2&&v[0]===""&&e[u-1].textContent!=="")p=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 r.push(t),r;f=c+1}else f===l.length-1&&(p=s.indexOf(h));if(v.length>=2&&f>c){var y=e[u-1].textContent;if(y&&typeof y=="string"){var d=vr(y).length;p=s.indexOf(h,d)}p===-1&&(p=v[0].length)}if(p!==-1){for(var g=Math.floor(p/a);g>0&&g<t.length;){if(i+=1,i>50*e.length)return r.push(t),r;var w=vr(t.substring(0,g),o);if(w.length===p){r.push(t.substring(0,g)),t=t.substring(g),s=s.substring(p);break}else w.length<p?g+=Math.max(1,Math.floor((p-w.length)/a)):g-=Math.max(1,Math.floor((w.length-p)*a))}break}}}}return r.push(t),r}function dl(t,n){return hl(t,n).join("/* rr_split */")}var pl=1,vl=new RegExp("[^a-z0-9-_:]"),Pt=-2;function Co(){return pl++}function ml(t){if(M(t,HTMLFormElement))return"form";var n=je(t.tagName);return vl.test(n)?"div":n}var st,Io,gl=/^[^ \t\n\r\u000c]+/,yl=/^[, \t\n\r\u000c]+/;function wl(t,n){if(n.trim()==="")return n;var o=0;function e(l){var c,f=l.exec(n.substring(o));return f?(c=f[0],o+=c.length,c):""}for(var r=[];e(yl),!(o>=n.length);){var i=e(gl);if(i.slice(-1)===",")i=at(t,i.substring(0,i.length-1)),r.push(i);else{var s="";i=at(t,i);for(var a=!1;;){var u=n.charAt(o);if(u===""){r.push((i+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){o+=1,r.push((i+s).trim());break}else u==="("&&(a=!0);s+=u,o+=1}}}return r.join(", ")}var Oo=new WeakMap;function at(t,n){return!n||n.trim()===""?n:Mn(t,n)}function bl(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function Mn(t,n){var o=Oo.get(t);if(o||(o=t.createElement("a"),Oo.set(t,o)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return o.setAttribute("href",n),o.href}function Ro(t,n,o,e){return e&&(o==="src"||o==="href"&&!(n==="use"&&e[0]==="#")||o==="xlink:href"&&e[0]!=="#"||o==="background"&&(n==="table"||n==="td"||n==="th")?at(t,e):o==="srcset"?wl(t,e):o==="style"?pr(e,Mn(t)):n==="object"&&o==="data"?at(t,e):e)}function xo(t,n,o){return(t==="video"||t==="audio")&&n==="autoplay"}function Sl(t,n,o){try{if(typeof n=="string"){if(t.classList.contains(n))return!0}else for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}if(o)return t.matches(o)}catch(i){}return!1}function mr(t,n,o){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return o?mr(le.parentNode(t),n,o):!1;for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return o?mr(le.parentNode(t),n,o):!1}function Eo(t,n,o,e){var r;if(go(t)){if(r=t,!le.childNodes(r).length)return!1}else{if(le.parentElement(t)===null)return!1;r=le.parentElement(t)}try{if(typeof n=="string"){if(e){if(r.closest("."+n))return!0}else if(r.classList.contains(n))return!0}else if(mr(r,n,e))return!0;if(o){if(e){if(r.closest(o))return!0}else if(r.matches(o))return!0}}catch(i){}return!1}function Cl(t,n,o){var e=t.contentWindow;if(e){var r=!1,i;try{i=e.document.readyState}catch(u){return}if(i!=="complete"){var s=setTimeout(function(){r||(n(),r=!0)},o);t.addEventListener("load",function(){clearTimeout(s),r=!0,n()});return}var a="about:blank";if(e.location.href!==a||t.src===a||t.src==="")return setTimeout(n,0),t.addEventListener("load",n);t.addEventListener("load",n)}}function Il(t,n,o){var e=!1,r;try{r=t.sheet}catch(s){return}if(!r){var i=setTimeout(function(){e||(n(),e=!0)},o);t.addEventListener("load",function(){clearTimeout(i),e=!0,n()})}}function Ol(t,n){var o=n.doc,e=n.mirror,r=n.blockClass,i=n.blockSelector,s=n.needsMask,a=n.inlineStylesheet,u=n.maskInputOptions,l=u===void 0?{}:u,c=n.maskTextFn,f=n.maskInputFn,h=n.dataURLOptions,v=h===void 0?{}:h,p=n.inlineImages,y=n.recordCanvas,d=n.keepIframeSrcFn,g=n.newlyAddedElement,w=g===void 0?!1:g,b=n.cssCaptured,S=b===void 0?!1:b,C=Rl(o,e);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:ie.Document,childNodes:[],compatMode:t.compatMode}:{type:ie.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:ie.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:C};case t.ELEMENT_NODE:return El(t,{doc:o,blockClass:r,blockSelector:i,inlineStylesheet:a,maskInputOptions:l,maskInputFn:f,dataURLOptions:v,inlineImages:p,recordCanvas:y,keepIframeSrcFn:d,newlyAddedElement:w,rootId:C});case t.TEXT_NODE:return xl(t,{doc:o,needsMask:s,maskTextFn:c,rootId:C,cssCaptured:S});case t.CDATA_SECTION_NODE:return{type:ie.CDATA,textContent:"",rootId:C};case t.COMMENT_NODE:return{type:ie.Comment,textContent:le.textContent(t)||"",rootId:C};default:return!1}}function Rl(t,n){if(n.hasNode(t)){var o=n.getId(t);return o===1?void 0:o}}function xl(t,n){var o=n.needsMask,e=n.maskTextFn,r=n.rootId,i=n.cssCaptured,s=le.parentNode(t),a=s&&s.tagName,u="",l=a==="STYLE"?!0:void 0,c=a==="SCRIPT"?!0:void 0;return c?u="SCRIPT_PLACEHOLDER":i||(u=le.textContent(t),l&&u&&(u=pr(u,Mn(n.doc)))),!l&&!c&&u&&o&&(u=e?e(u,le.parentElement(t)):u.replace(/[\S]/g,"*")),{type:ie.Text,textContent:u||"",rootId:r}}function El(t,n){for(var o=n.doc,e=n.blockClass,r=n.blockSelector,i=n.inlineStylesheet,s=n.maskInputOptions,a=s===void 0?{}:s,u=n.maskInputFn,l=n.dataURLOptions,c=l===void 0?{}:l,f=n.inlineImages,h=n.recordCanvas,v=n.keepIframeSrcFn,p=n.newlyAddedElement,y=p===void 0?!1:p,d=n.rootId,g=Sl(t,e,r),w=ml(t),b={},S=t.attributes.length,C=0;C<S;C++){var R=t.attributes[C];xo(w,R.name,R.value)||(b[R.name]=Ro(o,w,je(R.name),R.value))}if(w==="link"&&i){var A=Array.from(o.styleSheets).find(function(we){return we.href===t.href}),x=null;A&&(x=An(A)),x&&(delete b.rel,delete b.href,b._cssText=x)}if(w==="style"&&t.sheet){var k=An(t.sheet);k&&(t.childNodes.length>1&&(k=dl(k,t)),b._cssText=k)}if(w==="input"||w==="textarea"||w==="select"){var P=t.value,_=t.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&P?b.value=hr({element:t,type:dr(t),tagName:w,value:P,maskInputOptions:a,maskInputFn:u}):_&&(b.checked=_)}if(w==="option"&&(t.selected&&!a.select?b.selected=!0:delete b.selected),w==="dialog"&&t.open&&(b.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&h){if(t.__context==="2d")sl(t)||(b.rr_dataURL=t.toDataURL(c.type,c.quality));else if(!("__context"in t)){var $=t.toDataURL(c.type,c.quality),G=o.createElement("canvas");G.width=t.width,G.height=t.height;var pe=G.toDataURL(c.type,c.quality);$!==pe&&(b.rr_dataURL=$)}}if(w==="img"&&f){st||(st=o.createElement("canvas"),Io=st.getContext("2d"));var j=t,ge=j.currentSrc||j.getAttribute("src")||"<unknown-src>",he=j.crossOrigin,Q=function(){j.removeEventListener("load",Q);try{st.width=j.naturalWidth,st.height=j.naturalHeight,Io.drawImage(j,0,0),b.rr_dataURL=st.toDataURL(c.type,c.quality)}catch(we){if(j.crossOrigin!=="anonymous"){j.crossOrigin="anonymous",j.complete&&j.naturalWidth!==0?Q():j.addEventListener("load",Q);return}else console.warn("Cannot inline img src="+ge+"! Error: "+we)}j.crossOrigin==="anonymous"&&(he?b.crossOrigin=he:j.removeAttribute("crossorigin"))};j.complete&&j.naturalWidth!==0?Q():j.addEventListener("load",Q)}if(w==="audio"||w==="video"){var ae=b;ae.rr_mediaState=t.paused?"paused":"played",ae.rr_mediaCurrentTime=t.currentTime,ae.rr_mediaPlaybackRate=t.playbackRate,ae.rr_mediaMuted=t.muted,ae.rr_mediaLoop=t.loop,ae.rr_mediaVolume=t.volume}if(y||(t.scrollLeft&&(b.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(b.rr_scrollTop=t.scrollTop)),g){var ye=t.getBoundingClientRect(),Ke=ye.width,Ae=ye.height;b={class:b.class,rr_width:""+Ke+"px",rr_height:""+Ae+"px"}}w==="iframe"&&!v(b.src)&&(t.contentDocument||(b.rr_src=b.src),delete b.src);var Ot;try{customElements.get(w)&&(Ot=!0)}catch(we){}return{type:ie.Element,tagName:w,attributes:b,childNodes:[],isSVG:bl(t)||void 0,needBlock:g,rootId:d,isCustom:Ot}}function H(t){return t==null?"":t.toLowerCase()}function Al(t,n){if(n.comment&&t.type===ie.Comment)return!0;if(t.type===ie.Element){if(n.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"&&t.attributes.as==="script"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&So(t.attributes.href)==="js"))return!0;if(n.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(H(t.attributes.name).match(/^msapplication-tile(image|color)$/)||H(t.attributes.name)==="application-name"||H(t.attributes.rel)==="icon"||H(t.attributes.rel)==="apple-touch-icon"||H(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(n.headMetaDescKeywords&&H(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(H(t.attributes.property).match(/^(og|twitter|fb):/)||H(t.attributes.name).match(/^(og|twitter):/)||H(t.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(H(t.attributes.name)==="robots"||H(t.attributes.name)==="googlebot"||H(t.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(H(t.attributes.name)==="author"||H(t.attributes.name)==="generator"||H(t.attributes.name)==="framework"||H(t.attributes.name)==="publisher"||H(t.attributes.name)==="progid"||H(t.attributes.property).match(/^article:/)||H(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(H(t.attributes.name)==="google-site-verification"||H(t.attributes.name)==="yandex-verification"||H(t.attributes.name)==="csrf-token"||H(t.attributes.name)==="p:domain_verify"||H(t.attributes.name)==="verify-v1"||H(t.attributes.name)==="verification"||H(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ut(t,n){var o=n.doc,e=n.mirror,r=n.blockClass,i=n.blockSelector,s=n.maskTextClass,a=n.maskTextSelector,u=n.skipChild,l=u===void 0?!1:u,c=n.inlineStylesheet,f=c===void 0?!0:c,h=n.maskInputOptions,v=h===void 0?{}:h,p=n.maskTextFn,y=n.maskInputFn,d=n.slimDOMOptions,g=n.dataURLOptions,w=g===void 0?{}:g,b=n.inlineImages,S=b===void 0?!1:b,C=n.recordCanvas,R=C===void 0?!1:C,A=n.onSerialize,x=n.onIframeLoad,k=n.iframeLoadTimeout,P=k===void 0?5e3:k,_=n.onStylesheetLoad,$=n.stylesheetLoadTimeout,G=$===void 0?5e3:$,pe=n.keepIframeSrcFn,j=pe===void 0?function(){return!1}:pe,ge=n.newlyAddedElement,he=ge===void 0?!1:ge,Q=n.cssCaptured,ae=Q===void 0?!1:Q,ye=n.needsMask,Ke=n.preserveWhiteSpace,Ae=Ke===void 0?!0:Ke;if(!ye){var Ot=ye===void 0;ye=Eo(t,s,a,Ot)}var we=Ol(t,{doc:o,mirror:e,blockClass:r,blockSelector:i,needsMask:ye,inlineStylesheet:f,maskInputOptions:v,maskTextFn:p,maskInputFn:y,dataURLOptions:w,inlineImages:S,recordCanvas:R,keepIframeSrcFn:j,newlyAddedElement:he,cssCaptured:ae});if(!we)return console.warn(t,"not serialized"),null;var Xe;e.hasNode(t)?Xe=e.getId(t):Al(we,d)||!Ae&&we.type===ie.Text&&!we.textContent.replace(/^\s+|\s+$/gm,"").length?Xe=Pt:Xe=Co();var W=Object.assign(we,{id:Xe});if(e.add(t,W),Xe===Pt)return null;A&&A(t);var Qe=!l;if(W.type===ie.Element){Qe=Qe&&!W.needBlock,delete W.needBlock;var et=le.shadowRoot(t);et&&Tt(et)&&(W.isShadowHost=!0)}if((W.type===ie.Document||W.type===ie.Element)&&Qe){d.headWhitespace&&W.type===ie.Element&&W.tagName==="head"&&(Ae=!1);var Rt={doc:o,mirror:e,blockClass:r,blockSelector:i,needsMask:ye,maskTextClass:s,maskTextSelector:a,skipChild:l,inlineStylesheet:f,maskInputOptions:v,maskTextFn:p,maskInputFn:y,slimDOMOptions:d,dataURLOptions:w,inlineImages:S,recordCanvas:R,preserveWhiteSpace:Ae,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:P,onStylesheetLoad:_,stylesheetLoadTimeout:G,keepIframeSrcFn:j,cssCaptured:!1};if(!(W.type===ie.Element&&W.tagName==="textarea"&&W.attributes.value!==void 0)){W.type===ie.Element&&W.attributes._cssText!==void 0&&typeof W.attributes._cssText=="string"&&(Rt.cssCaptured=!0);for(var or=O(Array.from(le.childNodes(t))),sr;!(sr=or()).done;){var no=sr.value,Sn=ut(no,Rt);Sn&&W.childNodes.push(Sn)}}var Ge=null;if(go(t)&&(Ge=le.shadowRoot(t)))for(var tt=O(Array.from(le.childNodes(Ge))),xt;!(xt=tt()).done;){var ar=xt.value,Et=ut(ar,Rt);Et&&(Tt(Ge)&&(Et.isShadow=!0),W.childNodes.push(Et))}}var rt=le.parentNode(t);return rt&&_t(rt)&&Tt(rt)&&(W.isShadow=!0),W.type===ie.Element&&W.tagName==="iframe"&&Cl(t,function(){var Ne=t.contentDocument;if(Ne&&x){var nt=ut(Ne,{doc:Ne,mirror:e,blockClass:r,blockSelector:i,needsMask:ye,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:v,maskTextFn:p,maskInputFn:y,slimDOMOptions:d,dataURLOptions:w,inlineImages:S,recordCanvas:R,preserveWhiteSpace:Ae,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:P,onStylesheetLoad:_,stylesheetLoadTimeout:G,keepIframeSrcFn:j});nt&&x(t,nt)}},P),W.type===ie.Element&&W.tagName==="link"&&typeof W.attributes.rel=="string"&&(W.attributes.rel==="stylesheet"||W.attributes.rel==="preload"&&typeof W.attributes.href=="string"&&So(W.attributes.href)==="css")&&Il(t,function(){if(_){var Ne=ut(t,{doc:o,mirror:e,blockClass:r,blockSelector:i,needsMask:ye,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:v,maskTextFn:p,maskInputFn:y,slimDOMOptions:d,dataURLOptions:w,inlineImages:S,recordCanvas:R,preserveWhiteSpace:Ae,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:P,onStylesheetLoad:_,stylesheetLoadTimeout:G,keepIframeSrcFn:j});Ne&&_(t,Ne)}},G),W}function Ml(t,n){var o=n||{},e=o.mirror,r=e===void 0?new wo:e,i=o.blockClass,s=i===void 0?"rr-block":i,a=o.blockSelector,u=a===void 0?null:a,l=o.maskTextClass,c=l===void 0?"rr-mask":l,f=o.maskTextSelector,h=f===void 0?null:f,v=o.inlineStylesheet,p=v===void 0?!0:v,y=o.inlineImages,d=y===void 0?!1:y,g=o.recordCanvas,w=g===void 0?!1:g,b=o.maskAllInputs,S=b===void 0?!1:b,C=o.maskTextFn,R=o.maskInputFn,A=o.slimDOM,x=A===void 0?!1:A,k=o.dataURLOptions,P=o.preserveWhiteSpace,_=o.onSerialize,$=o.onIframeLoad,G=o.iframeLoadTimeout,pe=o.onStylesheetLoad,j=o.stylesheetLoadTimeout,ge=o.keepIframeSrcFn,he=ge===void 0?function(){return!1}:ge,Q=S===!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===!1?{password:!0}:S,ae=x===!0||x==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:x==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:x===!1?{}:x;return ut(t,{doc:t,mirror:r,blockClass:s,blockSelector:u,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:Q,maskTextFn:C,maskInputFn:R,slimDOMOptions:ae,dataURLOptions:k,inlineImages:d,recordCanvas:w,preserveWhiteSpace:P,onSerialize:_,onIframeLoad:$,iframeLoadTimeout:G,onStylesheetLoad:pe,stylesheetLoadTimeout:j,keepIframeSrcFn:he,newlyAddedElement:!1})}function kl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _l(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var o=function e(){return M(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};o.prototype=n.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),o}var kn={exports:{}},J=String,Ao=function(){return{isColorSupported:!1,reset:J,bold:J,dim:J,italic:J,underline:J,inverse:J,hidden:J,strikethrough:J,black:J,red:J,green:J,yellow:J,blue:J,magenta:J,cyan:J,white:J,gray:J,bgBlack:J,bgRed:J,bgGreen:J,bgYellow:J,bgBlue:J,bgMagenta:J,bgCyan:J,bgWhite:J}};kn.exports=Ao(),kn.exports.createColors=Ao;var Tl=kn.exports,Pl={},Nl=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),re=_l(Nl),Mo=Tl,ko=re,_n=function(t){ue(n,t);function n(e,r,i,s,a,u){var l;return l=t.call(this,e)||this,l.name="CssSyntaxError",l.reason=e,a&&(l.file=a),s&&(l.source=s),u&&(l.plugin=u),typeof r!="undefined"&&typeof i!="undefined"&&(typeof r=="number"?(l.line=r,l.column=i):(l.line=r.line,l.column=r.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,n),l}var o=n.prototype;return o.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},o.showSourceCode=function(r){var i=this;if(!this.source)return"";var s=this.source;r==null&&(r=Mo.isColorSupported),ko&&r&&(s=ko(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),c=String(l).length,f,h;if(r){var v=Mo.createColors(!0),p=v.bold,y=v.gray,d=v.red;f=function(g){return p(d(g))},h=function(g){return y(g)}}else f=h=function(g){return g};return a.slice(u,l).map(function(g,w){var b=u+1+w,S=" "+(" "+b).slice(-c)+" | ";if(b===i.line){var C=h(S.replace(/\d/g," "))+g.slice(0,i.column-1).replace(/[^\t]/g," ");return f(">")+h(S)+g+"\n "+C+f("^")}return" "+h(S)+g}).join("\n")},o.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(cr(Error)),Tn=_n;_n.default=_n;var Le={};Le.isClean=Symbol("isClean"),Le.my=Symbol("my");var _o={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function $l(t){return t[0].toUpperCase()+t.slice(1)}var Pn=function(){function t(o){this.builder=o}var n=t.prototype;return n.atrule=function(e,r){var i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(i+s+a,e)}},n.beforeAfter=function(e,r){var i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):r==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(i.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var l=0;l<a;l++)i+=u}return i},n.block=function(e,r){var i=this.raw(e,"between","beforeOpen");this.builder(r+i+"{",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")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var i=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||i)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+i+"*/",e)},n.decl=function(e,r){var i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,i){var s;if(i||(i=r),r&&(s=e.raws[r],typeof s!="undefined"))return s;var a=e.parent;if(i==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return _o[i];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[i]!="undefined")return u.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);var l="raw"+$l(i);return this[l]?s=this[l](u,e):u.walk(function(c){if(s=c.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=_o[i]),u.rawCache[i]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length>0&&typeof i.raws.after!="undefined")return r=i.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var i;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return i=s.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(r,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeDecl=function(e,r){var i;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return i=s.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(r,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeOpen=function(e){var r;return e.walk(function(i){if(i.type!=="decl"&&(r=i.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before!="undefined")return r=i.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(i){if(typeof i.raws.between!="undefined")return r=i.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length===0&&(r=i.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(i){var s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof i.raws.before!="undefined"){var a=i.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(r=i.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var i=e[r],s=e.raws[r];return s&&s.value===i?s.raw:i},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t}(),To=Pn;Pn.default=Pn;var Ll=To;function Nn(t,n){var o=new Ll(n);o.stringify(t)}var gr=Nn;Nn.default=Nn;var yr=Le.isClean,Dl=Le.my,Fl=Tn,Bl=To,Ul=gr;function $n(t,n){var o=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],i=typeof r=="undefined"?"undefined":N(r);e==="parent"&&i==="object"?n&&(o[e]=n):e==="source"?o[e]=r:Array.isArray(r)?o[e]=r.map(function(s){return $n(s,o)}):(i==="object"&&r!==null&&(r=$n(r)),o[e]=r)}return o}var Ln=function(){function t(o){o===void 0&&(o={}),this.raws={},this[yr]=!1,this[Dl]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var r=O(o[e]),i;!(i=r()).done;){var s=i.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=$n(this);for(var i in e)r[i]=e[i];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var i=this.rangeBy(r),s=i.end,a=i.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new Fl(e)},n.getProxyProcessor=function(){return{get:function(r,i){return i==="proxyOf"?r:i==="root"?function(){return r.root().toProxy()}:r[i]},set:function(r,i,s){return r[i]===s||(r[i]=s,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[yr]){this[yr]=!1;for(var e=this;e=e.parent;)e[yr]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var i=this.source.start;if(e.index)i=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(i=this.positionInside(s,r))}return i},n.positionInside=function(e,r){for(var i=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)i[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(r=this.positionInside(a,s),i=this.positionInside(a+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line}),{end:i,start:r}},n.raw=function(e,r){var i=new Bl;return i.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(this.parent){for(var s=this,a=!1,u=O(r),l;!(l=u()).done;){var c=l.value;c===this?a=!0:a?(this.parent.insertAfter(s,c),s=c):this.parent.insertBefore(s,c)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var i={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var l=this[u];if(Array.isArray(l))i[u]=l.map(function(f){return(typeof f=="undefined"?"undefined":N(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof l=="undefined"?"undefined":N(l))==="object"&&l.toJSON)i[u]=l.toJSON(null,r);else if(u==="source"){var c=r.get(l.input);c==null&&(c=a,r.set(l.input,a),a++),i[u]={end:l.end,inputId:c,start:l.start}}else i[u]=l}return s&&(i.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),i},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=Ul),e.stringify&&(e=e.stringify);var r="";return e(this,function(i){r+=i}),r},n.warn=function(e,r,i){var s={node:this};for(var a in i)s[a]=i[a];return e.warn(r,s)},se(t,[{key:"proxyOf",get:function(){return this}}]),t}(),wr=Ln;Ln.default=Ln;var zl=wr,Dn=function(t){ue(n,t);function n(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=U({},o,{value:String(o.value)})),e=t.call(this,o)||this,e.type="decl",e}return se(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(zl),br=Dn;Dn.default=Dn;var Wl="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Gl=function(t){t===void 0&&(t=21);for(var n="",o=t;o--;)n+=Wl[Math.random()*64|0];return n},jl={nanoid:Gl},Po=re.SourceMapConsumer,No=re.SourceMapGenerator,Vl=re.existsSync,Yl=re.readFileSync,Fn=re.dirname,ql=re.join;function Hl(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Bn=function(){function t(o,e){if(e.map!==!1){this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,i=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Fn(this.mapFile)),i&&(this.text=i)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Po(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||i.test(e))return Hl(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":N(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var i=e.lastIndexOf(r.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}},n.loadFile=function(e){if(this.root=Fn(e),Vl(e))return this.mapFile=e,Yl(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var i=r(e);if(i){var s=this.loadFile(i);if(!s)throw new Error("Unable to load previous source map: "+i.toString());return s}}else{if(M(r,Po))return No.fromSourceMap(r).toString();if(M(r,No))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=ql(Fn(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t}(),$o=Bn;Bn.default=Bn;var Jl=re.SourceMapConsumer,Zl=re.SourceMapGenerator,Lo=re.fileURLToPath,Sr=re.pathToFileURL,Un=re.isAbsolute,zn=re.resolve,Kl=jl.nanoid,Wn=re,Do=Tn,Xl=$o,Gn=Symbol("fromOffsetCache"),Ql=!!(Jl&&Zl),Fo=!!(zn&&Un),Cr=function(){function t(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":N(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Fo||/^\w+:\/\//.test(e.from)||Un(e.from)?this.file=e.from:this.file=zn(e.from)),Fo&&Ql){var r=new Xl(this.css,e);if(r.text){this.map=r;var i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Kl(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,i,s){s===void 0&&(s={});var a,u,l;if(r&&(typeof r=="undefined"?"undefined":N(r))==="object"){var c=r,f=i;if(typeof c.offset=="number"){var h=this.fromOffset(c.offset);r=h.line,i=h.col}else r=c.line,i=c.column;if(typeof f.offset=="number"){var v=this.fromOffset(f.offset);u=v.line,l=v.col}else u=f.line,l=f.column}else if(!i){var p=this.fromOffset(r);r=p.line,i=p.col}var y=this.origin(r,i,u,l);return y?a=new Do(e,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new Do(e,u===void 0?r:{column:i,line:r},u===void 0?i:{column:l,line:u},this.css,this.file,s.plugin),a.input={column:i,endColumn:l,endLine:u,line:r,source:this.css},this.file&&(Sr&&(a.input.url=Sr(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,i;if(this[Gn])i=this[Gn];else{var s=this.css.split("\n");i=new Array(s.length);for(var a=0,u=0,l=s.length;u<l;u++)i[u]=a,a+=s[u].length+1;this[Gn]=i}r=i[i.length-1];var c=0;if(e>=r)c=i.length-1;else for(var f=i.length-2,h;c<f;)if(h=c+(f-c>>1),e<i[h])f=h-1;else if(e>=i[h+1])c=h+1;else{c=h;break}return{col:e-i[c]+1,line:c+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:zn(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,i,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var l;typeof i=="number"&&(l=a.originalPositionFor({column:s,line:i}));var c;Un(u.source)?c=Sr(u.source):c=new URL(u.source,this.map.consumer().sourceRoot||Sr(this.map.mapFile));var f={column:u.column,endColumn:l&&l.column,endLine:l&&l.line,line:u.line,url:c.toString()};if(c.protocol==="file:")if(Lo)f.file=Lo(c);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(f.source=h),f},n.toJSON=function(){for(var e={},r=0,i=["hasBOM","css","file","id"];r<i.length;r++){var s=i[r];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=U({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},se(t,[{key:"from",get:function(){return this.file||this.id}}]),t}(),Ir=Cr;Cr.default=Cr,Wn&&Wn.registerInput&&Wn.registerInput(Cr);var Bo=re.SourceMapConsumer,Or=re.SourceMapGenerator,Rr=re.dirname,Uo=re.relative,zo=re.resolve,Wo=re.sep,Go=re.pathToFileURL,ec=Ir,tc=!!(Bo&&Or),rc=!!(Rr&&zo&&Uo&&Wo),nc=function(){function t(o,e,r,i){this.stringify=o,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=O(this.previous()),r;!(r=e()).done;){var i=r.value,s=this.toUrl(this.path(i.file)),a=i.root||Rr(i.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Bo(i.text),u.sourcesContent&&(u.sourcesContent=null)):u=i.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),rc&&tc&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.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=Or.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Or({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]},n.generateString=function(){var e=this;this.css="",this.map=new Or({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,i=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,l;this.stringify(this.root,function(c,f,h){if(e.css+=c,f&&h!=="end"&&(a.generated.line=r,a.generated.column=i-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=c.match(/\n/g),u?(r+=u.length,l=c.lastIndexOf("\n"),i=c.length-l):i+=c.length,f&&h!=="start"){var v=f.parent||{raws:{}},p=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!p||f!==v.last||v.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=i-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=i-1,e.map.addMapping(a)))}})},n.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},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var i=this.opts.to?Rr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Rr(zo(i,this.mapOpts.annotation)));var s=Uo(i,e);return this.memoizedPaths.set(e,s),s},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(i){if(i.source&&i.source.input.map){var s=i.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new ec(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}},n.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))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(Go){var i=Go(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;Wo==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t}(),jo=nc,ic=wr,jn=function(t){ue(n,t);function n(o){var e;return e=t.call(this,o)||this,e.type="comment",e}return n}(ic),xr=jn;jn.default=jn;var Vo=Le.isClean,Yo=Le.my,qo=br,Ho=xr,oc=wr,Jo,Vn,Yn,Zo;function Ko(t){return t.map(function(n){return n.nodes&&(n.nodes=Ko(n.nodes)),delete n.source,n})}function Xo(t){if(t[Vo]=!1,t.proxyOf.nodes)for(var n=O(t.proxyOf.nodes),o;!(o=n()).done;){var e=o.value;Xo(e)}}var Me=function(t){ue(n,t);function n(){return t.apply(this,arguments)||this}var o=n.prototype;return o.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var a=O(i),u;!(u=a()).done;)for(var l=u.value,c=this.normalize(l,this.last),f=O(c),h;!(h=f()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var i=O(this.nodes),s;!(s=i()).done;){var a=s.value;a.cleanRaws(r)}},o.each=function(r){if(this.proxyOf.nodes){for(var i=this.getIterator(),s,a;this.indexes[i]<this.proxyOf.nodes.length&&(s=this.indexes[i],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[i]+=1;return delete this.indexes[i],a}},o.every=function(r){return this.nodes.every(r)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},o.getProxyProcessor=function(){return{get:function(i,s){return s==="proxyOf"?i:i[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 c;return(c=i)[s].apply(c,[].concat(u.map(function(f){return typeof f=="function"?function(h,v){return f(h.toProxy(),v)}:f})))}:s==="every"||s==="some"?function(a){return i[s](function(u){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],c))})}:s==="root"?function(){return i.root().toProxy()}:s==="nodes"?i.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?i[s].toProxy():i[s]:i[s]},set:function(i,s,a){return i[s]===a||(i[s]=a,(s==="name"||s==="params"||s==="selector")&&i.markDirty()),!0}}},o.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},o.insertAfter=function(r,i){var s=this.index(r),a=this.normalize(i,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=O(a),l;!(l=u()).done;){var c=l.value;this.proxyOf.nodes.splice(s+1,0,c)}var f;for(var h in this.indexes)f=this.indexes[h],s<f&&(this.indexes[h]=f+a.length);return this.markDirty(),this},o.insertBefore=function(r,i){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(i,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var l=O(u),c;!(c=l()).done;){var f=c.value;this.proxyOf.nodes.splice(s,0,f)}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(r,i){var s=this;if(typeof r=="string")r=Ko(Jo(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=O(r),u;!(u=a()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var c=O(r),f;!(f=c()).done;){var h=f.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new qo(r)]}else if(r.selector)r=[new Vn(r)];else if(r.name)r=[new Yn(r)];else if(r.text)r=[new Ho(r)];else throw new Error("Unknown node type in node creation");var v=r.map(function(p){return p[Yo]||n.rebuild(p),p=p.proxyOf,p.parent&&p.parent.removeChild(p),p[Vo]&&Xo(p),typeof p.raws.before=="undefined"&&i&&typeof i.raws.before!="undefined"&&(p.raws.before=i.raws.before.replace(/\S/g,"")),p.parent=s.proxyOf,p});return v},o.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];i=i.reverse();for(var a=O(i),u;!(u=a()).done;){for(var l=u.value,c=this.normalize(l,this.first,"prepend").reverse(),f=O(c),h;!(h=f()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var p in this.indexes)this.indexes[p]=this.indexes[p]+c.length}return this.markDirty(),this},o.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},o.removeAll=function(){for(var r=O(this.proxyOf.nodes),i;!(i=r()).done;){var s=i.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var i;for(var s in this.indexes)i=this.indexes[s],i>=r&&(this.indexes[s]=i-1);return this.markDirty(),this},o.replaceValues=function(r,i,s){return s||(s=i,i={}),this.walkDecls(function(a){i.props&&!i.props.includes(a.prop)||i.fast&&!a.value.includes(i.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},o.some=function(r){return this.nodes.some(r)},o.walk=function(r){return this.each(function(i,s){var a;try{a=r(i,s)}catch(u){throw i.addToError(u)}return a!==!1&&i.walk&&(a=i.walk(r)),a})},o.walkAtRules=function(r,i){return i?M(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return i(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="atrule")return i(s,a)}))},o.walkComments=function(r){return this.walk(function(i,s){if(i.type==="comment")return r(i,s)})},o.walkDecls=function(r,i){return i?M(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return i(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="decl")return i(s,a)}))},o.walkRules=function(r,i){return i?M(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return i(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="rule")return i(s,a)}))},se(n,[{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]}}]),n}(oc);Me.registerParse=function(t){Jo=t},Me.registerRule=function(t){Vn=t},Me.registerAtRule=function(t){Yn=t},Me.registerRoot=function(t){Zo=t};var Ve=Me;Me.default=Me,Me.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Yn.prototype):t.type==="rule"?Object.setPrototypeOf(t,Vn.prototype):t.type==="decl"?Object.setPrototypeOf(t,qo.prototype):t.type==="comment"?Object.setPrototypeOf(t,Ho.prototype):t.type==="root"&&Object.setPrototypeOf(t,Zo.prototype),t[Yo]=!0,t.nodes&&t.nodes.forEach(function(n){Me.rebuild(n)})};var sc=Ve,Qo,es,Nt=function(t){ue(n,t);function n(e){var r;return r=t.call(this,U({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var o=n.prototype;return o.toResult=function(r){r===void 0&&(r={});var i=new Qo(new es,this,r);return i.stringify()},n}(sc);Nt.registerLazyResult=function(t){Qo=t},Nt.registerProcessor=function(t){es=t};var qn=Nt;Nt.default=Nt;var ts={},rs=function(n){ts[n]||(ts[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Hn=function(){function t(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var i in e)this[i]=e[i]}var n=t.prototype;return n.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},t}(),ns=Hn;Hn.default=Hn;var ac=ns,Jn=function(){function t(o,e,r){this.processor=o,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var i=new ac(e,r);return this.messages.push(i),i},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},se(t,[{key:"content",get:function(){return this.css}}]),t}(),Zn=Jn;Jn.default=Jn;var Kn=39,is=34,Er=92,os=47,Ar=10,$t=32,Mr=12,kr=9,_r=13,uc=91,lc=93,cc=40,fc=41,hc=123,dc=125,pc=59,vc=42,mc=58,gc=64,Tr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Pr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,yc=/.[\r\n"'(/\\]/,ss=/[\da-f]/i,wc=function(n,o){o===void 0&&(o={});var e=n.css.valueOf(),r=o.ignoreErrors,i,s,a,u,l,c,f,h,v,p,y=e.length,d=0,g=[],w=[];function b(){return d}function S(x){throw n.error("Unclosed "+x,d)}function C(){return w.length===0&&d>=y}function R(x){if(w.length)return w.pop();if(!(d>=y)){var k=x?x.ignoreUnclosed:!1;switch(i=e.charCodeAt(d),i){case Ar:case $t:case kr:case _r:case Mr:{s=d;do s+=1,i=e.charCodeAt(s);while(i===$t||i===Ar||i===kr||i===_r||i===Mr);p=["space",e.slice(d,s)],d=s-1;break}case uc:case lc:case hc:case dc:case mc:case pc:case fc:{var P=String.fromCharCode(i);p=[P,P,d];break}case cc:{if(h=g.length?g.pop()[1]:"",v=e.charCodeAt(d+1),h==="url"&&v!==Kn&&v!==is&&v!==$t&&v!==Ar&&v!==kr&&v!==Mr&&v!==_r){s=d;do{if(c=!1,s=e.indexOf(")",s+1),s===-1)if(r||k){s=d;break}else S("bracket");for(f=s;e.charCodeAt(f-1)===Er;)f-=1,c=!c}while(c);p=["brackets",e.slice(d,s+1),d,s],d=s}else s=e.indexOf(")",d+1),u=e.slice(d,s+1),s===-1||yc.test(u)?p=["(","(",d]:(p=["brackets",u,d,s],d=s);break}case Kn:case is:{a=i===Kn?"'":'"',s=d;do{if(c=!1,s=e.indexOf(a,s+1),s===-1)if(r||k){s=d+1;break}else S("string");for(f=s;e.charCodeAt(f-1)===Er;)f-=1,c=!c}while(c);p=["string",e.slice(d,s+1),d,s],d=s;break}case gc:{Tr.lastIndex=d+1,Tr.test(e),Tr.lastIndex===0?s=e.length-1:s=Tr.lastIndex-2,p=["at-word",e.slice(d,s+1),d,s],d=s;break}case Er:{for(s=d,l=!0;e.charCodeAt(s+1)===Er;)s+=1,l=!l;if(i=e.charCodeAt(s+1),l&&i!==os&&i!==$t&&i!==Ar&&i!==kr&&i!==_r&&i!==Mr&&(s+=1,ss.test(e.charAt(s)))){for(;ss.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===$t&&(s+=1)}p=["word",e.slice(d,s+1),d,s],d=s;break}default:{i===os&&e.charCodeAt(d+1)===vc?(s=e.indexOf("*/",d+2)+1,s===0&&(r||k?s=e.length:S("comment")),p=["comment",e.slice(d,s+1),d,s],d=s):(Pr.lastIndex=d+1,Pr.test(e),Pr.lastIndex===0?s=e.length-1:s=Pr.lastIndex-2,p=["word",e.slice(d,s+1),d,s],g.push(p),d=s);break}}return d++,p}}function A(x){w.push(x)}return{back:A,endOfFile:C,nextToken:R,position:b}},as=Ve,Nr=function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var o=n.prototype;return o.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],i))},o.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],i))},n}(as),Xn=Nr;Nr.default=Nr,as.registerAtRule(Nr);var us=Ve,ls,cs,lt=function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var o=n.prototype;return o.normalize=function(r,i,s){var a=t.prototype.normalize.call(this,r);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(var u=O(a),l;!(l=u()).done;){var c=l.value;c.raws.before=i.raws.before}}return a},o.removeChild=function(r,i){var s=this.index(r);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},o.toResult=function(r){r===void 0&&(r={});var i=new ls(new cs,this,r);return i.stringify()},n}(us);lt.registerLazyResult=function(t){ls=t},lt.registerProcessor=function(t){cs=t};var Lt=lt;lt.default=lt,us.registerRoot(lt);var Dt={comma:function(n){return Dt.split(n,[","],!0)},space:function(n){var o=[" ","\n"," "];return Dt.split(n,o)},split:function(n,o,e){for(var r=[],i="",s=!1,a=0,u=!1,l="",c=!1,f=O(n),h;!(h=f()).done;){var v=h.value;c?c=!1:v==="\\"?c=!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?(i!==""&&r.push(i.trim()),i="",s=!1):i+=v}return(e||i!=="")&&r.push(i.trim()),r}},fs=Dt;Dt.default=Dt;var hs=Ve,bc=fs,$r=function(t){ue(n,t);function n(o){var e;return e=t.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return se(n,[{key:"selectors",get:function(){return bc.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,i=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}]),n}(hs),Qn=$r;$r.default=$r,hs.registerRule($r);var Sc=br,Cc=wc,Ic=xr,Oc=Xn,Rc=Lt,ds=Qn,ps={empty:!0,space:!0};function xc(t){for(var n=t.length-1;n>=0;n--){var o=t[n],e=o[3]||o[2];if(e)return e}}var Ec=function(){function t(o){this.input=o,this.root=new Rc,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new Oc;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var i,s,a,u=!1,l=!1,c=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?f.push(i==="("?")":"]"):i==="{"&&f.length>0?f.push("}"):i===f[f.length-1]&&f.pop(),f.length===0)if(i===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(c.length>0){for(a=c.length-1,s=c[a];s&&s[0]==="space";)s=c[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else c.push(e);else c.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(r.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(r,"params",c),u&&(e=c[c.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),l&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var i=0,s,a=r-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(i+=1,i===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,i,s,a,u=O(e.entries()),l;!(l=u()).done;){var c=l.value,f=c[0],h=c[1];if(i=h,s=i[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(i);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=i}return!1},n.comment=function(e){var r=new Ic;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var i=e[1].slice(2,-2);if(/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{var s=i.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=Cc(this.input)},n.decl=function(e,r){var i=new Sc;this.init(i,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||xc(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){i.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),i.raws.between+=u[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var l=[],c;e.length&&(c=e[0][0],!(c!=="space"&&c!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){i.important=!0;var h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(i.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),p="",y=f;y>0;y--){var d=v[y][0];if(p.trim().indexOf("!")===0&&d!=="space")break;p=v.pop()[1]+p}p.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=p,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});g&&(i.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(i,"value",l.concat(e),r),i.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new ds;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.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)},n.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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,i=null,s=!1,a=null,u=[],l=e[1].startsWith("--"),c=[],f=e;f;){if(i=f[0],c.push(f),i==="("||i==="[")a||(a=f),u.push(i==="("?")":"]");else if(l&&s&&i==="{")a||(a=f),u.push("}");else if(u.length===0)if(i===";")if(s){this.decl(c,l);return}else break;else if(i==="{"){this.rule(c);return}else if(i==="}"){this.tokenizer.back(c.pop()),r=!0;break}else i===":"&&(s=!0);else i===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!l)for(;c.length&&(f=c[c.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(c.pop());this.decl(c,l)}else this.unknownWord(c)},n.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()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,i,s){for(var a,u,l=i.length,c="",f=!0,h,v,p=0;p<l;p+=1)a=i[p],u=a[0],u==="space"&&p===l-1&&!s?f=!1:u==="comment"?(v=i[p-1]?i[p-1][0]:"empty",h=i[p+1]?i[p+1][0]:"empty",!ps[v]&&!ps[h]?c.slice(-1)===","?f=!1:c+=a[1]:f=!1):c+=a[1];if(!f){var y=i.reduce(function(d,g){return d+g[1]},"");e.raws[r]={raw:y,value:c}}e[r]=c},n.rule=function(e){e.pop();var r=new ds;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,i="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)i=e.pop()[1]+i;return i},n.spacesAndCommentsFromStart=function(e){for(var r,i="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)i+=e.shift()[1];return i},n.spacesFromEnd=function(e){for(var r,i="";e.length&&(r=e[e.length-1][0],r==="space");)i=e.pop()[1]+i;return i},n.stringFrom=function(e,r){for(var i="",s=r;s<e.length;s++)i+=e[s][1];return e.splice(r,e.length-r),i},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t}(),Ac=Ec,Mc=Ve,kc=Ac,_c=Ir;function Lr(t,n){var o=new _c(t,n),e=new kc(o);try{e.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return e.root}var ei=Lr;Lr.default=Lr,Mc.registerParse(Lr);var Oe=Le.isClean,Tc=Le.my,Pc=jo,Nc=gr,$c=Ve,Lc=qn,Dc=rs,vs=Zn,Fc=ei,Bc=Lt,Uc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},zc={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},Wc={Once:!0,postcssPlugin:!0,prepare:!0},ct=0;function Ft(t){return(typeof t=="undefined"?"undefined":N(t))==="object"&&typeof t.then=="function"}function ms(t){var n=!1,o=Uc[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[o,o+"-"+n,ct,o+"Exit",o+"Exit-"+n]:n?[o,o+"-"+n,o+"Exit",o+"Exit-"+n]:t.append?[o,ct,o+"Exit"]:[o,o+"Exit"]}function gs(t){var n;return t.type==="document"?n=["Document",ct,"DocumentExit"]:t.type==="root"?n=["Root",ct,"RootExit"]:n=ms(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ti(t){return t[Oe]=!1,t.nodes&&t.nodes.forEach(function(n){return ti(n)}),t}var ri={},ft=function(){function t(o,e,r){var i=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":N(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=ti(e);else if(M(e,t)||M(e,vs))s=ti(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=Fc;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(e,r)}catch(u){this.processed=!0,this.error=u}s&&!s[Tc]&&$c.rebuild(s)}this.result=new vs(o,s,r),this.helpers=U({},ri,{postcss:ri,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":N(u))==="object"&&u.prepare?U({},u,u.prepare(i.result)):u})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var i=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion&&process.env.NODE_ENV!=="production"){var s=i.postcssPlugin,a=i.postcssVersion,u=this.result.processor.version,l=a.split("."),c=u.split(".");(l[0]!==c[0]||parseInt(l[1])>parseInt(c[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(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(c,f,h){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([c,h])},i=O(this.plugins),s;!(s=i()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":N(a))==="object")for(var u in a){if(!zc[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Wc[u])if(N(a[u])==="object")for(var l in a[u])l==="*"?r(a,u,a[u][l]):r(a,u+"-"+l.toLowerCase(),a[u][l]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return In(function(){var r,i,s,a,u,l,c,f,h,v,p,y;return kt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(i=e.plugins[r],s=e.runOnRoot(i),!Ft(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[Oe])return[3,14];u[Oe]=!0,l=[gs(u)],d.label=8;case 8:if(!(l.length>0))return[3,13];if(c=e.visitTick(l),!Ft(c))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,c];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),h=l[l.length-1].node,e.handleError(f,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,b,S,C;return kt(this,function(R){switch(R.label){case 0:g=y.value,w=g[0],b=g[1],e.result.lastPlugin=w,R.label=1;case 1:return R.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(A){return b(A,e.helpers)}),[4,Promise.all(S)]);case 2:return R.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:R.sent(),R.label=5;case 5:return[3,7];case 6:throw C=R.sent(),e.handleError(C);case 7:return[2]}})},p=O(e.listeners.OnceExit),d.label=15;case 15:return(y=p()).done?[3,18]:[5,co(v())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":N(e))==="object"&&e.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return Ft(i[0])?Promise.all(i):i}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)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=Nc;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var i=new Pc(r,this.result.root,this.result.opts),s=i.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.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=O(this.plugins),r;!(r=e()).done;){var i=r.value,s=this.runOnRoot(i);if(Ft(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Oe];)a[Oe]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=O(a.nodes),l;!(l=u()).done;){var c=l.value;this.visitSync(this.listeners.OnceExit,c)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Dc("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,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var i=O(e),s;!(s=i()).done;){var a=s.value,u=a[0],l=a[1];this.result.lastPlugin=u;var c=void 0;try{c=l(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Ft(c))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],i=r.node,s=r.visitors;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],l=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return l(i.toProxy(),this.helpers)}catch(p){throw this.handleError(p,i)}}if(r.iterator!==0){for(var c=r.iterator,f;f=i.nodes[i.indexes[c]];)if(i.indexes[c]+=1,!f[Oe]){f[Oe]=!0,e.push(gs(f));return}r.iterator=0,delete i.indexes[c]}for(var h=r.events;r.eventIndex<h.length;){var v=h[r.eventIndex];if(r.eventIndex+=1,v===ct){i.nodes&&i.nodes.length&&(i[Oe]=!0,r.iterator=i.getIterator());return}else if(this.listeners[v]){r.visitors=this.listeners[v];return}}e.pop()},n.walkSync=function(e){var r=this;e[Oe]=!0;for(var i=ms(e),s=O(i),a;!(a=s()).done;){var u=a.value;if(u===ct)e.nodes&&e.each(function(c){c[Oe]||r.walkSync(c)});else{var l=this.listeners[u];if(l&&this.visitSync(l,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},se(t,[{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"}}]),t}();ft.registerPostcss=function(t){ri=t};var ys=ft;ft.default=ft,Bc.registerLazyResult(ft),Lc.registerLazyResult(ft);var Gc=jo,jc=gr,Vc=rs,Yc=ei,qc=Zn,ni=function(){function t(o,e,r){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=r,this._map=void 0;var i,s=jc;this.result=new qc(this._processor,i,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Gc(s,i,this._opts,e);if(u.isMap()){var l=u.generate(),c=l[0],f=l[1];c&&(this.result.css=c),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Vc("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,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},se(t,[{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,r=Yc;try{e=r(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t}(),Hc=ni;ni.default=ni;var Jc=Hc,Zc=ys,Kc=qn,Xc=Lt,Bt=function(){function t(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var n=t.prototype;return n.normalize=function(e){for(var r=[],i=O(e),s;!(s=i()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":N(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":N(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":N(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 r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Jc(this,e,r):new Zc(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t}(),Qc=Bt;Bt.default=Bt,Xc.registerProcessor(Bt),Kc.registerProcessor(Bt);var ef=br,tf=$o,rf=xr,nf=Xn,of=Ir,sf=Lt,af=Qn;function Ut(t,n){if(Array.isArray(t))return t.map(function(f){return Ut(f)});var o=t.inputs,e=At(t,["inputs"]);if(o){n=[];for(var r=O(o),i;!(i=r()).done;){var s=i.value,a=U({},s,{__proto__:of.prototype});a.map&&(a.map=U({},a.map,{__proto__:tf.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Ut(f,n)})),e.source){var u=e.source,l=u.inputId,c=At(u,["inputId"]);e.source=c,l!=null&&(e.source.input=n[l])}if(e.type==="root")return new sf(e);if(e.type==="decl")return new ef(e);if(e.type==="rule")return new af(e);if(e.type==="comment")return new rf(e);if(e.type==="atrule")return new nf(e);throw new Error("Unknown node type: "+t.type)}var uf=Ut;Ut.default=Ut;var lf=Tn,ws=br,cf=ys,ff=Ve,ii=Qc,hf=gr,df=uf,bs=qn,pf=ns,Ss=xr,Cs=Xn,vf=Zn,mf=Ir,gf=ei,yf=fs,Is=Qn,Os=Lt,wf=wr;function V(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ii(n)}V.plugin=function(n,o){var e=!1;function r(){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(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \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=n,l.postcssVersion=new ii().version,l}var i;return Object.defineProperty(r,"postcss",{get:function(){return i||(i=r()),i}}),r.process=function(s,a,u){return V([r(u)]).process(s,a)},r},V.stringify=hf,V.parse=gf,V.fromJSON=df,V.list=yf,V.comment=function(t){return new Ss(t)},V.atRule=function(t){return new Cs(t)},V.decl=function(t){return new ws(t)},V.rule=function(t){return new Is(t)},V.root=function(t){return new Os(t)},V.document=function(t){return new bs(t)},V.CssSyntaxError=lf,V.Declaration=ws,V.Container=ff,V.Processor=ii,V.Document=bs,V.Comment=Ss,V.Warning=pf,V.AtRule=Cs,V.Result=vf,V.Input=mf,V.Rule=Is,V.Root=Os,V.Node=wf,cf.registerPostcss(V);var bf=V;V.default=V;var K=kl(bf);K.stringify,K.fromJSON,K.plugin,K.parse,K.list,K.document,K.comment,K.atRule,K.rule,K.decl,K.root,K.CssSyntaxError,K.Declaration,K.Container,K.Processor,K.Document,K.Comment,K.Warning,K.AtRule,K.Result,K.Input,K.Rule,K.Root,K.Node;var Sf=Object.defineProperty,Cf=function(t,n,o){return n in t?Sf(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o},be=function(t,n,o){return Cf(t,(typeof n=="undefined"?"undefined":N(n))!=="symbol"?n+"":n,o)};function If(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Of(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var o=function e(){return M(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};o.prototype=n.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),o}var oi={exports:{}},Z=String,Rs=function(){return{isColorSupported:!1,reset:Z,bold:Z,dim:Z,italic:Z,underline:Z,inverse:Z,hidden:Z,strikethrough:Z,black:Z,red:Z,green:Z,yellow:Z,blue:Z,magenta:Z,cyan:Z,white:Z,gray:Z,bgBlack:Z,bgRed:Z,bgGreen:Z,bgYellow:Z,bgBlue:Z,bgMagenta:Z,bgCyan:Z,bgWhite:Z}};oi.exports=Rs(),oi.exports.createColors=Rs;var Rf=oi.exports,xf={},Ef=Object.freeze(Object.defineProperty({__proto__:null,default:xf},Symbol.toStringTag,{value:"Module"})),ne=Of(Ef),xs=Rf,Es=ne,si=function(t){ue(n,t);function n(e,r,i,s,a,u){var l;return l=t.call(this,e)||this,l.name="CssSyntaxError",l.reason=e,a&&(l.file=a),s&&(l.source=s),u&&(l.plugin=u),typeof r!="undefined"&&typeof i!="undefined"&&(typeof r=="number"?(l.line=r,l.column=i):(l.line=r.line,l.column=r.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,n),l}var o=n.prototype;return o.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},o.showSourceCode=function(r){var i=this;if(!this.source)return"";var s=this.source;r==null&&(r=xs.isColorSupported),Es&&r&&(s=Es(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),c=String(l).length,f,h;if(r){var v=xs.createColors(!0),p=v.bold,y=v.gray,d=v.red;f=function(g){return p(d(g))},h=function(g){return y(g)}}else f=h=function(g){return g};return a.slice(u,l).map(function(g,w){var b=u+1+w,S=" "+(" "+b).slice(-c)+" | ";if(b===i.line){var C=h(S.replace(/\d/g," "))+g.slice(0,i.column-1).replace(/[^\t]/g," ");return f(">")+h(S)+g+"\n "+C+f("^")}return" "+h(S)+g}).join("\n")},o.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(cr(Error)),ai=si;si.default=si;var De={};De.isClean=Symbol("isClean"),De.my=Symbol("my");var As={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Af(t){return t[0].toUpperCase()+t.slice(1)}var ui=function(){function t(o){this.builder=o}var n=t.prototype;return n.atrule=function(e,r){var i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(i+s+a,e)}},n.beforeAfter=function(e,r){var i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):r==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(i.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var l=0;l<a;l++)i+=u}return i},n.block=function(e,r){var i=this.raw(e,"between","beforeOpen");this.builder(r+i+"{",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")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var i=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||i)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+i+"*/",e)},n.decl=function(e,r){var i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,i){var s;if(i||(i=r),r&&(s=e.raws[r],typeof s!="undefined"))return s;var a=e.parent;if(i==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return As[i];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[i]!="undefined")return u.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);var l="raw"+Af(i);return this[l]?s=this[l](u,e):u.walk(function(c){if(s=c.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=As[i]),u.rawCache[i]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length>0&&typeof i.raws.after!="undefined")return r=i.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var i;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return i=s.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(r,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeDecl=function(e,r){var i;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return i=s.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(r,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeOpen=function(e){var r;return e.walk(function(i){if(i.type!=="decl"&&(r=i.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before!="undefined")return r=i.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(i){if(typeof i.raws.between!="undefined")return r=i.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length===0&&(r=i.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(i){var s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof i.raws.before!="undefined"){var a=i.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(r=i.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var i=e[r],s=e.raws[r];return s&&s.value===i?s.raw:i},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t}(),Ms=ui;ui.default=ui;var Mf=Ms;function li(t,n){var o=new Mf(n);o.stringify(t)}var Dr=li;li.default=li;var Fr=De.isClean,kf=De.my,_f=ai,Tf=Ms,Pf=Dr;function ci(t,n){var o=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],i=typeof r=="undefined"?"undefined":N(r);e==="parent"&&i==="object"?n&&(o[e]=n):e==="source"?o[e]=r:Array.isArray(r)?o[e]=r.map(function(s){return ci(s,o)}):(i==="object"&&r!==null&&(r=ci(r)),o[e]=r)}return o}var fi=function(){function t(o){o===void 0&&(o={}),this.raws={},this[Fr]=!1,this[kf]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var r=O(o[e]),i;!(i=r()).done;){var s=i.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=ci(this);for(var i in e)r[i]=e[i];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var i=this.rangeBy(r),s=i.end,a=i.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new _f(e)},n.getProxyProcessor=function(){return{get:function(r,i){return i==="proxyOf"?r:i==="root"?function(){return r.root().toProxy()}:r[i]},set:function(r,i,s){return r[i]===s||(r[i]=s,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Fr]){this[Fr]=!1;for(var e=this;e=e.parent;)e[Fr]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var i=this.source.start;if(e.index)i=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(i=this.positionInside(s,r))}return i},n.positionInside=function(e,r){for(var i=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)i[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(r=this.positionInside(a,s),i=this.positionInside(a+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line}),{end:i,start:r}},n.raw=function(e,r){var i=new Tf;return i.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(this.parent){for(var s=this,a=!1,u=O(r),l;!(l=u()).done;){var c=l.value;c===this?a=!0:a?(this.parent.insertAfter(s,c),s=c):this.parent.insertBefore(s,c)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var i={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var l=this[u];if(Array.isArray(l))i[u]=l.map(function(f){return(typeof f=="undefined"?"undefined":N(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof l=="undefined"?"undefined":N(l))==="object"&&l.toJSON)i[u]=l.toJSON(null,r);else if(u==="source"){var c=r.get(l.input);c==null&&(c=a,r.set(l.input,a),a++),i[u]={end:l.end,inputId:c,start:l.start}}else i[u]=l}return s&&(i.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),i},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=Pf),e.stringify&&(e=e.stringify);var r="";return e(this,function(i){r+=i}),r},n.warn=function(e,r,i){var s={node:this};for(var a in i)s[a]=i[a];return e.warn(r,s)},se(t,[{key:"proxyOf",get:function(){return this}}]),t}(),Br=fi;fi.default=fi;var Nf=Br,hi=function(t){ue(n,t);function n(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=U({},o,{value:String(o.value)})),e=t.call(this,o)||this,e.type="decl",e}return se(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(Nf),Ur=hi;hi.default=hi;var $f="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Lf=function(t){t===void 0&&(t=21);for(var n="",o=t;o--;)n+=$f[Math.random()*64|0];return n},Df={nanoid:Lf},ks=ne.SourceMapConsumer,_s=ne.SourceMapGenerator,Ff=ne.existsSync,Bf=ne.readFileSync,di=ne.dirname,Uf=ne.join;function zf(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var pi=function(){function t(o,e){if(e.map!==!1){this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,i=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=di(this.mapFile)),i&&(this.text=i)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new ks(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||i.test(e))return zf(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":N(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var i=e.lastIndexOf(r.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}},n.loadFile=function(e){if(this.root=di(e),Ff(e))return this.mapFile=e,Bf(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var i=r(e);if(i){var s=this.loadFile(i);if(!s)throw new Error("Unable to load previous source map: "+i.toString());return s}}else{if(M(r,ks))return _s.fromSourceMap(r).toString();if(M(r,_s))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=Uf(di(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t}(),Ts=pi;pi.default=pi;var Wf=ne.SourceMapConsumer,Gf=ne.SourceMapGenerator,Ps=ne.fileURLToPath,zr=ne.pathToFileURL,vi=ne.isAbsolute,mi=ne.resolve,jf=Df.nanoid,gi=ne,Ns=ai,Vf=Ts,yi=Symbol("fromOffsetCache"),Yf=!!(Wf&&Gf),$s=!!(mi&&vi),Wr=function(){function t(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":N(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!$s||/^\w+:\/\//.test(e.from)||vi(e.from)?this.file=e.from:this.file=mi(e.from)),$s&&Yf){var r=new Vf(this.css,e);if(r.text){this.map=r;var i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+jf(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,i,s){s===void 0&&(s={});var a,u,l;if(r&&(typeof r=="undefined"?"undefined":N(r))==="object"){var c=r,f=i;if(typeof c.offset=="number"){var h=this.fromOffset(c.offset);r=h.line,i=h.col}else r=c.line,i=c.column;if(typeof f.offset=="number"){var v=this.fromOffset(f.offset);u=v.line,l=v.col}else u=f.line,l=f.column}else if(!i){var p=this.fromOffset(r);r=p.line,i=p.col}var y=this.origin(r,i,u,l);return y?a=new Ns(e,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new Ns(e,u===void 0?r:{column:i,line:r},u===void 0?i:{column:l,line:u},this.css,this.file,s.plugin),a.input={column:i,endColumn:l,endLine:u,line:r,source:this.css},this.file&&(zr&&(a.input.url=zr(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,i;if(this[yi])i=this[yi];else{var s=this.css.split("\n");i=new Array(s.length);for(var a=0,u=0,l=s.length;u<l;u++)i[u]=a,a+=s[u].length+1;this[yi]=i}r=i[i.length-1];var c=0;if(e>=r)c=i.length-1;else for(var f=i.length-2,h;c<f;)if(h=c+(f-c>>1),e<i[h])f=h-1;else if(e>=i[h+1])c=h+1;else{c=h;break}return{col:e-i[c]+1,line:c+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:mi(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,i,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var l;typeof i=="number"&&(l=a.originalPositionFor({column:s,line:i}));var c;vi(u.source)?c=zr(u.source):c=new URL(u.source,this.map.consumer().sourceRoot||zr(this.map.mapFile));var f={column:u.column,endColumn:l&&l.column,endLine:l&&l.line,line:u.line,url:c.toString()};if(c.protocol==="file:")if(Ps)f.file=Ps(c);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(f.source=h),f},n.toJSON=function(){for(var e={},r=0,i=["hasBOM","css","file","id"];r<i.length;r++){var s=i[r];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=U({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},se(t,[{key:"from",get:function(){return this.file||this.id}}]),t}(),Gr=Wr;Wr.default=Wr,gi&&gi.registerInput&&gi.registerInput(Wr);var Ls=ne.SourceMapConsumer,jr=ne.SourceMapGenerator,Vr=ne.dirname,Ds=ne.relative,Fs=ne.resolve,Bs=ne.sep,Us=ne.pathToFileURL,qf=Gr,Hf=!!(Ls&&jr),Jf=!!(Vr&&Fs&&Ds&&Bs),Zf=function(){function t(o,e,r,i){this.stringify=o,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=O(this.previous()),r;!(r=e()).done;){var i=r.value,s=this.toUrl(this.path(i.file)),a=i.root||Vr(i.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Ls(i.text),u.sourcesContent&&(u.sourcesContent=null)):u=i.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),Jf&&Hf&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.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=jr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new jr({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]},n.generateString=function(){var e=this;this.css="",this.map=new jr({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,i=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,l;this.stringify(this.root,function(c,f,h){if(e.css+=c,f&&h!=="end"&&(a.generated.line=r,a.generated.column=i-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=c.match(/\n/g),u?(r+=u.length,l=c.lastIndexOf("\n"),i=c.length-l):i+=c.length,f&&h!=="start"){var v=f.parent||{raws:{}},p=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!p||f!==v.last||v.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=i-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=i-1,e.map.addMapping(a)))}})},n.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},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var i=this.opts.to?Vr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Vr(Fs(i,this.mapOpts.annotation)));var s=Ds(i,e);return this.memoizedPaths.set(e,s),s},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(i){if(i.source&&i.source.input.map){var s=i.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new qf(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}},n.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))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(Us){var i=Us(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;Bs==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t}(),zs=Zf,Kf=Br,wi=function(t){ue(n,t);function n(o){var e;return e=t.call(this,o)||this,e.type="comment",e}return n}(Kf),Yr=wi;wi.default=wi;var Ws=De.isClean,Gs=De.my,js=Ur,Vs=Yr,Xf=Br,Ys,bi,Si,qs;function Hs(t){return t.map(function(n){return n.nodes&&(n.nodes=Hs(n.nodes)),delete n.source,n})}function Js(t){if(t[Ws]=!1,t.proxyOf.nodes)for(var n=O(t.proxyOf.nodes),o;!(o=n()).done;){var e=o.value;Js(e)}}var ke=function(t){ue(n,t);function n(){return t.apply(this,arguments)||this}var o=n.prototype;return o.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var a=O(i),u;!(u=a()).done;)for(var l=u.value,c=this.normalize(l,this.last),f=O(c),h;!(h=f()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var i=O(this.nodes),s;!(s=i()).done;){var a=s.value;a.cleanRaws(r)}},o.each=function(r){if(this.proxyOf.nodes){for(var i=this.getIterator(),s,a;this.indexes[i]<this.proxyOf.nodes.length&&(s=this.indexes[i],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[i]+=1;return delete this.indexes[i],a}},o.every=function(r){return this.nodes.every(r)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},o.getProxyProcessor=function(){return{get:function(i,s){return s==="proxyOf"?i:i[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 c;return(c=i)[s].apply(c,[].concat(u.map(function(f){return typeof f=="function"?function(h,v){return f(h.toProxy(),v)}:f})))}:s==="every"||s==="some"?function(a){return i[s](function(u){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],c))})}:s==="root"?function(){return i.root().toProxy()}:s==="nodes"?i.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?i[s].toProxy():i[s]:i[s]},set:function(i,s,a){return i[s]===a||(i[s]=a,(s==="name"||s==="params"||s==="selector")&&i.markDirty()),!0}}},o.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},o.insertAfter=function(r,i){var s=this.index(r),a=this.normalize(i,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=O(a),l;!(l=u()).done;){var c=l.value;this.proxyOf.nodes.splice(s+1,0,c)}var f;for(var h in this.indexes)f=this.indexes[h],s<f&&(this.indexes[h]=f+a.length);return this.markDirty(),this},o.insertBefore=function(r,i){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(i,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var l=O(u),c;!(c=l()).done;){var f=c.value;this.proxyOf.nodes.splice(s,0,f)}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(r,i){var s=this;if(typeof r=="string")r=Hs(Ys(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=O(r),u;!(u=a()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var c=O(r),f;!(f=c()).done;){var h=f.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new js(r)]}else if(r.selector)r=[new bi(r)];else if(r.name)r=[new Si(r)];else if(r.text)r=[new Vs(r)];else throw new Error("Unknown node type in node creation");var v=r.map(function(p){return p[Gs]||n.rebuild(p),p=p.proxyOf,p.parent&&p.parent.removeChild(p),p[Ws]&&Js(p),typeof p.raws.before=="undefined"&&i&&typeof i.raws.before!="undefined"&&(p.raws.before=i.raws.before.replace(/\S/g,"")),p.parent=s.proxyOf,p});return v},o.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];i=i.reverse();for(var a=O(i),u;!(u=a()).done;){for(var l=u.value,c=this.normalize(l,this.first,"prepend").reverse(),f=O(c),h;!(h=f()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var p in this.indexes)this.indexes[p]=this.indexes[p]+c.length}return this.markDirty(),this},o.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},o.removeAll=function(){for(var r=O(this.proxyOf.nodes),i;!(i=r()).done;){var s=i.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var i;for(var s in this.indexes)i=this.indexes[s],i>=r&&(this.indexes[s]=i-1);return this.markDirty(),this},o.replaceValues=function(r,i,s){return s||(s=i,i={}),this.walkDecls(function(a){i.props&&!i.props.includes(a.prop)||i.fast&&!a.value.includes(i.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},o.some=function(r){return this.nodes.some(r)},o.walk=function(r){return this.each(function(i,s){var a;try{a=r(i,s)}catch(u){throw i.addToError(u)}return a!==!1&&i.walk&&(a=i.walk(r)),a})},o.walkAtRules=function(r,i){return i?M(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return i(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="atrule")return i(s,a)}))},o.walkComments=function(r){return this.walk(function(i,s){if(i.type==="comment")return r(i,s)})},o.walkDecls=function(r,i){return i?M(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return i(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="decl")return i(s,a)}))},o.walkRules=function(r,i){return i?M(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return i(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="rule")return i(s,a)}))},se(n,[{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]}}]),n}(Xf);ke.registerParse=function(t){Ys=t},ke.registerRule=function(t){bi=t},ke.registerAtRule=function(t){Si=t},ke.registerRoot=function(t){qs=t};var Ye=ke;ke.default=ke,ke.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Si.prototype):t.type==="rule"?Object.setPrototypeOf(t,bi.prototype):t.type==="decl"?Object.setPrototypeOf(t,js.prototype):t.type==="comment"?Object.setPrototypeOf(t,Vs.prototype):t.type==="root"&&Object.setPrototypeOf(t,qs.prototype),t[Gs]=!0,t.nodes&&t.nodes.forEach(function(n){ke.rebuild(n)})};var Qf=Ye,Zs,Ks,zt=function(t){ue(n,t);function n(e){var r;return r=t.call(this,U({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var o=n.prototype;return o.toResult=function(r){r===void 0&&(r={});var i=new Zs(new Ks,this,r);return i.stringify()},n}(Qf);zt.registerLazyResult=function(t){Zs=t},zt.registerProcessor=function(t){Ks=t};var Ci=zt;zt.default=zt;var Xs={},Qs=function(n){Xs[n]||(Xs[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Ii=function(){function t(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var i in e)this[i]=e[i]}var n=t.prototype;return n.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},t}(),ea=Ii;Ii.default=Ii;var eh=ea,Oi=function(){function t(o,e,r){this.processor=o,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var i=new eh(e,r);return this.messages.push(i),i},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},se(t,[{key:"content",get:function(){return this.css}}]),t}(),Ri=Oi;Oi.default=Oi;var xi=39,ta=34,qr=92,ra=47,Hr=10,Wt=32,Jr=12,Zr=9,Kr=13,th=91,rh=93,nh=40,ih=41,oh=123,sh=125,ah=59,uh=42,lh=58,ch=64,Xr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,fh=/.[\r\n"'(/\\]/,na=/[\da-f]/i,hh=function(n,o){o===void 0&&(o={});var e=n.css.valueOf(),r=o.ignoreErrors,i,s,a,u,l,c,f,h,v,p,y=e.length,d=0,g=[],w=[];function b(){return d}function S(x){throw n.error("Unclosed "+x,d)}function C(){return w.length===0&&d>=y}function R(x){if(w.length)return w.pop();if(!(d>=y)){var k=x?x.ignoreUnclosed:!1;switch(i=e.charCodeAt(d),i){case Hr:case Wt:case Zr:case Kr:case Jr:{s=d;do s+=1,i=e.charCodeAt(s);while(i===Wt||i===Hr||i===Zr||i===Kr||i===Jr);p=["space",e.slice(d,s)],d=s-1;break}case th:case rh:case oh:case sh:case lh:case ah:case ih:{var P=String.fromCharCode(i);p=[P,P,d];break}case nh:{if(h=g.length?g.pop()[1]:"",v=e.charCodeAt(d+1),h==="url"&&v!==xi&&v!==ta&&v!==Wt&&v!==Hr&&v!==Zr&&v!==Jr&&v!==Kr){s=d;do{if(c=!1,s=e.indexOf(")",s+1),s===-1)if(r||k){s=d;break}else S("bracket");for(f=s;e.charCodeAt(f-1)===qr;)f-=1,c=!c}while(c);p=["brackets",e.slice(d,s+1),d,s],d=s}else s=e.indexOf(")",d+1),u=e.slice(d,s+1),s===-1||fh.test(u)?p=["(","(",d]:(p=["brackets",u,d,s],d=s);break}case xi:case ta:{a=i===xi?"'":'"',s=d;do{if(c=!1,s=e.indexOf(a,s+1),s===-1)if(r||k){s=d+1;break}else S("string");for(f=s;e.charCodeAt(f-1)===qr;)f-=1,c=!c}while(c);p=["string",e.slice(d,s+1),d,s],d=s;break}case ch:{Xr.lastIndex=d+1,Xr.test(e),Xr.lastIndex===0?s=e.length-1:s=Xr.lastIndex-2,p=["at-word",e.slice(d,s+1),d,s],d=s;break}case qr:{for(s=d,l=!0;e.charCodeAt(s+1)===qr;)s+=1,l=!l;if(i=e.charCodeAt(s+1),l&&i!==ra&&i!==Wt&&i!==Hr&&i!==Zr&&i!==Kr&&i!==Jr&&(s+=1,na.test(e.charAt(s)))){for(;na.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Wt&&(s+=1)}p=["word",e.slice(d,s+1),d,s],d=s;break}default:{i===ra&&e.charCodeAt(d+1)===uh?(s=e.indexOf("*/",d+2)+1,s===0&&(r||k?s=e.length:S("comment")),p=["comment",e.slice(d,s+1),d,s],d=s):(Qr.lastIndex=d+1,Qr.test(e),Qr.lastIndex===0?s=e.length-1:s=Qr.lastIndex-2,p=["word",e.slice(d,s+1),d,s],g.push(p),d=s);break}}return d++,p}}function A(x){w.push(x)}return{back:A,endOfFile:C,nextToken:R,position:b}},ia=Ye,en=function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var o=n.prototype;return o.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],i))},o.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],i))},n}(ia),Ei=en;en.default=en,ia.registerAtRule(en);var oa=Ye,sa,aa,ht=function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var o=n.prototype;return o.normalize=function(r,i,s){var a=t.prototype.normalize.call(this,r);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(var u=O(a),l;!(l=u()).done;){var c=l.value;c.raws.before=i.raws.before}}return a},o.removeChild=function(r,i){var s=this.index(r);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},o.toResult=function(r){r===void 0&&(r={});var i=new sa(new aa,this,r);return i.stringify()},n}(oa);ht.registerLazyResult=function(t){sa=t},ht.registerProcessor=function(t){aa=t};var Gt=ht;ht.default=ht,oa.registerRoot(ht);var jt={comma:function(n){return jt.split(n,[","],!0)},space:function(n){var o=[" ","\n"," "];return jt.split(n,o)},split:function(n,o,e){for(var r=[],i="",s=!1,a=0,u=!1,l="",c=!1,f=O(n),h;!(h=f()).done;){var v=h.value;c?c=!1:v==="\\"?c=!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?(i!==""&&r.push(i.trim()),i="",s=!1):i+=v}return(e||i!=="")&&r.push(i.trim()),r}},ua=jt;jt.default=jt;var la=Ye,dh=ua,tn=function(t){ue(n,t);function n(o){var e;return e=t.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return se(n,[{key:"selectors",get:function(){return dh.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,i=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}]),n}(la),Ai=tn;tn.default=tn,la.registerRule(tn);var ph=Ur,vh=hh,mh=Yr,gh=Ei,yh=Gt,ca=Ai,fa={empty:!0,space:!0};function wh(t){for(var n=t.length-1;n>=0;n--){var o=t[n],e=o[3]||o[2];if(e)return e}}var bh=function(){function t(o){this.input=o,this.root=new yh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new gh;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var i,s,a,u=!1,l=!1,c=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?f.push(i==="("?")":"]"):i==="{"&&f.length>0?f.push("}"):i===f[f.length-1]&&f.pop(),f.length===0)if(i===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(c.length>0){for(a=c.length-1,s=c[a];s&&s[0]==="space";)s=c[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else c.push(e);else c.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(r.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(r,"params",c),u&&(e=c[c.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),l&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var i=0,s,a=r-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(i+=1,i===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,i,s,a,u=O(e.entries()),l;!(l=u()).done;){var c=l.value,f=c[0],h=c[1];if(i=h,s=i[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(i);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=i}return!1},n.comment=function(e){var r=new mh;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var i=e[1].slice(2,-2);if(/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{var s=i.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=vh(this.input)},n.decl=function(e,r){var i=new ph;this.init(i,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||wh(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){i.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),i.raws.between+=u[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var l=[],c;e.length&&(c=e[0][0],!(c!=="space"&&c!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){i.important=!0;var h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(i.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),p="",y=f;y>0;y--){var d=v[y][0];if(p.trim().indexOf("!")===0&&d!=="space")break;p=v.pop()[1]+p}p.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=p,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});g&&(i.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(i,"value",l.concat(e),r),i.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new ca;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.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)},n.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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,i=null,s=!1,a=null,u=[],l=e[1].startsWith("--"),c=[],f=e;f;){if(i=f[0],c.push(f),i==="("||i==="[")a||(a=f),u.push(i==="("?")":"]");else if(l&&s&&i==="{")a||(a=f),u.push("}");else if(u.length===0)if(i===";")if(s){this.decl(c,l);return}else break;else if(i==="{"){this.rule(c);return}else if(i==="}"){this.tokenizer.back(c.pop()),r=!0;break}else i===":"&&(s=!0);else i===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!l)for(;c.length&&(f=c[c.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(c.pop());this.decl(c,l)}else this.unknownWord(c)},n.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()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,i,s){for(var a,u,l=i.length,c="",f=!0,h,v,p=0;p<l;p+=1)a=i[p],u=a[0],u==="space"&&p===l-1&&!s?f=!1:u==="comment"?(v=i[p-1]?i[p-1][0]:"empty",h=i[p+1]?i[p+1][0]:"empty",!fa[v]&&!fa[h]?c.slice(-1)===","?f=!1:c+=a[1]:f=!1):c+=a[1];if(!f){var y=i.reduce(function(d,g){return d+g[1]},"");e.raws[r]={raw:y,value:c}}e[r]=c},n.rule=function(e){e.pop();var r=new ca;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,i="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)i=e.pop()[1]+i;return i},n.spacesAndCommentsFromStart=function(e){for(var r,i="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)i+=e.shift()[1];return i},n.spacesFromEnd=function(e){for(var r,i="";e.length&&(r=e[e.length-1][0],r==="space");)i=e.pop()[1]+i;return i},n.stringFrom=function(e,r){for(var i="",s=r;s<e.length;s++)i+=e[s][1];return e.splice(r,e.length-r),i},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t}(),Sh=bh,Ch=Ye,Ih=Sh,Oh=Gr;function rn(t,n){var o=new Oh(t,n),e=new Ih(o);try{e.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return e.root}var Mi=rn;rn.default=rn,Ch.registerParse(rn);var Re=De.isClean,Rh=De.my,xh=zs,Eh=Dr,Ah=Ye,Mh=Ci,kh=Qs,ha=Ri,_h=Mi,Th=Gt,Ph={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Nh={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},$h={Once:!0,postcssPlugin:!0,prepare:!0},dt=0;function Vt(t){return(typeof t=="undefined"?"undefined":N(t))==="object"&&typeof t.then=="function"}function da(t){var n=!1,o=Ph[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[o,o+"-"+n,dt,o+"Exit",o+"Exit-"+n]:n?[o,o+"-"+n,o+"Exit",o+"Exit-"+n]:t.append?[o,dt,o+"Exit"]:[o,o+"Exit"]}function pa(t){var n;return t.type==="document"?n=["Document",dt,"DocumentExit"]:t.type==="root"?n=["Root",dt,"RootExit"]:n=da(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ki(t){return t[Re]=!1,t.nodes&&t.nodes.forEach(function(n){return ki(n)}),t}var _i={},pt=function(){function t(o,e,r){var i=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":N(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=ki(e);else if(M(e,t)||M(e,ha))s=ki(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=_h;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(e,r)}catch(u){this.processed=!0,this.error=u}s&&!s[Rh]&&Ah.rebuild(s)}this.result=new ha(o,s,r),this.helpers=U({},_i,{postcss:_i,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":N(u))==="object"&&u.prepare?U({},u,u.prepare(i.result)):u})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var i=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion&&process.env.NODE_ENV!=="production"){var s=i.postcssPlugin,a=i.postcssVersion,u=this.result.processor.version,l=a.split("."),c=u.split(".");(l[0]!==c[0]||parseInt(l[1])>parseInt(c[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(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(c,f,h){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([c,h])},i=O(this.plugins),s;!(s=i()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":N(a))==="object")for(var u in a){if(!Nh[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!$h[u])if(N(a[u])==="object")for(var l in a[u])l==="*"?r(a,u,a[u][l]):r(a,u+"-"+l.toLowerCase(),a[u][l]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return In(function(){var r,i,s,a,u,l,c,f,h,v,p,y;return kt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(i=e.plugins[r],s=e.runOnRoot(i),!Vt(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[Re])return[3,14];u[Re]=!0,l=[pa(u)],d.label=8;case 8:if(!(l.length>0))return[3,13];if(c=e.visitTick(l),!Vt(c))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,c];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),h=l[l.length-1].node,e.handleError(f,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,b,S,C;return kt(this,function(R){switch(R.label){case 0:g=y.value,w=g[0],b=g[1],e.result.lastPlugin=w,R.label=1;case 1:return R.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(A){return b(A,e.helpers)}),[4,Promise.all(S)]);case 2:return R.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:R.sent(),R.label=5;case 5:return[3,7];case 6:throw C=R.sent(),e.handleError(C);case 7:return[2]}})},p=O(e.listeners.OnceExit),d.label=15;case 15:return(y=p()).done?[3,18]:[5,co(v())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":N(e))==="object"&&e.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return Vt(i[0])?Promise.all(i):i}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)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=Eh;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var i=new xh(r,this.result.root,this.result.opts),s=i.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.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=O(this.plugins),r;!(r=e()).done;){var i=r.value,s=this.runOnRoot(i);if(Vt(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Re];)a[Re]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=O(a.nodes),l;!(l=u()).done;){var c=l.value;this.visitSync(this.listeners.OnceExit,c)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||kh("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,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var i=O(e),s;!(s=i()).done;){var a=s.value,u=a[0],l=a[1];this.result.lastPlugin=u;var c=void 0;try{c=l(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Vt(c))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],i=r.node,s=r.visitors;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],l=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return l(i.toProxy(),this.helpers)}catch(p){throw this.handleError(p,i)}}if(r.iterator!==0){for(var c=r.iterator,f;f=i.nodes[i.indexes[c]];)if(i.indexes[c]+=1,!f[Re]){f[Re]=!0,e.push(pa(f));return}r.iterator=0,delete i.indexes[c]}for(var h=r.events;r.eventIndex<h.length;){var v=h[r.eventIndex];if(r.eventIndex+=1,v===dt){i.nodes&&i.nodes.length&&(i[Re]=!0,r.iterator=i.getIterator());return}else if(this.listeners[v]){r.visitors=this.listeners[v];return}}e.pop()},n.walkSync=function(e){var r=this;e[Re]=!0;for(var i=da(e),s=O(i),a;!(a=s()).done;){var u=a.value;if(u===dt)e.nodes&&e.each(function(c){c[Re]||r.walkSync(c)});else{var l=this.listeners[u];if(l&&this.visitSync(l,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},se(t,[{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"}}]),t}();pt.registerPostcss=function(t){_i=t};var va=pt;pt.default=pt,Th.registerLazyResult(pt),Mh.registerLazyResult(pt);var Lh=zs,Dh=Dr,Fh=Qs,Bh=Mi,Uh=Ri,Ti=function(){function t(o,e,r){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=r,this._map=void 0;var i,s=Dh;this.result=new Uh(this._processor,i,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Lh(s,i,this._opts,e);if(u.isMap()){var l=u.generate(),c=l[0],f=l[1];c&&(this.result.css=c),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Fh("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,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},se(t,[{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,r=Bh;try{e=r(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t}(),zh=Ti;Ti.default=Ti;var Wh=zh,Gh=va,jh=Ci,Vh=Gt,Yt=function(){function t(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var n=t.prototype;return n.normalize=function(e){for(var r=[],i=O(e),s;!(s=i()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":N(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":N(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":N(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 r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Wh(this,e,r):new Gh(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t}(),Yh=Yt;Yt.default=Yt,Vh.registerProcessor(Yt),jh.registerProcessor(Yt);var qh=Ur,Hh=Ts,Jh=Yr,Zh=Ei,Kh=Gr,Xh=Gt,Qh=Ai;function qt(t,n){if(Array.isArray(t))return t.map(function(f){return qt(f)});var o=t.inputs,e=At(t,["inputs"]);if(o){n=[];for(var r=O(o),i;!(i=r()).done;){var s=i.value,a=U({},s,{__proto__:Kh.prototype});a.map&&(a.map=U({},a.map,{__proto__:Hh.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return qt(f,n)})),e.source){var u=e.source,l=u.inputId,c=At(u,["inputId"]);e.source=c,l!=null&&(e.source.input=n[l])}if(e.type==="root")return new Xh(e);if(e.type==="decl")return new qh(e);if(e.type==="rule")return new Qh(e);if(e.type==="comment")return new Jh(e);if(e.type==="atrule")return new Zh(e);throw new Error("Unknown node type: "+t.type)}var ed=qt;qt.default=qt;var td=ai,ma=Ur,rd=va,nd=Ye,Pi=Yh,id=Dr,od=ed,ga=Ci,sd=ea,ya=Yr,wa=Ei,ad=Ri,ud=Gr,ld=Mi,cd=ua,ba=Ai,Sa=Gt,fd=Br;function Y(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Pi(n)}Y.plugin=function(n,o){var e=!1;function r(){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(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \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=n,l.postcssVersion=new Pi().version,l}var i;return Object.defineProperty(r,"postcss",{get:function(){return i||(i=r()),i}}),r.process=function(s,a,u){return Y([r(u)]).process(s,a)},r},Y.stringify=id,Y.parse=ld,Y.fromJSON=od,Y.list=cd,Y.comment=function(t){return new ya(t)},Y.atRule=function(t){return new wa(t)},Y.decl=function(t){return new ma(t)},Y.rule=function(t){return new ba(t)},Y.root=function(t){return new Sa(t)},Y.document=function(t){return new ga(t)},Y.CssSyntaxError=td,Y.Declaration=ma,Y.Container=nd,Y.Processor=Pi,Y.Document=ga,Y.Comment=ya,Y.Warning=sd,Y.AtRule=wa,Y.Result=ad,Y.Input=ud,Y.Rule=ba,Y.Root=Sa,Y.Node=fd,rd.registerPostcss(Y);var hd=Y;Y.default=Y;var X=If(hd);X.stringify,X.fromJSON,X.plugin,X.parse,X.list,X.document,X.comment,X.atRule,X.rule,X.decl,X.root,X.CssSyntaxError,X.Declaration,X.Container,X.Processor,X.Document,X.Comment,X.Warning,X.AtRule,X.Result,X.Input,X.Rule,X.Root,X.Node;var dd=function(){function t(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];be(this,"parentElement",null),be(this,"parentNode",null),be(this,"ownerDocument"),be(this,"firstChild",null),be(this,"lastChild",null),be(this,"previousSibling",null),be(this,"nextSibling",null),be(this,"ELEMENT_NODE",1),be(this,"TEXT_NODE",3),be(this,"nodeType"),be(this,"nodeName"),be(this,"RRNodeType")}var n=t.prototype;return n.contains=function(e){if(M(e,t)){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},n.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},n.insertBefore=function(e,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},n.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},n.toString=function(){return"RRNode"},se(t,[{key:"childNodes",get:function(){for(var e=[],r=this.firstChild;r;)e.push(r),r=r.nextSibling;return e}}]),t}(),Ca={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ia={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},nn={},pd=function(){return!!globalThis.Zone};function Ni(t){if(nn[t])return nn[t];var n=globalThis[t],o=n.prototype,e=t in Ca?Ca[t]:void 0,r=!!(e&&e.every(function(c){var f,h;return!!((h=(f=Object.getOwnPropertyDescriptor(o,c))==null?void 0:f.get)!=null&&h.toString().includes("[native code]"))})),i=t in Ia?Ia[t]:void 0,s=!!(i&&i.every(function(c){var f;return typeof o[c]=="function"&&((f=o[c])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!pd())return nn[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var l=u[t].prototype;return document.body.removeChild(a),l?nn[t]=l:o}catch(c){return o}}var $i={};function Fe(t,n,o){var e,r=t+"."+String(o);if($i[r])return $i[r].call(n);var i=Ni(t),s=(e=Object.getOwnPropertyDescriptor(i,o))==null?void 0:e.get;return s?($i[r]=s,s.call(n)):n[o]}var Li={};function Oa(t,n,o){var e=t+"."+String(o);if(Li[e])return Li[e].bind(n);var r=Ni(t),i=r[o];return typeof i!="function"?n[o]:(Li[e]=i,i.bind(n))}function vd(t){return Fe("Node",t,"childNodes")}function md(t){return Fe("Node",t,"parentNode")}function gd(t){return Fe("Node",t,"parentElement")}function yd(t){return Fe("Node",t,"textContent")}function wd(t,n){return Oa("Node",t,"contains")(n)}function bd(t){return Oa("Node",t,"getRootNode")()}function Sd(t){return!t||!("host"in t)?null:Fe("ShadowRoot",t,"host")}function Cd(t){return t.styleSheets}function Id(t){return!t||!("shadowRoot"in t)?null:Fe("Element",t,"shadowRoot")}function Od(t,n){return Fe("Element",t,"querySelector")(n)}function Rd(t,n){return Fe("Element",t,"querySelectorAll")(n)}function Ra(){return Ni("MutationObserver").constructor}function qe(t,n,o){try{if(!(n in t))return function(){};var e=t[n],r=o(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(i){return function(){}}}var L={childNodes:vd,parentNode:md,parentElement:gd,textContent:yd,contains:wd,getRootNode:bd,host:Sd,styleSheets:Cd,shadowRoot:Id,querySelector:Od,querySelectorAll:Rd,mutationObserver:Ra,patch:qe};function ce(t,n,o){o===void 0&&(o=document);var e={capture:!0,passive:!0};return o.addEventListener(t,n,e),function(){return o.removeEventListener(t,n,e)}}var vt="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.",xa={map:{},getId:function(){return console.error(vt),-1},getNode:function(){return console.error(vt),null},removeNodeFromMap:function(){console.error(vt)},has:function(){return console.error(vt),!1},reset:function(){console.error(vt)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(xa=new Proxy(xa,{get:function(n,o,e){return o==="map"&&console.error(vt),Reflect.get(n,o,e)}}));function Ht(t,n,o){o===void 0&&(o={});var e=null,r=0;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var u=Date.now();!r&&o.leading===!1&&(r=u);var l=n-(u-r),c=this;l<=0||l>n?(e&&(clearTimeout(e),e=null),r=u,t.apply(c,s)):!e&&o.trailing!==!1&&(e=setTimeout(function(){r=o.leading===!1?0:Date.now(),e=null,t.apply(c,s)},l))}}function on(t,n,o,e,r){r===void 0&&(r=window);var i=r.Object.getOwnPropertyDescriptor(t,n);return r.Object.defineProperty(t,n,e?o:{set:function(a){var u=this;setTimeout(function(){o.set.call(u,a)},0),i&&i.set&&i.set.call(this,a)}}),function(){return on(t,n,i||{},!0)}}var sn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(sn=function(){return new Date().getTime()});function Ea(t){var n,o,e,r,i=t.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:i.documentElement.scrollLeft||(i==null?void 0:i.body)&&((n=L.parentElement(i.body))==null?void 0:n.scrollLeft)||((o=i==null?void 0:i.body)==null?void 0:o.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:(i==null?void 0:i.documentElement.scrollTop)||(i==null?void 0:i.body)&&((e=L.parentElement(i.body))==null?void 0:e.scrollTop)||((r=i==null?void 0:i.body)==null?void 0:r.scrollTop)||0}}function Aa(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ma(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ka(t){if(!t)return null;var n=t.nodeType===t.ELEMENT_NODE?t:L.parentElement(t);return n}function fe(t,n,o,e){if(!t)return!1;var r=ka(t);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||e&&r.closest("."+n)!==null)return!0}else if(mr(r,n,e))return!0}catch(i){}return!!(o&&(r.matches(o)||e&&r.closest(o)!==null))}function xd(t,n){return n.getId(t)!==-1}function Di(t,n,o){return t.tagName==="TITLE"&&o.headTitleMutations?!0:n.getId(t)===Pt}function _a(t,n){if(_t(t))return!1;var o=n.getId(t);if(!n.has(o))return!0;var e=L.parentNode(t);return e&&e.nodeType===t.DOCUMENT_NODE?!1:e?_a(e,n):!0}function Fi(t){return!!t.changedTouches}function Ed(t){t===void 0&&(t=window),"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Ta(t,n){return!!(t.nodeName==="IFRAME"&&n.getMeta(t))}function Pa(t,n){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&n.getMeta(t))}function Bi(t){return t?M(t,dd)&&"shadowRoot"in t?!!t.shadowRoot:!!L.shadowRoot(t):!1}var Ad=function(){function t(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(this,"idStyleMap",new Map)}var n=t.prototype;return n.getId=function(e){var r;return(r=this.styleIDMap.get(e))!=null?r:-1},n.has=function(e){return this.styleIDMap.has(e)},n.add=function(e,r){if(this.has(e))return this.getId(e);var i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(e,i),this.idStyleMap.set(i,e),i},n.getStyle=function(e){return this.idStyleMap.get(e)||null},n.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},n.generateId=function(){return this.id++},t}();function Na(t){var n,o=null;return"getRootNode"in t&&((n=L.getRootNode(t))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&L.host(L.getRootNode(t))&&(o=L.host(L.getRootNode(t))),o}function Md(t){for(var n=t,o;o=Na(n);)n=o;return n}function kd(t){var n=t.ownerDocument;if(!n)return!1;var o=Md(t);return L.contains(n,o)}function $a(t){var n=t.ownerDocument;return n?L.contains(n,t)||kd(t):!1}var D=function(t){return t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t}(D||{}),T=function(t){return t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t}(T||{}),de=function(t){return t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t}(de||{}),_e=function(t){return t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t}(_e||{}),mt=function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t}(mt||{}),gt=function(t){return t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t}(gt||{}),La=function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t}(La||{});function Da(t){return"__ln"in t}var _d=function(){function t(){I(this,"length",0),I(this,"head",null),I(this,"tail",null)}var n=t.prototype;return n.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var r=this.head,i=0;i<e;i++)r=(r==null?void 0:r.next)||null;return r},n.addNode=function(e){var r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&Da(e.previousSibling)){var i=e.previousSibling.__ln.next;r.next=i,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,i&&(i.previous=r)}else if(e.nextSibling&&Da(e.nextSibling)&&e.nextSibling.__ln.previous){var s=e.nextSibling.__ln.previous;r.previous=s,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,s&&(s.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++},n.removeNode=function(e){var r=e.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},t}(),Fa=function(t,n){return t+"@"+n},Td=function(){function t(){var o=this;I(this,"frozen",!1),I(this,"locked",!1),I(this,"texts",[]),I(this,"attributes",[]),I(this,"attributeMap",new WeakMap),I(this,"removes",[]),I(this,"mapRemoves",[]),I(this,"movedMap",{}),I(this,"addedSet",new Set),I(this,"movedSet",new Set),I(this,"droppedSet",new Set),I(this,"removesSubTreeCache",new Set),I(this,"mutationCb"),I(this,"blockClass"),I(this,"blockSelector"),I(this,"maskTextClass"),I(this,"maskTextSelector"),I(this,"inlineStylesheet"),I(this,"maskInputOptions"),I(this,"maskTextFn"),I(this,"maskInputFn"),I(this,"keepIframeSrcFn"),I(this,"recordCanvas"),I(this,"inlineImages"),I(this,"slimDOMOptions"),I(this,"dataURLOptions"),I(this,"doc"),I(this,"mirror"),I(this,"iframeManager"),I(this,"stylesheetManager"),I(this,"shadowDomManager"),I(this,"canvasManager"),I(this,"processedNodeManager"),I(this,"unattachedDoc"),I(this,"processMutations",function(e){e.forEach(o.processMutation),o.emit()}),I(this,"emit",function(){if(!(o.frozen||o.locked)){for(var e=[],r=new Set,i=new _d,s=function(_){for(var $=_,G=Pt;G===Pt;)$=$&&$.nextSibling,G=$&&o.mirror.getId($);return G},a=function(_){var $=L.parentNode(_);if(!(!$||!$a(_))){var G=!1;if(_.nodeType===Node.TEXT_NODE){var pe=$.tagName;if(pe==="TEXTAREA")return;pe==="STYLE"&&o.addedSet.has($)&&(G=!0)}var j=_t($)?o.mirror.getId(Na(_)):o.mirror.getId($),ge=s(_);if(j===-1||ge===-1)return i.addNode(_);var he=ut(_,{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(Q){Ta(Q,o.mirror)&&o.iframeManager.addIframe(Q),Pa(Q,o.mirror)&&o.stylesheetManager.trackLinkElement(Q),Bi(_)&&o.shadowDomManager.addShadowRoot(L.shadowRoot(_),o.doc)},onIframeLoad:function(Q,ae){o.iframeManager.attachIframe(Q,ae),o.shadowDomManager.observeAttachShadow(Q)},onStylesheetLoad:function(Q,ae){o.stylesheetManager.attachLinkElement(Q,ae)},cssCaptured:G});he&&(e.push({parentId:j,nextId:ge,node:he}),r.add(he.id))}};o.mapRemoves.length;)o.mirror.removeNodeFromMap(o.mapRemoves.shift());for(var u=O(o.movedSet),l;!(l=u()).done;){var c=l.value;Ba(o.removesSubTreeCache,c,o.mirror)&&!o.movedSet.has(L.parentNode(c))||a(c)}for(var f=O(o.addedSet),h;!(h=f()).done;){var v=h.value;!Ua(o.droppedSet,v)&&!Ba(o.removesSubTreeCache,v,o.mirror)||Ua(o.movedSet,v)?a(v):o.droppedSet.add(v)}for(var p=null;i.length;){var y=null;if(p){var d=o.mirror.getId(L.parentNode(p.value)),g=s(p.value);d!==-1&&g!==-1&&(y=p)}if(!y)for(var w=i.tail;w;){var b=w;if(w=w.previous,b){var S=o.mirror.getId(L.parentNode(b.value)),C=s(b.value);if(C===-1)continue;if(S!==-1){y=b;break}else{var R=b.value,A=L.parentNode(R);if(A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var x=L.host(A),k=o.mirror.getId(x);if(k!==-1){y=b;break}}}}}if(!y){for(;i.head;)i.removeNode(i.head.value);break}p=y.previous,i.removeNode(y.value),a(y.value)}var P={texts:o.texts.map(function(_){var $=_.node,G=L.parentNode($);return G&&G.tagName==="TEXTAREA"&&o.genTextAreaValueMutation(G),{id:o.mirror.getId($),value:_.value}}).filter(function(_){return!r.has(_.id)}).filter(function(_){return o.mirror.has(_.id)}),attributes:o.attributes.map(function(_){var $=_.attributes;if(typeof $.style=="string"){var G=JSON.stringify(_.styleDiff),pe=JSON.stringify(_._unchangedStyles);G.length<$.style.length&&(G+pe).split("var(").length===$.style.split("var(").length&&($.style=_.styleDiff)}return{id:o.mirror.getId(_.node),attributes:$}}).filter(function(_){return!r.has(_.id)}).filter(function(_){return o.mirror.has(_.id)}),removes:o.removes,adds:e};!P.texts.length&&!P.attributes.length&&!P.removes.length&&!P.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(P))}}),I(this,"genTextAreaValueMutation",function(e){var r=o.attributeMap.get(e);r||(r={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(r),o.attributeMap.set(e,r));var i=Array.from(L.childNodes(e),function(s){return L.textContent(s)||""}).join("");r.attributes.value=hr({element:e,maskInputOptions:o.maskInputOptions,tagName:e.tagName,type:dr(e),value:i,maskInputFn:o.maskInputFn})}),I(this,"processMutation",function(e){if(!Di(e.target,o.mirror,o.slimDOMOptions))switch(e.type){case"characterData":{var r=L.textContent(e.target);!fe(e.target,o.blockClass,o.blockSelector,!1)&&r!==e.oldValue&&o.texts.push({value:Eo(e.target,o.maskTextClass,o.maskTextSelector,!0)&&r?o.maskTextFn?o.maskTextFn(r,ka(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{var i=e.target,s=e.attributeName,a=e.target.getAttribute(s);if(s==="value"){var u=dr(i);a=hr({element:i,maskInputOptions:o.maskInputOptions,tagName:i.tagName,type:u,value:a,maskInputFn:o.maskInputFn})}if(fe(e.target,o.blockClass,o.blockSelector,!1)||a===e.oldValue)return;var l=o.attributeMap.get(e.target);if(i.tagName==="IFRAME"&&s==="src"&&!o.keepIframeSrcFn(a))if(!i.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"&&i.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&i.setAttribute("data-rr-is-password","true"),!xo(i.tagName,s))if(l.attributes[s]=Ro(o.doc,je(i.tagName),je(s),a),s==="style"){if(!o.unattachedDoc)try{o.unattachedDoc=document.implementation.createHTMLDocument()}catch(b){o.unattachedDoc=o.doc}var c=o.unattachedDoc.createElement("span");e.oldValue&&c.setAttribute("style",e.oldValue);for(var f=O(Array.from(i.style)),h;!(h=f()).done;){var v=h.value,p=i.style.getPropertyValue(v),y=i.style.getPropertyPriority(v);p!==c.style.getPropertyValue(v)||y!==c.style.getPropertyPriority(v)?y===""?l.styleDiff[v]=p:l.styleDiff[v]=[p,y]:l._unchangedStyles[v]=[p,y]}for(var d=O(Array.from(c.style)),g;!(g=d()).done;){var w=g.value;i.style.getPropertyValue(w)===""&&(l.styleDiff[w]=!1)}}else s==="open"&&i.tagName==="DIALOG"&&(i.matches("dialog:modal")?l.attributes.rr_open_mode="modal":l.attributes.rr_open_mode="non-modal");break}case"childList":{if(fe(e.target,o.blockClass,o.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){o.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(b){return o.genAdds(b,e.target)}),e.removedNodes.forEach(function(b){var S=o.mirror.getId(b),C=_t(e.target)?o.mirror.getId(L.host(e.target)):o.mirror.getId(e.target);fe(e.target,o.blockClass,o.blockSelector,!1)||Di(b,o.mirror,o.slimDOMOptions)||!xd(b,o.mirror)||(o.addedSet.has(b)?(Ui(o.addedSet,b),o.droppedSet.add(b)):o.addedSet.has(e.target)&&S===-1||_a(e.target,o.mirror)||(o.movedSet.has(b)&&o.movedMap[Fa(S,C)]?Ui(o.movedSet,b):(o.removes.push({parentId:C,id:S,isShadow:_t(e.target)&&Tt(e.target)?!0:void 0}),Pd(b,o.removesSubTreeCache))),o.mapRemoves.push(b))});break}}}),I(this,"genAdds",function(e,r){if(!o.processedNodeManager.inOtherBuffer(e,o)&&!(o.addedSet.has(e)||o.movedSet.has(e))){if(o.mirror.hasNode(e)){if(Di(e,o.mirror,o.slimDOMOptions))return;o.movedSet.add(e);var i=null;r&&o.mirror.hasNode(r)&&(i=o.mirror.getId(r)),i&&i!==-1&&(o.movedMap[Fa(o.mirror.getId(e),i)]=!0)}else o.addedSet.add(e),o.droppedSet.delete(e);fe(e,o.blockClass,o.blockSelector,!1)||(L.childNodes(e).forEach(function(s){return o.genAdds(s)}),Bi(e)&&L.childNodes(L.shadowRoot(e)).forEach(function(s){o.processedNodeManager.add(s,o),o.genAdds(s,e)}))}})}var n=t.prototype;return n.init=function(e){var r=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(i){r[i]=e[i]})},n.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},n.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},n.isFrozen=function(){return this.frozen},n.lock=function(){this.locked=!0,this.canvasManager.lock()},n.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},n.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t}();function Ui(t,n){t.delete(n),L.childNodes(n).forEach(function(o){return Ui(t,o)})}function Pd(t,n){for(var o=[t];o.length;){var e=o.pop();n.has(e)||(n.add(e),L.childNodes(e).forEach(function(r){return o.push(r)}))}}function Ba(t,n,o){return t.size===0?!1:Nd(t,n)}function Nd(t,n,o){var e=L.parentNode(n);return e?t.has(e):!1}function Ua(t,n){return t.size===0?!1:za(t,n)}function za(t,n){var o=L.parentNode(n);return o?t.has(o)?!0:za(t,o):!1}var Jt;function $d(t){Jt=t}function Ld(){Jt=void 0}var B=function(t){if(!Jt)return t;var n=function(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];try{return t.apply(void 0,[].concat(e))}catch(i){if(Jt&&Jt(i)===!0)return;throw i}};return n},He=[];function Zt(t){try{if("composedPath"in t){var n=t.composedPath();if(n.length)return n[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(o){}return t&&t.target}function Wa(t,n){var o=new Td;He.push(o),o.init(t);var e=new(Ra())(B(o.processMutations.bind(o)));return e.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function Dd(t){var n=t.mousemoveCb,o=t.sampling,e=t.doc,r=t.mirror;if(o.mousemove===!1)return function(){};var i=typeof o.mousemove=="number"?o.mousemove:50,s=typeof o.mousemoveCallback=="number"?o.mousemoveCallback:500,a=[],u,l=Ht(B(function(h){var v=Date.now()-u;n(a.map(function(p){return p.timeOffset-=v,p}),h),a=[],u=null}),s),c=B(Ht(B(function(h){var v=Zt(h),p=Fi(h)?h.changedTouches[0]:h,y=p.clientX,d=p.clientY;u||(u=sn()),a.push({x:y,y:d,id:r.getId(v),timeOffset:sn()-u}),l(typeof DragEvent!="undefined"&&M(h,DragEvent)?T.Drag:M(h,MouseEvent)?T.MouseMove:T.TouchMove)}),i,{trailing:!1})),f=[ce("mousemove",c,e),ce("touchmove",c,e),ce("drag",c,e)];return B(function(){f.forEach(function(h){return h()})})}function Fd(t){var n=t.mouseInteractionCb,o=t.doc,e=t.mirror,r=t.blockClass,i=t.blockSelector,s=t.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],l=null,c=function(f){return function(h){var v=Zt(h);if(!fe(v,r,i,!0)){var p=null,y=f;if("pointerType"in h){switch(h.pointerType){case"mouse":p=_e.Mouse;break;case"touch":p=_e.Touch;break;case"pen":p=_e.Pen;break}p===_e.Touch?de[f]===de.MouseDown?y="TouchStart":de[f]===de.MouseUp&&(y="TouchEnd"):_e.Pen}else Fi(h)&&(p=_e.Touch);p!==null?(l=p,(y.startsWith("Touch")&&p===_e.Touch||y.startsWith("Mouse")&&p===_e.Mouse)&&(p=null)):de[f]===de.Click&&(p=l,l=null);var d=Fi(h)?h.changedTouches[0]:h;if(d){var g=e.getId(v),w=d.clientX,b=d.clientY;B(n)(U({type:de[y],id:g,x:w,y:b},p!==null&&{pointerType:p}))}}}};return Object.keys(de).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var h=je(f),v=c(f);if(window.PointerEvent)switch(de[f]){case de.MouseDown:case de.MouseUp:h=h.replace("mouse","pointer");break;case de.TouchStart:case de.TouchEnd:return}u.push(ce(h,v,o))}),B(function(){u.forEach(function(f){return f()})})}function Ga(t){var n=t.scrollCb,o=t.doc,e=t.mirror,r=t.blockClass,i=t.blockSelector,s=t.sampling,a=B(Ht(B(function(u){var l=Zt(u);if(!(!l||fe(l,r,i,!0))){var c=e.getId(l);if(l===o&&o.defaultView){var f=Ea(o.defaultView);n({id:c,x:f.left,y:f.top})}else n({id:c,x:l.scrollLeft,y:l.scrollTop})}}),s.scroll||100));return ce("scroll",a,o)}function Bd(t,n){var o=t.viewportResizeCb,e=n.win,r=-1,i=-1,s=B(Ht(B(function(){var a=Aa(),u=Ma();(r!==a||i!==u)&&(o({width:Number(u),height:Number(a)}),r=a,i=u)}),200));return ce("resize",s,e)}var Ud=["INPUT","TEXTAREA","SELECT"],ja=new WeakMap;function zd(t){var n=t.inputCb,o=t.doc,e=t.mirror,r=t.blockClass,i=t.blockSelector,s=t.ignoreClass,a=t.ignoreSelector,u=t.maskInputOptions,l=t.maskInputFn,c=t.sampling,f=t.userTriggeredOnInput;function h(S){var C=Zt(S),R=S.isTrusted,A=C&&C.tagName;if(C&&A==="OPTION"&&(C=L.parentElement(C)),!(!C||!A||Ud.indexOf(A)<0||fe(C,r,i,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var x=C.value,k=!1,P=dr(C)||"";P==="radio"||P==="checkbox"?k=C.checked:(u[A.toLowerCase()]||u[P])&&(x=hr({element:C,maskInputOptions:u,tagName:A,type:P,value:x,maskInputFn:l})),v(C,f?{text:x,isChecked:k,userTriggered:R}:{text:x,isChecked:k});var _=C.name;P==="radio"&&_&&k&&o.querySelectorAll('input[type="radio"][name="'+_+'"]').forEach(function($){if($!==C){var G=$.value;v($,f?{text:G,isChecked:!k,userTriggered:!1}:{text:G,isChecked:!k})}})}}function v(S,C){var R=ja.get(S);if(!R||R.text!==C.text||R.isChecked!==C.isChecked){ja.set(S,C);var A=e.getId(S);B(n)(U({},C,{id:A}))}}var p=c.input==="last"?["change"]:["input","change"],y=p.map(function(S){return ce(S,B(h),o)}),d=o.defaultView;if(!d)return function(){y.forEach(function(S){return S()})};var g=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),w=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];if(g&&g.set){var b;(b=y).push.apply(b,[].concat(w.map(function(S){return on(S[0],S[1],{set:function(){B(h)({target:this,isTrusted:!1})}},!1,d)})))}return B(function(){y.forEach(function(S){return S()})})}function an(t){var n=[];function o(e,r){if(un("CSSGroupingRule")&&M(e.parentRule,CSSGroupingRule)||un("CSSMediaRule")&&M(e.parentRule,CSSMediaRule)||un("CSSSupportsRule")&&M(e.parentRule,CSSSupportsRule)||un("CSSConditionRule")&&M(e.parentRule,CSSConditionRule)){var i=Array.from(e.parentRule.cssRules),s=i.indexOf(e);r.unshift(s)}else if(e.parentStyleSheet){var a=Array.from(e.parentStyleSheet.cssRules),u=a.indexOf(e);r.unshift(u)}return r}return o(t,n)}function Be(t,n,o){var e,r;return t?(t.ownerNode?e=n.getId(t.ownerNode):r=o.getId(t),{styleId:r,id:e}):{}}function Wd(t,n){var o=t.styleSheetRuleCb,e=t.mirror,r=t.stylesheetManager,i=n.win;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return function(){};var s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:B(function(h,v,p){var y=p[0],d=p[1],g=Be(v,e,r.styleMirror),w=g.id,b=g.styleId;return(w&&w!==-1||b&&b!==-1)&&o({id:w,styleId:b,adds:[{rule:y,index:d}]}),h.apply(v,p)})}),i.CSSStyleSheet.prototype.addRule=function(h,v,p){p===void 0&&(p=this.cssRules.length);var y=h+" { "+v+" }";return i.CSSStyleSheet.prototype.insertRule.apply(this,[y,p])};var a=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:B(function(h,v,p){var y=p[0],d=Be(v,e,r.styleMirror),g=d.id,w=d.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,removes:[{index:y}]}),h.apply(v,p)})}),i.CSSStyleSheet.prototype.removeRule=function(h){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};var u;i.CSSStyleSheet.prototype.replace&&(u=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:B(function(h,v,p){var y=p[0],d=Be(v,e,r.styleMirror),g=d.id,w=d.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,replace:y}),h.apply(v,p)})}));var l;i.CSSStyleSheet.prototype.replaceSync&&(l=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:B(function(h,v,p){var y=p[0],d=Be(v,e,r.styleMirror),g=d.id,w=d.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,replaceSync:y}),h.apply(v,p)})}));var c={};ln("CSSGroupingRule")?c.CSSGroupingRule=i.CSSGroupingRule:(ln("CSSMediaRule")&&(c.CSSMediaRule=i.CSSMediaRule),ln("CSSConditionRule")&&(c.CSSConditionRule=i.CSSConditionRule),ln("CSSSupportsRule")&&(c.CSSSupportsRule=i.CSSSupportsRule));var f={};return Object.entries(c).forEach(function(h){var v=h[0],p=h[1];f[v]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(f[v].insertRule,{apply:B(function(y,d,g){var w=g[0],b=g[1],S=Be(d.parentStyleSheet,e,r.styleMirror),C=S.id,R=S.styleId;return(C&&C!==-1||R&&R!==-1)&&o({id:C,styleId:R,adds:[{rule:w,index:[].concat(an(d),[b||0])}]}),y.apply(d,g)})}),p.prototype.deleteRule=new Proxy(f[v].deleteRule,{apply:B(function(y,d,g){var w=g[0],b=Be(d.parentStyleSheet,e,r.styleMirror),S=b.id,C=b.styleId;return(S&&S!==-1||C&&C!==-1)&&o({id:S,styleId:C,removes:[{index:[].concat(an(d),[w])}]}),y.apply(d,g)})})}),B(function(){i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=a,u&&(i.CSSStyleSheet.prototype.replace=u),l&&(i.CSSStyleSheet.prototype.replaceSync=l),Object.entries(c).forEach(function(h){var v=h[0],p=h[1];p.prototype.insertRule=f[v].insertRule,p.prototype.deleteRule=f[v].deleteRule})})}function Va(t,n){var o=t.mirror,e=t.stylesheetManager,r,i,s,a=null;n.nodeName==="#document"?a=o.getId(n):a=o.getId(L.host(n));var u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(i=n.ownerDocument)==null?void 0:i.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(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var f;return(f=l.get)==null?void 0:f.call(this)},set:function(f){var h,v=(h=l.set)==null?void 0:h.call(this,f);if(a!==null&&a!==-1)try{e.adoptStyleSheets(f,a)}catch(p){}return v}}),B(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function Gd(t,n){var o=t.styleDeclarationCb,e=t.mirror,r=t.ignoreCSSAttributes,i=t.stylesheetManager,s=n.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:B(function(l,c,f){var h,v=f[0],p=f[1],y=f[2];if(r.has(v))return a.apply(c,[v,p,y]);var d=Be((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,i.styleMirror),g=d.id,w=d.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,set:{property:v,value:p,priority:y},index:an(c.parentRule)}),l.apply(c,f)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:B(function(l,c,f){var h,v=f[0];if(r.has(v))return u.apply(c,[v]);var p=Be((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,i.styleMirror),y=p.id,d=p.styleId;return(y&&y!==-1||d&&d!==-1)&&o({id:y,styleId:d,remove:{property:v},index:an(c.parentRule)}),l.apply(c,f)})}),B(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function jd(t){var n=t.mediaInteractionCb,o=t.blockClass,e=t.blockSelector,r=t.mirror,i=t.sampling,s=t.doc,a=B(function(l){return Ht(B(function(c){var f=Zt(c);if(!(!f||fe(f,o,e,!0))){var h=f.currentTime,v=f.volume,p=f.muted,y=f.playbackRate,d=f.loop;n({type:l,id:r.getId(f),currentTime:h,volume:v,muted:p,playbackRate:y,loop:d})}}),i.media||500)}),u=[ce("play",a(gt.Play),s),ce("pause",a(gt.Pause),s),ce("seeked",a(gt.Seeked),s),ce("volumechange",a(gt.VolumeChange),s),ce("ratechange",a(gt.RateChange),s)];return B(function(){u.forEach(function(l){return l()})})}function Vd(t){var n=t.fontCb,o=t.doc,e=o.defaultView;if(!e)return function(){};var r=[],i=new WeakMap,s=e.FontFace;e.FontFace=function(l,c,f){var h=new s(l,c,f);return i.set(h,{family:l,buffer:typeof c!="string",descriptors:f,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),h};var a=qe(o.fonts,"add",function(u){return function(l){return setTimeout(B(function(){var c=i.get(l);c&&(n(c),i.delete(l))}),0),u.apply(this,[l])}});return r.push(function(){e.FontFace=s}),r.push(a),B(function(){r.forEach(function(u){return u()})})}function Yd(t){var n=t.doc,o=t.mirror,e=t.blockClass,r=t.blockSelector,i=t.selectionCb,s=!0,a=B(function(){var u=n.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var l=[],c=u.rangeCount||0,f=0;f<c;f++){var h=u.getRangeAt(f),v=h.startContainer,p=h.startOffset,y=h.endContainer,d=h.endOffset,g=fe(v,e,r,!0)||fe(y,e,r,!0);g||l.push({start:o.getId(v),startOffset:p,end:o.getId(y),endOffset:d})}i({ranges:l})}});return a(),ce("selectionchange",a)}function qd(t){var n=t.doc,o=t.customElementCb,e=n.defaultView;if(!e||!e.customElements)return function(){};var r=qe(e.customElements,"define",function(i){return function(s,a,u){try{o({define:{name:s}})}catch(l){console.warn("Custom element callback failed for "+s)}return i.apply(this,[s,a,u])}});return r}function Hd(t,n){var o=t.mutationCb,e=t.mousemoveCb,r=t.mouseInteractionCb,i=t.scrollCb,s=t.viewportResizeCb,a=t.inputCb,u=t.mediaInteractionCb,l=t.styleSheetRuleCb,c=t.styleDeclarationCb,f=t.canvasMutationCb,h=t.fontCb,v=t.selectionCb,p=t.customElementCb;t.mutationCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.mutation){var w;(w=n).mutation.apply(w,[].concat(d))}o.apply(void 0,[].concat(d))},t.mousemoveCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.mousemove){var w;(w=n).mousemove.apply(w,[].concat(d))}e.apply(void 0,[].concat(d))},t.mouseInteractionCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.mouseInteraction){var w;(w=n).mouseInteraction.apply(w,[].concat(d))}r.apply(void 0,[].concat(d))},t.scrollCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.scroll){var w;(w=n).scroll.apply(w,[].concat(d))}i.apply(void 0,[].concat(d))},t.viewportResizeCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.viewportResize){var w;(w=n).viewportResize.apply(w,[].concat(d))}s.apply(void 0,[].concat(d))},t.inputCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.input){var w;(w=n).input.apply(w,[].concat(d))}a.apply(void 0,[].concat(d))},t.mediaInteractionCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.mediaInteaction){var w;(w=n).mediaInteaction.apply(w,[].concat(d))}u.apply(void 0,[].concat(d))},t.styleSheetRuleCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.styleSheetRule){var w;(w=n).styleSheetRule.apply(w,[].concat(d))}l.apply(void 0,[].concat(d))},t.styleDeclarationCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.styleDeclaration){var w;(w=n).styleDeclaration.apply(w,[].concat(d))}c.apply(void 0,[].concat(d))},t.canvasMutationCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.canvasMutation){var w;(w=n).canvasMutation.apply(w,[].concat(d))}f.apply(void 0,[].concat(d))},t.fontCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.font){var w;(w=n).font.apply(w,[].concat(d))}h.apply(void 0,[].concat(d))},t.selectionCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.selection){var w;(w=n).selection.apply(w,[].concat(d))}v.apply(void 0,[].concat(d))},t.customElementCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.customElement){var w;(w=n).customElement.apply(w,[].concat(d))}p.apply(void 0,[].concat(d))}}function Jd(t,n){n===void 0&&(n={});var o=t.doc.defaultView;if(!o)return function(){};Hd(t,n);var e;t.recordDOM&&(e=Wa(t,t.doc));var r=Dd(t),i=Fd(t),s=Ga(t),a=Bd(t,{win:o}),u=zd(t),l=jd(t),c=function(){},f=function(){},h=function(){},v=function(){};t.recordDOM&&(c=Wd(t,{win:o}),f=Va(t,t.doc),h=Gd(t,{win:o}),t.collectFonts&&(v=Vd(t)));for(var p=Yd(t),y=qd(t),d=[],g=O(t.plugins),w;!(w=g()).done;){var b=w.value;d.push(b.observer(b.callback,o,b.options))}return B(function(){He.forEach(function(S){return S.reset()}),e==null||e.disconnect(),r(),i(),s(),a(),u(),l(),c(),f(),h(),v(),p(),y(),d.forEach(function(S){return S()})})}function un(t){return typeof window[t]!="undefined"}function ln(t){return!!(typeof window[t]!="undefined"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}for(var Ya=function(){function t(o){I(this,"iframeIdToRemoteIdMap",new WeakMap),I(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=o}var n=t.prototype;return n.getId=function(e,r,i,s){var a=i||this.getIdToRemoteIdMap(e),u=s||this.getRemoteIdToIdMap(e),l=a.get(r);return l||(l=this.generateIdFn(),a.set(r,l),u.set(l,r)),l},n.getIds=function(e,r){var i=this,s=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return r.map(function(u){return i.getId(e,u,s,a)})},n.getRemoteId=function(e,r,i){var s=i||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;var a=s.get(r);return a||-1},n.getRemoteIds=function(e,r){var i=this,s=this.getRemoteIdToIdMap(e);return r.map(function(a){return i.getRemoteId(e,a,s)})},n.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},n.getIdToRemoteIdMap=function(e){var r=this.iframeIdToRemoteIdMap.get(e);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(e,r)),r},n.getRemoteIdToIdMap=function(e){var r=this.iframeRemoteIdToIdMap.get(e);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(e,r)),r},t}(),Zd=function(){function t(o){I(this,"iframes",new WeakMap),I(this,"crossOriginIframeMap",new WeakMap),I(this,"crossOriginIframeMirror",new Ya(Co)),I(this,"crossOriginIframeStyleMirror"),I(this,"crossOriginIframeRootIdMap",new WeakMap),I(this,"mirror"),I(this,"mutationCb"),I(this,"wrappedEmit"),I(this,"loadListener"),I(this,"stylesheetManager"),I(this,"recordCrossOriginIframes"),this.mutationCb=o.mutationCb,this.wrappedEmit=o.wrappedEmit,this.stylesheetManager=o.stylesheetManager,this.recordCrossOriginIframes=o.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ya(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=o.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var n=t.prototype;return n.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},n.addLoadListener=function(e){this.loadListener=e},n.attachIframe=function(e,r){var i,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=e.contentWindow)==null||i.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))},n.handleMessage=function(e){var r=e;if(!(r.data.type!=="rrweb"||r.origin!==r.data.origin)){var i=e.source;if(i){var s=this.crossOriginIframeMap.get(e.source);if(s){var a=this.transformCrossOriginEvent(s,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}}}},n.transformCrossOriginEvent=function(e,r){var i=this,s;switch(r.type){case D.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e);var a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:D.IncrementalSnapshot,data:{source:T.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case D.Meta:case D.Load:case D.DomContentLoaded:return!1;case D.Plugin:return r;case D.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case D.IncrementalSnapshot:switch(r.data.source){case T.Mutation:return r.data.adds.forEach(function(u){i.replaceIds(u,e,["parentId","nextId","previousId"]),i.replaceIdOnNode(u.node,e);var l=i.crossOriginIframeRootIdMap.get(e);l&&i.patchRootIdOnNode(u.node,l)}),r.data.removes.forEach(function(u){i.replaceIds(u,e,["parentId","id"])}),r.data.attributes.forEach(function(u){i.replaceIds(u,e,["id"])}),r.data.texts.forEach(function(u){i.replaceIds(u,e,["id"])}),r;case T.Drag:case T.TouchMove:case T.MouseMove:return r.data.positions.forEach(function(u){i.replaceIds(u,e,["id"])}),r;case T.ViewportResize:return!1;case T.MediaInteraction:case T.MouseInteraction:case T.Scroll:case T.CanvasMutation:case T.Input:return this.replaceIds(r.data,e,["id"]),r;case T.StyleSheetRule:case T.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case T.Font:return r;case T.Selection:return r.data.ranges.forEach(function(u){i.replaceIds(u,e,["start","end"])}),r;case T.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),(s=r.data.styles)==null||s.forEach(function(u){i.replaceStyleIds(u,e,["styleId"])}),r}}return!1},n.replace=function(e,r,i,s){for(var a=O(s),u;!(u=a()).done;){var l=u.value;!Array.isArray(r[l])&&typeof r[l]!="number"||(Array.isArray(r[l])?r[l]=e.getIds(i,r[l]):r[l]=e.getId(i,r[l]))}return r},n.replaceIds=function(e,r,i){return this.replace(this.crossOriginIframeMirror,e,r,i)},n.replaceStyleIds=function(e,r,i){return this.replace(this.crossOriginIframeStyleMirror,e,r,i)},n.replaceIdOnNode=function(e,r){var i=this;this.replaceIds(e,r,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(s){i.replaceIdOnNode(s,r)})},n.patchRootIdOnNode=function(e,r){var i=this;e.type!==La.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(function(s){i.patchRootIdOnNode(s,r)})},t}(),Kd=function(){function t(o){I(this,"shadowDoms",new WeakSet),I(this,"mutationCb"),I(this,"scrollCb"),I(this,"bypassOptions"),I(this,"mirror"),I(this,"restoreHandlers",[]),this.mutationCb=o.mutationCb,this.scrollCb=o.scrollCb,this.bypassOptions=o.bypassOptions,this.mirror=o.mirror,this.init()}var n=t.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(e,r){var i=this;if(Tt(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=Wa(U({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(Ga(U({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&i.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,i.mirror.getId(L.host(e))),i.restoreHandlers.push(Va({mirror:i.mirror,stylesheetManager:i.bypassOptions.stylesheetManager},e))},0)}},n.observeAttachShadow=function(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},n.patchAttachShadow=function(e,r){var i=this;this.restoreHandlers.push(qe(e.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),l=L.shadowRoot(this);return l&&$a(this)&&i.addShadowRoot(l,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t}(),yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xd=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),cn=0;cn<yt.length;cn++)Xd[yt.charCodeAt(cn)]=cn;var Qd=function(n){var o=new Uint8Array(n),e,r=o.length,i="";for(e=0;e<r;e+=3)i+=yt[o[e]>>2],i+=yt[(o[e]&3)<<4|o[e+1]>>4],i+=yt[(o[e+1]&15)<<2|o[e+2]>>6],i+=yt[o[e+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i},qa=new Map;function ep(t,n){var o=qa.get(t);return o||(o=new Map,qa.set(t,o)),o.has(n)||o.set(n,[]),o.get(n)}var Ha=function(t,n,o){if(!(!t||!(Za(t,n)||(typeof t=="undefined"?"undefined":N(t))==="object"))){var e=t.constructor.name,r=ep(o,e),i=r.indexOf(t);return i===-1&&(i=r.length,r.push(t)),i}};function fn(t,n,o){if(M(t,Array))return t.map(function(p){return fn(p,n,o)});if(t===null)return t;if(M(t,Float32Array)||M(t,Float64Array)||M(t,Int32Array)||M(t,Uint32Array)||M(t,Uint8Array)||M(t,Uint16Array)||M(t,Int16Array)||M(t,Int8Array)||M(t,Uint8ClampedArray)){var e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(M(t,ArrayBuffer)){var r=t.constructor.name,i=Qd(t);return{rr_type:r,base64:i}}else if(M(t,DataView)){var s=t.constructor.name;return{rr_type:s,args:[fn(t.buffer,n,o),t.byteOffset,t.byteLength]}}else if(M(t,HTMLImageElement)){var a=t.constructor.name,u=t.src;return{rr_type:a,src:u}}else if(M(t,HTMLCanvasElement)){var l="HTMLImageElement",c=t.toDataURL();return{rr_type:l,src:c}}else if(M(t,ImageData)){var f=t.constructor.name;return{rr_type:f,args:[fn(t.data,n,o),t.width,t.height]}}else if(Za(t,n)||(typeof t=="undefined"?"undefined":N(t))==="object"){var h=t.constructor.name,v=Ha(t,n,o);return{rr_type:h,index:v}}return t}var Ja=function(t,n,o){return t.map(function(e){return fn(e,n,o)})},Za=function(t,n){var o=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=o.filter(function(r){return typeof n[r]=="function"});return!!e.find(function(r){return M(t,n[r])})};function tp(t,n,o,e){for(var r=function(){var l=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[l]!="function")return"continue";var c=qe(n.CanvasRenderingContext2D.prototype,l,function(h){return function(){for(var v=this,p=arguments.length,y=new Array(p),d=0;d<p;d++)y[d]=arguments[d];return fe(this.canvas,o,e,!0)||setTimeout(function(){var g=Ja(y,n,v);t(v.canvas,{type:mt["2D"],property:l,args:g})},0),h.apply(this,y)}});i.push(c)}catch(h){var f=on(n.CanvasRenderingContext2D.prototype,l,{set:function(p){t(this.canvas,{type:mt["2D"],property:l,args:[p],setter:!0})}});i.push(f)}},i=[],s=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=O(s),u;!(u=a()).done;)r();return function(){i.forEach(function(l){return l()})}}function rp(t){return t==="experimental-webgl"?"webgl":t}function Ka(t,n,o,e){var r=[];try{var i=qe(t.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,l=new Array(u>1?u-1:0),c=1;c<u;c++)l[c-1]=arguments[c];if(!fe(this,n,o,!0)){var f=rp(a);if("__context"in this||(this.__context=f),e&&["webgl","webgl2"].includes(f))if(l[0]&&N(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))}});r.push(i)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(s){return s()})}}function Xa(t,n,o,e,r,i){for(var s=function(){var f=c.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))return"continue";try{if(typeof t[f]!="function")return"continue";var h=qe(t,f,function(p){return function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];var w=p.apply(this,d);if(Ha(w,i,this),"tagName"in this.canvas&&!fe(this.canvas,e,r,!0)){var b=Ja(d,i,this),S={type:n,property:f,args:b};o(this.canvas,S)}return w}});a.push(h)}catch(p){var v=on(t,f,{set:function(d){o(this.canvas,{type:n,property:f,args:[d],setter:!0})}});a.push(v)}},a=[],u=Object.getOwnPropertyNames(t),l=O(u),c;!(c=l()).done;)s();return a}function np(t,n,o,e){var r,i=[];if((r=i).push.apply(r,[].concat(Xa(n.WebGLRenderingContext.prototype,mt.WebGL,t,o,e,n))),typeof n.WebGL2RenderingContext!="undefined"){var s;(s=i).push.apply(s,[].concat(Xa(n.WebGL2RenderingContext.prototype,mt.WebGL2,t,o,e,n)))}return function(){i.forEach(function(a){return a()})}}var Qa="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",ip=function(t){return Uint8Array.from(atob(t),function(n){return n.charCodeAt(0)})},eu=typeof window!="undefined"&&window.Blob&&new Blob([ip(Qa)],{type:"text/javascript;charset=utf-8"});function op(t){var n;try{if(n=eu&&(window.URL||window.webkitURL).createObjectURL(eu),!n)throw"";var o=new Worker(n,{name:t==null?void 0:t.name});return o.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),o}catch(e){return new Worker("data:text/javascript;base64,"+Qa,{name:t==null?void 0:t.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var sp=function(){function t(o){var e=this;I(this,"pendingCanvasMutations",new Map),I(this,"rafStamps",{latestId:0,invokeId:null}),I(this,"mirror"),I(this,"mutationCb"),I(this,"resetObservers"),I(this,"frozen",!1),I(this,"locked",!1),I(this,"processMutation",function(f,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(f)||e.pendingCanvasMutations.set(f,[]),e.pendingCanvasMutations.get(f).push(h)});var r=o.sampling,i=r===void 0?"all":r,s=o.win,a=o.blockClass,u=o.blockSelector,l=o.recordCanvas,c=o.dataURLOptions;this.mutationCb=o.mutationCb,this.mirror=o.mirror,l&&i==="all"&&this.initCanvasMutationObserver(s,a,u),l&&typeof i=="number"&&this.initCanvasFPSObserver(i,s,a,u,{dataURLOptions:c})}var n=t.prototype;return n.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},n.freeze=function(){this.frozen=!0},n.unfreeze=function(){this.frozen=!1},n.lock=function(){this.locked=!0},n.unlock=function(){this.locked=!1},n.initCanvasFPSObserver=function(e,r,i,s,a){var u=this,l=Ka(r,i,s,!0),c=new Map,f=new op;f.onmessage=function(g){var w=g.data.id;if(c.set(w,!1),"base64"in g.data){var b=g.data,S=b.base64,C=b.type,R=b.width,A=b.height;u.mutationCb({id:w,type:mt["2D"],commands:[{property:"clearRect",args:[0,0,R,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:S}],type:C}]},0,0]}]})}};var h=1e3/e,v=0,p,y=function(){var g=[];return r.document.querySelectorAll("canvas").forEach(function(w){fe(w,i,s,!0)||g.push(w)}),g},d=function(g){if(v&&g-v<h){p=requestAnimationFrame(d);return}v=g;var w=u;y().forEach(In(function(b){var S,C,R,A;return kt(this,function(x){switch(x.label){case 0:return C=w.mirror.getId(b),c.get(C)?[2]:b.width===0||b.height===0?[2]:(c.set(C,!0),["webgl","webgl2"].includes(b.__context)&&(R=b.getContext(b.__context),((S=R==null?void 0:R.getContextAttributes())==null?void 0:S.preserveDrawingBuffer)===!1&&R.clear(R.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return A=x.sent(),f.postMessage({id:C,bitmap:A,width:b.width,height:b.height,dataURLOptions:a.dataURLOptions},[A]),[2]}})})),p=requestAnimationFrame(d)};p=requestAnimationFrame(d),this.resetObservers=function(){l(),cancelAnimationFrame(p)}},n.initCanvasMutationObserver=function(e,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=Ka(e,r,i,!1),a=tp(this.processMutation.bind(this),e,r,i),u=np(this.processMutation.bind(this),e,r,i);this.resetObservers=function(){s(),a(),u()}},n.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.startRAFTimestamping=function(){var e=this,r=function(i){e.rafStamps.latestId=i,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(r,i){var s=e.mirror.getId(i);e.flushPendingCanvasMutationFor(i,s)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.flushPendingCanvasMutationFor=function(e,r){if(!(this.frozen||this.locked)){var i=this.pendingCanvasMutations.get(e);if(!(!i||r===-1)){var s=i.map(function(u){u.type;var l=At(u,["type"]);return l}),a=i[0].type;this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(e)}}},t}(),ap=function(){function t(o){I(this,"trackedLinkElements",new WeakSet),I(this,"mutationCb"),I(this,"adoptedStyleSheetCb"),I(this,"styleMirror",new Ad),this.mutationCb=o.mutationCb,this.adoptedStyleSheetCb=o.adoptedStyleSheetCb}var n=t.prototype;return n.attachLinkElement=function(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)},n.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},n.adoptStyleSheets=function(e,r){var i,s=function(){var f=c.value,h=void 0;i.styleMirror.has(f)?h=i.styleMirror.getId(f):(h=i.styleMirror.add(f),u.push({styleId:h,rules:Array.from(f.rules||CSSRule,function(v,p){return{rule:yo(v,f.href),index:p}})})),a.styleIds.push(h)};if(e.length!==0){for(var a={id:r,styleIds:[]},u=[],l=O(e),c;!(c=l()).done;)i=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.trackStylesheetInLinkElement=function(e){},t}(),up=function(){function t(){I(this,"nodeMap",new WeakMap),I(this,"active",!1)}var n=t.prototype;return n.inOtherBuffer=function(e,r){var i=this.nodeMap.get(e);return i&&Array.from(i).some(function(s){return s!==r})},n.add=function(e,r){var i=this;this.active||(this.active=!0,requestAnimationFrame(function(){i.nodeMap=new WeakMap,i.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(r))},n.destroy=function(){},t}(),te,hn,zi,dn=!1;try{if(Array.from([1],function(t){return t*2})[0]!==2){var Wi=document.createElement("iframe");document.body.appendChild(Wi),Array.from=((fo=Wi.contentWindow)==null?void 0:fo.Array.from)||Array.from,document.body.removeChild(Wi)}}catch(t){console.debug("Unable to override Array.from",t)}var Se=ol();function Ue(t){t===void 0&&(t={});var n=t.emit,o=t.checkoutEveryNms,e=t.checkoutEveryNth,r=t.blockClass,i=r===void 0?"rr-block":r,s=t.blockSelector,a=s===void 0?null:s,u=t.ignoreClass,l=u===void 0?"rr-ignore":u,c=t.ignoreSelector,f=c===void 0?null:c,h=t.maskTextClass,v=h===void 0?"rr-mask":h,p=t.maskTextSelector,y=p===void 0?null:p,d=t.inlineStylesheet,g=d===void 0?!0:d,w=t.maskAllInputs,b=t.maskInputOptions,S=t.slimDOMOptions,C=t.maskInputFn,R=t.maskTextFn,A=t.hooks,x=t.packFn,k=t.sampling,P=k===void 0?{}:k,_=t.dataURLOptions,$=_===void 0?{}:_,G=t.mousemoveWait,pe=t.recordDOM,j=pe===void 0?!0:pe,ge=t.recordCanvas,he=ge===void 0?!1:ge,Q=t.recordCrossOriginIframes,ae=Q===void 0?!1:Q,ye=t.recordAfter,Ke=ye===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":ye,Ae=t.userTriggeredOnInput,Ot=Ae===void 0?!1:Ae,we=t.collectFonts,Xe=we===void 0?!1:we,W=t.inlineImages,Qe=W===void 0?!1:W,et=t.plugins,Rt=t.keepIframeSrcFn,or=Rt===void 0?function(){return!1}:Rt,sr=t.ignoreCSSAttributes,no=sr===void 0?new Set([]):sr,Sn=t.errorHandler;$d(Sn);var Ge=ae?window.parent===window:!0,tt=!1;if(!Ge)try{window.parent.document&&(tt=!1)}catch(q){tt=!0}if(Ge&&!n)throw new Error("emit function is required");if(!Ge&&!tt)return function(){};G!==void 0&&P.mousemove===void 0&&(P.mousemove=G),Se.reset();var xt=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}:b!==void 0?b:{password:!0},ar=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all",headTitleMutations:S==="all"}:S||{};Ed();var Et,rt=0,Ne=function(q){for(var ve=O(et||[]),E;!(E=ve()).done;){var ee=E.value;ee.eventProcessor&&(q=ee.eventProcessor(q))}return x&&!tt&&(q=x(q)),q};te=function(q,ve){var E,ee=q;if(ee.timestamp=sn(),(E=He[0])!=null&&E.isFrozen()&&ee.type!==D.FullSnapshot&&!(ee.type===D.IncrementalSnapshot&&ee.data.source===T.Mutation)&&He.forEach(function(tv){return tv.unfreeze()}),Ge)n==null||n(Ne(ee),ve);else if(tt){var Xp={type:"rrweb",event:Ne(ee),origin:window.location.origin,isCheckout:ve};window.parent.postMessage(Xp,"*")}if(ee.type===D.FullSnapshot)Et=ee,rt=0;else if(ee.type===D.IncrementalSnapshot){if(ee.data.source===T.Mutation&&ee.data.isAttachIframe)return;rt++;var Qp=e&&rt>=e,ev=o&&ee.timestamp-Et.timestamp>o;(Qp||ev)&&hn(!0)}};for(var nt=function(q){te({type:D.IncrementalSnapshot,data:U({source:T.Mutation},q)})},Au=function(q){return te({type:D.IncrementalSnapshot,data:U({source:T.Scroll},q)})},Mu=function(q){return te({type:D.IncrementalSnapshot,data:U({source:T.CanvasMutation},q)})},Zp=function(q){return te({type:D.IncrementalSnapshot,data:U({source:T.AdoptedStyleSheet},q)})},it=new ap({mutationCb:nt,adoptedStyleSheetCb:Zp}),ot=new Zd({mirror:Se,mutationCb:nt,stylesheetManager:it,recordCrossOriginIframes:ae,wrappedEmit:te}),Kp=O(et||[]),ku;!(ku=Kp()).done;){var _u=ku.value;_u.getMirror&&_u.getMirror({nodeMirror:Se,crossOriginIframeMirror:ot.crossOriginIframeMirror,crossOriginIframeStyleMirror:ot.crossOriginIframeStyleMirror})}var io=new up;zi=new sp({recordCanvas:he,mutationCb:Mu,win:window,blockClass:i,blockSelector:a,mirror:Se,sampling:P.canvas,dataURLOptions:$});var Cn=new Kd({mutationCb:nt,scrollCb:Au,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:v,maskTextSelector:y,inlineStylesheet:g,maskInputOptions:xt,dataURLOptions:$,maskTextFn:R,maskInputFn:C,recordCanvas:he,inlineImages:Qe,sampling:P,slimDOMOptions:ar,iframeManager:ot,stylesheetManager:it,canvasManager:zi,keepIframeSrcFn:or,processedNodeManager:io},mirror:Se});hn=function(q){if(q===void 0&&(q=!1),!!j){te({type:D.Meta,data:{href:window.location.href,width:Ma(),height:Aa()}},q),it.reset(),Cn.init(),He.forEach(function(E){return E.lock()});var ve=Ml(document,{mirror:Se,blockClass:i,blockSelector:a,maskTextClass:v,maskTextSelector:y,inlineStylesheet:g,maskAllInputs:xt,maskTextFn:R,maskInputFn:C,slimDOM:ar,dataURLOptions:$,recordCanvas:he,inlineImages:Qe,onSerialize:function(E){Ta(E,Se)&&ot.addIframe(E),Pa(E,Se)&&it.trackLinkElement(E),Bi(E)&&Cn.addShadowRoot(L.shadowRoot(E),document)},onIframeLoad:function(E,ee){ot.attachIframe(E,ee),Cn.observeAttachShadow(E)},onStylesheetLoad:function(E,ee){it.attachLinkElement(E,ee)},keepIframeSrcFn:or});if(!ve)return console.warn("Failed to snapshot the document");te({type:D.FullSnapshot,data:{node:ve,initialOffset:Ea(window)}},q),He.forEach(function(E){return E.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&it.adoptStyleSheets(document.adoptedStyleSheets,Se.getId(document))}};try{var ur=[],Tu=function(q){var ve;return B(Jd)({mutationCb:nt,mousemoveCb:function(E,ee){return te({type:D.IncrementalSnapshot,data:{source:ee,positions:E}})},mouseInteractionCb:function(E){return te({type:D.IncrementalSnapshot,data:U({source:T.MouseInteraction},E)})},scrollCb:Au,viewportResizeCb:function(E){return te({type:D.IncrementalSnapshot,data:U({source:T.ViewportResize},E)})},inputCb:function(E){return te({type:D.IncrementalSnapshot,data:U({source:T.Input},E)})},mediaInteractionCb:function(E){return te({type:D.IncrementalSnapshot,data:U({source:T.MediaInteraction},E)})},styleSheetRuleCb:function(E){return te({type:D.IncrementalSnapshot,data:U({source:T.StyleSheetRule},E)})},styleDeclarationCb:function(E){return te({type:D.IncrementalSnapshot,data:U({source:T.StyleDeclaration},E)})},canvasMutationCb:Mu,fontCb:function(E){return te({type:D.IncrementalSnapshot,data:U({source:T.Font},E)})},selectionCb:function(E){te({type:D.IncrementalSnapshot,data:U({source:T.Selection},E)})},customElementCb:function(E){te({type:D.IncrementalSnapshot,data:U({source:T.CustomElement},E)})},blockClass:i,ignoreClass:l,ignoreSelector:f,maskTextClass:v,maskTextSelector:y,maskInputOptions:xt,inlineStylesheet:g,sampling:P,recordDOM:j,recordCanvas:he,inlineImages:Qe,userTriggeredOnInput:Ot,collectFonts:Xe,doc:q,maskInputFn:C,maskTextFn:R,keepIframeSrcFn:or,blockSelector:a,slimDOMOptions:ar,dataURLOptions:$,mirror:Se,iframeManager:ot,stylesheetManager:it,shadowDomManager:Cn,processedNodeManager:io,canvasManager:zi,ignoreCSSAttributes:no,plugins:((ve=et==null?void 0:et.filter(function(E){return E.observer}))==null?void 0:ve.map(function(E){return{observer:E.observer,options:E.options,callback:function(ee){return te({type:D.Plugin,data:{plugin:E.name,payload:ee}})}}}))||[]},A)};ot.addLoadListener(function(q){try{ur.push(Tu(q.contentDocument))}catch(ve){console.warn(ve)}});var oo=function(){hn(),ur.push(Tu(document)),dn=!0};return document.readyState==="interactive"||document.readyState==="complete"?oo():(ur.push(ce("DOMContentLoaded",function(){te({type:D.DomContentLoaded,data:{}}),Ke==="DOMContentLoaded"&&oo()})),ur.push(ce("load",function(){te({type:D.Load,data:{}}),Ke==="load"&&oo()},window))),function(){ur.forEach(function(q){try{q()}catch(E){var ve=String(E).toLowerCase();ve.includes("cross-origin")||console.warn(E)}}),io.destroy(),dn=!1,Ld()}}catch(q){console.warn(q)}}Ue.addCustomEvent=function(t,n){if(!dn)throw new Error("please add custom event after start recording");te({type:D.Custom,data:{tag:t,payload:n}})},Ue.freezePage=function(){He.forEach(function(t){return t.freeze()})},Ue.takeFullSnapshot=function(t){if(!dn)throw new Error("please take full snapshot after start recording");hn(t)},Ue.mirror=Se;var tu;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(tu||(tu={})),Ue.addCustomEvent,Ue.freezePage,Ue.takeFullSnapshot;var lp=Object.defineProperty,cp=function(t,n,o){return n in t?lp(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o},pn=function(t,n,o){return cp(t,(typeof n=="undefined"?"undefined":N(n))!=="symbol"?n+"":n,o)};function fp(t,n,o){try{if(!(n in t))return function(){};var e=t[n],r=o(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(i){return function(){}}}var wt=function(){function t(o){pn(this,"fileName"),pn(this,"functionName"),pn(this,"lineNumber"),pn(this,"columnNumber"),this.fileName=o.fileName||"",this.functionName=o.functionName||"",this.lineNumber=o.lineNumber,this.columnNumber=o.columnNumber}var n=t.prototype;return n.toString=function(){var e=this.lineNumber||"",r=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+r+")":this.fileName+":"+e+":"+r},t}(),hp=/(^|@)\S+:\d+/,ru=/^\s*at .*(\S+:\d+|\(native\))/m,dp=/^(eval@)?(\[native code])?$/,Gi={parse:function(n){return n?typeof n.stacktrace!="undefined"||typeof n["opera#sourceloc"]!="undefined"?this.parseOpera(n):n.stack&&n.stack.match(ru)?this.parseV8OrIE(n):n.stack?this.parseFFOrSafari(n):(console.warn("[console-record-plugin]: Failed to parse error object:",n),[]):[]},extractLocation:function(n){if(n.indexOf(":")===-1)return[n];var o=/(.+?)(?::(\d+))?(?::(\d+))?$/,e=o.exec(n.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+n);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(n){var o=n.stack.split("\n").filter(function(e){return!!e.match(ru)},this);return o.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var r=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),i=r.match(/ (\((.+):(\d+):(\d+)\)$)/);r=i?r.replace(i[0],""):r;var s=r.split(/\s+/).slice(1),a=this.extractLocation(i?i[1]:s.pop()),u=s.join(" ")||void 0,l=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new wt({functionName:u,fileName:l,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(n){var o=n.stack.split("\n").filter(function(e){return!e.match(dp)},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 wt({functionName:e});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,i=e.match(r),s=i&&i[1]?i[1]:void 0,a=this.extractLocation(e.replace(r,""));return new wt({functionName:s,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})},this)},parseOpera:function(n){return!n.stacktrace||n.message.indexOf("\n")>-1&&n.message.split("\n").length>n.stacktrace.split("\n").length?this.parseOpera9(n):n.stack?this.parseOpera11(n):this.parseOpera10(n)},parseOpera9:function(n){for(var o=/Line (\d+).*script (?:in )?(\S+)/i,e=n.message.split("\n"),r=[],i=2,s=e.length;i<s;i+=2){var a=o.exec(e[i]);a&&r.push(new wt({fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera10:function(n){for(var o=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=n.stacktrace.split("\n"),r=[],i=0,s=e.length;i<s;i+=2){var a=o.exec(e[i]);a&&r.push(new wt({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera11:function(n){var o=n.stack.split("\n").filter(function(e){return!!e.match(hp)&&!e.match(/^Error created at/)},this);return o.map(function(e){var r=e.split("@"),i=this.extractLocation(r.pop()),s=r.shift()||"",a=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new wt({functionName:a,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)}};function pp(t){if(!t||!t.outerHTML)return"";for(var n="";t.parentElement;){var o=t.localName;if(!o)break;o=o.toLowerCase();var e=t.parentElement,r=[];if(e.children&&e.children.length>0)for(var i=0;i<e.children.length;i++){var s=e.children[i];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===o&&r.push(s)}r.length>1&&(o+=":eq("+r.indexOf(t)+")"),n=o+(n?">"+n:""),t=e}return n}function ji(t){return Object.prototype.toString.call(t)==="[object Object]"}function nu(t,n){if(n===0)return!0;for(var o=Object.keys(t),e=O(o),r;!(r=e()).done;){var i=r.value;if(ji(t[i])&&nu(t[i],n-1))return!0}return!1}function bt(t,n){var o={numOfKeysLimit:50,depthOfLimit:4};Object.assign(o,n);var e=[],r=[];return JSON.stringify(t,function(a,u){if(e.length>0){var l=e.indexOf(this);~l?e.splice(l+1):e.push(this),~l?r.splice(l,1/0,a):r.push(a),~e.indexOf(u)&&(e[0]===u?u="[Circular ~]":u="[Circular ~."+r.slice(0,e.indexOf(u)).join(".")+"]")}else e.push(u);if(u===null)return u;if(u===void 0)return"undefined";if(i(u))return s(u);if((typeof u=="undefined"?"undefined":N(u))==="bigint")return u.toString()+"n";if(M(u,Event)){var c={};for(var f in u){var h=u[f];Array.isArray(h)?c[f]=pp(h.length?h[0]:null):c[f]=h}return c}else{if(M(u,Node))return M(u,HTMLElement)?u?u.outerHTML:"":u.nodeName;if(M(u,Error))return u.stack?u.stack+"\nEnd of stack for Error object":u.name+": "+u.message}return u});function i(a){return!!(ji(a)&&Object.keys(a).length>o.numOfKeysLimit||typeof a=="function"||ji(a)&&nu(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 iu={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 vp(t,n,o){var e=o?Object.assign({},iu,o):iu,r=e.logger;if(!r)return function(){};var i;typeof r=="string"?i=n[r]:i=r;var s=0,a=!1,u=[];if(e.level.includes("error")){var l=function(y){var d=y.message,g=y.error,w=Gi.parse(g).map(function(S){return S.toString()}),b=[bt(d,e.stringifyOptions)];t({level:"error",trace:w,payload:b})};n.addEventListener("error",l),u.push(function(){n.removeEventListener("error",l)});var c=function(y){var d,g;M(y.reason,Error)?(d=y.reason,g=[bt("Uncaught (in promise) "+d.name+": "+d.message,e.stringifyOptions)]):(d=new Error,g=[bt("Uncaught (in promise)",e.stringifyOptions),bt(y.reason,e.stringifyOptions)]);var w=Gi.parse(d).map(function(b){return b.toString()});t({level:"error",trace:w,payload:g})};n.addEventListener("unhandledrejection",c),u.push(function(){n.removeEventListener("unhandledrejection",c)})}for(var f=O(e.level),h;!(h=f()).done;){var v=h.value;u.push(p(i,v))}return function(){u.forEach(function(y){return y()})};function p(y,d){var g=this;return y[d]?fp(y,d,function(w){var b=g;return function(){for(var S=arguments.length,C=new Array(S),R=0;R<S;R++)C[R]=arguments[R];if(w.apply(b,C),!(d==="assert"&&C[0])&&!a){a=!0;try{var A=Gi.parse(new Error).map(function(P){return P.toString()}).splice(1),x=d==="assert"?C.slice(1):C,k=x.map(function(P){return bt(P,e.stringifyOptions)});s++,s<e.lengthThreshold?t({level:d,trace:A,payload:k}):s===e.lengthThreshold&&t({level:"warn",trace:[],payload:[bt("The number of log records reached the threshold.")]})}catch(P){w.apply(void 0,[].concat(["rrweb logger error:",P],C))}finally{a=!1}}}}):function(){}}}var mp="rrweb/console@1",gp=function(t){return{name:mp,observer:vp,options:t}},ou=z.setImmediate,ze,Vi,Yi,su=Object.prototype.toString,yp=typeof ou!="undefined"?function(n){return ou(n)}:setTimeout;try{Object.defineProperty({},"x",{}),ze=function(n,o,e,r){return Object.defineProperty(n,o,{value:e,writable:!0,configurable:r!==!1})}}catch(t){ze=function(o,e,r){return o[e]=r,o}}Yi=function(){var n,o,e;function r(i,s){this.fn=i,this.self=s,this.next=void 0}return{add:function(s,a){e=new r(s,a),o?o.next=e:n=e,o=e,e=void 0},drain:function(){var s=n;for(n=o=Vi=void 0;s;)s.fn.call(s.self),s=s.next}}}();function vn(t,n){Yi.add(t,n),Vi||(Vi=yp(Yi.drain))}function au(t){var n,o=typeof t;return t!==null&&(o==="object"||o==="function")&&(n=t.then),typeof n=="function"?n:!1}function qi(){for(var t=0;t<this.chain.length;t++)wp(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function wp(t,n,o){var e,r;try{n===!1?o.reject(t.msg):(n===!0?e=t.msg:e=n.call(void 0,t.msg),e===o.promise?o.reject(TypeError("Promise-chain cycle")):(r=au(e))?r.call(e,o.resolve,o.reject):o.resolve(e))}catch(i){o.reject(i)}}function uu(t){var n,o=this;if(!o.triggered){o.triggered=!0,o.def&&(o=o.def);try{(n=au(t))?vn(function(){var e=new cu(o);try{n.call(t,function(){uu.apply(e,arguments)},function(){Kt.apply(e,arguments)})}catch(r){Kt.call(e,r)}}):(o.msg=t,o.state=1,o.chain.length>0&&vn(qi,o))}catch(e){Kt.call(new cu(o),e)}}}function Kt(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&vn(qi,n))}function lu(t,n,o,e){for(var r=0;r<n.length;r++)(function(s){t.resolve(n[s]).then(function(u){o(s,u)},e)})(r)}function cu(t){this.def=t,this.triggered=!1}function bp(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function We(t){if(typeof t!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var n=new bp(this);this.then=function(e,r){var i={success:typeof e=="function"?e:!0,failure:typeof r=="function"?r:!1};return i.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");i.resolve=a,i.reject=u}),n.chain.push(i),n.state!==0&&vn(qi,n),i.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){uu.call(n,e)},function(e){Kt.call(n,e)})}catch(o){Kt.call(n,o)}}var fu=ze({},"constructor",We,!1);We.prototype=fu,ze(fu,"__NPO__",0,!1),ze(We,"resolve",function(n){var o=this;return n&&typeof n=="object"&&n.__NPO__===1?n:new o(function(r,i){if(typeof r!="function"||typeof i!="function")throw TypeError("Not a function");r(n)})}),ze(We,"reject",function(n){return new this(function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),ze(We,"all",function(n){var o=this;return su.call(n)!=="[object Array]"?o.reject(TypeError("Not an array")):n.length===0?o.resolve([]):new o(function(r,i){if(typeof r!="function"||typeof i!="function")throw TypeError("Not a function");var s=n.length,a=Array(s),u=0;lu(o,n,function(c,f){a[c]=f,++u===s&&r(a)},i)})}),ze(We,"race",function(n){var o=this;return su.call(n)!=="[object Array]"?o.reject(TypeError("Not an array")):new o(function(r,i){if(typeof r!="function"||typeof i!="function")throw TypeError("Not a function");lu(o,n,function(a,u){r(u)},i)})});var F;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?F=Promise:F=We;var Hi={LIB_VERSION:"2.73.0"},mn=24*60*60*1e3,Ji=8*1e3,gn=Array.prototype,Sp=Function.prototype,hu=Object.prototype,Je=gn.slice,Xt=hu.toString,yn=hu.hasOwnProperty,Qt=z.console,St=z.navigator,me=z.document,er=z.opera,du=z.screen,Ze=St.userAgent,Zi=Sp.bind,pu=gn.forEach,vu=gn.indexOf,mu=gn.map,Cp=Array.isArray,Ki={},m={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Ce={log:function(){},warn:function(){},error:function(){},critical:function(){if(!m.isUndefined(Qt)&&Qt){var t=["Mixpanel error:"].concat(m.toArray(arguments));try{Qt.error.apply(Qt,t)}catch(n){m.each(t,function(o){Qt.error(o)})}}}},Xi=function(t,n){return function(){return arguments[0]="["+n+"] "+arguments[0],t.apply(Ce,arguments)}},tr=function(t){return{log:Xi(Ce.log,t),error:Xi(Ce.error,t),critical:Xi(Ce.critical,t)}};m.bind=function(t,n){var o,e;if(Zi&&t.bind===Zi)return Zi.apply(t,Je.call(arguments,1));if(!m.isFunction(t))throw new TypeError;return o=Je.call(arguments,2),e=function(){if(!(this instanceof e))return t.apply(n,o.concat(Je.call(arguments)));var r={};r.prototype=t.prototype;var i=new r;r.prototype=null;var s=t.apply(i,o.concat(Je.call(arguments)));return Object(s)===s?s:i},e},m.each=function(t,n,o){if(t!=null){if(pu&&t.forEach===pu)t.forEach(n,o);else if(t.length===+t.length){for(var e=0,r=t.length;e<r;e++)if(e in t&&n.call(o,t[e],e,t)===Ki)return}else for(var i in t)if(yn.call(t,i)&&n.call(o,t[i],i,t)===Ki)return}},m.extend=function(t){return m.each(Je.call(arguments,1),function(n){for(var o in n)n[o]!==void 0&&(t[o]=n[o])}),t},m.isArray=Cp||function(t){return Xt.call(t)==="[object Array]"},m.isFunction=function(t){try{return/^\s*\bfunction\b/.test(t)}catch(n){return!1}},m.isArguments=function(t){return!!(t&&yn.call(t,"callee"))},m.toArray=function(t){return t?t.toArray?t.toArray():m.isArray(t)||m.isArguments(t)?Je.call(t):m.values(t):[]},m.map=function(t,n,o){if(mu&&t.map===mu)return t.map(n,o);var e=[];return m.each(t,function(r){e.push(n.call(o,r))}),e},m.keys=function(t){var n=[];return t===null||m.each(t,function(o,e){n[n.length]=e}),n},m.values=function(t){var n=[];return t===null||m.each(t,function(o){n[n.length]=o}),n},m.include=function(t,n){var o=!1;return t===null?o:vu&&t.indexOf===vu?t.indexOf(n)!=-1:(m.each(t,function(e){if(o||(o=e===n))return Ki}),o)},m.includes=function(t,n){return t.indexOf(n)!==-1},m.inherit=function(t,n){return t.prototype=new n,t.prototype.constructor=t,t.superclass=n.prototype,t},m.isObject=function(t){return t===Object(t)&&!m.isArray(t)},m.isEmptyObject=function(t){if(m.isObject(t)){for(var n in t)if(yn.call(t,n))return!1;return!0}return!1},m.isUndefined=function(t){return t===void 0},m.isString=function(t){return Xt.call(t)=="[object String]"},m.isDate=function(t){return Xt.call(t)=="[object Date]"},m.isNumber=function(t){return Xt.call(t)=="[object Number]"},m.isElement=function(t){return!!(t&&t.nodeType===1)},m.encodeDates=function(t){return m.each(t,function(n,o){m.isDate(n)?t[o]=m.formatDate(n):m.isObject(n)&&(t[o]=m.encodeDates(n))}),t},m.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},m.formatDate=function(t){function n(o){return o<10?"0"+o:o}return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())},m.strip_empty_properties=function(t){var n={};return m.each(t,function(o,e){m.isString(o)&&o.length>0&&(n[e]=o)}),n},m.truncate=function(t,n){var o;return typeof t=="string"?o=t.slice(0,n):m.isArray(t)?(o=[],m.each(t,function(e){o.push(m.truncate(e,n))})):m.isObject(t)?(o={},m.each(t,function(e,r){o[r]=m.truncate(e,n)})):o=t,o},m.JSONEncode=function(){return function(t){var n=t,o=function(r){var i=/[\\"\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 i.lastIndex=0,i.test(r)?'"'+r.replace(i,function(a){var u=s[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},e=function(r,i){var s="",a=" ",u=0,l="",c="",f=0,h=s,v=[],p=i[r];switch(p&&typeof p=="object"&&typeof p.toJSON=="function"&&(p=p.toJSON(r)),typeof p){case"string":return o(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(s+=a,v=[],Xt.apply(p)==="[object Array]"){for(f=p.length,u=0;u<f;u+=1)v[u]=e(u,p)||"null";return c=v.length===0?"[]":s?"[\n"+s+v.join(",\n"+s)+"\n"+h+"]":"["+v.join(",")+"]",s=h,c}for(l in p)yn.call(p,l)&&(c=e(l,p),c&&v.push(o(l)+(s?": ":":")+c));return c=v.length===0?"{}":s?"{"+v.join(",")+h+"}":"{"+v.join(",")+"}",s=h,c}};return e("",{"":n})}}(),m.JSONDecode=function(){var t,n,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},e,r=function(v){var p=new SyntaxError(v);throw p.at=t,p.text=e,p},i=function(v){return v&&v!==n&&r("Expected '"+v+"' instead of '"+n+"'"),n=e.charAt(t),t+=1,n},s=function(){var v,p="";for(n==="-"&&(p="-",i("-"));n>="0"&&n<="9";)p+=n,i();if(n===".")for(p+=".";i()&&n>="0"&&n<="9";)p+=n;if(n==="e"||n==="E")for(p+=n,i(),(n==="-"||n==="+")&&(p+=n,i());n>="0"&&n<="9";)p+=n,i();if(v=+p,!isFinite(v))r("Bad number");else return v},a=function(){var v,p,y="",d;if(n==='"')for(;i();){if(n==='"')return i(),y;if(n==="\\")if(i(),n==="u"){for(d=0,p=0;p<4&&(v=parseInt(i(),16),!!isFinite(v));p+=1)d=d*16+v;y+=String.fromCharCode(d)}else if(typeof o[n]=="string")y+=o[n];else break;else y+=n}r("Bad string")},u=function(){for(;n&&n<=" ";)i()},l=function(){switch(n){case"t":return i("t"),i("r"),i("u"),i("e"),!0;case"f":return i("f"),i("a"),i("l"),i("s"),i("e"),!1;case"n":return i("n"),i("u"),i("l"),i("l"),null}r('Unexpected "'+n+'"')},c,f=function(){var v=[];if(n==="["){if(i("["),u(),n==="]")return i("]"),v;for(;n;){if(v.push(c()),u(),n==="]")return i("]"),v;i(","),u()}}r("Bad array")},h=function(){var v,p={};if(n==="{"){if(i("{"),u(),n==="}")return i("}"),p;for(;n;){if(v=a(),u(),i(":"),Object.hasOwnProperty.call(p,v)&&r('Duplicate key "'+v+'"'),p[v]=c(),u(),n==="}")return i("}"),p;i(","),u()}}r("Bad object")};return c=function(){switch(u(),n){case"{":return h();case"[":return f();case'"':return a();case"-":return s();default:return n>="0"&&n<="9"?s():l()}},function(v){var p;return e=v,t=0,n=" ",p=c(),u(),n&&r("Syntax error"),p}}(),m.base64Encode=function(t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o,e,r,i,s,a,u,l,c=0,f=0,h="",v=[];if(!t)return t;t=m.utf8Encode(t);do o=t.charCodeAt(c++),e=t.charCodeAt(c++),r=t.charCodeAt(c++),l=o<<16|e<<8|r,i=l>>18&63,s=l>>12&63,a=l>>6&63,u=l&63,v[f++]=n.charAt(i)+n.charAt(s)+n.charAt(a)+n.charAt(u);while(c<t.length);switch(h=v.join(""),t.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"=";break}return h},m.utf8Encode=function(t){t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var n="",o,e,r=0,i;for(o=e=0,r=t.length,i=0;i<r;i++){var s=t.charCodeAt(i),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&&(n+=t.substring(o,e)),n+=a,o=e=i+1)}return e>o&&(n+=t.substring(o,t.length)),n},m.UUID=function(){try{return z.crypto.randomUUID()}catch(o){for(var t=new Array(36),n=0;n<36;n++)t[n]=Math.floor(Math.random()*16);return t[14]=4,t[19]=t[19]&=-5,t[19]=t[19]|=8,t[8]=t[13]=t[18]=t[23]="-",m.map(t,function(e){return e.toString(16)}).join("")}};var gu=["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"];m.isBlockedUA=function(t){var n;for(t=t.toLowerCase(),n=0;n<gu.length;n++)if(t.indexOf(gu[n])!==-1)return!0;return!1},m.HTTPBuildQuery=function(t,n){var o,e,r=[];return m.isUndefined(n)&&(n="&"),m.each(t,function(i,s){o=encodeURIComponent(i.toString()),e=encodeURIComponent(s),r[r.length]=e+"="+o}),r.join(n)},m.getQueryParam=function(t,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var o="[\\?&]"+n+"=([^&#]*)",e=new RegExp(o),r=e.exec(t);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch(s){Ce.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},m.cookie={get:function(t){for(var n=t+"=",o=me.cookie.split(";"),e=0;e<o.length;e++){for(var r=o[e];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(n)===0)return decodeURIComponent(r.substring(n.length,r.length))}return null},parse:function(t){var n;try{n=m.JSONDecode(m.cookie.get(t))||{}}catch(o){}return n},set_seconds:function(t,n,o,e,r,i,s){var a="",u="",l="";if(s)a="; domain="+s;else if(e){var c=bu(me.location.hostname);a=c?"; domain=."+c:""}if(o){var f=new Date;f.setTime(f.getTime()+o*1e3),u="; expires="+f.toGMTString()}i&&(r=!0,l="; SameSite=None"),r&&(l+="; secure"),me.cookie=t+"="+encodeURIComponent(n)+u+"; path=/"+a+l},set:function(t,n,o,e,r,i,s){var a="",u="",l="";if(s)a="; domain="+s;else if(e){var c=bu(me.location.hostname);a=c?"; domain=."+c:""}if(o){var f=new Date;f.setTime(f.getTime()+o*24*60*60*1e3),u="; expires="+f.toGMTString()}i&&(r=!0,l="; SameSite=None"),r&&(l+="; secure");var h=t+"="+encodeURIComponent(n)+u+"; path=/"+a+l;return me.cookie=h,h},remove:function(t,n,o){m.cookie.set(t,"",-1,n,!1,!1,o)}};var yu=function(t){var n=!0;try{var o="__mplss_"+to(8),e="xyz";t.setItem(o,e),t.getItem(o)!==e&&(n=!1),t.removeItem(o)}catch(r){n=!1}return n},Qi=null,rr=function(t,n){return Qi!==null&&!n?Qi:Qi=yu(t||z.localStorage)},eo=null,Ip=function(t,n){return eo!==null&&!n?eo:eo=yu(t||z.sessionStorage)};function wu(t,n,o){var e=function(r){Ce.error(n+" error: "+r)};return{is_supported:function(r){var i=o(t,r);return i||Ce.error(n+" unsupported"),i},error:e,get:function(r){try{return t.getItem(r)}catch(i){e(i)}return null},parse:function(r){try{return m.JSONDecode(t.getItem(r))||{}}catch(i){}return null},set:function(r,i){try{t.setItem(r,i)}catch(s){e(s)}},remove:function(r){try{t.removeItem(r)}catch(i){e(i)}}}}m.localStorage=wu(z.localStorage,"localStorage",rr),m.sessionStorage=wu(z.sessionStorage,"sessionStorage",Ip),m.register_event=function(){var t=function(e,r,i,s,a){if(!e){Ce.error("No valid element provided to register_event");return}if(e.addEventListener&&!s)e.addEventListener(r,i,!!a);else{var u="on"+r,l=e[u];e[u]=n(e,i,l)}};function n(e,r,i){var s=function(a){if(a=a||o(z.event),!!a){var u=!0,l,c;return m.isFunction(i)&&(l=i(a)),c=r.call(e,a),(l===!1||c===!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},t}();var Op=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');m.dom_query=function(){function t(r){return r.all?r.all:r.getElementsByTagName("*")}var n=/[\t\r\n]/g;function o(r,i){var s=" "+i+" ";return(" "+r.className+" ").replace(n," ").indexOf(s)>=0}function e(r){if(!me.getElementsByTagName)return[];var i=r.split(" "),s,a,u,l,c,f,h,v,p,y,d=[me];for(f=0;f<i.length;f++){if(s=i[f].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var g=a[1],w=me.getElementById(g);if(!w||u&&w.nodeName.toLowerCase()!=u)return[];d=[w];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var b=a[1];for(u||(u="*"),l=[],c=0,h=0;h<d.length;h++)for(u=="*"?p=t(d[h]):p=d[h].getElementsByTagName(u),v=0;v<p.length;v++)l[c++]=p[v];for(d=[],y=0,h=0;h<l.length;h++)l[h].className&&m.isString(l[h].className)&&o(l[h],b)&&(d[y++]=l[h]);continue}var S=s.match(Op);if(S){u=S[1];var C=S[2],R=S[3],A=S[4];for(u||(u="*"),l=[],c=0,h=0;h<d.length;h++)for(u=="*"?p=t(d[h]):p=d[h].getElementsByTagName(u),v=0;v<p.length;v++)l[c++]=p[v];d=[],y=0;var x;switch(R){case"=":x=function(k){return k.getAttribute(C)==A};break;case"~":x=function(k){return k.getAttribute(C).match(new RegExp("\\b"+A+"\\b"))};break;case"|":x=function(k){return k.getAttribute(C).match(new RegExp("^"+A+"-?"))};break;case"^":x=function(k){return k.getAttribute(C).indexOf(A)===0};break;case"$":x=function(k){return k.getAttribute(C).lastIndexOf(A)==k.getAttribute(C).length-A.length};break;case"*":x=function(k){return k.getAttribute(C).indexOf(A)>-1};break;default:x=function(k){return k.getAttribute(C)}}for(d=[],y=0,h=0;h<l.length;h++)x(l[h])&&(d[y++]=l[h]);continue}for(u=s,l=[],c=0,h=0;h<d.length;h++)for(p=d[h].getElementsByTagName(u),v=0;v<p.length;v++)l[c++]=p[v];d=l}return d}return function(r){return m.isElement(r)?[r]:m.isObject(r)&&!m.isUndefined(r.length)?r:e.call(this,r)}}();var Rp=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],xp=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];m.info={campaignParams:function(t){var n="",o={};return m.each(Rp,function(e){n=m.getQueryParam(me.URL,e),n.length?o[e]=n:t!==void 0&&(o[e]=t)}),o},clickParams:function(){var t="",n={};return m.each(xp,function(o){t=m.getQueryParam(me.URL,o),t.length&&(n[o]=t)}),n},marketingParams:function(){return m.extend(m.info.campaignParams(),m.info.clickParams())},searchEngine:function(t){return t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(t){var n=m.info.searchEngine(t),o=n!="yahoo"?"q":"p",e={};if(n!==null){e.$search_engine=n;var r=m.getQueryParam(t,o);r.length&&(e.mp_keyword=r)}return e},browser:function(t,n,o){return n=n||"",o||m.includes(t," OPR/")?m.includes(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":m.includes(t,"IEMobile")||m.includes(t,"WPDesktop")?"Internet Explorer Mobile":m.includes(t,"SamsungBrowser/")?"Samsung Internet":m.includes(t,"Edge")||m.includes(t,"Edg/")?"Microsoft Edge":m.includes(t,"FBIOS")?"Facebook Mobile":m.includes(t,"Whale/")?"Whale Browser":m.includes(t,"Chrome")?"Chrome":m.includes(t,"CriOS")?"Chrome iOS":m.includes(t,"UCWEB")||m.includes(t,"UCBrowser")?"UC Browser":m.includes(t,"FxiOS")?"Firefox iOS":m.includes(n,"Apple")?m.includes(t,"Mobile")?"Mobile Safari":"Safari":m.includes(t,"Android")?"Android Mobile":m.includes(t,"Konqueror")?"Konqueror":m.includes(t,"Firefox")?"Firefox":m.includes(t,"MSIE")||m.includes(t,"Trident/")?"Internet Explorer":m.includes(t,"Gecko")?"Mozilla":""},browserVersion:function(t,n,o){var e=m.info.browser(t,n,o),r={"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+)?)/},i=r[e];if(i===void 0)return null;var s=t.match(i);return s?parseFloat(s[s.length-2]):null},os:function(){var t=Ze;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""},referringDomain:function(t){var n=t.split("/");return n.length>=3?n[2]:""},currentUrl:function(){return z.location.href},properties:function(t){return typeof t!="object"&&(t={}),m.extend(m.strip_empty_properties({$os:m.info.os(),$browser:m.info.browser(Ze,St.vendor,er),$referrer:me.referrer,$referring_domain:m.info.referringDomain(me.referrer),$device:m.info.device(Ze)}),{$current_url:m.info.currentUrl(),$browser_version:m.info.browserVersion(Ze,St.vendor,er),$screen_height:du.height,$screen_width:du.width,mp_lib:"web",$lib_version:Hi.LIB_VERSION,$insert_id:to(),time:m.timestamp()/1e3},m.strip_empty_properties(t))},people_properties:function(){return m.extend(m.strip_empty_properties({$os:m.info.os(),$browser:m.info.browser(Ze,St.vendor,er)}),{$browser_version:m.info.browserVersion(Ze,St.vendor,er)})},mpPageViewProperties:function(){return m.strip_empty_properties({current_page_title:me.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 Ep=function(t,n){var o=null,e=[];return function(r){var i=this;return e.push(r),o||(o=new F(function(s){setTimeout(function(){var a=t.apply(i,[e]);o=null,e=[],s(a)},n)})),o}},to=function(t){var n=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return t?n.substring(0,t):n},Ap=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Mp=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,bu=function(t){var n=Mp,o=t.split("."),e=o[o.length-1];(e.length>4||e==="com"||e==="org")&&(n=Ap);var r=t.match(n);return r?r[0]:""},kp=function(){var t=z.navigator.onLine;return m.isUndefined(t)||t},ro=function(){},wn=null,bn=null;typeof JSON!="undefined"&&(wn=JSON.stringify,bn=JSON.parse),wn=wn||m.JSONEncode,bn=bn||m.JSONDecode;var _p=function(t,n,o){if(!z.CompressionStream)return!1;var e=m.info.browser(t,n,o),r=m.info.browserVersion(t,n,o);return!((e==="Safari"||e==="Mobile Safari")&&r>=16.4&&r<16.6)};m.info=m.info,m.info.browser=m.info.browser,m.info.browserVersion=m.info.browserVersion,m.info.device=m.info.device,m.info.properties=m.info.properties,m.isBlockedUA=m.isBlockedUA,m.isEmptyObject=m.isEmptyObject,m.isObject=m.isObject,m.JSONDecode=m.JSONDecode,m.JSONEncode=m.JSONEncode,m.toArray=m.toArray,m.NPO=We;var Tp="mixpanelBrowserDb",Su="mixpanelRecordingEvents",Cu="mixpanelRecordingRegistry",Pp=1,Np=[Su,Cu],xe=function(t){this.dbPromise=null,this.storeName=t};xe.prototype._openDb=function(){return new F(function(t,n){var o=z.indexedDB.open(Tp,Pp);o.onerror=function(){n(o.error)},o.onsuccess=function(){t(o.result)},o.onupgradeneeded=function(e){var r=e.target.result;Np.forEach(function(i){r.createObjectStore(i)})}})},xe.prototype.init=function(){return z.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(t){return t instanceof z.IDBDatabase?F.resolve():F.reject(t)})):F.reject("indexedDB is not supported in this browser")},xe.prototype.isInitialized=function(){return!!this.dbPromise},xe.prototype.makeTransaction=function(t,n){var o=this.storeName,e=function(r){return new F(function(i,s){var a=r.transaction(o,t);a.oncomplete=function(){i(a)},a.onabort=a.onerror=function(){s(a.error)},n(a.objectStore(o))})};return this.dbPromise.then(e).catch(function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):F.reject(r)}.bind(this))},xe.prototype.setItem=function(t,n){return this.makeTransaction("readwrite",function(o){o.put(n,t)})},xe.prototype.getItem=function(t){var n;return this.makeTransaction("readonly",function(o){n=o.get(t)}).then(function(){return n.result})},xe.prototype.removeItem=function(t){return this.makeTransaction("readwrite",function(n){n.delete(t)})},xe.prototype.getAll=function(){var t;return this.makeTransaction("readonly",function(n){t=n.getAll()}).then(function(){return t.result})};var $p="__mp_opt_in_out_";function Lp(t,n){if(zp(n))return Ce.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=Up(t,n)==="0";return o&&Ce.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),o}function Dp(t){return Wp(t,function(n){return this.get_config(n)})}function Fp(t){return t=t||{},t.persistenceType==="localStorage"?m.localStorage:m.cookie}function Bp(t,n){return n=n||{},(n.persistencePrefix||$p)+t}function Up(t,n){return Fp(n).get(Bp(t,n))}function zp(t){if(t&&t.ignoreDnt)return!1;var n=t&&t.window||z,o=n.navigator||{},e=!1;return m.each([o.doNotTrack,o.msDoNotTrack,n.doNotTrack],function(r){m.includes([!0,1,"1","yes"],r)&&(e=!0)}),e}function Wp(t,n){return function(){var o=!1;try{var e=n.call(this,"token"),r=n.call(this,"ignore_dnt"),i=n.call(this,"opt_out_tracking_persistence_type"),s=n.call(this,"opt_out_tracking_cookie_prefix"),a=n.call(this,"window");e&&(o=Lp(e,{ignoreDnt:r,persistenceType:i,persistencePrefix:s,window:a}))}catch(l){Ce.error("Unexpected error when checking tracking opt-out status: "+l)}if(!o)return t.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var Gp=tr("lock"),Iu=function(t,n){n=n||{},this.storageKey=t,this.storage=n.storage||z.localStorage,this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||F};Iu.prototype.withLock=function(t,n){var o=this.promiseImpl;return new o(m.bind(function(e,r){var i=n||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,l=this.timeoutMS,c=this.storage,f=a+":X",h=a+":Y",v=a+":Z",p=function(b){if(new Date().getTime()-s>l){Gp.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+i+"]"),c.removeItem(v),c.removeItem(h),g();return}setTimeout(function(){try{b()}catch(S){r(S)}},u*(Math.random()+.1))},y=function(b,S){b()?S():p(function(){y(b,S)})},d=function(){var b=c.getItem(h);return b&&b!==i?!1:(c.setItem(h,i),c.getItem(h)===i?!0:(rr(c,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){c.setItem(f,i),y(d,function(){if(c.getItem(f)===i){w();return}p(function(){if(c.getItem(h)!==i){g();return}y(function(){return!c.getItem(v)},w)})})},w=function(){c.setItem(v,"1");var b=function(){c.removeItem(v),c.getItem(h)===i&&c.removeItem(h),c.getItem(f)===i&&c.removeItem(f)};t().then(function(S){b(),e(S)}).catch(function(S){b(),r(S)})};try{if(rr(c,!0))g();else throw new Error("localStorage support check failed")}catch(b){r(b)}},this))};var Ct=function(t){this.storage=t||z.localStorage};Ct.prototype.init=function(){return F.resolve()},Ct.prototype.isInitialized=function(){return!0},Ct.prototype.setItem=function(t,n){return new F(m.bind(function(o,e){try{this.storage.setItem(t,wn(n))}catch(r){e(r)}o()},this))},Ct.prototype.getItem=function(t){return new F(m.bind(function(n,o){var e;try{e=bn(this.storage.getItem(t))}catch(r){o(r)}n(e)},this))},Ct.prototype.removeItem=function(t){return new F(m.bind(function(n,o){try{this.storage.removeItem(t)}catch(e){o(e)}n()},this))};var Ou=tr("batch"),Ee=function(t,n){n=n||{},this.storageKey=t,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new Ct,this.lock=new Iu(t,{storage:n.sharedLockStorage||z.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||m.bind(Ou.error,Ou),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=Ep(m.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=m.bind(function(o){return this._enqueuePersisted([o])},this)};Ee.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?F.resolve():this.queueStorage.init().then(m.bind(function(){this.initialized=!0},this)).catch(m.bind(function(t){this.reportError("Error initializing queue persistence. Disabling persistence",t),this.initialized=!0,this.usePersistence=!1},this))},Ee.prototype.enqueue=function(t,n){var o={id:to(),flushAfter:new Date().getTime()+n*2,payload:t};return this.usePersistence?this.enqueuePersisted(o):(this.memQueue.push(o),F.resolve(!0))},Ee.prototype._enqueuePersisted=function(t){var n=m.bind(function(){return this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(o){return this.saveToStorage(o.concat(t))},this)).then(m.bind(function(o){return o&&(this.memQueue=this.memQueue.concat(t)),o},this)).catch(m.bind(function(o){return this.reportError("Error enqueueing items",o,t),!1},this))},this);return this.lock.withLock(n,this.pid).catch(m.bind(function(o){return this.reportError("Error acquiring storage lock",o),!1},this))},Ee.prototype.fillBatch=function(t){var n=this.memQueue.slice(0,t);return this.usePersistence&&n.length<t?this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(o){if(o.length){var e={};m.each(n,function(s){e[s.id]=!0});for(var r=0;r<o.length;r++){var i=o[r];if(new Date().getTime()>i.flushAfter&&!e[i.id]&&(i.orphaned=!0,n.push(i),n.length>=t))break}}return n},this)):F.resolve(n)};var Ru=function(t,n){var o=[];return m.each(t,function(e){e.id&&!n[e.id]&&o.push(e)}),o};Ee.prototype.removeItemsByID=function(t){var n={};if(m.each(t,function(e){n[e]=!0}),this.memQueue=Ru(this.memQueue,n),this.usePersistence){var o=m.bind(function(){return this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(e){return e=Ru(e,n),this.saveToStorage(e)},this)).then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(e){for(var r=0;r<e.length;r++){var i=e[r];if(i.id&&n[i.id])throw new Error("Item not removed from storage")}return!0},this)).catch(m.bind(function(e){return this.reportError("Error removing items",e,t),!1},this))},this);return this.lock.withLock(o,this.pid).catch(m.bind(function(e){return this.reportError("Error acquiring storage lock",e),rr(this.lock.storage,!0)?!1:o().then(m.bind(function(r){return r||this.queueStorage.removeItem(this.storageKey).then(function(){return r})},this)).catch(m.bind(function(r){return this.reportError("Error clearing queue",r),!1},this))},this))}else return F.resolve(!0)};var xu=function(t,n){var o=[];return m.each(t,function(e){var r=e.id;if(r in n){var i=n[r];i!==null&&(e.payload=i,o.push(e))}else o.push(e)}),o};Ee.prototype.updatePayloads=function(t){return this.memQueue=xu(this.memQueue,t),this.usePersistence?this.lock.withLock(m.bind(function(){return this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(o){return o=xu(o,t),this.saveToStorage(o)},this)).catch(m.bind(function(o){return this.reportError("Error updating items",t,o),!1},this))},this),this.pid).catch(m.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this)):F.resolve(!0)},Ee.prototype.readFromStorage=function(){return this.ensureInit().then(m.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(m.bind(function(t){return t&&(m.isArray(t)||(this.reportError("Invalid storage entry:",t),t=null)),t||[]},this)).catch(m.bind(function(t){return this.reportError("Error retrieving queue",t),[]},this))},Ee.prototype.saveToStorage=function(t){return this.ensureInit().then(m.bind(function(){return this.queueStorage.setItem(this.storageKey,t)},this)).then(function(){return!0}).catch(m.bind(function(n){return this.reportError("Error saving queue",n),!1},this))},Ee.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(m.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):F.resolve()};var jp=10*60*1e3,nr=tr("batch"),Ie=function(t,n){this.errorReporter=n.errorReporter,this.queue=new Ee(t,{errorReporter:m.bind(this.reportError,this),queueStorage:n.queueStorage,sharedLockStorage:n.sharedLockStorage,sharedLockTimeoutMS:n.sharedLockTimeoutMS,usePersistence:n.usePersistence,enqueueThrottleMs:n.enqueueThrottleMs}),this.libConfig=n.libConfig,this.sendRequest=n.sendRequestFunc,this.beforeSendHook=n.beforeSendHook,this.stopAllBatching=n.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=n.flushOnlyOnInterval||!1,this._flushPromise=null};Ie.prototype.enqueue=function(t){return this.queue.enqueue(t,this.flushInterval)},Ie.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Ie.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Ie.prototype.clear=function(){return this.queue.clear()},Ie.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Ie.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Ie.prototype.scheduleFlush=function(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(m.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Ie.prototype.sendRequestPromise=function(t,n){return new F(m.bind(function(o){this.sendRequest(t,n,o)},this))},Ie.prototype.flush=function(t){if(this.requestInProgress)return nr.log("Flush: Request already in progress"),F.resolve();this.requestInProgress=!0,t=t||{};var n=this.libConfig.batch_request_timeout_ms,o=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(m.bind(function(r){var i=r.length===e,s=[],a={};if(m.each(r,function(f){var h=f.payload;if(this.beforeSendHook&&!f.orphaned&&(h=this.beforeSendHook(h)),h){h.event&&h.properties&&(h.properties=m.extend({},h.properties,{mp_sent_by_lib_version:Hi.LIB_VERSION}));var v=!0,p=f.id;p?(this.itemIdsSentSuccessfully[p]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[p]}),v=!1):this.reportError("[dupe] found item with no ID",{item:f}),v&&s.push(h)}a[f.id]=h},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),F.resolve();var u=m.bind(function(){return this.queue.removeItemsByID(m.map(r,function(f){return f.id})).then(m.bind(function(f){return m.each(r,m.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:r.length,timesSent:this.itemIdsSentSuccessfully[v]})):this.reportError("[dupe] found item with no ID while removing",{item:h})},this)),f?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!i?(this.resetFlush(),F.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),F.resolve())},this))},this),l=m.bind(function(f){this.requestInProgress=!1;try{if(t.unloading)return this.queue.updatePayloads(a);if(m.isObject(f)&&f.error==="timeout"&&new Date().getTime()-o>=n)return this.reportError("Network timeout; retrying"),this.flush();if(m.isObject(f)&&(f.httpStatusCode>=500||f.httpStatusCode===429||f.httpStatusCode<=0&&!kp()||f.error==="timeout")){var h=this.flushInterval*2;return f.retryAfter&&(h=parseInt(f.retryAfter,10)*1e3||h),h=Math.min(jp,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),F.resolve()}else if(m.isObject(f)&&f.httpStatusCode===413)if(r.length>1){var v=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,v,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),F.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(p){this.reportError("Error handling API response",p),this.resetFlush()}},this),c={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return t.unloading&&(c.transport="sendBeacon"),nr.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,c).then(l)},this)).catch(m.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))},Ie.prototype.reportError=function(t,n){if(nr.error.apply(nr.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(t)),this.errorReporter(t,n)}catch(o){nr.error(o)}};var Eu=function(t){var n=Date.now();return!t||n>t.maxExpires||n>t.idleExpires},Vp=250,It=tr("recorder"),Yp=z.CompressionStream,qp={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},Hp=new Set([T.MouseMove,T.MouseInteraction,T.Scroll,T.ViewportResize,T.Input,T.TouchMove,T.MediaInteraction,T.Drag,T.Selection]);function Jp(t){return t.type===D.IncrementalSnapshot&&Hp.has(t.data.source)}var oe=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||ro,this._onMaxLengthReached=t.onMaxLengthReached||ro,this._onBatchSent=t.onBatchSent||ro,this._rrwebRecord=t.rrwebRecord||null,this._stopRecording=null,this.replayId=t.replayId,this.batchStartUrl=t.batchStartUrl||null,this.replayStartUrl=t.replayStartUrl||null,this.idleExpires=t.idleExpires||null,this.maxExpires=t.maxExpires||null,this.replayStartTime=t.replayStartTime||null,this.lastEventTimestamp=t.lastEventTimestamp||null,this.seqNo=t.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=mn,this.recordMinMs=0;var n=rr(t.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new xe(Su),this.batcher=new Ie(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:qp,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:Vp,sharedLockTimeoutMS:10*1e3})};oe.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var t={distinct_id:String(this._mixpanel.get_distinct_id())},n=this._mixpanel.get_property("$device_id");n&&(t.$device_id=n);var o=this._mixpanel.get_property("$user_id");return o&&(t.$user_id=o),t},oe.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))},oe.prototype.getConfig=function(t){return this._mixpanel.get_config(t)},oe.prototype.get_config=function(t){return this.getConfig(t)},oe.prototype.startRecording=function(t){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){It.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>mn&&(this.recordMaxMs=mn,It.critical("record_max_ms cannot be greater than "+mn+"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=m.info.currentUrl(),this.replayStartUrl=m.info.currentUrl()),t||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var n=function(){clearTimeout(this.idleTimeoutId);var r=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,r),this.idleExpires=new Date().getTime()+r}.bind(this);n();var o=this.getConfig("record_block_selector");(o===""||o===null)&&(o=void 0);try{this._stopRecording=this._rrwebRecord({emit:function(r){if(this.idleExpires&&this.idleExpires<r.timestamp){this._onIdleTimeout();return}Jp(r)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),n()),this.__enqueuePromise=this.batcher.enqueue(r),(this.lastEventTimestamp===null||r.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=r.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,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[gp({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}})]:[]})}catch(r){this.reportError("Unexpected error when starting rrweb recording.",r)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var e=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),e)},oe.prototype.stopRecording=function(t){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(o){this.reportError("Error with rrweb stopRecording",o)}this._stopRecording=null}var n;return this.batcher.stopped?n=this.batcher.clear():t||(n=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),n},oe.prototype.isRrwebStopped=function(){return this._stopRecording===null},oe.prototype.flushEventsWithOptOut=function(t,n,o){var e=function(r){r===0&&(this.stopRecording(),o({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(t,n,o,e)},oe.prototype.serialize=function(){var t;try{t=this._mixpanel.get_tab_id()}catch(n){this.reportError("Error getting tab ID for serialization ",n),t=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:t}},oe.deserialize=function(t,n){var o=new oe(m.extend({},n,{replayId:t.replayId,batchStartUrl:t.batchStartUrl,replayStartUrl:t.replayStartUrl,idleExpires:t.idleExpires,maxExpires:t.maxExpires,replayStartTime:t.replayStartTime,lastEventTimestamp:t.lastEventTimestamp,seqNo:t.seqNo,sharedLockStorage:n.sharedLockStorage}));return o},oe.prototype._sendRequest=function(t,n,o,e){var r=function(s,a){s.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=m.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.headers.get("Retry-After")})}.bind(this),i=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");z.fetch(i+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(n),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:o}).then(function(s){s.json().then(function(a){r(s,a)}).catch(function(a){e({error:a})})}).catch(function(s){e({error:s,httpStatusCode:0})})},oe.prototype._flushEvents=Dp(function(t,n,o){var e=t.length;if(e>0){for(var r=this.replayId,i=1/0,s=-1/0,a=!1,u=0;u<e;u++)i=Math.min(i,t[u].timestamp),s=Math.max(s,t[u].timestamp),t[u].type===D.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=i}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=i);var l=s-this.replayStartTime,c={$current_url:this.batchStartUrl,$lib_version:Hi.LIB_VERSION,batch_start_time:i/1e3,mp_lib:"web",replay_id:r,replay_length_ms:l,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(t);if(Object.assign(c,this.getUserIdInfo()),_p(Ze,St.vendor,er)){var h=new Blob([f],{type:"application/json"}).stream(),v=h.pipeThrough(new Yp("gzip"));new Response(v).blob().then(function(p){c.format="gzip",this._sendRequest(r,c,p,o)}.bind(this))}else c.format="body",this._sendRequest(r,c,f,o)}}),oe.prototype.reportError=function(t,n){It.error.apply(It.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.getConfig("error_reporter")(t,n)}catch(o){It.error(o)}},oe.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},oe.prototype._getRecordMinMs=function(){var t=this.getConfig("record_min_ms");return t>Ji?(It.critical("record_min_ms cannot be greater than "+Ji+"ms. Capping value."),Ji):t};var Te=function(t){this.idb=new xe(Cu),this.errorReporter=t.errorReporter,this.mixpanelInstance=t.mixpanelInstance,this.sharedLockStorage=t.sharedLockStorage};Te.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Te.prototype.handleError=function(t){this.errorReporter("IndexedDB error: ",t)},Te.prototype.setActiveRecording=function(t){if(!this.isPersistenceEnabled())return F.resolve();var n=t.tabId;return n?this.idb.init().then(function(){return this.idb.setItem(n,t)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),F.resolve())},Te.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(t){return Eu(t)?null:t}.bind(this)).catch(this.handleError.bind(this)):F.resolve(null)},Te.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Te.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(t){if(t)return t.maxExpires=0,this.setActiveRecording(t)}.bind(this)).catch(this.handleError.bind(this))},Te.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):F.resolve()},Te.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(t){var n=t.filter(function(o){return Eu(o)}).map(function(o){var e=oe.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 F.all(n)}.bind(this)).catch(this.handleError.bind(this)):F.resolve([])};var ir=tr("recorder"),Pe=function(t,n,o){this.mixpanelInstance=t,this.rrwebRecord=n||Ue,this.sharedLockStorage=o,this.recordingRegistry=new Te({mixpanelInstance:this.mixpanelInstance,errorReporter:ir.error,sharedLockStorage:o}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Pe.prototype.startRecording=function(t){if(t=t||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){ir.log("Recording already in progress, skipping startRecording.");return}var n=function(){ir.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),o=function(){ir.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),r={mixpanelInstance:this.mixpanelInstance,onBatchSent:e,onIdleTimeout:n,onMaxLengthReached:o,replayId:m.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return t.activeSerializedRecording?this.activeRecording=oe.deserialize(t.activeSerializedRecording,r):this.activeRecording=new oe(r),this.activeRecording.startRecording(t.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Pe.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))},Pe.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Pe.prototype._stopCurrentRecording=function(t,n){if(this.activeRecording){var o=this.activeRecording.stopRecording(t);return n&&(this.activeRecording=null),o}return F.resolve()},Pe.prototype.resumeRecording=function(t){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),F.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):t?this.startRecording({shouldStopBatcher:!1}):(ir.log("No resumable recording found."),null)}.bind(this))},Pe.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Pe.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Pe.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),z.__mp_recorder=Pe})();
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})();
2
2
  //# sourceMappingURL=mixpanel-recorder.min.js.map