flowsery 1.1.0 → 1.1.1

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.
@@ -1,62 +1,62 @@
1
- (()=>{var{defineProperty:x9,getOwnPropertyNames:g8,getOwnPropertyDescriptor:m8}=Object,u8=Object.prototype.hasOwnProperty;function c8(X){return this[X]}var p8=(X)=>{var Z=(LJ??=new WeakMap).get(X),J;if(Z)return Z;if(Z=x9({},"__esModule",{value:!0}),X&&typeof X==="object"||typeof X==="function"){for(var Y of g8(X))if(!u8.call(Z,Y))x9(Z,Y,{get:c8.bind(X,Y),enumerable:!(J=m8(X,Y))||J.enumerable})}return LJ.set(X,Z),Z},LJ;var l8=(X)=>X;function d8(X,Z){this[X]=l8.bind(null,Z)}var i8=(X,Z)=>{for(var J in Z)x9(X,J,{get:Z[J],enumerable:!0,configurable:!0,set:d8.bind(Z,J)})};var hG={};i8(hG,{initRecording:()=>WJ});var a0=()=>{return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(X)=>{let Z=Math.random()*16|0;return(X==="x"?Z:Z&3|8).toString(16)})},PJ=()=>{if(typeof navigator>"u")return!0;return"webdriver"in navigator&&navigator.webdriver===!0};var L0=()=>{return window.__flowsery_config||null},O0=()=>{return document.querySelector("script[data-fl-website-id]")},r0=()=>{let X=L0();if(X)return X.websiteId;return O0()?.getAttribute("data-fl-website-id")||""},_1=()=>{return L0()?.apiUrl??null},o0=()=>{let X=L0();if(X?.apiBase)return X.apiBase;let Z=O0(),J=Z?.getAttribute("data-api");if(J)return J;let Y=Z?.src??"",Q=Y.replace(/\/js\/(?:script|main|recording)(?:\.hash)?\.js.*/,"");return Q===Y?"":Q},n0=()=>{return"https://analytics.flowsery.com/analytics"},DJ=()=>{let X=L0();if(X?.domain)return X.domain;return O0()?.getAttribute("data-domain")||location.hostname},b9=()=>{let X=L0();if(X)return!!X.cookieless;return O0()?.hasAttribute("data-cookieless")??!1},s8=new Set(["localhost","127.0.0.1","[::1]"]),FJ=()=>{return s8.has(location.hostname)||location.hostname.endsWith(".local")},AJ=()=>{let X=L0();if(X)return!!X.local;return O0()?.hasAttribute("data-local")??!1},OJ=()=>{return location.protocol==="file:"},MJ=()=>{let X=L0();if(X)return!!X.allowFileProtocol;return O0()?.hasAttribute("data-allow-file-protocol")??!1},wJ=()=>{try{return window.self!==window.top}catch{return!0}},_J=()=>{let X=L0();if(X)return!!X.allowIframe;return O0()?.hasAttribute("data-allow-iframe")??!1};var CJ=()=>{try{return localStorage.getItem("flowsery_ignore")==="true"}catch{return!1}};var a8=Object.defineProperty,r8=(X,Z,J)=>(Z in X)?a8(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,F=(X,Z,J)=>r8(X,typeof Z!=="symbol"?Z+"":Z,J),RJ,o8=Object.defineProperty,n8=(X,Z,J)=>(Z in X)?o8(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,EJ=(X,Z,J)=>n8(X,typeof Z!=="symbol"?Z+"":Z,J),d=((X)=>{return X[X.Document=0]="Document",X[X.DocumentType=1]="DocumentType",X[X.Element=2]="Element",X[X.Text=3]="Text",X[X.CDATA=4]="CDATA",X[X.Comment=5]="Comment",X})(d||{}),IJ={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},$J={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},C1={},t8=()=>{return!!globalThis.Zone};function TZ(X){if(C1[X])return C1[X];let Z=globalThis[X],J=Z.prototype,Y=X in IJ?IJ[X]:void 0,Q=Boolean(Y&&Y.every((V)=>{var G,U;return Boolean((U=(G=Object.getOwnPropertyDescriptor(J,V))==null?void 0:G.get)==null?void 0:U.toString().includes("[native code]"))})),K=X in $J?$J[X]:void 0,q=Boolean(K&&K.every((V)=>{var G;return typeof J[V]==="function"&&((G=J[V])==null?void 0:G.toString().includes("[native code]"))}));if(Q&&q&&!t8())return C1[X]=Z.prototype,Z.prototype;try{let V=document.createElement("iframe");document.body.appendChild(V);let G=V.contentWindow;if(!G)return Z.prototype;let U=G[X].prototype;if(document.body.removeChild(V),!U)return J;return C1[X]=U}catch{return J}}var k9={};function z0(X,Z,J){var Y;let Q=`${X}.${String(J)}`;if(k9[Q])return k9[Q].call(Z);let K=TZ(X),q=(Y=Object.getOwnPropertyDescriptor(K,J))==null?void 0:Y.get;if(!q)return Z[J];return k9[Q]=q,q.call(Z)}var v9={};function RX(X,Z,J){let Y=`${X}.${String(J)}`;if(v9[Y])return v9[Y].bind(Z);let K=TZ(X)[J];if(typeof K!=="function")return Z[J];return v9[Y]=K,K.bind(Z)}function e8(X){return z0("Node",X,"ownerDocument")}function ZY(X){return z0("Node",X,"childNodes")}function JY(X){return z0("Node",X,"parentNode")}function XY(X){return z0("Node",X,"parentElement")}function YY(X){return z0("Node",X,"textContent")}function QY(X,Z){return RX("Node",X,"contains")(Z)}function KY(X){return RX("Node",X,"getRootNode")()}function qY(X){if(!X||!("host"in X))return null;return z0("ShadowRoot",X,"host")}function GY(X){return X.styleSheets}function VY(X){if(!X||!("shadowRoot"in X))return null;return z0("Element",X,"shadowRoot")}function UY(X,Z){return z0("Element",X,"querySelector")(Z)}function WY(X,Z){return z0("Element",X,"querySelectorAll")(Z)}function HY(){return TZ("MutationObserver").constructor}function zY(X,Z,J){try{if(!(Z in X))return()=>{};let Y=X[Z],Q=J(Y);if(typeof Q==="function")Q.prototype=Q.prototype||{},Object.defineProperties(Q,{__rrweb_original__:{enumerable:!1,value:Y}});return X[Z]=Q,()=>{X[Z]=Y}}catch{return()=>{}}}var s={ownerDocument:e8,childNodes:ZY,parentNode:JY,parentElement:XY,textContent:YY,contains:QY,getRootNode:KY,host:qY,styleSheets:GY,shadowRoot:VY,querySelector:UY,querySelectorAll:WY,mutationObserver:HY,patch:zY};function EX(X){return X.nodeType===X.ELEMENT_NODE}function X1(X){let Z=X&&"host"in X&&"mode"in X&&s.host(X)||null;return Boolean(Z&&"shadowRoot"in Z&&s.shadowRoot(Z)===X)}function Y1(X){return Object.prototype.toString.call(X)==="[object ShadowRoot]"}function BY(X){if(X.includes(" background-clip: text;")&&!X.includes(" -webkit-background-clip: text;"))X=X.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;");return X}function jY(X){let{cssText:Z}=X;if(Z.split('"').length<3)return Z;let J=["@import",`url(${JSON.stringify(X.href)})`];if(X.layerName==="")J.push("layer");else if(X.layerName)J.push(`layer(${X.layerName})`);if(X.supportsText)J.push(`supports(${X.supportsText})`);if(X.media.length)J.push(X.media.mediaText);return J.join(" ")+";"}function r9(X){try{let Z=X.rules||X.cssRules;if(!Z)return null;let J=X.href;if(!J&&X.ownerNode)J=X.ownerNode.baseURI;let Y=Array.from(Z,(Q)=>IX(Q,J)).join("");return BY(Y)}catch(Z){return null}}function IX(X,Z){if(PY(X)){let J;try{J=r9(X.styleSheet)||jY(X)}catch(Y){J=X.cssText}if(X.styleSheet.href)return J9(J,X.styleSheet.href);return J}else{let J=X.cssText;if(DY(X)&&X.selectorText.includes(":"))J=LY(J);if(Z)return J9(J,Z);return J}}function LY(X){let Z=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return X.replace(Z,"$1\\$2")}function PY(X){return"styleSheet"in X}function DY(X){return"selectorText"in X}class SZ{constructor(){EJ(this,"idNodeMap",new Map),EJ(this,"nodeMetaMap",new WeakMap)}getId(X){var Z;if(!X)return-1;return((Z=this.getMeta(X))==null?void 0:Z.id)??-1}getNode(X){return this.idNodeMap.get(X)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(X){return this.nodeMetaMap.get(X)||null}removeNodeFromMap(X){let Z=this.getId(X);if(this.idNodeMap.delete(Z),X.childNodes)X.childNodes.forEach((J)=>this.removeNodeFromMap(J))}has(X){return this.idNodeMap.has(X)}hasNode(X){return this.nodeMetaMap.has(X)}add(X,Z){let J=Z.id;this.idNodeMap.set(J,X),this.nodeMetaMap.set(X,Z)}replace(X,Z){let J=this.getNode(X);if(J){let Y=this.nodeMetaMap.get(J);if(Y)this.nodeMetaMap.set(Z,Y)}this.idNodeMap.set(X,Z)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function FY(){return new SZ}function e1({element:X,maskInputOptions:Z,tagName:J,type:Y,value:Q,maskInputFn:K}){let q=Q||"",V=Y&&w0(Y);if(Z[J.toLowerCase()]||V&&Z[V])if(K)q=K(q,X);else q="*".repeat(q.length);return q}function w0(X){return X.toLowerCase()}var NJ="__rrweb_original__";function AY(X){let Z=X.getContext("2d");if(!Z)return!0;let J=50;for(let Y=0;Y<X.width;Y+=J)for(let Q=0;Q<X.height;Q+=J){let K=Z.getImageData,q=NJ in K?K[NJ]:K;if(new Uint32Array(q.call(Z,Y,Q,Math.min(J,X.width-Y),Math.min(J,X.height-Q)).data.buffer).some((G)=>G!==0))return!1}return!0}function Z9(X){let Z=X.type;return X.hasAttribute("data-rr-is-password")?"password":Z?w0(Z):null}function $X(X,Z){let J;try{J=new URL(X,Z??window.location.href)}catch(K){return null}let Y=/\.([0-9a-z]+)(?:$)/i,Q=J.pathname.match(Y);return(Q==null?void 0:Q[1])??null}function OY(X){let Z="";if(X.indexOf("//")>-1)Z=X.split("/").slice(0,3).join("/");else Z=X.split("/")[0];return Z=Z.split("?")[0],Z}var MY=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,wY=/^(?:[a-z+]+:)?\/\//i,_Y=/^www\..*/i,CY=/^(data:)([^,]*),(.*)/i;function J9(X,Z){return(X||"").replace(MY,(J,Y,Q,K,q,V)=>{let G=Q||q||V,U=Y||K||"";if(!G)return J;if(wY.test(G)||_Y.test(G))return`url(${U}${G}${U})`;if(CY.test(G))return`url(${U}${G}${U})`;if(G[0]==="/")return`url(${U}${OY(Z)+G}${U})`;let W=Z.split("/"),H=G.split("/");W.pop();for(let B of H)if(B===".")continue;else if(B==="..")W.pop();else W.push(B);return`url(${U}${W.join("/")}${U})`})}function R1(X,Z=!1){if(Z)return X.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"");else return X.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function RY(X,Z,J=!1){let Y=Array.from(Z.childNodes),Q=[],K=0;if(Y.length>1&&X&&typeof X==="string"){let q=R1(X,J),V=q.length/X.length;for(let G=1;G<Y.length;G++)if(Y[G].textContent&&typeof Y[G].textContent==="string"){let U=R1(Y[G].textContent,J),W=100,H=3;for(;H<U.length;H++){if(U[H].match(/[a-zA-Z0-9]/)||U.indexOf(U.substring(0,H),1)!==-1)continue;break}for(;H<U.length;H++){let B=U.substring(0,H),j=q.split(B),P=-1;if(j.length===2)P=j[0].length;else if(j.length>2&&j[0]===""&&Y[G-1].textContent!=="")P=q.indexOf(B,1);else if(j.length===1){if(B=B.substring(0,B.length-1),j=q.split(B),j.length<=1)return Q.push(X),Q;H=101}else if(H===U.length-1)P=q.indexOf(B);if(j.length>=2&&H>100){let L=Y[G-1].textContent;if(L&&typeof L==="string"){let z=R1(L).length;P=q.indexOf(B,z)}if(P===-1)P=j[0].length}if(P!==-1){let L=Math.floor(P/V);for(;L>0&&L<X.length;){if(K+=1,K>50*Y.length)return Q.push(X),Q;let z=R1(X.substring(0,L),J);if(z.length===P){Q.push(X.substring(0,L)),X=X.substring(L),q=q.substring(P);break}else if(z.length<P)L+=Math.max(1,Math.floor((P-z.length)/V));else L-=Math.max(1,Math.floor((z.length-P)*V))}break}}}}return Q.push(X),Q}function EY(X,Z){return RY(X,Z).join("/* rr_split */")}var IY=1,$Y=new RegExp("[^a-z0-9-_:]"),K1=-2;function NX(){return IY++}function NY(X){if(X instanceof HTMLFormElement)return"form";let Z=w0(X.tagName);if($Y.test(Z))return"div";return Z}var S0,TJ,TY=/^[^ \t\n\r\u000c]+/,SY=/^[, \t\n\r\u000c]+/;function fY(X,Z){if(Z.trim()==="")return Z;let J=0;function Y(K){let q,V=K.exec(Z.substring(J));if(V)return q=V[0],J+=q.length,q;return""}let Q=[];while(!0){if(Y(SY),J>=Z.length)break;let K=Y(TY);if(K.slice(-1)===",")K=k0(X,K.substring(0,K.length-1)),Q.push(K);else{let q="";K=k0(X,K);let V=!1;while(!0){let G=Z.charAt(J);if(G===""){Q.push((K+q).trim());break}else if(!V){if(G===","){J+=1,Q.push((K+q).trim());break}else if(G==="(")V=!0}else if(G===")")V=!1;q+=G,J+=1}}}return Q.join(", ")}var SJ=new WeakMap;function k0(X,Z){if(!Z||Z.trim()==="")return Z;return fZ(X,Z)}function xY(X){return Boolean(X.tagName==="svg"||X.ownerSVGElement)}function fZ(X,Z){let J=SJ.get(X);if(!J)J=X.createElement("a"),SJ.set(X,J);if(!Z)Z="";else if(Z.startsWith("blob:")||Z.startsWith("data:"))return Z;return J.setAttribute("href",Z),J.href}function TX(X,Z,J,Y){if(!Y)return Y;if(J==="src"||J==="href"&&!(Z==="use"&&Y[0]==="#"))return k0(X,Y);else if(J==="xlink:href"&&Y[0]!=="#")return k0(X,Y);else if(J==="background"&&["table","td","th"].includes(Z))return k0(X,Y);else if(J==="srcset")return fY(X,Y);else if(J==="style")return J9(Y,fZ(X));else if(Z==="object"&&J==="data")return k0(X,Y);return Y}function SX(X,Z,J){return["video","audio"].includes(X)&&Z==="autoplay"}function bY(X,Z,J){try{if(typeof Z==="string"){if(X.classList.contains(Z))return!0}else for(let Y=X.classList.length;Y--;){let Q=X.classList[Y];if(Z.test(Q))return!0}if(J)return X.matches(J)}catch(Y){}return!1}function X9(X,Z,J){if(!X)return!1;if(X.nodeType!==X.ELEMENT_NODE){if(!J)return!1;return X9(s.parentNode(X),Z,J)}for(let Y=X.classList.length;Y--;){let Q=X.classList[Y];if(Z.test(Q))return!0}if(!J)return!1;return X9(s.parentNode(X),Z,J)}function fX(X,Z,J,Y){let Q;if(EX(X)){if(Q=X,!s.childNodes(Q).length)return!1}else if(s.parentElement(X)===null)return!1;else Q=s.parentElement(X);try{if(typeof Z==="string"){if(Y){if(Q.closest(`.${Z}`))return!0}else if(Q.classList.contains(Z))return!0}else if(X9(Q,Z,Y))return!0;if(J){if(Y){if(Q.closest(J))return!0}else if(Q.matches(J))return!0}}catch(K){}return!1}function kY(X,Z,J){let Y=X.contentWindow;if(!Y)return;let Q=!1,K;try{K=Y.document.readyState}catch(V){return}if(K!=="complete"){let V=setTimeout(()=>{if(!Q)Z(),Q=!0},J);X.addEventListener("load",()=>{clearTimeout(V),Q=!0,Z()});return}let q="about:blank";if(Y.location.href!==q||X.src===q||X.src==="")return setTimeout(Z,0),X.addEventListener("load",Z);X.addEventListener("load",Z)}function vY(X,Z,J){let Y=!1,Q;try{Q=X.sheet}catch(q){return}if(Q)return;let K=setTimeout(()=>{if(!Y)Z(),Y=!0},J);X.addEventListener("load",()=>{clearTimeout(K),Y=!0,Z()})}function hY(X,Z){let{doc:J,mirror:Y,blockClass:Q,blockSelector:K,needsMask:q,inlineStylesheet:V,maskInputOptions:G={},maskTextFn:U,maskInputFn:W,dataURLOptions:H={},inlineImages:B,recordCanvas:j,keepIframeSrcFn:P,newlyAddedElement:L=!1,cssCaptured:z=!1}=Z,O=yY(J,Y);switch(X.nodeType){case X.DOCUMENT_NODE:if(X.compatMode!=="CSS1Compat")return{type:d.Document,childNodes:[],compatMode:X.compatMode};else return{type:d.Document,childNodes:[]};case X.DOCUMENT_TYPE_NODE:return{type:d.DocumentType,name:X.name,publicId:X.publicId,systemId:X.systemId,rootId:O};case X.ELEMENT_NODE:return mY(X,{doc:J,blockClass:Q,blockSelector:K,inlineStylesheet:V,maskInputOptions:G,maskInputFn:W,dataURLOptions:H,inlineImages:B,recordCanvas:j,keepIframeSrcFn:P,newlyAddedElement:L,rootId:O});case X.TEXT_NODE:return gY(X,{doc:J,needsMask:q,maskTextFn:U,rootId:O,cssCaptured:z});case X.CDATA_SECTION_NODE:return{type:d.CDATA,textContent:"",rootId:O};case X.COMMENT_NODE:return{type:d.Comment,textContent:s.textContent(X)||"",rootId:O};default:return!1}}function yY(X,Z){if(!Z.hasNode(X))return;let J=Z.getId(X);return J===1?void 0:J}function gY(X,Z){let{needsMask:J,maskTextFn:Y,rootId:Q,cssCaptured:K}=Z,q=s.parentNode(X),V=q&&q.tagName,G="",U=V==="STYLE"?!0:void 0,W=V==="SCRIPT"?!0:void 0;if(W)G="SCRIPT_PLACEHOLDER";else if(!K){if(G=s.textContent(X),U&&G)G=J9(G,fZ(Z.doc))}if(!U&&!W&&G&&J)G=Y?Y(G,s.parentElement(X)):G.replace(/[\S]/g,"*");return{type:d.Text,textContent:G||"",rootId:Q}}function mY(X,Z){let{doc:J,blockClass:Y,blockSelector:Q,inlineStylesheet:K,maskInputOptions:q={},maskInputFn:V,dataURLOptions:G={},inlineImages:U,recordCanvas:W,keepIframeSrcFn:H,newlyAddedElement:B=!1,rootId:j}=Z,P=bY(X,Y,Q),L=NY(X),z={},O=X.attributes.length;for(let D=0;D<O;D++){let M=X.attributes[D];if(!SX(L,M.name,M.value))z[M.name]=TX(J,L,w0(M.name),M.value)}if(L==="link"&&K){let D=Array.from(J.styleSheets).find((T)=>{return T.href===X.href}),M=null;if(D)M=r9(D);if(M)delete z.rel,delete z.href,z._cssText=M}if(L==="style"&&X.sheet){let D=r9(X.sheet);if(D){if(X.childNodes.length>1)D=EY(D,X);z._cssText=D}}if(["input","textarea","select"].includes(L)){let{value:D,checked:M}=X;if(z.type!=="radio"&&z.type!=="checkbox"&&z.type!=="submit"&&z.type!=="button"&&D)z.value=e1({element:X,type:Z9(X),tagName:L,value:D,maskInputOptions:q,maskInputFn:V});else if(M)z.checked=M}if(L==="option")if(X.selected&&!q.select)z.selected=!0;else delete z.selected;if(L==="dialog"&&X.open)z.rr_open_mode=X.matches("dialog:modal")?"modal":"non-modal";if(L==="canvas"&&W){if(X.__context==="2d"){if(!AY(X))z.rr_dataURL=X.toDataURL(G.type,G.quality)}else if(!("__context"in X)){let D=X.toDataURL(G.type,G.quality),M=J.createElement("canvas");M.width=X.width,M.height=X.height;let T=M.toDataURL(G.type,G.quality);if(D!==T)z.rr_dataURL=D}}if(L==="img"&&U){if(!S0)S0=J.createElement("canvas"),TJ=S0.getContext("2d");let D=X,M=D.currentSrc||D.getAttribute("src")||"<unknown-src>",T=D.crossOrigin,f=()=>{D.removeEventListener("load",f);try{S0.width=D.naturalWidth,S0.height=D.naturalHeight,TJ.drawImage(D,0,0),z.rr_dataURL=S0.toDataURL(G.type,G.quality)}catch(p){if(D.crossOrigin!=="anonymous"){if(D.crossOrigin="anonymous",D.complete&&D.naturalWidth!==0)f();else D.addEventListener("load",f);return}else console.warn(`Cannot inline img src=${M}! Error: ${p}`)}if(D.crossOrigin==="anonymous")T?z.crossOrigin=T:D.removeAttribute("crossorigin")};if(D.complete&&D.naturalWidth!==0)f();else D.addEventListener("load",f)}if(["audio","video"].includes(L)){let D=z;D.rr_mediaState=X.paused?"paused":"played",D.rr_mediaCurrentTime=X.currentTime,D.rr_mediaPlaybackRate=X.playbackRate,D.rr_mediaMuted=X.muted,D.rr_mediaLoop=X.loop,D.rr_mediaVolume=X.volume}if(!B){if(X.scrollLeft)z.rr_scrollLeft=X.scrollLeft;if(X.scrollTop)z.rr_scrollTop=X.scrollTop}if(P){let{width:D,height:M}=X.getBoundingClientRect();z={class:z.class,rr_width:`${D}px`,rr_height:`${M}px`}}if(L==="iframe"&&!H(z.src)){if(!X.contentDocument)z.rr_src=z.src;delete z.src}let A;try{if(customElements.get(L))A=!0}catch(D){}return{type:d.Element,tagName:L,attributes:z,childNodes:[],isSVG:xY(X)||void 0,needBlock:P,rootId:j,isCustom:A}}function x(X){if(X===void 0||X===null)return"";else return X.toLowerCase()}function xX(X){if(X===!0||X==="all")return{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:X==="all",headMetaDescKeywords:X==="all",headTitleMutations:X==="all"};else if(X)return X;return{}}function uY(X,Z){if(Z.comment&&X.type===d.Comment)return!0;else if(X.type===d.Element){if(Z.script&&(X.tagName==="script"||X.tagName==="link"&&(X.attributes.rel==="preload"&&X.attributes.as==="script"||X.attributes.rel==="modulepreload")||X.tagName==="link"&&X.attributes.rel==="prefetch"&&typeof X.attributes.href==="string"&&$X(X.attributes.href)==="js"))return!0;else if(Z.headFavicon&&(X.tagName==="link"&&X.attributes.rel==="shortcut icon"||X.tagName==="meta"&&(x(X.attributes.name).match(/^msapplication-tile(image|color)$/)||x(X.attributes.name)==="application-name"||x(X.attributes.rel)==="icon"||x(X.attributes.rel)==="apple-touch-icon"||x(X.attributes.rel)==="shortcut icon")))return!0;else if(X.tagName==="meta"){if(Z.headMetaDescKeywords&&x(X.attributes.name).match(/^description|keywords$/))return!0;else if(Z.headMetaSocial&&(x(X.attributes.property).match(/^(og|twitter|fb):/)||x(X.attributes.name).match(/^(og|twitter):/)||x(X.attributes.name)==="pinterest"))return!0;else if(Z.headMetaRobots&&(x(X.attributes.name)==="robots"||x(X.attributes.name)==="googlebot"||x(X.attributes.name)==="bingbot"))return!0;else if(Z.headMetaHttpEquiv&&X.attributes["http-equiv"]!==void 0)return!0;else if(Z.headMetaAuthorship&&(x(X.attributes.name)==="author"||x(X.attributes.name)==="generator"||x(X.attributes.name)==="framework"||x(X.attributes.name)==="publisher"||x(X.attributes.name)==="progid"||x(X.attributes.property).match(/^article:/)||x(X.attributes.property).match(/^product:/)))return!0;else if(Z.headMetaVerification&&(x(X.attributes.name)==="google-site-verification"||x(X.attributes.name)==="yandex-verification"||x(X.attributes.name)==="csrf-token"||x(X.attributes.name)==="p:domain_verify"||x(X.attributes.name)==="verify-v1"||x(X.attributes.name)==="verification"||x(X.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function v0(X,Z){let{doc:J,mirror:Y,blockClass:Q,blockSelector:K,maskTextClass:q,maskTextSelector:V,skipChild:G=!1,inlineStylesheet:U=!0,maskInputOptions:W={},maskTextFn:H,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P={},inlineImages:L=!1,recordCanvas:z=!1,onSerialize:O,onIframeLoad:A,iframeLoadTimeout:D=5000,onStylesheetLoad:M,stylesheetLoadTimeout:T=5000,keepIframeSrcFn:f=()=>!1,newlyAddedElement:p=!1,cssCaptured:v=!1}=Z,{needsMask:c}=Z,{preserveWhiteSpace:i=!0}=Z;if(!c)c=fX(X,q,V,c===void 0);let t=hY(X,{doc:J,mirror:Y,blockClass:Q,blockSelector:K,needsMask:c,inlineStylesheet:U,maskInputOptions:W,maskTextFn:H,maskInputFn:B,dataURLOptions:P,inlineImages:L,recordCanvas:z,keepIframeSrcFn:f,newlyAddedElement:p,cssCaptured:v});if(!t)return console.warn(X,"not serialized"),null;let K0;if(Y.hasNode(X))K0=Y.getId(X);else if(uY(t,j)||!i&&t.type===d.Text&&!t.textContent.replace(/^\s+|\s+$/gm,"").length)K0=K1;else K0=NX();let E=Object.assign(t,{id:K0});if(Y.add(X,E),K0===K1)return null;if(O)O(X);let i0=!G;if(E.type===d.Element){i0=i0&&!E.needBlock,delete E.needBlock;let l=s.shadowRoot(X);if(l&&Y1(l))E.isShadowHost=!0}if((E.type===d.Document||E.type===d.Element)&&i0){if(j.headWhitespace&&E.type===d.Element&&E.tagName==="head")i=!1;let l={doc:J,mirror:Y,blockClass:Q,blockSelector:K,needsMask:c,maskTextClass:q,maskTextSelector:V,skipChild:G,inlineStylesheet:U,maskInputOptions:W,maskTextFn:H,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P,inlineImages:L,recordCanvas:z,preserveWhiteSpace:i,onSerialize:O,onIframeLoad:A,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:f,cssCaptured:!1};if(E.type===d.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0);else{if(E.type===d.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText==="string")l.cssCaptured=!0;for(let D0 of Array.from(s.childNodes(X))){let q0=v0(D0,l);if(q0)E.childNodes.push(q0)}}let e=null;if(EX(X)&&(e=s.shadowRoot(X)))for(let D0 of Array.from(s.childNodes(e))){let q0=v0(D0,l);if(q0)Y1(e)&&(q0.isShadow=!0),E.childNodes.push(q0)}}let s0=s.parentNode(X);if(s0&&X1(s0)&&Y1(s0))E.isShadow=!0;if(E.type===d.Element&&E.tagName==="iframe")kY(X,()=>{let l=X.contentDocument;if(l&&A){let e=v0(l,{doc:l,mirror:Y,blockClass:Q,blockSelector:K,needsMask:c,maskTextClass:q,maskTextSelector:V,skipChild:!1,inlineStylesheet:U,maskInputOptions:W,maskTextFn:H,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P,inlineImages:L,recordCanvas:z,preserveWhiteSpace:i,onSerialize:O,onIframeLoad:A,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:f});if(e)A(X,e)}},D);if(E.type===d.Element&&E.tagName==="link"&&typeof E.attributes.rel==="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href==="string"&&$X(E.attributes.href)==="css"))vY(X,()=>{if(M){let l=v0(X,{doc:J,mirror:Y,blockClass:Q,blockSelector:K,needsMask:c,maskTextClass:q,maskTextSelector:V,skipChild:!1,inlineStylesheet:U,maskInputOptions:W,maskTextFn:H,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P,inlineImages:L,recordCanvas:z,preserveWhiteSpace:i,onSerialize:O,onIframeLoad:A,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:f});if(l)M(X,l)}},T);return E}function cY(X,Z){let{mirror:J=new SZ,blockClass:Y="rr-block",blockSelector:Q=null,maskTextClass:K="rr-mask",maskTextSelector:q=null,inlineStylesheet:V=!0,inlineImages:G=!1,recordCanvas:U=!1,maskAllInputs:W=!1,maskTextFn:H,maskInputFn:B,slimDOM:j=!1,dataURLOptions:P,preserveWhiteSpace:L,onSerialize:z,onIframeLoad:O,iframeLoadTimeout:A,onStylesheetLoad:D,stylesheetLoadTimeout:M,keepIframeSrcFn:T=()=>!1}=Z||{},f=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}:W===!1?{password:!0}:W,p=xX(j);return v0(X,{doc:X,mirror:J,blockClass:Y,blockSelector:Q,maskTextClass:K,maskTextSelector:q,skipChild:!1,inlineStylesheet:V,maskInputOptions:f,maskTextFn:H,maskInputFn:B,slimDOMOptions:p,dataURLOptions:P,inlineImages:G,recordCanvas:U,preserveWhiteSpace:L,onSerialize:z,onIframeLoad:O,iframeLoadTimeout:A,onStylesheetLoad:D,stylesheetLoadTimeout:M,keepIframeSrcFn:T,newlyAddedElement:!1})}var pY=/(max|min)-device-(width|height)/,uG=new RegExp(pY.source,"g");function lY(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function dY(X){if(X.__esModule)return X;var Z=X.default;if(typeof Z=="function"){var J=function Y(){if(this instanceof Y)return Reflect.construct(Z,arguments,this.constructor);return Z.apply(this,arguments)};J.prototype=Z.prototype}else J={};return Object.defineProperty(J,"__esModule",{value:!0}),Object.keys(X).forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(X,Y);Object.defineProperty(J,Y,Q.get?Q:{enumerable:!0,get:function(){return X[Y]}})}),J}var xZ={exports:{}},b=String,bX=function(){return{isColorSupported:!1,reset:b,bold:b,dim:b,italic:b,underline:b,inverse:b,hidden:b,strikethrough:b,black:b,red:b,green:b,yellow:b,blue:b,magenta:b,cyan:b,white:b,gray:b,bgBlack:b,bgRed:b,bgGreen:b,bgYellow:b,bgBlue:b,bgMagenta:b,bgCyan:b,bgWhite:b}};xZ.exports=bX();xZ.exports.createColors=bX;var iY=xZ.exports,sY={},aY=Object.freeze(Object.defineProperty({__proto__:null,default:sY},Symbol.toStringTag,{value:"Module"})),Y0=dY(aY),fJ=iY,xJ=Y0,o9=class X extends Error{constructor(Z,J,Y,Q,K,q){super(Z);if(this.name="CssSyntaxError",this.reason=Z,K)this.file=K;if(Q)this.source=Q;if(q)this.plugin=q;if(typeof J<"u"&&typeof Y<"u")if(typeof J==="number")this.line=J,this.column=Y;else this.line=J.line,this.column=J.column,this.endLine=Y.line,this.endColumn=Y.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,X)}setMessage(){if(this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u")this.message+=":"+this.line+":"+this.column;this.message+=": "+this.reason}showSourceCode(Z){if(!this.source)return"";let J=this.source;if(Z==null)Z=fJ.isColorSupported;if(xJ){if(Z)J=xJ(J)}let Y=J.split(/\r?\n/),Q=Math.max(this.line-3,0),K=Math.min(this.line+2,Y.length),q=String(K).length,V,G;if(Z){let{bold:U,gray:W,red:H}=fJ.createColors(!0);V=(B)=>U(H(B)),G=(B)=>W(B)}else V=G=(U)=>U;return Y.slice(Q,K).map((U,W)=>{let H=Q+1+W,B=" "+(" "+H).slice(-q)+" | ";if(H===this.line){let j=G(B.replace(/\d/g," "))+U.slice(0,this.column-1).replace(/[^\t]/g," ");return V(">")+G(B)+U+`
2
- `+j+V("^")}return" "+G(B)+U}).join(`
1
+ (()=>{var{defineProperty:y9,getOwnPropertyNames:qY,getOwnPropertyDescriptor:VY}=Object,WY=Object.prototype.hasOwnProperty;function zY(X){return this[X]}var HY=(X)=>{var Z=(RJ??=new WeakMap).get(X),J;if(Z)return Z;if(Z=y9({},"__esModule",{value:!0}),X&&typeof X==="object"||typeof X==="function"){for(var Y of qY(X))if(!WY.call(Z,Y))y9(Z,Y,{get:zY.bind(X,Y),enumerable:!(J=VY(X,Y))||J.enumerable})}return RJ.set(X,Z),Z},RJ;var BY=(X)=>X;function jY(X,Z){this[X]=BY.bind(null,Z)}var UY=(X,Z)=>{for(var J in Z)y9(X,J,{get:Z[J],enumerable:!0,configurable:!0,set:jY.bind(Z,J)})};var jV={};UY(jV,{initRecording:()=>AJ});var e0=()=>{return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(X)=>{let Z=Math.random()*16|0;return(X==="x"?Z:Z&3|8).toString(16)})},$J=()=>{if(typeof navigator>"u")return!0;return"webdriver"in navigator&&navigator.webdriver===!0};var X0=()=>{return window.__flowsery_config||null},H0=()=>{return document.querySelector("script[data-fl-website-id]")},x0=()=>{let X=X0();if(X)return X.websiteId;return H0()?.getAttribute("data-fl-website-id")||""},E1=()=>{return X0()?.apiUrl??null},b0=()=>{let X=X0();if(X?.apiBase)return X.apiBase;let Z=H0(),J=Z?.getAttribute("data-api");if(J)return J;let Y=Z?.src??"",Q=Y.replace(/\/js\/(?:script|main|recording)(?:\.hash)?\.js.*/,"");return Q===Y?"":Q},Z1=()=>{return"https://analytics.flowsery.com/analytics"},NJ=()=>{let X=X0();if(X?.domain)return X.domain;return H0()?.getAttribute("data-domain")||location.hostname},h9=()=>{let X=X0();if(X)return!!X.cookieless;return H0()?.hasAttribute("data-cookieless")??!1},LY=new Set(["localhost","127.0.0.1","[::1]"]),IJ=()=>{return LY.has(location.hostname)||location.hostname.endsWith(".local")},TJ=()=>{let X=X0();if(X)return!!X.local;return H0()?.hasAttribute("data-local")??!1},SJ=()=>{return location.protocol==="file:"},xJ=()=>{let X=X0();if(X)return!!X.allowFileProtocol;return H0()?.hasAttribute("data-allow-file-protocol")??!1},bJ=()=>{try{return window.self!==window.top}catch{return!0}},fJ=()=>{let X=X0();if(X)return!!X.allowIframe;return H0()?.hasAttribute("data-allow-iframe")??!1};var kJ=()=>{let X=X0();if(X)return!!X.disableConsole;return H0()?.hasAttribute("data-disable-console")??!1};var DY=(X)=>{let Z=2166136261;for(let J=0;J<X.length;J++)Z^=X.charCodeAt(J),Z=Math.imul(Z,16777619);return(Z>>>0)%100},vJ=(X,Z)=>{if(!Number.isFinite(Z)||Z>=100)return!0;if(Z<=0)return!1;return DY(X)<Z},EJ=(X)=>X==null||!Number.isFinite(X)?100:Math.max(0,Math.min(100,Math.floor(X))),yJ=(X,Z)=>{if(typeof X==="number")return EJ(X);let J=H0()?.getAttribute(Z);return EJ(J!=null&&J!==""?Number(J):null)},hJ=()=>yJ(X0()?.recordingSampleRate,"data-recording-sample"),gJ=()=>yJ(X0()?.aiSampleRate,"data-ai-sample");var mJ=()=>{try{return localStorage.getItem("flowsery_ignore")==="true"}catch{return!1}};var PY=/(token|auth|key|secret|password|passwd|pwd|session|sig|signature|code|access[_-]?token|api[_-]?key|email|bearer)/i,_0=(X)=>{try{let Z=new URL(X,location.href);return Z.searchParams.forEach((J,Y)=>{if(PY.test(Y))Z.searchParams.set(Y,"REDACTED")}),Z.origin+Z.pathname+Z.search}catch{return X.split("?")[0]}},uJ=(X)=>{return X.replace(/[\w.+-]+@[\w-]+\.[\w.-]+/g,"[email]").replace(/\b[\w-]{24,}\b/g,"[token]")};var FY=Object.defineProperty,OY=(X,Z,J)=>(Z in X)?FY(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,F=(X,Z,J)=>OY(X,typeof Z!=="symbol"?Z+"":Z,J),cJ,AY=Object.defineProperty,MY=(X,Z,J)=>(Z in X)?AY(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,pJ=(X,Z,J)=>MY(X,typeof Z!=="symbol"?Z+"":Z,J),d=((X)=>{return X[X.Document=0]="Document",X[X.DocumentType=1]="DocumentType",X[X.Element=2]="Element",X[X.Text=3]="Text",X[X.CDATA=4]="CDATA",X[X.Comment=5]="Comment",X})(d||{}),lJ={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},dJ={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},$1={},wY=()=>{return!!globalThis.Zone};function fZ(X){if($1[X])return $1[X];let Z=globalThis[X],J=Z.prototype,Y=X in lJ?lJ[X]:void 0,Q=Boolean(Y&&Y.every((V)=>{var q,W;return Boolean((W=(q=Object.getOwnPropertyDescriptor(J,V))==null?void 0:q.get)==null?void 0:W.toString().includes("[native code]"))})),G=X in dJ?dJ[X]:void 0,K=Boolean(G&&G.every((V)=>{var q;return typeof J[V]==="function"&&((q=J[V])==null?void 0:q.toString().includes("[native code]"))}));if(Q&&K&&!wY())return $1[X]=Z.prototype,Z.prototype;try{let V=document.createElement("iframe");document.body.appendChild(V);let q=V.contentWindow;if(!q)return Z.prototype;let W=q[X].prototype;if(document.body.removeChild(V),!W)return J;return $1[X]=W}catch{return J}}var g9={};function L0(X,Z,J){var Y;let Q=`${X}.${String(J)}`;if(g9[Q])return g9[Q].call(Z);let G=fZ(X),K=(Y=Object.getOwnPropertyDescriptor(G,J))==null?void 0:Y.get;if(!K)return Z[J];return g9[Q]=K,K.call(Z)}var m9={};function c8(X,Z,J){let Y=`${X}.${String(J)}`;if(m9[Y])return m9[Y].bind(Z);let G=fZ(X)[J];if(typeof G!=="function")return Z[J];return m9[Y]=G,G.bind(Z)}function _Y(X){return L0("Node",X,"ownerDocument")}function CY(X){return L0("Node",X,"childNodes")}function RY(X){return L0("Node",X,"parentNode")}function EY(X){return L0("Node",X,"parentElement")}function $Y(X){return L0("Node",X,"textContent")}function NY(X,Z){return c8("Node",X,"contains")(Z)}function IY(X){return c8("Node",X,"getRootNode")()}function TY(X){if(!X||!("host"in X))return null;return L0("ShadowRoot",X,"host")}function SY(X){return X.styleSheets}function xY(X){if(!X||!("shadowRoot"in X))return null;return L0("Element",X,"shadowRoot")}function bY(X,Z){return L0("Element",X,"querySelector")(Z)}function fY(X,Z){return L0("Element",X,"querySelectorAll")(Z)}function kY(){return fZ("MutationObserver").constructor}function vY(X,Z,J){try{if(!(Z in X))return()=>{};let Y=X[Z],Q=J(Y);if(typeof Q==="function")Q.prototype=Q.prototype||{},Object.defineProperties(Q,{__rrweb_original__:{enumerable:!1,value:Y}});return X[Z]=Q,()=>{X[Z]=Y}}catch{return()=>{}}}var s={ownerDocument:_Y,childNodes:CY,parentNode:RY,parentElement:EY,textContent:$Y,contains:NY,getRootNode:IY,host:TY,styleSheets:SY,shadowRoot:xY,querySelector:bY,querySelectorAll:fY,mutationObserver:kY,patch:vY};function p8(X){return X.nodeType===X.ELEMENT_NODE}function G1(X){let Z=X&&"host"in X&&"mode"in X&&s.host(X)||null;return Boolean(Z&&"shadowRoot"in Z&&s.shadowRoot(Z)===X)}function K1(X){return Object.prototype.toString.call(X)==="[object ShadowRoot]"}function yY(X){if(X.includes(" background-clip: text;")&&!X.includes(" -webkit-background-clip: text;"))X=X.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;");return X}function hY(X){let{cssText:Z}=X;if(Z.split('"').length<3)return Z;let J=["@import",`url(${JSON.stringify(X.href)})`];if(X.layerName==="")J.push("layer");else if(X.layerName)J.push(`layer(${X.layerName})`);if(X.supportsText)J.push(`supports(${X.supportsText})`);if(X.media.length)J.push(X.media.mediaText);return J.join(" ")+";"}function e9(X){try{let Z=X.rules||X.cssRules;if(!Z)return null;let J=X.href;if(!J&&X.ownerNode)J=X.ownerNode.baseURI;let Y=Array.from(Z,(Q)=>l8(Q,J)).join("");return yY(Y)}catch(Z){return null}}function l8(X,Z){if(mY(X)){let J;try{J=e9(X.styleSheet)||hY(X)}catch(Y){J=X.cssText}if(X.styleSheet.href)return Q9(J,X.styleSheet.href);return J}else{let J=X.cssText;if(uY(X)&&X.selectorText.includes(":"))J=gY(J);if(Z)return Q9(J,Z);return J}}function gY(X){let Z=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return X.replace(Z,"$1\\$2")}function mY(X){return"styleSheet"in X}function uY(X){return"selectorText"in X}class kZ{constructor(){pJ(this,"idNodeMap",new Map),pJ(this,"nodeMetaMap",new WeakMap)}getId(X){var Z;if(!X)return-1;return((Z=this.getMeta(X))==null?void 0:Z.id)??-1}getNode(X){return this.idNodeMap.get(X)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(X){return this.nodeMetaMap.get(X)||null}removeNodeFromMap(X){let Z=this.getId(X);if(this.idNodeMap.delete(Z),X.childNodes)X.childNodes.forEach((J)=>this.removeNodeFromMap(J))}has(X){return this.idNodeMap.has(X)}hasNode(X){return this.nodeMetaMap.has(X)}add(X,Z){let J=Z.id;this.idNodeMap.set(J,X),this.nodeMetaMap.set(X,Z)}replace(X,Z){let J=this.getNode(X);if(J){let Y=this.nodeMetaMap.get(J);if(Y)this.nodeMetaMap.set(Z,Y)}this.idNodeMap.set(X,Z)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function cY(){return new kZ}function X9({element:X,maskInputOptions:Z,tagName:J,type:Y,value:Q,maskInputFn:G}){let K=Q||"",V=Y&&R0(Y);if(Z[J.toLowerCase()]||V&&Z[V])if(G)K=G(K,X);else K="*".repeat(K.length);return K}function R0(X){return X.toLowerCase()}var iJ="__rrweb_original__";function pY(X){let Z=X.getContext("2d");if(!Z)return!0;let J=50;for(let Y=0;Y<X.width;Y+=J)for(let Q=0;Q<X.height;Q+=J){let G=Z.getImageData,K=iJ in G?G[iJ]:G;if(new Uint32Array(K.call(Z,Y,Q,Math.min(J,X.width-Y),Math.min(J,X.height-Q)).data.buffer).some((q)=>q!==0))return!1}return!0}function Y9(X){let Z=X.type;return X.hasAttribute("data-rr-is-password")?"password":Z?R0(Z):null}function d8(X,Z){let J;try{J=new URL(X,Z??window.location.href)}catch(G){return null}let Y=/\.([0-9a-z]+)(?:$)/i,Q=J.pathname.match(Y);return(Q==null?void 0:Q[1])??null}function lY(X){let Z="";if(X.indexOf("//")>-1)Z=X.split("/").slice(0,3).join("/");else Z=X.split("/")[0];return Z=Z.split("?")[0],Z}var dY=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,iY=/^(?:[a-z+]+:)?\/\//i,sY=/^www\..*/i,aY=/^(data:)([^,]*),(.*)/i;function Q9(X,Z){return(X||"").replace(dY,(J,Y,Q,G,K,V)=>{let q=Q||K||V,W=Y||G||"";if(!q)return J;if(iY.test(q)||sY.test(q))return`url(${W}${q}${W})`;if(aY.test(q))return`url(${W}${q}${W})`;if(q[0]==="/")return`url(${W}${lY(Z)+q}${W})`;let z=Z.split("/"),H=q.split("/");z.pop();for(let j of H)if(j===".")continue;else if(j==="..")z.pop();else z.push(j);return`url(${W}${z.join("/")}${W})`})}function N1(X,Z=!1){if(Z)return X.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"");else return X.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function rY(X,Z,J=!1){let Y=Array.from(Z.childNodes),Q=[],G=0;if(Y.length>1&&X&&typeof X==="string"){let K=N1(X,J),V=K.length/X.length;for(let q=1;q<Y.length;q++)if(Y[q].textContent&&typeof Y[q].textContent==="string"){let W=N1(Y[q].textContent,J),z=100,H=3;for(;H<W.length;H++){if(W[H].match(/[a-zA-Z0-9]/)||W.indexOf(W.substring(0,H),1)!==-1)continue;break}for(;H<W.length;H++){let j=W.substring(0,H),U=K.split(j),D=-1;if(U.length===2)D=U[0].length;else if(U.length>2&&U[0]===""&&Y[q-1].textContent!=="")D=K.indexOf(j,1);else if(U.length===1){if(j=j.substring(0,j.length-1),U=K.split(j),U.length<=1)return Q.push(X),Q;H=101}else if(H===W.length-1)D=K.indexOf(j);if(U.length>=2&&H>100){let L=Y[q-1].textContent;if(L&&typeof L==="string"){let B=N1(L).length;D=K.indexOf(j,B)}if(D===-1)D=U[0].length}if(D!==-1){let L=Math.floor(D/V);for(;L>0&&L<X.length;){if(G+=1,G>50*Y.length)return Q.push(X),Q;let B=N1(X.substring(0,L),J);if(B.length===D){Q.push(X.substring(0,L)),X=X.substring(L),K=K.substring(D);break}else if(B.length<D)L+=Math.max(1,Math.floor((D-B.length)/V));else L-=Math.max(1,Math.floor((B.length-D)*V))}break}}}}return Q.push(X),Q}function oY(X,Z){return rY(X,Z).join("/* rr_split */")}var nY=1,tY=new RegExp("[^a-z0-9-_:]"),V1=-2;function i8(){return nY++}function eY(X){if(X instanceof HTMLFormElement)return"form";let Z=R0(X.tagName);if(tY.test(Z))return"div";return Z}var f0,sJ,ZQ=/^[^ \t\n\r\u000c]+/,JQ=/^[, \t\n\r\u000c]+/;function XQ(X,Z){if(Z.trim()==="")return Z;let J=0;function Y(G){let K,V=G.exec(Z.substring(J));if(V)return K=V[0],J+=K.length,K;return""}let Q=[];while(!0){if(Y(JQ),J>=Z.length)break;let G=Y(ZQ);if(G.slice(-1)===",")G=h0(X,G.substring(0,G.length-1)),Q.push(G);else{let K="";G=h0(X,G);let V=!1;while(!0){let q=Z.charAt(J);if(q===""){Q.push((G+K).trim());break}else if(!V){if(q===","){J+=1,Q.push((G+K).trim());break}else if(q==="(")V=!0}else if(q===")")V=!1;K+=q,J+=1}}}return Q.join(", ")}var aJ=new WeakMap;function h0(X,Z){if(!Z||Z.trim()==="")return Z;return vZ(X,Z)}function YQ(X){return Boolean(X.tagName==="svg"||X.ownerSVGElement)}function vZ(X,Z){let J=aJ.get(X);if(!J)J=X.createElement("a"),aJ.set(X,J);if(!Z)Z="";else if(Z.startsWith("blob:")||Z.startsWith("data:"))return Z;return J.setAttribute("href",Z),J.href}function s8(X,Z,J,Y){if(!Y)return Y;if(J==="src"||J==="href"&&!(Z==="use"&&Y[0]==="#"))return h0(X,Y);else if(J==="xlink:href"&&Y[0]!=="#")return h0(X,Y);else if(J==="background"&&["table","td","th"].includes(Z))return h0(X,Y);else if(J==="srcset")return XQ(X,Y);else if(J==="style")return Q9(Y,vZ(X));else if(Z==="object"&&J==="data")return h0(X,Y);return Y}function a8(X,Z,J){return["video","audio"].includes(X)&&Z==="autoplay"}function QQ(X,Z,J){try{if(typeof Z==="string"){if(X.classList.contains(Z))return!0}else for(let Y=X.classList.length;Y--;){let Q=X.classList[Y];if(Z.test(Q))return!0}if(J)return X.matches(J)}catch(Y){}return!1}function G9(X,Z,J){if(!X)return!1;if(X.nodeType!==X.ELEMENT_NODE){if(!J)return!1;return G9(s.parentNode(X),Z,J)}for(let Y=X.classList.length;Y--;){let Q=X.classList[Y];if(Z.test(Q))return!0}if(!J)return!1;return G9(s.parentNode(X),Z,J)}function r8(X,Z,J,Y){let Q;if(p8(X)){if(Q=X,!s.childNodes(Q).length)return!1}else if(s.parentElement(X)===null)return!1;else Q=s.parentElement(X);try{if(typeof Z==="string"){if(Y){if(Q.closest(`.${Z}`))return!0}else if(Q.classList.contains(Z))return!0}else if(G9(Q,Z,Y))return!0;if(J){if(Y){if(Q.closest(J))return!0}else if(Q.matches(J))return!0}}catch(G){}return!1}function GQ(X,Z,J){let Y=X.contentWindow;if(!Y)return;let Q=!1,G;try{G=Y.document.readyState}catch(V){return}if(G!=="complete"){let V=setTimeout(()=>{if(!Q)Z(),Q=!0},J);X.addEventListener("load",()=>{clearTimeout(V),Q=!0,Z()});return}let K="about:blank";if(Y.location.href!==K||X.src===K||X.src==="")return setTimeout(Z,0),X.addEventListener("load",Z);X.addEventListener("load",Z)}function KQ(X,Z,J){let Y=!1,Q;try{Q=X.sheet}catch(K){return}if(Q)return;let G=setTimeout(()=>{if(!Y)Z(),Y=!0},J);X.addEventListener("load",()=>{clearTimeout(G),Y=!0,Z()})}function qQ(X,Z){let{doc:J,mirror:Y,blockClass:Q,blockSelector:G,needsMask:K,inlineStylesheet:V,maskInputOptions:q={},maskTextFn:W,maskInputFn:z,dataURLOptions:H={},inlineImages:j,recordCanvas:U,keepIframeSrcFn:D,newlyAddedElement:L=!1,cssCaptured:B=!1}=Z,A=VQ(J,Y);switch(X.nodeType){case X.DOCUMENT_NODE:if(X.compatMode!=="CSS1Compat")return{type:d.Document,childNodes:[],compatMode:X.compatMode};else return{type:d.Document,childNodes:[]};case X.DOCUMENT_TYPE_NODE:return{type:d.DocumentType,name:X.name,publicId:X.publicId,systemId:X.systemId,rootId:A};case X.ELEMENT_NODE:return zQ(X,{doc:J,blockClass:Q,blockSelector:G,inlineStylesheet:V,maskInputOptions:q,maskInputFn:z,dataURLOptions:H,inlineImages:j,recordCanvas:U,keepIframeSrcFn:D,newlyAddedElement:L,rootId:A});case X.TEXT_NODE:return WQ(X,{doc:J,needsMask:K,maskTextFn:W,rootId:A,cssCaptured:B});case X.CDATA_SECTION_NODE:return{type:d.CDATA,textContent:"",rootId:A};case X.COMMENT_NODE:return{type:d.Comment,textContent:s.textContent(X)||"",rootId:A};default:return!1}}function VQ(X,Z){if(!Z.hasNode(X))return;let J=Z.getId(X);return J===1?void 0:J}function WQ(X,Z){let{needsMask:J,maskTextFn:Y,rootId:Q,cssCaptured:G}=Z,K=s.parentNode(X),V=K&&K.tagName,q="",W=V==="STYLE"?!0:void 0,z=V==="SCRIPT"?!0:void 0;if(z)q="SCRIPT_PLACEHOLDER";else if(!G){if(q=s.textContent(X),W&&q)q=Q9(q,vZ(Z.doc))}if(!W&&!z&&q&&J)q=Y?Y(q,s.parentElement(X)):q.replace(/[\S]/g,"*");return{type:d.Text,textContent:q||"",rootId:Q}}function zQ(X,Z){let{doc:J,blockClass:Y,blockSelector:Q,inlineStylesheet:G,maskInputOptions:K={},maskInputFn:V,dataURLOptions:q={},inlineImages:W,recordCanvas:z,keepIframeSrcFn:H,newlyAddedElement:j=!1,rootId:U}=Z,D=QQ(X,Y,Q),L=eY(X),B={},A=X.attributes.length;for(let P=0;P<A;P++){let M=X.attributes[P];if(!a8(L,M.name,M.value))B[M.name]=s8(J,L,R0(M.name),M.value)}if(L==="link"&&G){let P=Array.from(J.styleSheets).find((T)=>{return T.href===X.href}),M=null;if(P)M=e9(P);if(M)delete B.rel,delete B.href,B._cssText=M}if(L==="style"&&X.sheet){let P=e9(X.sheet);if(P){if(X.childNodes.length>1)P=oY(P,X);B._cssText=P}}if(["input","textarea","select"].includes(L)){let{value:P,checked:M}=X;if(B.type!=="radio"&&B.type!=="checkbox"&&B.type!=="submit"&&B.type!=="button"&&P)B.value=X9({element:X,type:Y9(X),tagName:L,value:P,maskInputOptions:K,maskInputFn:V});else if(M)B.checked=M}if(L==="option")if(X.selected&&!K.select)B.selected=!0;else delete B.selected;if(L==="dialog"&&X.open)B.rr_open_mode=X.matches("dialog:modal")?"modal":"non-modal";if(L==="canvas"&&z){if(X.__context==="2d"){if(!pY(X))B.rr_dataURL=X.toDataURL(q.type,q.quality)}else if(!("__context"in X)){let P=X.toDataURL(q.type,q.quality),M=J.createElement("canvas");M.width=X.width,M.height=X.height;let T=M.toDataURL(q.type,q.quality);if(P!==T)B.rr_dataURL=P}}if(L==="img"&&W){if(!f0)f0=J.createElement("canvas"),sJ=f0.getContext("2d");let P=X,M=P.currentSrc||P.getAttribute("src")||"<unknown-src>",T=P.crossOrigin,x=()=>{P.removeEventListener("load",x);try{f0.width=P.naturalWidth,f0.height=P.naturalHeight,sJ.drawImage(P,0,0),B.rr_dataURL=f0.toDataURL(q.type,q.quality)}catch(p){if(P.crossOrigin!=="anonymous"){if(P.crossOrigin="anonymous",P.complete&&P.naturalWidth!==0)x();else P.addEventListener("load",x);return}else console.warn(`Cannot inline img src=${M}! Error: ${p}`)}if(P.crossOrigin==="anonymous")T?B.crossOrigin=T:P.removeAttribute("crossorigin")};if(P.complete&&P.naturalWidth!==0)x();else P.addEventListener("load",x)}if(["audio","video"].includes(L)){let P=B;P.rr_mediaState=X.paused?"paused":"played",P.rr_mediaCurrentTime=X.currentTime,P.rr_mediaPlaybackRate=X.playbackRate,P.rr_mediaMuted=X.muted,P.rr_mediaLoop=X.loop,P.rr_mediaVolume=X.volume}if(!j){if(X.scrollLeft)B.rr_scrollLeft=X.scrollLeft;if(X.scrollTop)B.rr_scrollTop=X.scrollTop}if(D){let{width:P,height:M}=X.getBoundingClientRect();B={class:B.class,rr_width:`${P}px`,rr_height:`${M}px`}}if(L==="iframe"&&!H(B.src)){if(!X.contentDocument)B.rr_src=B.src;delete B.src}let O;try{if(customElements.get(L))O=!0}catch(P){}return{type:d.Element,tagName:L,attributes:B,childNodes:[],isSVG:YQ(X)||void 0,needBlock:D,rootId:U,isCustom:O}}function b(X){if(X===void 0||X===null)return"";else return X.toLowerCase()}function o8(X){if(X===!0||X==="all")return{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:X==="all",headMetaDescKeywords:X==="all",headTitleMutations:X==="all"};else if(X)return X;return{}}function HQ(X,Z){if(Z.comment&&X.type===d.Comment)return!0;else if(X.type===d.Element){if(Z.script&&(X.tagName==="script"||X.tagName==="link"&&(X.attributes.rel==="preload"&&X.attributes.as==="script"||X.attributes.rel==="modulepreload")||X.tagName==="link"&&X.attributes.rel==="prefetch"&&typeof X.attributes.href==="string"&&d8(X.attributes.href)==="js"))return!0;else if(Z.headFavicon&&(X.tagName==="link"&&X.attributes.rel==="shortcut icon"||X.tagName==="meta"&&(b(X.attributes.name).match(/^msapplication-tile(image|color)$/)||b(X.attributes.name)==="application-name"||b(X.attributes.rel)==="icon"||b(X.attributes.rel)==="apple-touch-icon"||b(X.attributes.rel)==="shortcut icon")))return!0;else if(X.tagName==="meta"){if(Z.headMetaDescKeywords&&b(X.attributes.name).match(/^description|keywords$/))return!0;else if(Z.headMetaSocial&&(b(X.attributes.property).match(/^(og|twitter|fb):/)||b(X.attributes.name).match(/^(og|twitter):/)||b(X.attributes.name)==="pinterest"))return!0;else if(Z.headMetaRobots&&(b(X.attributes.name)==="robots"||b(X.attributes.name)==="googlebot"||b(X.attributes.name)==="bingbot"))return!0;else if(Z.headMetaHttpEquiv&&X.attributes["http-equiv"]!==void 0)return!0;else if(Z.headMetaAuthorship&&(b(X.attributes.name)==="author"||b(X.attributes.name)==="generator"||b(X.attributes.name)==="framework"||b(X.attributes.name)==="publisher"||b(X.attributes.name)==="progid"||b(X.attributes.property).match(/^article:/)||b(X.attributes.property).match(/^product:/)))return!0;else if(Z.headMetaVerification&&(b(X.attributes.name)==="google-site-verification"||b(X.attributes.name)==="yandex-verification"||b(X.attributes.name)==="csrf-token"||b(X.attributes.name)==="p:domain_verify"||b(X.attributes.name)==="verify-v1"||b(X.attributes.name)==="verification"||b(X.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function g0(X,Z){let{doc:J,mirror:Y,blockClass:Q,blockSelector:G,maskTextClass:K,maskTextSelector:V,skipChild:q=!1,inlineStylesheet:W=!0,maskInputOptions:z={},maskTextFn:H,maskInputFn:j,slimDOMOptions:U,dataURLOptions:D={},inlineImages:L=!1,recordCanvas:B=!1,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:P=5000,onStylesheetLoad:M,stylesheetLoadTimeout:T=5000,keepIframeSrcFn:x=()=>!1,newlyAddedElement:p=!1,cssCaptured:v=!1}=Z,{needsMask:c}=Z,{preserveWhiteSpace:i=!0}=Z;if(!c)c=r8(X,K,V,c===void 0);let t=qQ(X,{doc:J,mirror:Y,blockClass:Q,blockSelector:G,needsMask:c,inlineStylesheet:W,maskInputOptions:z,maskTextFn:H,maskInputFn:j,dataURLOptions:D,inlineImages:L,recordCanvas:B,keepIframeSrcFn:x,newlyAddedElement:p,cssCaptured:v});if(!t)return console.warn(X,"not serialized"),null;let K0;if(Y.hasNode(X))K0=Y.getId(X);else if(HQ(t,U)||!i&&t.type===d.Text&&!t.textContent.replace(/^\s+|\s+$/gm,"").length)K0=V1;else K0=i8();let E=Object.assign(t,{id:K0});if(Y.add(X,E),K0===V1)return null;if(A)A(X);let n0=!q;if(E.type===d.Element){n0=n0&&!E.needBlock,delete E.needBlock;let l=s.shadowRoot(X);if(l&&K1(l))E.isShadowHost=!0}if((E.type===d.Document||E.type===d.Element)&&n0){if(U.headWhitespace&&E.type===d.Element&&E.tagName==="head")i=!1;let l={doc:J,mirror:Y,blockClass:Q,blockSelector:G,needsMask:c,maskTextClass:K,maskTextSelector:V,skipChild:q,inlineStylesheet:W,maskInputOptions:z,maskTextFn:H,maskInputFn:j,slimDOMOptions:U,dataURLOptions:D,inlineImages:L,recordCanvas:B,preserveWhiteSpace:i,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:P,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:x,cssCaptured:!1};if(E.type===d.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0);else{if(E.type===d.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText==="string")l.cssCaptured=!0;for(let A0 of Array.from(s.childNodes(X))){let q0=g0(A0,l);if(q0)E.childNodes.push(q0)}}let e=null;if(p8(X)&&(e=s.shadowRoot(X)))for(let A0 of Array.from(s.childNodes(e))){let q0=g0(A0,l);if(q0)K1(e)&&(q0.isShadow=!0),E.childNodes.push(q0)}}let t0=s.parentNode(X);if(t0&&G1(t0)&&K1(t0))E.isShadow=!0;if(E.type===d.Element&&E.tagName==="iframe")GQ(X,()=>{let l=X.contentDocument;if(l&&O){let e=g0(l,{doc:l,mirror:Y,blockClass:Q,blockSelector:G,needsMask:c,maskTextClass:K,maskTextSelector:V,skipChild:!1,inlineStylesheet:W,maskInputOptions:z,maskTextFn:H,maskInputFn:j,slimDOMOptions:U,dataURLOptions:D,inlineImages:L,recordCanvas:B,preserveWhiteSpace:i,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:P,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:x});if(e)O(X,e)}},P);if(E.type===d.Element&&E.tagName==="link"&&typeof E.attributes.rel==="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href==="string"&&d8(E.attributes.href)==="css"))KQ(X,()=>{if(M){let l=g0(X,{doc:J,mirror:Y,blockClass:Q,blockSelector:G,needsMask:c,maskTextClass:K,maskTextSelector:V,skipChild:!1,inlineStylesheet:W,maskInputOptions:z,maskTextFn:H,maskInputFn:j,slimDOMOptions:U,dataURLOptions:D,inlineImages:L,recordCanvas:B,preserveWhiteSpace:i,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:P,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:x});if(l)M(X,l)}},T);return E}function BQ(X,Z){let{mirror:J=new kZ,blockClass:Y="rr-block",blockSelector:Q=null,maskTextClass:G="rr-mask",maskTextSelector:K=null,inlineStylesheet:V=!0,inlineImages:q=!1,recordCanvas:W=!1,maskAllInputs:z=!1,maskTextFn:H,maskInputFn:j,slimDOM:U=!1,dataURLOptions:D,preserveWhiteSpace:L,onSerialize:B,onIframeLoad:A,iframeLoadTimeout:O,onStylesheetLoad:P,stylesheetLoadTimeout:M,keepIframeSrcFn:T=()=>!1}=Z||{},x=z===!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}:z===!1?{password:!0}:z,p=o8(U);return g0(X,{doc:X,mirror:J,blockClass:Y,blockSelector:Q,maskTextClass:G,maskTextSelector:K,skipChild:!1,inlineStylesheet:V,maskInputOptions:x,maskTextFn:H,maskInputFn:j,slimDOMOptions:p,dataURLOptions:D,inlineImages:q,recordCanvas:W,preserveWhiteSpace:L,onSerialize:B,onIframeLoad:A,iframeLoadTimeout:O,onStylesheetLoad:P,stylesheetLoadTimeout:M,keepIframeSrcFn:T,newlyAddedElement:!1})}var jQ=/(max|min)-device-(width|height)/,PV=new RegExp(jQ.source,"g");function UQ(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function LQ(X){if(X.__esModule)return X;var Z=X.default;if(typeof Z=="function"){var J=function Y(){if(this instanceof Y)return Reflect.construct(Z,arguments,this.constructor);return Z.apply(this,arguments)};J.prototype=Z.prototype}else J={};return Object.defineProperty(J,"__esModule",{value:!0}),Object.keys(X).forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(X,Y);Object.defineProperty(J,Y,Q.get?Q:{enumerable:!0,get:function(){return X[Y]}})}),J}var yZ={exports:{}},f=String,n8=function(){return{isColorSupported:!1,reset:f,bold:f,dim:f,italic:f,underline:f,inverse:f,hidden:f,strikethrough:f,black:f,red:f,green:f,yellow:f,blue:f,magenta:f,cyan:f,white:f,gray:f,bgBlack:f,bgRed:f,bgGreen:f,bgYellow:f,bgBlue:f,bgMagenta:f,bgCyan:f,bgWhite:f}};yZ.exports=n8();yZ.exports.createColors=n8;var DQ=yZ.exports,PQ={},FQ=Object.freeze(Object.defineProperty({__proto__:null,default:PQ},Symbol.toStringTag,{value:"Module"})),Q0=LQ(FQ),rJ=DQ,oJ=Q0,ZZ=class X extends Error{constructor(Z,J,Y,Q,G,K){super(Z);if(this.name="CssSyntaxError",this.reason=Z,G)this.file=G;if(Q)this.source=Q;if(K)this.plugin=K;if(typeof J<"u"&&typeof Y<"u")if(typeof J==="number")this.line=J,this.column=Y;else this.line=J.line,this.column=J.column,this.endLine=Y.line,this.endColumn=Y.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,X)}setMessage(){if(this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u")this.message+=":"+this.line+":"+this.column;this.message+=": "+this.reason}showSourceCode(Z){if(!this.source)return"";let J=this.source;if(Z==null)Z=rJ.isColorSupported;if(oJ){if(Z)J=oJ(J)}let Y=J.split(/\r?\n/),Q=Math.max(this.line-3,0),G=Math.min(this.line+2,Y.length),K=String(G).length,V,q;if(Z){let{bold:W,gray:z,red:H}=rJ.createColors(!0);V=(j)=>W(H(j)),q=(j)=>z(j)}else V=q=(W)=>W;return Y.slice(Q,G).map((W,z)=>{let H=Q+1+z,j=" "+(" "+H).slice(-K)+" | ";if(H===this.line){let U=q(j.replace(/\d/g," "))+W.slice(0,this.column-1).replace(/[^\t]/g," ");return V(">")+q(j)+W+`
2
+ `+U+V("^")}return" "+q(j)+W}).join(`
3
3
  `)}toString(){let Z=this.showSourceCode();if(Z)Z=`
4
4
 
5
5
  `+Z+`
6
- `;return this.name+": "+this.message+Z}},bZ=o9;o9.default=o9;var L1={};L1.isClean=Symbol("isClean");L1.my=Symbol("my");var bJ={after:`
6
+ `;return this.name+": "+this.message+Z}},hZ=ZZ;ZZ.default=ZZ;var F1={};F1.isClean=Symbol("isClean");F1.my=Symbol("my");var nJ={after:`
7
7
  `,beforeClose:`
8
8
  `,beforeComment:`
9
9
  `,beforeDecl:`
10
10
  `,beforeOpen:" ",beforeRule:`
11
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function rY(X){return X[0].toUpperCase()+X.slice(1)}var n9=class{constructor(Z){this.builder=Z}atrule(Z,J){let Y="@"+Z.name,Q=Z.params?this.rawValue(Z,"params"):"";if(typeof Z.raws.afterName<"u")Y+=Z.raws.afterName;else if(Q)Y+=" ";if(Z.nodes)this.block(Z,Y+Q);else{let K=(Z.raws.between||"")+(J?";":"");this.builder(Y+Q+K,Z)}}beforeAfter(Z,J){let Y;if(Z.type==="decl")Y=this.raw(Z,null,"beforeDecl");else if(Z.type==="comment")Y=this.raw(Z,null,"beforeComment");else if(J==="before")Y=this.raw(Z,null,"beforeRule");else Y=this.raw(Z,null,"beforeClose");let Q=Z.parent,K=0;while(Q&&Q.type!=="root")K+=1,Q=Q.parent;if(Y.includes(`
12
- `)){let q=this.raw(Z,null,"indent");if(q.length)for(let V=0;V<K;V++)Y+=q}return Y}block(Z,J){let Y=this.raw(Z,"between","beforeOpen");this.builder(J+Y+"{",Z,"start");let Q;if(Z.nodes&&Z.nodes.length)this.body(Z),Q=this.raw(Z,"after");else Q=this.raw(Z,"after","emptyBody");if(Q)this.builder(Q);this.builder("}",Z,"end")}body(Z){let J=Z.nodes.length-1;while(J>0){if(Z.nodes[J].type!=="comment")break;J-=1}let Y=this.raw(Z,"semicolon");for(let Q=0;Q<Z.nodes.length;Q++){let K=Z.nodes[Q],q=this.raw(K,"before");if(q)this.builder(q);this.stringify(K,J!==Q||Y)}}comment(Z){let J=this.raw(Z,"left","commentLeft"),Y=this.raw(Z,"right","commentRight");this.builder("/*"+J+Z.text+Y+"*/",Z)}decl(Z,J){let Y=this.raw(Z,"between","colon"),Q=Z.prop+Y+this.rawValue(Z,"value");if(Z.important)Q+=Z.raws.important||" !important";if(J)Q+=";";this.builder(Q,Z)}document(Z){this.body(Z)}raw(Z,J,Y){let Q;if(!Y)Y=J;if(J){if(Q=Z.raws[J],typeof Q<"u")return Q}let K=Z.parent;if(Y==="before"){if(!K||K.type==="root"&&K.first===Z)return"";if(K&&K.type==="document")return""}if(!K)return bJ[Y];let q=Z.root();if(!q.rawCache)q.rawCache={};if(typeof q.rawCache[Y]<"u")return q.rawCache[Y];if(Y==="before"||Y==="after")return this.beforeAfter(Z,Y);else{let V="raw"+rY(Y);if(this[V])Q=this[V](q,Z);else q.walk((G)=>{if(Q=G.raws[J],typeof Q<"u")return!1})}if(typeof Q>"u")Q=bJ[Y];return q.rawCache[Y]=Q,Q}rawBeforeClose(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length>0){if(typeof Y.raws.after<"u"){if(J=Y.raws.after,J.includes(`
11
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function OQ(X){return X[0].toUpperCase()+X.slice(1)}var JZ=class{constructor(Z){this.builder=Z}atrule(Z,J){let Y="@"+Z.name,Q=Z.params?this.rawValue(Z,"params"):"";if(typeof Z.raws.afterName<"u")Y+=Z.raws.afterName;else if(Q)Y+=" ";if(Z.nodes)this.block(Z,Y+Q);else{let G=(Z.raws.between||"")+(J?";":"");this.builder(Y+Q+G,Z)}}beforeAfter(Z,J){let Y;if(Z.type==="decl")Y=this.raw(Z,null,"beforeDecl");else if(Z.type==="comment")Y=this.raw(Z,null,"beforeComment");else if(J==="before")Y=this.raw(Z,null,"beforeRule");else Y=this.raw(Z,null,"beforeClose");let Q=Z.parent,G=0;while(Q&&Q.type!=="root")G+=1,Q=Q.parent;if(Y.includes(`
12
+ `)){let K=this.raw(Z,null,"indent");if(K.length)for(let V=0;V<G;V++)Y+=K}return Y}block(Z,J){let Y=this.raw(Z,"between","beforeOpen");this.builder(J+Y+"{",Z,"start");let Q;if(Z.nodes&&Z.nodes.length)this.body(Z),Q=this.raw(Z,"after");else Q=this.raw(Z,"after","emptyBody");if(Q)this.builder(Q);this.builder("}",Z,"end")}body(Z){let J=Z.nodes.length-1;while(J>0){if(Z.nodes[J].type!=="comment")break;J-=1}let Y=this.raw(Z,"semicolon");for(let Q=0;Q<Z.nodes.length;Q++){let G=Z.nodes[Q],K=this.raw(G,"before");if(K)this.builder(K);this.stringify(G,J!==Q||Y)}}comment(Z){let J=this.raw(Z,"left","commentLeft"),Y=this.raw(Z,"right","commentRight");this.builder("/*"+J+Z.text+Y+"*/",Z)}decl(Z,J){let Y=this.raw(Z,"between","colon"),Q=Z.prop+Y+this.rawValue(Z,"value");if(Z.important)Q+=Z.raws.important||" !important";if(J)Q+=";";this.builder(Q,Z)}document(Z){this.body(Z)}raw(Z,J,Y){let Q;if(!Y)Y=J;if(J){if(Q=Z.raws[J],typeof Q<"u")return Q}let G=Z.parent;if(Y==="before"){if(!G||G.type==="root"&&G.first===Z)return"";if(G&&G.type==="document")return""}if(!G)return nJ[Y];let K=Z.root();if(!K.rawCache)K.rawCache={};if(typeof K.rawCache[Y]<"u")return K.rawCache[Y];if(Y==="before"||Y==="after")return this.beforeAfter(Z,Y);else{let V="raw"+OQ(Y);if(this[V])Q=this[V](K,Z);else K.walk((q)=>{if(Q=q.raws[J],typeof Q<"u")return!1})}if(typeof Q>"u")Q=nJ[Y];return K.rawCache[Y]=Q,Q}rawBeforeClose(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length>0){if(typeof Y.raws.after<"u"){if(J=Y.raws.after,J.includes(`
13
13
  `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawBeforeComment(Z,J){let Y;if(Z.walkComments((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
14
14
  `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeDecl");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeDecl(Z,J){let Y;if(Z.walkDecls((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
15
15
  `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeRule");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeOpen(Z){let J;return Z.walk((Y)=>{if(Y.type!=="decl"){if(J=Y.raws.between,typeof J<"u")return!1}}),J}rawBeforeRule(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&(Y.parent!==Z||Z.first!==Y)){if(typeof Y.raws.before<"u"){if(J=Y.raws.before,J.includes(`
16
- `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawColon(Z){let J;return Z.walkDecls((Y)=>{if(typeof Y.raws.between<"u")return J=Y.raws.between.replace(/[^\s:]/g,""),!1}),J}rawEmptyBody(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length===0){if(J=Y.raws.after,typeof J<"u")return!1}}),J}rawIndent(Z){if(Z.raws.indent)return Z.raws.indent;let J;return Z.walk((Y)=>{let Q=Y.parent;if(Q&&Q!==Z&&Q.parent&&Q.parent===Z){if(typeof Y.raws.before<"u"){let K=Y.raws.before.split(`
17
- `);return J=K[K.length-1],J=J.replace(/\S/g,""),!1}}}),J}rawSemicolon(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length&&Y.last.type==="decl"){if(J=Y.raws.semicolon,typeof J<"u")return!1}}),J}rawValue(Z,J){let Y=Z[J],Q=Z.raws[J];if(Q&&Q.value===Y)return Q.raw;return Y}root(Z){if(this.body(Z),Z.raws.after)this.builder(Z.raws.after)}rule(Z){if(this.block(Z,this.rawValue(Z,"selector")),Z.raws.ownSemicolon)this.builder(Z.raws.ownSemicolon,Z,"end")}stringify(Z,J){if(!this[Z.type])throw Error("Unknown AST node type "+Z.type+". Maybe you need to change PostCSS stringifier.");this[Z.type](Z,J)}},kX=n9;n9.default=n9;var oY=kX;function t9(X,Z){new oY(Z).stringify(X)}var j9=t9;t9.default=t9;var{isClean:E1,my:nY}=L1,tY=bZ,eY=kX,ZQ=j9;function e9(X,Z){let J=new X.constructor;for(let Y in X){if(!Object.prototype.hasOwnProperty.call(X,Y))continue;if(Y==="proxyCache")continue;let Q=X[Y],K=typeof Q;if(Y==="parent"&&K==="object"){if(Z)J[Y]=Z}else if(Y==="source")J[Y]=Q;else if(Array.isArray(Q))J[Y]=Q.map((q)=>e9(q,J));else{if(K==="object"&&Q!==null)Q=e9(Q);J[Y]=Q}}return J}var ZZ=class{constructor(Z={}){this.raws={},this[E1]=!1,this[nY]=!0;for(let J in Z)if(J==="nodes"){this.nodes=[];for(let Y of Z[J])if(typeof Y.clone==="function")this.append(Y.clone());else this.append(Y)}else this[J]=Z[J]}addToError(Z){if(Z.postcssNode=this,Z.stack&&this.source&&/\n\s{4}at /.test(Z.stack)){let J=this.source;Z.stack=Z.stack.replace(/\n\s{4}at /,`$&${J.input.from}:${J.start.line}:${J.start.column}$&`)}return Z}after(Z){return this.parent.insertAfter(this,Z),this}assign(Z={}){for(let J in Z)this[J]=Z[J];return this}before(Z){return this.parent.insertBefore(this,Z),this}cleanRaws(Z){if(delete this.raws.before,delete this.raws.after,!Z)delete this.raws.between}clone(Z={}){let J=e9(this);for(let Y in Z)J[Y]=Z[Y];return J}cloneAfter(Z={}){let J=this.clone(Z);return this.parent.insertAfter(this,J),J}cloneBefore(Z={}){let J=this.clone(Z);return this.parent.insertBefore(this,J),J}error(Z,J={}){if(this.source){let{end:Y,start:Q}=this.rangeBy(J);return this.source.input.error(Z,{column:Q.column,line:Q.line},{column:Y.column,line:Y.line},J)}return new tY(Z)}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(J==="root")return()=>Z.root().toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="prop"||J==="value"||J==="name"||J==="params"||J==="important"||J==="text")Z.markDirty();return!0}}}markDirty(){if(this[E1]){this[E1]=!1;let Z=this;while(Z=Z.parent)Z[E1]=!1}}next(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z+1]}positionBy(Z,J){let Y=this.source.start;if(Z.index)Y=this.positionInside(Z.index,J);else if(Z.word){J=this.toString();let Q=J.indexOf(Z.word);if(Q!==-1)Y=this.positionInside(Q,J)}return Y}positionInside(Z,J){let Y=J||this.toString(),Q=this.source.start.column,K=this.source.start.line;for(let q=0;q<Z;q++)if(Y[q]===`
18
- `)Q=1,K+=1;else Q+=1;return{column:Q,line:K}}prev(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z-1]}rangeBy(Z){let J={column:this.source.start.column,line:this.source.start.line},Y=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:J.column+1,line:J.line};if(Z.word){let Q=this.toString(),K=Q.indexOf(Z.word);if(K!==-1)J=this.positionInside(K,Q),Y=this.positionInside(K+Z.word.length,Q)}else{if(Z.start)J={column:Z.start.column,line:Z.start.line};else if(Z.index)J=this.positionInside(Z.index);if(Z.end)Y={column:Z.end.column,line:Z.end.line};else if(typeof Z.endIndex==="number")Y=this.positionInside(Z.endIndex);else if(Z.index)Y=this.positionInside(Z.index+1)}if(Y.line<J.line||Y.line===J.line&&Y.column<=J.column)Y={column:J.column+1,line:J.line};return{end:Y,start:J}}raw(Z,J){return new eY().raw(this,Z,J)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...Z){if(this.parent){let J=this,Y=!1;for(let Q of Z)if(Q===this)Y=!0;else if(Y)this.parent.insertAfter(J,Q),J=Q;else this.parent.insertBefore(J,Q);if(!Y)this.remove()}return this}root(){let Z=this;while(Z.parent&&Z.parent.type!=="document")Z=Z.parent;return Z}toJSON(Z,J){let Y={},Q=J==null;J=J||new Map;let K=0;for(let q in this){if(!Object.prototype.hasOwnProperty.call(this,q))continue;if(q==="parent"||q==="proxyCache")continue;let V=this[q];if(Array.isArray(V))Y[q]=V.map((G)=>{if(typeof G==="object"&&G.toJSON)return G.toJSON(null,J);else return G});else if(typeof V==="object"&&V.toJSON)Y[q]=V.toJSON(null,J);else if(q==="source"){let G=J.get(V.input);if(G==null)G=K,J.set(V.input,K),K++;Y[q]={end:V.end,inputId:G,start:V.start}}else Y[q]=V}if(Q)Y.inputs=[...J.keys()].map((q)=>q.toJSON());return Y}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(Z=ZQ){if(Z.stringify)Z=Z.stringify;let J="";return Z(this,(Y)=>{J+=Y}),J}warn(Z,J,Y){let Q={node:this};for(let K in Y)Q[K]=Y[K];return Z.warn(J,Q)}get proxyOf(){return this}},L9=ZZ;ZZ.default=ZZ;var JQ=L9,JZ=class extends JQ{constructor(Z){if(Z&&typeof Z.value<"u"&&typeof Z.value!=="string")Z={...Z,value:String(Z.value)};super(Z);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},P9=JZ;JZ.default=JZ;var XQ="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",YQ=(X,Z=21)=>{return(J=Z)=>{let Y="",Q=J;while(Q--)Y+=X[Math.random()*X.length|0];return Y}},QQ=(X=21)=>{let Z="",J=X;while(J--)Z+=XQ[Math.random()*64|0];return Z},KQ={nanoid:QQ,customAlphabet:YQ},{SourceMapConsumer:kJ,SourceMapGenerator:vJ}=Y0,{existsSync:qQ,readFileSync:GQ}=Y0,{dirname:h9,join:VQ}=Y0;function UQ(X){if(Buffer)return Buffer.from(X,"base64").toString();else return window.atob(X)}var XZ=class{constructor(Z,J){if(J.map===!1)return;this.loadAnnotation(Z),this.inline=this.startWith(this.annotation,"data:");let Y=J.map?J.map.prev:void 0,Q=this.loadMap(J.from,Y);if(!this.mapFile&&J.from)this.mapFile=J.from;if(this.mapFile)this.root=h9(this.mapFile);if(Q)this.text=Q}consumer(){if(!this.consumerCache)this.consumerCache=new kJ(this.text);return this.consumerCache}decodeInline(Z){let J=/^data:application\/json;charset=utf-?8;base64,/,Y=/^data:application\/json;base64,/,Q=/^data:application\/json;charset=utf-?8,/,K=/^data:application\/json,/;if(Q.test(Z)||K.test(Z))return decodeURIComponent(Z.substr(RegExp.lastMatch.length));if(J.test(Z)||Y.test(Z))return UQ(Z.substr(RegExp.lastMatch.length));let q=Z.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+q)}getAnnotationURL(Z){return Z.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(Z){if(typeof Z!=="object")return!1;return typeof Z.mappings==="string"||typeof Z._mappings==="string"||Array.isArray(Z.sections)}loadAnnotation(Z){let J=Z.match(/\/\*\s*# sourceMappingURL=/gm);if(!J)return;let Y=Z.lastIndexOf(J.pop()),Q=Z.indexOf("*/",Y);if(Y>-1&&Q>-1)this.annotation=this.getAnnotationURL(Z.substring(Y,Q))}loadFile(Z){if(this.root=h9(Z),qQ(Z))return this.mapFile=Z,GQ(Z,"utf-8").toString().trim()}loadMap(Z,J){if(J===!1)return!1;if(J)if(typeof J==="string")return J;else if(typeof J==="function"){let Y=J(Z);if(Y){let Q=this.loadFile(Y);if(!Q)throw Error("Unable to load previous source map: "+Y.toString());return Q}}else if(J instanceof kJ)return vJ.fromSourceMap(J).toString();else if(J instanceof vJ)return J.toString();else if(this.isMap(J))return JSON.stringify(J);else throw Error("Unsupported previous source map format: "+J.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let Y=this.annotation;if(Z)Y=VQ(h9(Z),Y);return this.loadFile(Y)}}startWith(Z,J){if(!Z)return!1;return Z.substr(0,J.length)===J}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},vX=XZ;XZ.default=XZ;var{SourceMapConsumer:WQ,SourceMapGenerator:HQ}=Y0,{fileURLToPath:hJ,pathToFileURL:I1}=Y0,{isAbsolute:YZ,resolve:QZ}=Y0,{nanoid:zQ}=KQ,y9=Y0,yJ=bZ,BQ=vX,g9=Symbol("fromOffsetCache"),jQ=Boolean(WQ&&HQ),gJ=Boolean(QZ&&YZ),Y9=class{constructor(Z,J={}){if(Z===null||typeof Z>"u"||typeof Z==="object"&&!Z.toString)throw Error(`PostCSS received ${Z} instead of CSS string`);if(this.css=Z.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(J.from)if(!gJ||/^\w+:\/\//.test(J.from)||YZ(J.from))this.file=J.from;else this.file=QZ(J.from);if(gJ&&jQ){let Y=new BQ(this.css,J);if(Y.text){this.map=Y;let Q=Y.consumer().file;if(!this.file&&Q)this.file=this.mapResolve(Q)}}if(!this.file)this.id="<input css "+zQ(6)+">";if(this.map)this.map.file=this.from}error(Z,J,Y,Q={}){let K,q,V;if(J&&typeof J==="object"){let U=J,W=Y;if(typeof U.offset==="number"){let H=this.fromOffset(U.offset);J=H.line,Y=H.col}else J=U.line,Y=U.column;if(typeof W.offset==="number"){let H=this.fromOffset(W.offset);q=H.line,V=H.col}else q=W.line,V=W.column}else if(!Y){let U=this.fromOffset(J);J=U.line,Y=U.col}let G=this.origin(J,Y,q,V);if(G)K=new yJ(Z,G.endLine===void 0?G.line:{column:G.column,line:G.line},G.endLine===void 0?G.column:{column:G.endColumn,line:G.endLine},G.source,G.file,Q.plugin);else K=new yJ(Z,q===void 0?J:{column:Y,line:J},q===void 0?Y:{column:V,line:q},this.css,this.file,Q.plugin);if(K.input={column:Y,endColumn:V,endLine:q,line:J,source:this.css},this.file){if(I1)K.input.url=I1(this.file).toString();K.input.file=this.file}return K}fromOffset(Z){let J,Y;if(!this[g9]){let K=this.css.split(`
19
- `);Y=Array(K.length);let q=0;for(let V=0,G=K.length;V<G;V++)Y[V]=q,q+=K[V].length+1;this[g9]=Y}else Y=this[g9];J=Y[Y.length-1];let Q=0;if(Z>=J)Q=Y.length-1;else{let K=Y.length-2,q;while(Q<K)if(q=Q+(K-Q>>1),Z<Y[q])K=q-1;else if(Z>=Y[q+1])Q=q+1;else{Q=q;break}}return{col:Z-Y[Q]+1,line:Q+1}}mapResolve(Z){if(/^\w+:\/\//.test(Z))return Z;return QZ(this.map.consumer().sourceRoot||this.map.root||".",Z)}origin(Z,J,Y,Q){if(!this.map)return!1;let K=this.map.consumer(),q=K.originalPositionFor({column:J,line:Z});if(!q.source)return!1;let V;if(typeof Y==="number")V=K.originalPositionFor({column:Q,line:Y});let G;if(YZ(q.source))G=I1(q.source);else G=new URL(q.source,this.map.consumer().sourceRoot||I1(this.map.mapFile));let U={column:q.column,endColumn:V&&V.column,endLine:V&&V.line,line:q.line,url:G.toString()};if(G.protocol==="file:")if(hJ)U.file=hJ(G);else throw Error("file: protocol is not available in this PostCSS build");let W=K.sourceContentFor(q.source);if(W)U.source=W;return U}toJSON(){let Z={};for(let J of["hasBOM","css","file","id"])if(this[J]!=null)Z[J]=this[J];if(this.map){if(Z.map={...this.map},Z.map.consumerCache)Z.map.consumerCache=void 0}return Z}get from(){return this.file||this.id}},D9=Y9;Y9.default=Y9;if(y9&&y9.registerInput)y9.registerInput(Y9);var{SourceMapConsumer:hX,SourceMapGenerator:s1}=Y0,{dirname:a1,relative:yX,resolve:gX,sep:mX}=Y0,{pathToFileURL:mJ}=Y0,LQ=D9,PQ=Boolean(hX&&s1),DQ=Boolean(a1&&gX&&yX&&mX),FQ=class{constructor(Z,J,Y,Q){this.stringify=Z,this.mapOpts=Y.map||{},this.root=J,this.opts=Y,this.css=Q,this.originalCSS=Q,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let Z;if(this.isInline())Z="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")Z=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")Z=this.mapOpts.annotation(this.opts.to,this.root);else Z=this.outputFile()+".map";let J=`
16
+ `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawColon(Z){let J;return Z.walkDecls((Y)=>{if(typeof Y.raws.between<"u")return J=Y.raws.between.replace(/[^\s:]/g,""),!1}),J}rawEmptyBody(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length===0){if(J=Y.raws.after,typeof J<"u")return!1}}),J}rawIndent(Z){if(Z.raws.indent)return Z.raws.indent;let J;return Z.walk((Y)=>{let Q=Y.parent;if(Q&&Q!==Z&&Q.parent&&Q.parent===Z){if(typeof Y.raws.before<"u"){let G=Y.raws.before.split(`
17
+ `);return J=G[G.length-1],J=J.replace(/\S/g,""),!1}}}),J}rawSemicolon(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length&&Y.last.type==="decl"){if(J=Y.raws.semicolon,typeof J<"u")return!1}}),J}rawValue(Z,J){let Y=Z[J],Q=Z.raws[J];if(Q&&Q.value===Y)return Q.raw;return Y}root(Z){if(this.body(Z),Z.raws.after)this.builder(Z.raws.after)}rule(Z){if(this.block(Z,this.rawValue(Z,"selector")),Z.raws.ownSemicolon)this.builder(Z.raws.ownSemicolon,Z,"end")}stringify(Z,J){if(!this[Z.type])throw Error("Unknown AST node type "+Z.type+". Maybe you need to change PostCSS stringifier.");this[Z.type](Z,J)}},t8=JZ;JZ.default=JZ;var AQ=t8;function XZ(X,Z){new AQ(Z).stringify(X)}var P9=XZ;XZ.default=XZ;var{isClean:I1,my:MQ}=F1,wQ=hZ,_Q=t8,CQ=P9;function YZ(X,Z){let J=new X.constructor;for(let Y in X){if(!Object.prototype.hasOwnProperty.call(X,Y))continue;if(Y==="proxyCache")continue;let Q=X[Y],G=typeof Q;if(Y==="parent"&&G==="object"){if(Z)J[Y]=Z}else if(Y==="source")J[Y]=Q;else if(Array.isArray(Q))J[Y]=Q.map((K)=>YZ(K,J));else{if(G==="object"&&Q!==null)Q=YZ(Q);J[Y]=Q}}return J}var QZ=class{constructor(Z={}){this.raws={},this[I1]=!1,this[MQ]=!0;for(let J in Z)if(J==="nodes"){this.nodes=[];for(let Y of Z[J])if(typeof Y.clone==="function")this.append(Y.clone());else this.append(Y)}else this[J]=Z[J]}addToError(Z){if(Z.postcssNode=this,Z.stack&&this.source&&/\n\s{4}at /.test(Z.stack)){let J=this.source;Z.stack=Z.stack.replace(/\n\s{4}at /,`$&${J.input.from}:${J.start.line}:${J.start.column}$&`)}return Z}after(Z){return this.parent.insertAfter(this,Z),this}assign(Z={}){for(let J in Z)this[J]=Z[J];return this}before(Z){return this.parent.insertBefore(this,Z),this}cleanRaws(Z){if(delete this.raws.before,delete this.raws.after,!Z)delete this.raws.between}clone(Z={}){let J=YZ(this);for(let Y in Z)J[Y]=Z[Y];return J}cloneAfter(Z={}){let J=this.clone(Z);return this.parent.insertAfter(this,J),J}cloneBefore(Z={}){let J=this.clone(Z);return this.parent.insertBefore(this,J),J}error(Z,J={}){if(this.source){let{end:Y,start:Q}=this.rangeBy(J);return this.source.input.error(Z,{column:Q.column,line:Q.line},{column:Y.column,line:Y.line},J)}return new wQ(Z)}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(J==="root")return()=>Z.root().toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="prop"||J==="value"||J==="name"||J==="params"||J==="important"||J==="text")Z.markDirty();return!0}}}markDirty(){if(this[I1]){this[I1]=!1;let Z=this;while(Z=Z.parent)Z[I1]=!1}}next(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z+1]}positionBy(Z,J){let Y=this.source.start;if(Z.index)Y=this.positionInside(Z.index,J);else if(Z.word){J=this.toString();let Q=J.indexOf(Z.word);if(Q!==-1)Y=this.positionInside(Q,J)}return Y}positionInside(Z,J){let Y=J||this.toString(),Q=this.source.start.column,G=this.source.start.line;for(let K=0;K<Z;K++)if(Y[K]===`
18
+ `)Q=1,G+=1;else Q+=1;return{column:Q,line:G}}prev(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z-1]}rangeBy(Z){let J={column:this.source.start.column,line:this.source.start.line},Y=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:J.column+1,line:J.line};if(Z.word){let Q=this.toString(),G=Q.indexOf(Z.word);if(G!==-1)J=this.positionInside(G,Q),Y=this.positionInside(G+Z.word.length,Q)}else{if(Z.start)J={column:Z.start.column,line:Z.start.line};else if(Z.index)J=this.positionInside(Z.index);if(Z.end)Y={column:Z.end.column,line:Z.end.line};else if(typeof Z.endIndex==="number")Y=this.positionInside(Z.endIndex);else if(Z.index)Y=this.positionInside(Z.index+1)}if(Y.line<J.line||Y.line===J.line&&Y.column<=J.column)Y={column:J.column+1,line:J.line};return{end:Y,start:J}}raw(Z,J){return new _Q().raw(this,Z,J)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...Z){if(this.parent){let J=this,Y=!1;for(let Q of Z)if(Q===this)Y=!0;else if(Y)this.parent.insertAfter(J,Q),J=Q;else this.parent.insertBefore(J,Q);if(!Y)this.remove()}return this}root(){let Z=this;while(Z.parent&&Z.parent.type!=="document")Z=Z.parent;return Z}toJSON(Z,J){let Y={},Q=J==null;J=J||new Map;let G=0;for(let K in this){if(!Object.prototype.hasOwnProperty.call(this,K))continue;if(K==="parent"||K==="proxyCache")continue;let V=this[K];if(Array.isArray(V))Y[K]=V.map((q)=>{if(typeof q==="object"&&q.toJSON)return q.toJSON(null,J);else return q});else if(typeof V==="object"&&V.toJSON)Y[K]=V.toJSON(null,J);else if(K==="source"){let q=J.get(V.input);if(q==null)q=G,J.set(V.input,G),G++;Y[K]={end:V.end,inputId:q,start:V.start}}else Y[K]=V}if(Q)Y.inputs=[...J.keys()].map((K)=>K.toJSON());return Y}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(Z=CQ){if(Z.stringify)Z=Z.stringify;let J="";return Z(this,(Y)=>{J+=Y}),J}warn(Z,J,Y){let Q={node:this};for(let G in Y)Q[G]=Y[G];return Z.warn(J,Q)}get proxyOf(){return this}},F9=QZ;QZ.default=QZ;var RQ=F9,GZ=class extends RQ{constructor(Z){if(Z&&typeof Z.value<"u"&&typeof Z.value!=="string")Z={...Z,value:String(Z.value)};super(Z);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},O9=GZ;GZ.default=GZ;var EQ="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",$Q=(X,Z=21)=>{return(J=Z)=>{let Y="",Q=J;while(Q--)Y+=X[Math.random()*X.length|0];return Y}},NQ=(X=21)=>{let Z="",J=X;while(J--)Z+=EQ[Math.random()*64|0];return Z},IQ={nanoid:NQ,customAlphabet:$Q},{SourceMapConsumer:tJ,SourceMapGenerator:eJ}=Q0,{existsSync:TQ,readFileSync:SQ}=Q0,{dirname:u9,join:xQ}=Q0;function bQ(X){if(Buffer)return Buffer.from(X,"base64").toString();else return window.atob(X)}var KZ=class{constructor(Z,J){if(J.map===!1)return;this.loadAnnotation(Z),this.inline=this.startWith(this.annotation,"data:");let Y=J.map?J.map.prev:void 0,Q=this.loadMap(J.from,Y);if(!this.mapFile&&J.from)this.mapFile=J.from;if(this.mapFile)this.root=u9(this.mapFile);if(Q)this.text=Q}consumer(){if(!this.consumerCache)this.consumerCache=new tJ(this.text);return this.consumerCache}decodeInline(Z){let J=/^data:application\/json;charset=utf-?8;base64,/,Y=/^data:application\/json;base64,/,Q=/^data:application\/json;charset=utf-?8,/,G=/^data:application\/json,/;if(Q.test(Z)||G.test(Z))return decodeURIComponent(Z.substr(RegExp.lastMatch.length));if(J.test(Z)||Y.test(Z))return bQ(Z.substr(RegExp.lastMatch.length));let K=Z.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+K)}getAnnotationURL(Z){return Z.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(Z){if(typeof Z!=="object")return!1;return typeof Z.mappings==="string"||typeof Z._mappings==="string"||Array.isArray(Z.sections)}loadAnnotation(Z){let J=Z.match(/\/\*\s*# sourceMappingURL=/gm);if(!J)return;let Y=Z.lastIndexOf(J.pop()),Q=Z.indexOf("*/",Y);if(Y>-1&&Q>-1)this.annotation=this.getAnnotationURL(Z.substring(Y,Q))}loadFile(Z){if(this.root=u9(Z),TQ(Z))return this.mapFile=Z,SQ(Z,"utf-8").toString().trim()}loadMap(Z,J){if(J===!1)return!1;if(J)if(typeof J==="string")return J;else if(typeof J==="function"){let Y=J(Z);if(Y){let Q=this.loadFile(Y);if(!Q)throw Error("Unable to load previous source map: "+Y.toString());return Q}}else if(J instanceof tJ)return eJ.fromSourceMap(J).toString();else if(J instanceof eJ)return J.toString();else if(this.isMap(J))return JSON.stringify(J);else throw Error("Unsupported previous source map format: "+J.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let Y=this.annotation;if(Z)Y=xQ(u9(Z),Y);return this.loadFile(Y)}}startWith(Z,J){if(!Z)return!1;return Z.substr(0,J.length)===J}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},e8=KZ;KZ.default=KZ;var{SourceMapConsumer:fQ,SourceMapGenerator:kQ}=Q0,{fileURLToPath:Z8,pathToFileURL:T1}=Q0,{isAbsolute:qZ,resolve:VZ}=Q0,{nanoid:vQ}=IQ,c9=Q0,J8=hZ,yQ=e8,p9=Symbol("fromOffsetCache"),hQ=Boolean(fQ&&kQ),X8=Boolean(VZ&&qZ),K9=class{constructor(Z,J={}){if(Z===null||typeof Z>"u"||typeof Z==="object"&&!Z.toString)throw Error(`PostCSS received ${Z} instead of CSS string`);if(this.css=Z.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(J.from)if(!X8||/^\w+:\/\//.test(J.from)||qZ(J.from))this.file=J.from;else this.file=VZ(J.from);if(X8&&hQ){let Y=new yQ(this.css,J);if(Y.text){this.map=Y;let Q=Y.consumer().file;if(!this.file&&Q)this.file=this.mapResolve(Q)}}if(!this.file)this.id="<input css "+vQ(6)+">";if(this.map)this.map.file=this.from}error(Z,J,Y,Q={}){let G,K,V;if(J&&typeof J==="object"){let W=J,z=Y;if(typeof W.offset==="number"){let H=this.fromOffset(W.offset);J=H.line,Y=H.col}else J=W.line,Y=W.column;if(typeof z.offset==="number"){let H=this.fromOffset(z.offset);K=H.line,V=H.col}else K=z.line,V=z.column}else if(!Y){let W=this.fromOffset(J);J=W.line,Y=W.col}let q=this.origin(J,Y,K,V);if(q)G=new J8(Z,q.endLine===void 0?q.line:{column:q.column,line:q.line},q.endLine===void 0?q.column:{column:q.endColumn,line:q.endLine},q.source,q.file,Q.plugin);else G=new J8(Z,K===void 0?J:{column:Y,line:J},K===void 0?Y:{column:V,line:K},this.css,this.file,Q.plugin);if(G.input={column:Y,endColumn:V,endLine:K,line:J,source:this.css},this.file){if(T1)G.input.url=T1(this.file).toString();G.input.file=this.file}return G}fromOffset(Z){let J,Y;if(!this[p9]){let G=this.css.split(`
19
+ `);Y=Array(G.length);let K=0;for(let V=0,q=G.length;V<q;V++)Y[V]=K,K+=G[V].length+1;this[p9]=Y}else Y=this[p9];J=Y[Y.length-1];let Q=0;if(Z>=J)Q=Y.length-1;else{let G=Y.length-2,K;while(Q<G)if(K=Q+(G-Q>>1),Z<Y[K])G=K-1;else if(Z>=Y[K+1])Q=K+1;else{Q=K;break}}return{col:Z-Y[Q]+1,line:Q+1}}mapResolve(Z){if(/^\w+:\/\//.test(Z))return Z;return VZ(this.map.consumer().sourceRoot||this.map.root||".",Z)}origin(Z,J,Y,Q){if(!this.map)return!1;let G=this.map.consumer(),K=G.originalPositionFor({column:J,line:Z});if(!K.source)return!1;let V;if(typeof Y==="number")V=G.originalPositionFor({column:Q,line:Y});let q;if(qZ(K.source))q=T1(K.source);else q=new URL(K.source,this.map.consumer().sourceRoot||T1(this.map.mapFile));let W={column:K.column,endColumn:V&&V.column,endLine:V&&V.line,line:K.line,url:q.toString()};if(q.protocol==="file:")if(Z8)W.file=Z8(q);else throw Error("file: protocol is not available in this PostCSS build");let z=G.sourceContentFor(K.source);if(z)W.source=z;return W}toJSON(){let Z={};for(let J of["hasBOM","css","file","id"])if(this[J]!=null)Z[J]=this[J];if(this.map){if(Z.map={...this.map},Z.map.consumerCache)Z.map.consumerCache=void 0}return Z}get from(){return this.file||this.id}},A9=K9;K9.default=K9;if(c9&&c9.registerInput)c9.registerInput(K9);var{SourceMapConsumer:Z6,SourceMapGenerator:o1}=Q0,{dirname:n1,relative:J6,resolve:X6,sep:Y6}=Q0,{pathToFileURL:Y8}=Q0,gQ=A9,mQ=Boolean(Z6&&o1),uQ=Boolean(n1&&X6&&J6&&Y6),cQ=class{constructor(Z,J,Y,Q){this.stringify=Z,this.mapOpts=Y.map||{},this.root=J,this.opts=Y,this.css=Q,this.originalCSS=Q,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let Z;if(this.isInline())Z="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")Z=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")Z=this.mapOpts.annotation(this.opts.to,this.root);else Z=this.outputFile()+".map";let J=`
20
20
  `;if(this.css.includes(`\r
21
21
  `))J=`\r
22
- `;this.css+=J+"/*# sourceMappingURL="+Z+" */"}applyPrevMaps(){for(let Z of this.previous()){let J=this.toUrl(this.path(Z.file)),Y=Z.root||a1(Z.file),Q;if(this.mapOpts.sourcesContent===!1){if(Q=new hX(Z.text),Q.sourcesContent)Q.sourcesContent=null}else Q=Z.consumer();this.map.applySourceMap(Q,J,this.toUrl(this.path(Y)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let Z;for(let J=this.root.nodes.length-1;J>=0;J--){if(Z=this.root.nodes[J],Z.type!=="comment")continue;if(Z.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(J)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),DQ&&PQ&&this.isMap())return this.generateMap();else{let Z="";return this.stringify(this.root,(J)=>{Z+=J}),[Z]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let Z=this.previous()[0].consumer();Z.file=this.outputFile(),this.map=s1.fromSourceMap(Z,{ignoreInvalidMapping:!0})}else this.map=new s1({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>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new s1({file:this.outputFile(),ignoreInvalidMapping:!0});let Z=1,J=1,Y="<no source>",Q={generated:{column:0,line:0},original:{column:0,line:0},source:""},K,q;this.stringify(this.root,(V,G,U)=>{if(this.css+=V,G&&U!=="end")if(Q.generated.line=Z,Q.generated.column=J-1,G.source&&G.source.start)Q.source=this.sourcePath(G),Q.original.line=G.source.start.line,Q.original.column=G.source.start.column-1,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,this.map.addMapping(Q);if(K=V.match(/\n/g),K)Z+=K.length,q=V.lastIndexOf(`
23
- `),J=V.length-q;else J+=V.length;if(G&&U!=="start"){let W=G.parent||{raws:{}};if(!(G.type==="decl"||G.type==="atrule"&&!G.nodes)||G!==W.last||W.raws.semicolon)if(G.source&&G.source.end)Q.source=this.sourcePath(G),Q.original.line=G.source.end.line,Q.original.column=G.source.end.column-1,Q.generated.line=Z,Q.generated.column=J-2,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,Q.generated.line=Z,Q.generated.column=J-1,this.map.addMapping(Q)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((Z)=>Z.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let Z=this.mapOpts.annotation;if(typeof Z<"u"&&Z!==!0)return!1;if(this.previous().length)return this.previous().some((J)=>J.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((Z)=>Z.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(Z){if(this.mapOpts.absolute)return Z;if(Z.charCodeAt(0)===60)return Z;if(/^\w+:\/\//.test(Z))return Z;let J=this.memoizedPaths.get(Z);if(J)return J;let Y=this.opts.to?a1(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")Y=a1(gX(Y,this.mapOpts.annotation));let Q=yX(Y,Z);return this.memoizedPaths.set(Z,Q),Q}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((Z)=>{if(Z.source&&Z.source.input.map){let J=Z.source.input.map;if(!this.previousMaps.includes(J))this.previousMaps.push(J)}});else{let Z=new LQ(this.originalCSS,this.opts);if(Z.map)this.previousMaps.push(Z.map)}return this.previousMaps}setSourcesContent(){let Z={};if(this.root)this.root.walk((J)=>{if(J.source){let Y=J.source.input.from;if(Y&&!Z[Y]){Z[Y]=!0;let Q=this.usesFileUrls?this.toFileUrl(Y):this.toUrl(this.path(Y));this.map.setSourceContent(Q,J.source.input.css)}}});else if(this.css){let J=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(J,this.css)}}sourcePath(Z){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(Z.source.input.from);else return this.toUrl(this.path(Z.source.input.from))}toBase64(Z){if(Buffer)return Buffer.from(Z).toString("base64");else return window.btoa(unescape(encodeURIComponent(Z)))}toFileUrl(Z){let J=this.memoizedFileURLs.get(Z);if(J)return J;if(mJ){let Y=mJ(Z).toString();return this.memoizedFileURLs.set(Z,Y),Y}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(Z){let J=this.memoizedURLs.get(Z);if(J)return J;if(mX==="\\")Z=Z.replace(/\\/g,"/");let Y=encodeURI(Z).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(Z,Y),Y}},uX=FQ,AQ=L9,KZ=class extends AQ{constructor(Z){super(Z);this.type="comment"}},F9=KZ;KZ.default=KZ;var{isClean:cX,my:pX}=L1,lX=P9,dX=F9,OQ=L9,iX,kZ,vZ,sX;function aX(X){return X.map((Z)=>{if(Z.nodes)Z.nodes=aX(Z.nodes);return delete Z.source,Z})}function rX(X){if(X[cX]=!1,X.proxyOf.nodes)for(let Z of X.proxyOf.nodes)rX(Z)}var W0=class X extends OQ{append(...Z){for(let J of Z){let Y=this.normalize(J,this.last);for(let Q of Y)this.proxyOf.nodes.push(Q)}return this.markDirty(),this}cleanRaws(Z){if(super.cleanRaws(Z),this.nodes)for(let J of this.nodes)J.cleanRaws(Z)}each(Z){if(!this.proxyOf.nodes)return;let J=this.getIterator(),Y,Q;while(this.indexes[J]<this.proxyOf.nodes.length){if(Y=this.indexes[J],Q=Z(this.proxyOf.nodes[Y],Y),Q===!1)break;this.indexes[J]+=1}return delete this.indexes[J],Q}every(Z){return this.nodes.every(Z)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let Z=this.lastEach;return this.indexes[Z]=0,Z}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(!Z[J])return Z[J];else if(J==="each"||typeof J==="string"&&J.startsWith("walk"))return(...Y)=>{return Z[J](...Y.map((Q)=>{if(typeof Q==="function")return(K,q)=>Q(K.toProxy(),q);else return Q}))};else if(J==="every"||J==="some")return(Y)=>{return Z[J]((Q,...K)=>Y(Q.toProxy(),...K))};else if(J==="root")return()=>Z.root().toProxy();else if(J==="nodes")return Z.nodes.map((Y)=>Y.toProxy());else if(J==="first"||J==="last")return Z[J].toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="name"||J==="params"||J==="selector")Z.markDirty();return!0}}}index(Z){if(typeof Z==="number")return Z;if(Z.proxyOf)Z=Z.proxyOf;return this.proxyOf.nodes.indexOf(Z)}insertAfter(Z,J){let Y=this.index(Z),Q=this.normalize(J,this.proxyOf.nodes[Y]).reverse();Y=this.index(Z);for(let q of Q)this.proxyOf.nodes.splice(Y+1,0,q);let K;for(let q in this.indexes)if(K=this.indexes[q],Y<K)this.indexes[q]=K+Q.length;return this.markDirty(),this}insertBefore(Z,J){let Y=this.index(Z),Q=Y===0?"prepend":!1,K=this.normalize(J,this.proxyOf.nodes[Y],Q).reverse();Y=this.index(Z);for(let V of K)this.proxyOf.nodes.splice(Y,0,V);let q;for(let V in this.indexes)if(q=this.indexes[V],Y<=q)this.indexes[V]=q+K.length;return this.markDirty(),this}normalize(Z,J){if(typeof Z==="string")Z=aX(iX(Z).nodes);else if(typeof Z>"u")Z=[];else if(Array.isArray(Z)){Z=Z.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type==="root"&&this.type!=="document"){Z=Z.nodes.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type)Z=[Z];else if(Z.prop){if(typeof Z.value>"u")throw Error("Value field is missed in node creation");else if(typeof Z.value!=="string")Z.value=String(Z.value);Z=[new lX(Z)]}else if(Z.selector)Z=[new kZ(Z)];else if(Z.name)Z=[new vZ(Z)];else if(Z.text)Z=[new dX(Z)];else throw Error("Unknown node type in node creation");return Z.map((Q)=>{if(!Q[pX])X.rebuild(Q);if(Q=Q.proxyOf,Q.parent)Q.parent.removeChild(Q);if(Q[cX])rX(Q);if(typeof Q.raws.before>"u"){if(J&&typeof J.raws.before<"u")Q.raws.before=J.raws.before.replace(/\S/g,"")}return Q.parent=this.proxyOf,Q})}prepend(...Z){Z=Z.reverse();for(let J of Z){let Y=this.normalize(J,this.first,"prepend").reverse();for(let Q of Y)this.proxyOf.nodes.unshift(Q);for(let Q in this.indexes)this.indexes[Q]=this.indexes[Q]+Y.length}return this.markDirty(),this}push(Z){return Z.parent=this,this.proxyOf.nodes.push(Z),this}removeAll(){for(let Z of this.proxyOf.nodes)Z.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(Z){Z=this.index(Z),this.proxyOf.nodes[Z].parent=void 0,this.proxyOf.nodes.splice(Z,1);let J;for(let Y in this.indexes)if(J=this.indexes[Y],J>=Z)this.indexes[Y]=J-1;return this.markDirty(),this}replaceValues(Z,J,Y){if(!Y)Y=J,J={};return this.walkDecls((Q)=>{if(J.props&&!J.props.includes(Q.prop))return;if(J.fast&&!Q.value.includes(J.fast))return;Q.value=Q.value.replace(Z,Y)}),this.markDirty(),this}some(Z){return this.nodes.some(Z)}walk(Z){return this.each((J,Y)=>{let Q;try{Q=Z(J,Y)}catch(K){throw J.addToError(K)}if(Q!==!1&&J.walk)Q=J.walk(Z);return Q})}walkAtRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="atrule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Z.test(Y.name))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Y.name===Z)return J(Y,Q)})}walkComments(Z){return this.walk((J,Y)=>{if(J.type==="comment")return Z(J,Y)})}walkDecls(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="decl")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="decl"&&Z.test(Y.prop))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="decl"&&Y.prop===Z)return J(Y,Q)})}walkRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="rule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="rule"&&Z.test(Y.selector))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="rule"&&Y.selector===Z)return J(Y,Q)})}get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};W0.registerParse=(X)=>{iX=X};W0.registerRule=(X)=>{kZ=X};W0.registerAtRule=(X)=>{vZ=X};W0.registerRoot=(X)=>{sX=X};var _0=W0;W0.default=W0;W0.rebuild=(X)=>{if(X.type==="atrule")Object.setPrototypeOf(X,vZ.prototype);else if(X.type==="rule")Object.setPrototypeOf(X,kZ.prototype);else if(X.type==="decl")Object.setPrototypeOf(X,lX.prototype);else if(X.type==="comment")Object.setPrototypeOf(X,dX.prototype);else if(X.type==="root")Object.setPrototypeOf(X,sX.prototype);if(X[pX]=!0,X.nodes)X.nodes.forEach((Z)=>{W0.rebuild(Z)})};var MQ=_0,oX,nX,q1=class extends MQ{constructor(Z){super({type:"document",...Z});if(!this.nodes)this.nodes=[]}toResult(Z={}){return new oX(new nX,this,Z).stringify()}};q1.registerLazyResult=(X)=>{oX=X};q1.registerProcessor=(X)=>{nX=X};var hZ=q1;q1.default=q1;var uJ={},tX=function(Z){if(uJ[Z])return;if(uJ[Z]=!0,typeof console<"u"&&console.warn)console.warn(Z)},qZ=class{constructor(Z,J={}){if(this.type="warning",this.text=Z,J.node&&J.node.source){let Y=J.node.rangeBy(J);this.line=Y.start.line,this.column=Y.start.column,this.endLine=Y.end.line,this.endColumn=Y.end.column}for(let Y in J)this[Y]=J[Y]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}},eX=qZ;qZ.default=qZ;var wQ=eX,GZ=class{constructor(Z,J,Y){this.processor=Z,this.messages=[],this.root=J,this.opts=Y,this.css=void 0,this.map=void 0}toString(){return this.css}warn(Z,J={}){if(!J.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)J.plugin=this.lastPlugin.postcssPlugin}let Y=new wQ(Z,J);return this.messages.push(Y),Y}warnings(){return this.messages.filter((Z)=>Z.type==="warning")}get content(){return this.css}},yZ=GZ;GZ.default=GZ;var m9=39,cJ=34,$1=92,pJ=47,N1=10,t0=32,T1=12,S1=9,f1=13,_Q=91,CQ=93,RQ=40,EQ=41,IQ=123,$Q=125,NQ=59,TQ=42,SQ=58,fQ=64,x1=/[\t\n\f\r "#'()/;[\\\]{}]/g,b1=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,xQ=/.[\r\n"'(/\\]/,lJ=/[\da-f]/i,bQ=function(Z,J={}){let Y=Z.css.valueOf(),Q=J.ignoreErrors,K,q,V,G,U,W,H,B,j,P,L=Y.length,z=0,O=[],A=[];function D(){return z}function M(v){throw Z.error("Unclosed "+v,z)}function T(){return A.length===0&&z>=L}function f(v){if(A.length)return A.pop();if(z>=L)return;let c=v?v.ignoreUnclosed:!1;switch(K=Y.charCodeAt(z),K){case N1:case t0:case S1:case f1:case T1:{q=z;do q+=1,K=Y.charCodeAt(q);while(K===t0||K===N1||K===S1||K===f1||K===T1);P=["space",Y.slice(z,q)],z=q-1;break}case _Q:case CQ:case IQ:case $Q:case SQ:case NQ:case EQ:{let i=String.fromCharCode(K);P=[i,i,z];break}case RQ:{if(B=O.length?O.pop()[1]:"",j=Y.charCodeAt(z+1),B==="url"&&j!==m9&&j!==cJ&&j!==t0&&j!==N1&&j!==S1&&j!==T1&&j!==f1){q=z;do{if(W=!1,q=Y.indexOf(")",q+1),q===-1)if(Q||c){q=z;break}else M("bracket");H=q;while(Y.charCodeAt(H-1)===$1)H-=1,W=!W}while(W);P=["brackets",Y.slice(z,q+1),z,q],z=q}else if(q=Y.indexOf(")",z+1),G=Y.slice(z,q+1),q===-1||xQ.test(G))P=["(","(",z];else P=["brackets",G,z,q],z=q;break}case m9:case cJ:{V=K===m9?"'":'"',q=z;do{if(W=!1,q=Y.indexOf(V,q+1),q===-1)if(Q||c){q=z+1;break}else M("string");H=q;while(Y.charCodeAt(H-1)===$1)H-=1,W=!W}while(W);P=["string",Y.slice(z,q+1),z,q],z=q;break}case fQ:{if(x1.lastIndex=z+1,x1.test(Y),x1.lastIndex===0)q=Y.length-1;else q=x1.lastIndex-2;P=["at-word",Y.slice(z,q+1),z,q],z=q;break}case $1:{q=z,U=!0;while(Y.charCodeAt(q+1)===$1)q+=1,U=!U;if(K=Y.charCodeAt(q+1),U&&K!==pJ&&K!==t0&&K!==N1&&K!==S1&&K!==f1&&K!==T1){if(q+=1,lJ.test(Y.charAt(q))){while(lJ.test(Y.charAt(q+1)))q+=1;if(Y.charCodeAt(q+1)===t0)q+=1}}P=["word",Y.slice(z,q+1),z,q],z=q;break}default:{if(K===pJ&&Y.charCodeAt(z+1)===TQ){if(q=Y.indexOf("*/",z+2)+1,q===0)if(Q||c)q=Y.length;else M("comment");P=["comment",Y.slice(z,q+1),z,q],z=q}else{if(b1.lastIndex=z+1,b1.test(Y),b1.lastIndex===0)q=Y.length-1;else q=b1.lastIndex-2;P=["word",Y.slice(z,q+1),z,q],O.push(P),z=q}break}}return z++,P}function p(v){A.push(v)}return{back:p,endOfFile:T,nextToken:f,position:D}},Z6=_0,Q9=class extends Z6{constructor(Z){super(Z);this.type="atrule"}append(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...Z)}prepend(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...Z)}},gZ=Q9;Q9.default=Q9;Z6.registerAtRule(Q9);var J6=_0,X6,Y6,y0=class extends J6{constructor(Z){super(Z);if(this.type="root",!this.nodes)this.nodes=[]}normalize(Z,J,Y){let Q=super.normalize(Z);if(J){if(Y==="prepend")if(this.nodes.length>1)J.raws.before=this.nodes[1].raws.before;else delete J.raws.before;else if(this.first!==J)for(let K of Q)K.raws.before=J.raws.before}return Q}removeChild(Z,J){let Y=this.index(Z);if(!J&&Y===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[Y].raws.before;return super.removeChild(Z)}toResult(Z={}){return new X6(new Y6,this,Z).stringify()}};y0.registerLazyResult=(X)=>{X6=X};y0.registerProcessor=(X)=>{Y6=X};var P1=y0;y0.default=y0;J6.registerRoot(y0);var G1={comma(X){return G1.split(X,[","],!0)},space(X){let Z=[" ",`
24
- `,"\t"];return G1.split(X,Z)},split(X,Z,J){let Y=[],Q="",K=!1,q=0,V=!1,G="",U=!1;for(let W of X){if(U)U=!1;else if(W==="\\")U=!0;else if(V){if(W===G)V=!1}else if(W==='"'||W==="'")V=!0,G=W;else if(W==="(")q+=1;else if(W===")"){if(q>0)q-=1}else if(q===0){if(Z.includes(W))K=!0}if(K){if(Q!=="")Y.push(Q.trim());Q="",K=!1}else Q+=W}if(J||Q!=="")Y.push(Q.trim());return Y}},Q6=G1;G1.default=G1;var K6=_0,kQ=Q6,K9=class extends K6{constructor(Z){super(Z);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return kQ.comma(this.selector)}set selectors(Z){let J=this.selector?this.selector.match(/,\s*/):null,Y=J?J[0]:","+this.raw("between","beforeOpen");this.selector=Z.join(Y)}},mZ=K9;K9.default=K9;K6.registerRule(K9);var vQ=P9,hQ=bQ,yQ=F9,gQ=gZ,mQ=P1,dJ=mZ,iJ={empty:!0,space:!0};function uQ(X){for(let Z=X.length-1;Z>=0;Z--){let J=X[Z],Y=J[3]||J[2];if(Y)return Y}}var cQ=class{constructor(Z){this.input=Z,this.root=new mQ,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Z,start:{column:1,line:1,offset:0}}}atrule(Z){let J=new gQ;if(J.name=Z[1].slice(1),J.name==="")this.unnamedAtrule(J,Z);this.init(J,Z[2]);let Y,Q,K,q=!1,V=!1,G=[],U=[];while(!this.tokenizer.endOfFile()){if(Z=this.tokenizer.nextToken(),Y=Z[0],Y==="("||Y==="[")U.push(Y==="("?")":"]");else if(Y==="{"&&U.length>0)U.push("}");else if(Y===U[U.length-1])U.pop();if(U.length===0)if(Y===";"){J.source.end=this.getPosition(Z[2]),J.source.end.offset++,this.semicolon=!0;break}else if(Y==="{"){V=!0;break}else if(Y==="}"){if(G.length>0){K=G.length-1,Q=G[K];while(Q&&Q[0]==="space")Q=G[--K];if(Q)J.source.end=this.getPosition(Q[3]||Q[2]),J.source.end.offset++}this.end(Z);break}else G.push(Z);else G.push(Z);if(this.tokenizer.endOfFile()){q=!0;break}}if(J.raws.between=this.spacesAndCommentsFromEnd(G),G.length){if(J.raws.afterName=this.spacesAndCommentsFromStart(G),this.raw(J,"params",G),q)Z=G[G.length-1],J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++,this.spaces=J.raws.between,J.raws.between=""}else J.raws.afterName="",J.params="";if(V)J.nodes=[],this.current=J}checkMissedSemicolon(Z){let J=this.colon(Z);if(J===!1)return;let Y=0,Q;for(let K=J-1;K>=0;K--)if(Q=Z[K],Q[0]!=="space"){if(Y+=1,Y===2)break}throw this.input.error("Missed semicolon",Q[0]==="word"?Q[3]+1:Q[2])}colon(Z){let J=0,Y,Q,K;for(let[q,V]of Z.entries()){if(Y=V,Q=Y[0],Q==="(")J+=1;if(Q===")")J-=1;if(J===0&&Q===":")if(!K)this.doubleColon(Y);else if(K[0]==="word"&&K[1]==="progid")continue;else return q;K=Y}return!1}comment(Z){let J=new yQ;this.init(J,Z[2]),J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++;let Y=Z[1].slice(2,-2);if(/^\s*$/.test(Y))J.text="",J.raws.left=Y,J.raws.right="";else{let Q=Y.match(/^(\s*)([^]*\S)(\s*)$/);J.text=Q[2],J.raws.left=Q[1],J.raws.right=Q[3]}}createTokenizer(){this.tokenizer=hQ(this.input)}decl(Z,J){let Y=new vQ;this.init(Y,Z[0][2]);let Q=Z[Z.length-1];if(Q[0]===";")this.semicolon=!0,Z.pop();Y.source.end=this.getPosition(Q[3]||Q[2]||uQ(Z)),Y.source.end.offset++;while(Z[0][0]!=="word"){if(Z.length===1)this.unknownWord(Z);Y.raws.before+=Z.shift()[1]}Y.source.start=this.getPosition(Z[0][2]),Y.prop="";while(Z.length){let U=Z[0][0];if(U===":"||U==="space"||U==="comment")break;Y.prop+=Z.shift()[1]}Y.raws.between="";let K;while(Z.length)if(K=Z.shift(),K[0]===":"){Y.raws.between+=K[1];break}else{if(K[0]==="word"&&/\w/.test(K[1]))this.unknownWord([K]);Y.raws.between+=K[1]}if(Y.prop[0]==="_"||Y.prop[0]==="*")Y.raws.before+=Y.prop[0],Y.prop=Y.prop.slice(1);let q=[],V;while(Z.length){if(V=Z[0][0],V!=="space"&&V!=="comment")break;q.push(Z.shift())}this.precheckMissedSemicolon(Z);for(let U=Z.length-1;U>=0;U--){if(K=Z[U],K[1].toLowerCase()==="!important"){Y.important=!0;let W=this.stringFrom(Z,U);if(W=this.spacesFromEnd(Z)+W,W!==" !important")Y.raws.important=W;break}else if(K[1].toLowerCase()==="important"){let W=Z.slice(0),H="";for(let B=U;B>0;B--){let j=W[B][0];if(H.trim().indexOf("!")===0&&j!=="space")break;H=W.pop()[1]+H}if(H.trim().indexOf("!")===0)Y.important=!0,Y.raws.important=H,Z=W}if(K[0]!=="space"&&K[0]!=="comment")break}if(Z.some((U)=>U[0]!=="space"&&U[0]!=="comment"))Y.raws.between+=q.map((U)=>U[1]).join(""),q=[];if(this.raw(Y,"value",q.concat(Z),J),Y.value.includes(":")&&!J)this.checkMissedSemicolon(Z)}doubleColon(Z){throw this.input.error("Double colon",{offset:Z[2]},{offset:Z[2]+Z[1].length})}emptyRule(Z){let J=new dJ;this.init(J,Z[2]),J.selector="",J.raws.between="",this.current=J}end(Z){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(Z[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(Z)}endFile(){if(this.current.parent)this.unclosedBlock();if(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())}freeSemicolon(Z){if(this.spaces+=Z[1],this.current.nodes){let J=this.current.nodes[this.current.nodes.length-1];if(J&&J.type==="rule"&&!J.raws.ownSemicolon)J.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(Z){let J=this.input.fromOffset(Z);return{column:J.col,line:J.line,offset:Z}}init(Z,J){if(this.current.push(Z),Z.source={input:this.input,start:this.getPosition(J)},Z.raws.before=this.spaces,this.spaces="",Z.type!=="comment")this.semicolon=!1}other(Z){let J=!1,Y=null,Q=!1,K=null,q=[],V=Z[1].startsWith("--"),G=[],U=Z;while(U){if(Y=U[0],G.push(U),Y==="("||Y==="["){if(!K)K=U;q.push(Y==="("?")":"]")}else if(V&&Q&&Y==="{"){if(!K)K=U;q.push("}")}else if(q.length===0){if(Y===";")if(Q){this.decl(G,V);return}else break;else if(Y==="{"){this.rule(G);return}else if(Y==="}"){this.tokenizer.back(G.pop()),J=!0;break}else if(Y===":")Q=!0}else if(Y===q[q.length-1]){if(q.pop(),q.length===0)K=null}U=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())J=!0;if(q.length>0)this.unclosedBracket(K);if(J&&Q){if(!V)while(G.length){if(U=G[G.length-1][0],U!=="space"&&U!=="comment")break;this.tokenizer.back(G.pop())}this.decl(G,V)}else this.unknownWord(G)}parse(){let Z;while(!this.tokenizer.endOfFile())switch(Z=this.tokenizer.nextToken(),Z[0]){case"space":this.spaces+=Z[1];break;case";":this.freeSemicolon(Z);break;case"}":this.end(Z);break;case"comment":this.comment(Z);break;case"at-word":this.atrule(Z);break;case"{":this.emptyRule(Z);break;default:this.other(Z);break}this.endFile()}precheckMissedSemicolon(){}raw(Z,J,Y,Q){let K,q,V=Y.length,G="",U=!0,W,H;for(let B=0;B<V;B+=1)if(K=Y[B],q=K[0],q==="space"&&B===V-1&&!Q)U=!1;else if(q==="comment")if(H=Y[B-1]?Y[B-1][0]:"empty",W=Y[B+1]?Y[B+1][0]:"empty",!iJ[H]&&!iJ[W])if(G.slice(-1)===",")U=!1;else G+=K[1];else U=!1;else G+=K[1];if(!U){let B=Y.reduce((j,P)=>j+P[1],"");Z.raws[J]={raw:B,value:G}}Z[J]=G}rule(Z){Z.pop();let J=new dJ;this.init(J,Z[0][2]),J.raws.between=this.spacesAndCommentsFromEnd(Z),this.raw(J,"selector",Z),this.current=J}spacesAndCommentsFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space"&&J!=="comment")break;Y=Z.pop()[1]+Y}return Y}spacesAndCommentsFromStart(Z){let J,Y="";while(Z.length){if(J=Z[0][0],J!=="space"&&J!=="comment")break;Y+=Z.shift()[1]}return Y}spacesFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space")break;Y=Z.pop()[1]+Y}return Y}stringFrom(Z,J){let Y="";for(let Q=J;Q<Z.length;Q++)Y+=Z[Q][1];return Z.splice(J,Z.length-J),Y}unclosedBlock(){let Z=this.current.source.start;throw this.input.error("Unclosed block",Z.line,Z.column)}unclosedBracket(Z){throw this.input.error("Unclosed bracket",{offset:Z[2]},{offset:Z[2]+1})}unexpectedClose(Z){throw this.input.error("Unexpected }",{offset:Z[2]},{offset:Z[2]+1})}unknownWord(Z){throw this.input.error("Unknown word",{offset:Z[0][2]},{offset:Z[0][2]+Z[0][1].length})}unnamedAtrule(Z,J){throw this.input.error("At-rule without name",{offset:J[2]},{offset:J[2]+J[1].length})}},pQ=cQ,lQ=_0,dQ=pQ,iQ=D9;function q9(X,Z){let J=new iQ(X,Z),Y=new dQ(J);try{Y.parse()}catch(Q){if(Q.name==="CssSyntaxError"&&Z&&Z.from){if(/\.scss$/i.test(Z.from))Q.message+=`
22
+ `;this.css+=J+"/*# sourceMappingURL="+Z+" */"}applyPrevMaps(){for(let Z of this.previous()){let J=this.toUrl(this.path(Z.file)),Y=Z.root||n1(Z.file),Q;if(this.mapOpts.sourcesContent===!1){if(Q=new Z6(Z.text),Q.sourcesContent)Q.sourcesContent=null}else Q=Z.consumer();this.map.applySourceMap(Q,J,this.toUrl(this.path(Y)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let Z;for(let J=this.root.nodes.length-1;J>=0;J--){if(Z=this.root.nodes[J],Z.type!=="comment")continue;if(Z.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(J)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),uQ&&mQ&&this.isMap())return this.generateMap();else{let Z="";return this.stringify(this.root,(J)=>{Z+=J}),[Z]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let Z=this.previous()[0].consumer();Z.file=this.outputFile(),this.map=o1.fromSourceMap(Z,{ignoreInvalidMapping:!0})}else this.map=new o1({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>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new o1({file:this.outputFile(),ignoreInvalidMapping:!0});let Z=1,J=1,Y="<no source>",Q={generated:{column:0,line:0},original:{column:0,line:0},source:""},G,K;this.stringify(this.root,(V,q,W)=>{if(this.css+=V,q&&W!=="end")if(Q.generated.line=Z,Q.generated.column=J-1,q.source&&q.source.start)Q.source=this.sourcePath(q),Q.original.line=q.source.start.line,Q.original.column=q.source.start.column-1,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,this.map.addMapping(Q);if(G=V.match(/\n/g),G)Z+=G.length,K=V.lastIndexOf(`
23
+ `),J=V.length-K;else J+=V.length;if(q&&W!=="start"){let z=q.parent||{raws:{}};if(!(q.type==="decl"||q.type==="atrule"&&!q.nodes)||q!==z.last||z.raws.semicolon)if(q.source&&q.source.end)Q.source=this.sourcePath(q),Q.original.line=q.source.end.line,Q.original.column=q.source.end.column-1,Q.generated.line=Z,Q.generated.column=J-2,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,Q.generated.line=Z,Q.generated.column=J-1,this.map.addMapping(Q)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((Z)=>Z.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let Z=this.mapOpts.annotation;if(typeof Z<"u"&&Z!==!0)return!1;if(this.previous().length)return this.previous().some((J)=>J.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((Z)=>Z.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(Z){if(this.mapOpts.absolute)return Z;if(Z.charCodeAt(0)===60)return Z;if(/^\w+:\/\//.test(Z))return Z;let J=this.memoizedPaths.get(Z);if(J)return J;let Y=this.opts.to?n1(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")Y=n1(X6(Y,this.mapOpts.annotation));let Q=J6(Y,Z);return this.memoizedPaths.set(Z,Q),Q}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((Z)=>{if(Z.source&&Z.source.input.map){let J=Z.source.input.map;if(!this.previousMaps.includes(J))this.previousMaps.push(J)}});else{let Z=new gQ(this.originalCSS,this.opts);if(Z.map)this.previousMaps.push(Z.map)}return this.previousMaps}setSourcesContent(){let Z={};if(this.root)this.root.walk((J)=>{if(J.source){let Y=J.source.input.from;if(Y&&!Z[Y]){Z[Y]=!0;let Q=this.usesFileUrls?this.toFileUrl(Y):this.toUrl(this.path(Y));this.map.setSourceContent(Q,J.source.input.css)}}});else if(this.css){let J=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(J,this.css)}}sourcePath(Z){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(Z.source.input.from);else return this.toUrl(this.path(Z.source.input.from))}toBase64(Z){if(Buffer)return Buffer.from(Z).toString("base64");else return window.btoa(unescape(encodeURIComponent(Z)))}toFileUrl(Z){let J=this.memoizedFileURLs.get(Z);if(J)return J;if(Y8){let Y=Y8(Z).toString();return this.memoizedFileURLs.set(Z,Y),Y}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(Z){let J=this.memoizedURLs.get(Z);if(J)return J;if(Y6==="\\")Z=Z.replace(/\\/g,"/");let Y=encodeURI(Z).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(Z,Y),Y}},Q6=cQ,pQ=F9,WZ=class extends pQ{constructor(Z){super(Z);this.type="comment"}},M9=WZ;WZ.default=WZ;var{isClean:G6,my:K6}=F1,q6=O9,V6=M9,lQ=F9,W6,gZ,mZ,z6;function H6(X){return X.map((Z)=>{if(Z.nodes)Z.nodes=H6(Z.nodes);return delete Z.source,Z})}function B6(X){if(X[G6]=!1,X.proxyOf.nodes)for(let Z of X.proxyOf.nodes)B6(Z)}var j0=class X extends lQ{append(...Z){for(let J of Z){let Y=this.normalize(J,this.last);for(let Q of Y)this.proxyOf.nodes.push(Q)}return this.markDirty(),this}cleanRaws(Z){if(super.cleanRaws(Z),this.nodes)for(let J of this.nodes)J.cleanRaws(Z)}each(Z){if(!this.proxyOf.nodes)return;let J=this.getIterator(),Y,Q;while(this.indexes[J]<this.proxyOf.nodes.length){if(Y=this.indexes[J],Q=Z(this.proxyOf.nodes[Y],Y),Q===!1)break;this.indexes[J]+=1}return delete this.indexes[J],Q}every(Z){return this.nodes.every(Z)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let Z=this.lastEach;return this.indexes[Z]=0,Z}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(!Z[J])return Z[J];else if(J==="each"||typeof J==="string"&&J.startsWith("walk"))return(...Y)=>{return Z[J](...Y.map((Q)=>{if(typeof Q==="function")return(G,K)=>Q(G.toProxy(),K);else return Q}))};else if(J==="every"||J==="some")return(Y)=>{return Z[J]((Q,...G)=>Y(Q.toProxy(),...G))};else if(J==="root")return()=>Z.root().toProxy();else if(J==="nodes")return Z.nodes.map((Y)=>Y.toProxy());else if(J==="first"||J==="last")return Z[J].toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="name"||J==="params"||J==="selector")Z.markDirty();return!0}}}index(Z){if(typeof Z==="number")return Z;if(Z.proxyOf)Z=Z.proxyOf;return this.proxyOf.nodes.indexOf(Z)}insertAfter(Z,J){let Y=this.index(Z),Q=this.normalize(J,this.proxyOf.nodes[Y]).reverse();Y=this.index(Z);for(let K of Q)this.proxyOf.nodes.splice(Y+1,0,K);let G;for(let K in this.indexes)if(G=this.indexes[K],Y<G)this.indexes[K]=G+Q.length;return this.markDirty(),this}insertBefore(Z,J){let Y=this.index(Z),Q=Y===0?"prepend":!1,G=this.normalize(J,this.proxyOf.nodes[Y],Q).reverse();Y=this.index(Z);for(let V of G)this.proxyOf.nodes.splice(Y,0,V);let K;for(let V in this.indexes)if(K=this.indexes[V],Y<=K)this.indexes[V]=K+G.length;return this.markDirty(),this}normalize(Z,J){if(typeof Z==="string")Z=H6(W6(Z).nodes);else if(typeof Z>"u")Z=[];else if(Array.isArray(Z)){Z=Z.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type==="root"&&this.type!=="document"){Z=Z.nodes.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type)Z=[Z];else if(Z.prop){if(typeof Z.value>"u")throw Error("Value field is missed in node creation");else if(typeof Z.value!=="string")Z.value=String(Z.value);Z=[new q6(Z)]}else if(Z.selector)Z=[new gZ(Z)];else if(Z.name)Z=[new mZ(Z)];else if(Z.text)Z=[new V6(Z)];else throw Error("Unknown node type in node creation");return Z.map((Q)=>{if(!Q[K6])X.rebuild(Q);if(Q=Q.proxyOf,Q.parent)Q.parent.removeChild(Q);if(Q[G6])B6(Q);if(typeof Q.raws.before>"u"){if(J&&typeof J.raws.before<"u")Q.raws.before=J.raws.before.replace(/\S/g,"")}return Q.parent=this.proxyOf,Q})}prepend(...Z){Z=Z.reverse();for(let J of Z){let Y=this.normalize(J,this.first,"prepend").reverse();for(let Q of Y)this.proxyOf.nodes.unshift(Q);for(let Q in this.indexes)this.indexes[Q]=this.indexes[Q]+Y.length}return this.markDirty(),this}push(Z){return Z.parent=this,this.proxyOf.nodes.push(Z),this}removeAll(){for(let Z of this.proxyOf.nodes)Z.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(Z){Z=this.index(Z),this.proxyOf.nodes[Z].parent=void 0,this.proxyOf.nodes.splice(Z,1);let J;for(let Y in this.indexes)if(J=this.indexes[Y],J>=Z)this.indexes[Y]=J-1;return this.markDirty(),this}replaceValues(Z,J,Y){if(!Y)Y=J,J={};return this.walkDecls((Q)=>{if(J.props&&!J.props.includes(Q.prop))return;if(J.fast&&!Q.value.includes(J.fast))return;Q.value=Q.value.replace(Z,Y)}),this.markDirty(),this}some(Z){return this.nodes.some(Z)}walk(Z){return this.each((J,Y)=>{let Q;try{Q=Z(J,Y)}catch(G){throw J.addToError(G)}if(Q!==!1&&J.walk)Q=J.walk(Z);return Q})}walkAtRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="atrule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Z.test(Y.name))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Y.name===Z)return J(Y,Q)})}walkComments(Z){return this.walk((J,Y)=>{if(J.type==="comment")return Z(J,Y)})}walkDecls(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="decl")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="decl"&&Z.test(Y.prop))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="decl"&&Y.prop===Z)return J(Y,Q)})}walkRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="rule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="rule"&&Z.test(Y.selector))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="rule"&&Y.selector===Z)return J(Y,Q)})}get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};j0.registerParse=(X)=>{W6=X};j0.registerRule=(X)=>{gZ=X};j0.registerAtRule=(X)=>{mZ=X};j0.registerRoot=(X)=>{z6=X};var E0=j0;j0.default=j0;j0.rebuild=(X)=>{if(X.type==="atrule")Object.setPrototypeOf(X,mZ.prototype);else if(X.type==="rule")Object.setPrototypeOf(X,gZ.prototype);else if(X.type==="decl")Object.setPrototypeOf(X,q6.prototype);else if(X.type==="comment")Object.setPrototypeOf(X,V6.prototype);else if(X.type==="root")Object.setPrototypeOf(X,z6.prototype);if(X[K6]=!0,X.nodes)X.nodes.forEach((Z)=>{j0.rebuild(Z)})};var dQ=E0,j6,U6,W1=class extends dQ{constructor(Z){super({type:"document",...Z});if(!this.nodes)this.nodes=[]}toResult(Z={}){return new j6(new U6,this,Z).stringify()}};W1.registerLazyResult=(X)=>{j6=X};W1.registerProcessor=(X)=>{U6=X};var uZ=W1;W1.default=W1;var Q8={},L6=function(Z){if(Q8[Z])return;if(Q8[Z]=!0,typeof console<"u"&&console.warn)console.warn(Z)},zZ=class{constructor(Z,J={}){if(this.type="warning",this.text=Z,J.node&&J.node.source){let Y=J.node.rangeBy(J);this.line=Y.start.line,this.column=Y.start.column,this.endLine=Y.end.line,this.endColumn=Y.end.column}for(let Y in J)this[Y]=J[Y]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}},D6=zZ;zZ.default=zZ;var iQ=D6,HZ=class{constructor(Z,J,Y){this.processor=Z,this.messages=[],this.root=J,this.opts=Y,this.css=void 0,this.map=void 0}toString(){return this.css}warn(Z,J={}){if(!J.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)J.plugin=this.lastPlugin.postcssPlugin}let Y=new iQ(Z,J);return this.messages.push(Y),Y}warnings(){return this.messages.filter((Z)=>Z.type==="warning")}get content(){return this.css}},cZ=HZ;HZ.default=HZ;var l9=39,G8=34,S1=92,K8=47,x1=10,J1=32,b1=12,f1=9,k1=13,sQ=91,aQ=93,rQ=40,oQ=41,nQ=123,tQ=125,eQ=59,Z7=42,J7=58,X7=64,v1=/[\t\n\f\r "#'()/;[\\\]{}]/g,y1=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Y7=/.[\r\n"'(/\\]/,q8=/[\da-f]/i,Q7=function(Z,J={}){let Y=Z.css.valueOf(),Q=J.ignoreErrors,G,K,V,q,W,z,H,j,U,D,L=Y.length,B=0,A=[],O=[];function P(){return B}function M(v){throw Z.error("Unclosed "+v,B)}function T(){return O.length===0&&B>=L}function x(v){if(O.length)return O.pop();if(B>=L)return;let c=v?v.ignoreUnclosed:!1;switch(G=Y.charCodeAt(B),G){case x1:case J1:case f1:case k1:case b1:{K=B;do K+=1,G=Y.charCodeAt(K);while(G===J1||G===x1||G===f1||G===k1||G===b1);D=["space",Y.slice(B,K)],B=K-1;break}case sQ:case aQ:case nQ:case tQ:case J7:case eQ:case oQ:{let i=String.fromCharCode(G);D=[i,i,B];break}case rQ:{if(j=A.length?A.pop()[1]:"",U=Y.charCodeAt(B+1),j==="url"&&U!==l9&&U!==G8&&U!==J1&&U!==x1&&U!==f1&&U!==b1&&U!==k1){K=B;do{if(z=!1,K=Y.indexOf(")",K+1),K===-1)if(Q||c){K=B;break}else M("bracket");H=K;while(Y.charCodeAt(H-1)===S1)H-=1,z=!z}while(z);D=["brackets",Y.slice(B,K+1),B,K],B=K}else if(K=Y.indexOf(")",B+1),q=Y.slice(B,K+1),K===-1||Y7.test(q))D=["(","(",B];else D=["brackets",q,B,K],B=K;break}case l9:case G8:{V=G===l9?"'":'"',K=B;do{if(z=!1,K=Y.indexOf(V,K+1),K===-1)if(Q||c){K=B+1;break}else M("string");H=K;while(Y.charCodeAt(H-1)===S1)H-=1,z=!z}while(z);D=["string",Y.slice(B,K+1),B,K],B=K;break}case X7:{if(v1.lastIndex=B+1,v1.test(Y),v1.lastIndex===0)K=Y.length-1;else K=v1.lastIndex-2;D=["at-word",Y.slice(B,K+1),B,K],B=K;break}case S1:{K=B,W=!0;while(Y.charCodeAt(K+1)===S1)K+=1,W=!W;if(G=Y.charCodeAt(K+1),W&&G!==K8&&G!==J1&&G!==x1&&G!==f1&&G!==k1&&G!==b1){if(K+=1,q8.test(Y.charAt(K))){while(q8.test(Y.charAt(K+1)))K+=1;if(Y.charCodeAt(K+1)===J1)K+=1}}D=["word",Y.slice(B,K+1),B,K],B=K;break}default:{if(G===K8&&Y.charCodeAt(B+1)===Z7){if(K=Y.indexOf("*/",B+2)+1,K===0)if(Q||c)K=Y.length;else M("comment");D=["comment",Y.slice(B,K+1),B,K],B=K}else{if(y1.lastIndex=B+1,y1.test(Y),y1.lastIndex===0)K=Y.length-1;else K=y1.lastIndex-2;D=["word",Y.slice(B,K+1),B,K],A.push(D),B=K}break}}return B++,D}function p(v){O.push(v)}return{back:p,endOfFile:T,nextToken:x,position:P}},P6=E0,q9=class extends P6{constructor(Z){super(Z);this.type="atrule"}append(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...Z)}prepend(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...Z)}},pZ=q9;q9.default=q9;P6.registerAtRule(q9);var F6=E0,O6,A6,u0=class extends F6{constructor(Z){super(Z);if(this.type="root",!this.nodes)this.nodes=[]}normalize(Z,J,Y){let Q=super.normalize(Z);if(J){if(Y==="prepend")if(this.nodes.length>1)J.raws.before=this.nodes[1].raws.before;else delete J.raws.before;else if(this.first!==J)for(let G of Q)G.raws.before=J.raws.before}return Q}removeChild(Z,J){let Y=this.index(Z);if(!J&&Y===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[Y].raws.before;return super.removeChild(Z)}toResult(Z={}){return new O6(new A6,this,Z).stringify()}};u0.registerLazyResult=(X)=>{O6=X};u0.registerProcessor=(X)=>{A6=X};var O1=u0;u0.default=u0;F6.registerRoot(u0);var z1={comma(X){return z1.split(X,[","],!0)},space(X){let Z=[" ",`
24
+ `,"\t"];return z1.split(X,Z)},split(X,Z,J){let Y=[],Q="",G=!1,K=0,V=!1,q="",W=!1;for(let z of X){if(W)W=!1;else if(z==="\\")W=!0;else if(V){if(z===q)V=!1}else if(z==='"'||z==="'")V=!0,q=z;else if(z==="(")K+=1;else if(z===")"){if(K>0)K-=1}else if(K===0){if(Z.includes(z))G=!0}if(G){if(Q!=="")Y.push(Q.trim());Q="",G=!1}else Q+=z}if(J||Q!=="")Y.push(Q.trim());return Y}},M6=z1;z1.default=z1;var w6=E0,G7=M6,V9=class extends w6{constructor(Z){super(Z);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return G7.comma(this.selector)}set selectors(Z){let J=this.selector?this.selector.match(/,\s*/):null,Y=J?J[0]:","+this.raw("between","beforeOpen");this.selector=Z.join(Y)}},lZ=V9;V9.default=V9;w6.registerRule(V9);var K7=O9,q7=Q7,V7=M9,W7=pZ,z7=O1,V8=lZ,W8={empty:!0,space:!0};function H7(X){for(let Z=X.length-1;Z>=0;Z--){let J=X[Z],Y=J[3]||J[2];if(Y)return Y}}var B7=class{constructor(Z){this.input=Z,this.root=new z7,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Z,start:{column:1,line:1,offset:0}}}atrule(Z){let J=new W7;if(J.name=Z[1].slice(1),J.name==="")this.unnamedAtrule(J,Z);this.init(J,Z[2]);let Y,Q,G,K=!1,V=!1,q=[],W=[];while(!this.tokenizer.endOfFile()){if(Z=this.tokenizer.nextToken(),Y=Z[0],Y==="("||Y==="[")W.push(Y==="("?")":"]");else if(Y==="{"&&W.length>0)W.push("}");else if(Y===W[W.length-1])W.pop();if(W.length===0)if(Y===";"){J.source.end=this.getPosition(Z[2]),J.source.end.offset++,this.semicolon=!0;break}else if(Y==="{"){V=!0;break}else if(Y==="}"){if(q.length>0){G=q.length-1,Q=q[G];while(Q&&Q[0]==="space")Q=q[--G];if(Q)J.source.end=this.getPosition(Q[3]||Q[2]),J.source.end.offset++}this.end(Z);break}else q.push(Z);else q.push(Z);if(this.tokenizer.endOfFile()){K=!0;break}}if(J.raws.between=this.spacesAndCommentsFromEnd(q),q.length){if(J.raws.afterName=this.spacesAndCommentsFromStart(q),this.raw(J,"params",q),K)Z=q[q.length-1],J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++,this.spaces=J.raws.between,J.raws.between=""}else J.raws.afterName="",J.params="";if(V)J.nodes=[],this.current=J}checkMissedSemicolon(Z){let J=this.colon(Z);if(J===!1)return;let Y=0,Q;for(let G=J-1;G>=0;G--)if(Q=Z[G],Q[0]!=="space"){if(Y+=1,Y===2)break}throw this.input.error("Missed semicolon",Q[0]==="word"?Q[3]+1:Q[2])}colon(Z){let J=0,Y,Q,G;for(let[K,V]of Z.entries()){if(Y=V,Q=Y[0],Q==="(")J+=1;if(Q===")")J-=1;if(J===0&&Q===":")if(!G)this.doubleColon(Y);else if(G[0]==="word"&&G[1]==="progid")continue;else return K;G=Y}return!1}comment(Z){let J=new V7;this.init(J,Z[2]),J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++;let Y=Z[1].slice(2,-2);if(/^\s*$/.test(Y))J.text="",J.raws.left=Y,J.raws.right="";else{let Q=Y.match(/^(\s*)([^]*\S)(\s*)$/);J.text=Q[2],J.raws.left=Q[1],J.raws.right=Q[3]}}createTokenizer(){this.tokenizer=q7(this.input)}decl(Z,J){let Y=new K7;this.init(Y,Z[0][2]);let Q=Z[Z.length-1];if(Q[0]===";")this.semicolon=!0,Z.pop();Y.source.end=this.getPosition(Q[3]||Q[2]||H7(Z)),Y.source.end.offset++;while(Z[0][0]!=="word"){if(Z.length===1)this.unknownWord(Z);Y.raws.before+=Z.shift()[1]}Y.source.start=this.getPosition(Z[0][2]),Y.prop="";while(Z.length){let W=Z[0][0];if(W===":"||W==="space"||W==="comment")break;Y.prop+=Z.shift()[1]}Y.raws.between="";let G;while(Z.length)if(G=Z.shift(),G[0]===":"){Y.raws.between+=G[1];break}else{if(G[0]==="word"&&/\w/.test(G[1]))this.unknownWord([G]);Y.raws.between+=G[1]}if(Y.prop[0]==="_"||Y.prop[0]==="*")Y.raws.before+=Y.prop[0],Y.prop=Y.prop.slice(1);let K=[],V;while(Z.length){if(V=Z[0][0],V!=="space"&&V!=="comment")break;K.push(Z.shift())}this.precheckMissedSemicolon(Z);for(let W=Z.length-1;W>=0;W--){if(G=Z[W],G[1].toLowerCase()==="!important"){Y.important=!0;let z=this.stringFrom(Z,W);if(z=this.spacesFromEnd(Z)+z,z!==" !important")Y.raws.important=z;break}else if(G[1].toLowerCase()==="important"){let z=Z.slice(0),H="";for(let j=W;j>0;j--){let U=z[j][0];if(H.trim().indexOf("!")===0&&U!=="space")break;H=z.pop()[1]+H}if(H.trim().indexOf("!")===0)Y.important=!0,Y.raws.important=H,Z=z}if(G[0]!=="space"&&G[0]!=="comment")break}if(Z.some((W)=>W[0]!=="space"&&W[0]!=="comment"))Y.raws.between+=K.map((W)=>W[1]).join(""),K=[];if(this.raw(Y,"value",K.concat(Z),J),Y.value.includes(":")&&!J)this.checkMissedSemicolon(Z)}doubleColon(Z){throw this.input.error("Double colon",{offset:Z[2]},{offset:Z[2]+Z[1].length})}emptyRule(Z){let J=new V8;this.init(J,Z[2]),J.selector="",J.raws.between="",this.current=J}end(Z){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(Z[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(Z)}endFile(){if(this.current.parent)this.unclosedBlock();if(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())}freeSemicolon(Z){if(this.spaces+=Z[1],this.current.nodes){let J=this.current.nodes[this.current.nodes.length-1];if(J&&J.type==="rule"&&!J.raws.ownSemicolon)J.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(Z){let J=this.input.fromOffset(Z);return{column:J.col,line:J.line,offset:Z}}init(Z,J){if(this.current.push(Z),Z.source={input:this.input,start:this.getPosition(J)},Z.raws.before=this.spaces,this.spaces="",Z.type!=="comment")this.semicolon=!1}other(Z){let J=!1,Y=null,Q=!1,G=null,K=[],V=Z[1].startsWith("--"),q=[],W=Z;while(W){if(Y=W[0],q.push(W),Y==="("||Y==="["){if(!G)G=W;K.push(Y==="("?")":"]")}else if(V&&Q&&Y==="{"){if(!G)G=W;K.push("}")}else if(K.length===0){if(Y===";")if(Q){this.decl(q,V);return}else break;else if(Y==="{"){this.rule(q);return}else if(Y==="}"){this.tokenizer.back(q.pop()),J=!0;break}else if(Y===":")Q=!0}else if(Y===K[K.length-1]){if(K.pop(),K.length===0)G=null}W=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())J=!0;if(K.length>0)this.unclosedBracket(G);if(J&&Q){if(!V)while(q.length){if(W=q[q.length-1][0],W!=="space"&&W!=="comment")break;this.tokenizer.back(q.pop())}this.decl(q,V)}else this.unknownWord(q)}parse(){let Z;while(!this.tokenizer.endOfFile())switch(Z=this.tokenizer.nextToken(),Z[0]){case"space":this.spaces+=Z[1];break;case";":this.freeSemicolon(Z);break;case"}":this.end(Z);break;case"comment":this.comment(Z);break;case"at-word":this.atrule(Z);break;case"{":this.emptyRule(Z);break;default:this.other(Z);break}this.endFile()}precheckMissedSemicolon(){}raw(Z,J,Y,Q){let G,K,V=Y.length,q="",W=!0,z,H;for(let j=0;j<V;j+=1)if(G=Y[j],K=G[0],K==="space"&&j===V-1&&!Q)W=!1;else if(K==="comment")if(H=Y[j-1]?Y[j-1][0]:"empty",z=Y[j+1]?Y[j+1][0]:"empty",!W8[H]&&!W8[z])if(q.slice(-1)===",")W=!1;else q+=G[1];else W=!1;else q+=G[1];if(!W){let j=Y.reduce((U,D)=>U+D[1],"");Z.raws[J]={raw:j,value:q}}Z[J]=q}rule(Z){Z.pop();let J=new V8;this.init(J,Z[0][2]),J.raws.between=this.spacesAndCommentsFromEnd(Z),this.raw(J,"selector",Z),this.current=J}spacesAndCommentsFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space"&&J!=="comment")break;Y=Z.pop()[1]+Y}return Y}spacesAndCommentsFromStart(Z){let J,Y="";while(Z.length){if(J=Z[0][0],J!=="space"&&J!=="comment")break;Y+=Z.shift()[1]}return Y}spacesFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space")break;Y=Z.pop()[1]+Y}return Y}stringFrom(Z,J){let Y="";for(let Q=J;Q<Z.length;Q++)Y+=Z[Q][1];return Z.splice(J,Z.length-J),Y}unclosedBlock(){let Z=this.current.source.start;throw this.input.error("Unclosed block",Z.line,Z.column)}unclosedBracket(Z){throw this.input.error("Unclosed bracket",{offset:Z[2]},{offset:Z[2]+1})}unexpectedClose(Z){throw this.input.error("Unexpected }",{offset:Z[2]},{offset:Z[2]+1})}unknownWord(Z){throw this.input.error("Unknown word",{offset:Z[0][2]},{offset:Z[0][2]+Z[0][1].length})}unnamedAtrule(Z,J){throw this.input.error("At-rule without name",{offset:J[2]},{offset:J[2]+J[1].length})}},j7=B7,U7=E0,L7=j7,D7=A9;function W9(X,Z){let J=new D7(X,Z),Y=new L7(J);try{Y.parse()}catch(Q){if(Q.name==="CssSyntaxError"&&Z&&Z.from){if(/\.scss$/i.test(Z.from))Q.message+=`
25
25
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`;else if(/\.sass/i.test(Z.from))Q.message+=`
26
26
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`;else if(/\.less$/i.test(Z.from))Q.message+=`
27
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw Q}return Y.root}var uZ=q9;q9.default=q9;lQ.registerParse(q9);var{isClean:G0,my:sQ}=L1,aQ=uX,rQ=j9,oQ=_0,nQ=hZ,tQ=tX,sJ=yZ,eQ=uZ,Z7=P1,J7={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},X7={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},Y7={Once:!0,postcssPlugin:!0,prepare:!0},g0=0;function e0(X){return typeof X==="object"&&typeof X.then==="function"}function q6(X){let Z=!1,J=J7[X.type];if(X.type==="decl")Z=X.prop.toLowerCase();else if(X.type==="atrule")Z=X.name.toLowerCase();if(Z&&X.append)return[J,J+"-"+Z,g0,J+"Exit",J+"Exit-"+Z];else if(Z)return[J,J+"-"+Z,J+"Exit",J+"Exit-"+Z];else if(X.append)return[J,g0,J+"Exit"];else return[J,J+"Exit"]}function aJ(X){let Z;if(X.type==="document")Z=["Document",g0,"DocumentExit"];else if(X.type==="root")Z=["Root",g0,"RootExit"];else Z=q6(X);return{eventIndex:0,events:Z,iterator:0,node:X,visitorIndex:0,visitors:[]}}function VZ(X){if(X[G0]=!1,X.nodes)X.nodes.forEach((Z)=>VZ(Z));return X}var UZ={},m0=class X{constructor(Z,J,Y){this.stringified=!1,this.processed=!1;let Q;if(typeof J==="object"&&J!==null&&(J.type==="root"||J.type==="document"))Q=VZ(J);else if(J instanceof X||J instanceof sJ){if(Q=VZ(J.root),J.map){if(typeof Y.map>"u")Y.map={};if(!Y.map.inline)Y.map.inline=!1;Y.map.prev=J.map}}else{let K=eQ;if(Y.syntax)K=Y.syntax.parse;if(Y.parser)K=Y.parser;if(K.parse)K=K.parse;try{Q=K(J,Y)}catch(q){this.processed=!0,this.error=q}if(Q&&!Q[sQ])oQ.rebuild(Q)}this.result=new sJ(Z,Q,Y),this.helpers={...UZ,postcss:UZ,result:this.result},this.plugins=this.processor.plugins.map((K)=>{if(typeof K==="object"&&K.prepare)return{...K,...K.prepare(this.result)};else return K})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(Z,J){let Y=this.result.lastPlugin;try{if(J)J.addToError(Z);if(this.error=Z,Z.name==="CssSyntaxError"&&!Z.plugin)Z.plugin=Y.postcssPlugin,Z.setMessage();else if(Y.postcssVersion){let{postcssPlugin:Q,postcssVersion:K}=Y,q=this.result.processor.version,V=K.split("."),G=q.split(".");if(V[0]!==G[0]||parseInt(V[1])>parseInt(G[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+q+", but "+Q+" uses "+K+". Perhaps this is the source of the error below.")}}catch(Q){if(console&&console.error)console.error(Q)}return Z}prepareVisitors(){this.listeners={};let Z=(J,Y,Q)=>{if(!this.listeners[Y])this.listeners[Y]=[];this.listeners[Y].push([J,Q])};for(let J of this.plugins)if(typeof J==="object")for(let Y in J){if(!X7[Y]&&/^[A-Z]/.test(Y))throw Error(`Unknown event ${Y} in ${J.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Y7[Y]){if(typeof J[Y]==="object")for(let Q in J[Y])if(Q==="*")Z(J,Y,J[Y][Q]);else Z(J,Y+"-"+Q.toLowerCase(),J[Y][Q]);else if(typeof J[Y]==="function")Z(J,Y,J[Y])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let Z=0;Z<this.plugins.length;Z++){let J=this.plugins[Z],Y=this.runOnRoot(J);if(e0(Y))try{await Y}catch(Q){throw this.handleError(Q)}}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[G0]){Z[G0]=!0;let J=[aJ(Z)];while(J.length>0){let Y=this.visitTick(J);if(e0(Y))try{await Y}catch(Q){let K=J[J.length-1].node;throw this.handleError(Q,K)}}}if(this.listeners.OnceExit)for(let[J,Y]of this.listeners.OnceExit){this.result.lastPlugin=J;try{if(Z.type==="document"){let Q=Z.nodes.map((K)=>Y(K,this.helpers));await Promise.all(Q)}else await Y(Z,this.helpers)}catch(Q){throw this.handleError(Q)}}}return this.processed=!0,this.stringify()}runOnRoot(Z){this.result.lastPlugin=Z;try{if(typeof Z==="object"&&Z.Once){if(this.result.root.type==="document"){let J=this.result.root.nodes.map((Y)=>Z.Once(Y,this.helpers));if(e0(J[0]))return Promise.all(J);return J}return Z.Once(this.result.root,this.helpers)}else if(typeof Z==="function")return Z(this.result.root,this.result)}catch(J){throw this.handleError(J)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let Z=this.result.opts,J=rQ;if(Z.syntax)J=Z.syntax.stringify;if(Z.stringifier)J=Z.stringifier;if(J.stringify)J=J.stringify;let Q=new aQ(J,this.result.root,this.result.opts).generate();return this.result.css=Q[0],this.result.map=Q[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let Z of this.plugins){let J=this.runOnRoot(Z);if(e0(J))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[G0])Z[G0]=!0,this.walkSync(Z);if(this.listeners.OnceExit)if(Z.type==="document")for(let J of Z.nodes)this.visitSync(this.listeners.OnceExit,J);else this.visitSync(this.listeners.OnceExit,Z)}return this.result}then(Z,J){if(!("from"in this.opts))tQ("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.");return this.async().then(Z,J)}toString(){return this.css}visitSync(Z,J){for(let[Y,Q]of Z){this.result.lastPlugin=Y;let K;try{K=Q(J,this.helpers)}catch(q){throw this.handleError(q,J.proxyOf)}if(J.type!=="root"&&J.type!=="document"&&!J.parent)return!0;if(e0(K))throw this.getAsyncError()}}visitTick(Z){let J=Z[Z.length-1],{node:Y,visitors:Q}=J;if(Y.type!=="root"&&Y.type!=="document"&&!Y.parent){Z.pop();return}if(Q.length>0&&J.visitorIndex<Q.length){let[q,V]=Q[J.visitorIndex];if(J.visitorIndex+=1,J.visitorIndex===Q.length)J.visitors=[],J.visitorIndex=0;this.result.lastPlugin=q;try{return V(Y.toProxy(),this.helpers)}catch(G){throw this.handleError(G,Y)}}if(J.iterator!==0){let q=J.iterator,V;while(V=Y.nodes[Y.indexes[q]])if(Y.indexes[q]+=1,!V[G0]){V[G0]=!0,Z.push(aJ(V));return}J.iterator=0,delete Y.indexes[q]}let K=J.events;while(J.eventIndex<K.length){let q=K[J.eventIndex];if(J.eventIndex+=1,q===g0){if(Y.nodes&&Y.nodes.length)Y[G0]=!0,J.iterator=Y.getIterator();return}else if(this.listeners[q]){J.visitors=this.listeners[q];return}}Z.pop()}walkSync(Z){Z[G0]=!0;let J=q6(Z);for(let Y of J)if(Y===g0){if(Z.nodes)Z.each((Q)=>{if(!Q[G0])this.walkSync(Q)})}else{let Q=this.listeners[Y];if(Q){if(this.visitSync(Q,Z.toProxy()))return}}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};m0.registerPostcss=(X)=>{UZ=X};var G6=m0;m0.default=m0;Z7.registerLazyResult(m0);nQ.registerLazyResult(m0);var Q7=uX,K7=j9,q7=tX,G7=uZ,V7=yZ,WZ=class{constructor(Z,J,Y){J=J.toString(),this.stringified=!1,this._processor=Z,this._css=J,this._opts=Y,this._map=void 0;let Q,K=K7;this.result=new V7(this._processor,Q,this._opts),this.result.css=J;let q=this;Object.defineProperty(this.result,"root",{get(){return q.root}});let V=new Q7(K,Q,this._opts,J);if(V.isMap()){let[G,U]=V.generate();if(G)this.result.css=G;if(U)this.result.map=U}else V.clearAnnotation(),this.result.css=V.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}sync(){if(this.error)throw this.error;return this.result}then(Z,J){if(!("from"in this._opts))q7("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.");return this.async().then(Z,J)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let Z,J=G7;try{Z=J(this._css,this._opts)}catch(Y){this.error=Y}if(this.error)throw this.error;else return this._root=Z,Z}get[Symbol.toStringTag](){return"NoWorkResult"}},U7=WZ;WZ.default=WZ;var W7=U7,H7=G6,z7=hZ,B7=P1,V1=class{constructor(Z=[]){this.version="8.4.38",this.plugins=this.normalize(Z)}normalize(Z){let J=[];for(let Y of Z){if(Y.postcss===!0)Y=Y();else if(Y.postcss)Y=Y.postcss;if(typeof Y==="object"&&Array.isArray(Y.plugins))J=J.concat(Y.plugins);else if(typeof Y==="object"&&Y.postcssPlugin)J.push(Y);else if(typeof Y==="function")J.push(Y);else if(typeof Y==="object"&&(Y.parse||Y.stringify))throw 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 Error(Y+" is not a PostCSS plugin")}return J}process(Z,J={}){if(!this.plugins.length&&!J.parser&&!J.stringifier&&!J.syntax)return new W7(this,Z,J);else return new H7(this,Z,J)}use(Z){return this.plugins=this.plugins.concat(this.normalize([Z])),this}},j7=V1;V1.default=V1;B7.registerProcessor(V1);z7.registerProcessor(V1);var L7=P9,P7=vX,D7=F9,F7=gZ,A7=D9,O7=P1,M7=mZ;function U1(X,Z){if(Array.isArray(X))return X.map((Q)=>U1(Q));let{inputs:J,...Y}=X;if(J){Z=[];for(let Q of J){let K={...Q,__proto__:A7.prototype};if(K.map)K.map={...K.map,__proto__:P7.prototype};Z.push(K)}}if(Y.nodes)Y.nodes=X.nodes.map((Q)=>U1(Q,Z));if(Y.source){let{inputId:Q,...K}=Y.source;if(Y.source=K,Q!=null)Y.source.input=Z[Q]}if(Y.type==="root")return new O7(Y);else if(Y.type==="decl")return new L7(Y);else if(Y.type==="rule")return new M7(Y);else if(Y.type==="comment")return new D7(Y);else if(Y.type==="atrule")return new F7(Y);else throw Error("Unknown node type: "+X.type)}var w7=U1;U1.default=U1;var _7=bZ,V6=P9,C7=G6,R7=_0,cZ=j7,E7=j9,I7=w7,U6=hZ,$7=eX,W6=F9,H6=gZ,N7=yZ,T7=D9,S7=uZ,f7=Q6,z6=mZ,B6=P1,x7=L9;function $(...X){if(X.length===1&&Array.isArray(X[0]))X=X[0];return new cZ(X)}$.plugin=function(Z,J){let Y=!1;function Q(...q){if(console&&console.warn&&!Y){if(Y=!0,console.warn(Z+`: postcss.plugin was deprecated. Migration guide:
27
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw Q}return Y.root}var dZ=W9;W9.default=W9;U7.registerParse(W9);var{isClean:V0,my:P7}=F1,F7=Q6,O7=P9,A7=E0,M7=uZ,w7=L6,z8=cZ,_7=dZ,C7=O1,R7={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},E7={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},$7={Once:!0,postcssPlugin:!0,prepare:!0},c0=0;function X1(X){return typeof X==="object"&&typeof X.then==="function"}function _6(X){let Z=!1,J=R7[X.type];if(X.type==="decl")Z=X.prop.toLowerCase();else if(X.type==="atrule")Z=X.name.toLowerCase();if(Z&&X.append)return[J,J+"-"+Z,c0,J+"Exit",J+"Exit-"+Z];else if(Z)return[J,J+"-"+Z,J+"Exit",J+"Exit-"+Z];else if(X.append)return[J,c0,J+"Exit"];else return[J,J+"Exit"]}function H8(X){let Z;if(X.type==="document")Z=["Document",c0,"DocumentExit"];else if(X.type==="root")Z=["Root",c0,"RootExit"];else Z=_6(X);return{eventIndex:0,events:Z,iterator:0,node:X,visitorIndex:0,visitors:[]}}function BZ(X){if(X[V0]=!1,X.nodes)X.nodes.forEach((Z)=>BZ(Z));return X}var jZ={},p0=class X{constructor(Z,J,Y){this.stringified=!1,this.processed=!1;let Q;if(typeof J==="object"&&J!==null&&(J.type==="root"||J.type==="document"))Q=BZ(J);else if(J instanceof X||J instanceof z8){if(Q=BZ(J.root),J.map){if(typeof Y.map>"u")Y.map={};if(!Y.map.inline)Y.map.inline=!1;Y.map.prev=J.map}}else{let G=_7;if(Y.syntax)G=Y.syntax.parse;if(Y.parser)G=Y.parser;if(G.parse)G=G.parse;try{Q=G(J,Y)}catch(K){this.processed=!0,this.error=K}if(Q&&!Q[P7])A7.rebuild(Q)}this.result=new z8(Z,Q,Y),this.helpers={...jZ,postcss:jZ,result:this.result},this.plugins=this.processor.plugins.map((G)=>{if(typeof G==="object"&&G.prepare)return{...G,...G.prepare(this.result)};else return G})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(Z,J){let Y=this.result.lastPlugin;try{if(J)J.addToError(Z);if(this.error=Z,Z.name==="CssSyntaxError"&&!Z.plugin)Z.plugin=Y.postcssPlugin,Z.setMessage();else if(Y.postcssVersion){let{postcssPlugin:Q,postcssVersion:G}=Y,K=this.result.processor.version,V=G.split("."),q=K.split(".");if(V[0]!==q[0]||parseInt(V[1])>parseInt(q[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+K+", but "+Q+" uses "+G+". Perhaps this is the source of the error below.")}}catch(Q){if(console&&console.error)console.error(Q)}return Z}prepareVisitors(){this.listeners={};let Z=(J,Y,Q)=>{if(!this.listeners[Y])this.listeners[Y]=[];this.listeners[Y].push([J,Q])};for(let J of this.plugins)if(typeof J==="object")for(let Y in J){if(!E7[Y]&&/^[A-Z]/.test(Y))throw Error(`Unknown event ${Y} in ${J.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!$7[Y]){if(typeof J[Y]==="object")for(let Q in J[Y])if(Q==="*")Z(J,Y,J[Y][Q]);else Z(J,Y+"-"+Q.toLowerCase(),J[Y][Q]);else if(typeof J[Y]==="function")Z(J,Y,J[Y])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let Z=0;Z<this.plugins.length;Z++){let J=this.plugins[Z],Y=this.runOnRoot(J);if(X1(Y))try{await Y}catch(Q){throw this.handleError(Q)}}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[V0]){Z[V0]=!0;let J=[H8(Z)];while(J.length>0){let Y=this.visitTick(J);if(X1(Y))try{await Y}catch(Q){let G=J[J.length-1].node;throw this.handleError(Q,G)}}}if(this.listeners.OnceExit)for(let[J,Y]of this.listeners.OnceExit){this.result.lastPlugin=J;try{if(Z.type==="document"){let Q=Z.nodes.map((G)=>Y(G,this.helpers));await Promise.all(Q)}else await Y(Z,this.helpers)}catch(Q){throw this.handleError(Q)}}}return this.processed=!0,this.stringify()}runOnRoot(Z){this.result.lastPlugin=Z;try{if(typeof Z==="object"&&Z.Once){if(this.result.root.type==="document"){let J=this.result.root.nodes.map((Y)=>Z.Once(Y,this.helpers));if(X1(J[0]))return Promise.all(J);return J}return Z.Once(this.result.root,this.helpers)}else if(typeof Z==="function")return Z(this.result.root,this.result)}catch(J){throw this.handleError(J)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let Z=this.result.opts,J=O7;if(Z.syntax)J=Z.syntax.stringify;if(Z.stringifier)J=Z.stringifier;if(J.stringify)J=J.stringify;let Q=new F7(J,this.result.root,this.result.opts).generate();return this.result.css=Q[0],this.result.map=Q[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let Z of this.plugins){let J=this.runOnRoot(Z);if(X1(J))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[V0])Z[V0]=!0,this.walkSync(Z);if(this.listeners.OnceExit)if(Z.type==="document")for(let J of Z.nodes)this.visitSync(this.listeners.OnceExit,J);else this.visitSync(this.listeners.OnceExit,Z)}return this.result}then(Z,J){if(!("from"in this.opts))w7("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.");return this.async().then(Z,J)}toString(){return this.css}visitSync(Z,J){for(let[Y,Q]of Z){this.result.lastPlugin=Y;let G;try{G=Q(J,this.helpers)}catch(K){throw this.handleError(K,J.proxyOf)}if(J.type!=="root"&&J.type!=="document"&&!J.parent)return!0;if(X1(G))throw this.getAsyncError()}}visitTick(Z){let J=Z[Z.length-1],{node:Y,visitors:Q}=J;if(Y.type!=="root"&&Y.type!=="document"&&!Y.parent){Z.pop();return}if(Q.length>0&&J.visitorIndex<Q.length){let[K,V]=Q[J.visitorIndex];if(J.visitorIndex+=1,J.visitorIndex===Q.length)J.visitors=[],J.visitorIndex=0;this.result.lastPlugin=K;try{return V(Y.toProxy(),this.helpers)}catch(q){throw this.handleError(q,Y)}}if(J.iterator!==0){let K=J.iterator,V;while(V=Y.nodes[Y.indexes[K]])if(Y.indexes[K]+=1,!V[V0]){V[V0]=!0,Z.push(H8(V));return}J.iterator=0,delete Y.indexes[K]}let G=J.events;while(J.eventIndex<G.length){let K=G[J.eventIndex];if(J.eventIndex+=1,K===c0){if(Y.nodes&&Y.nodes.length)Y[V0]=!0,J.iterator=Y.getIterator();return}else if(this.listeners[K]){J.visitors=this.listeners[K];return}}Z.pop()}walkSync(Z){Z[V0]=!0;let J=_6(Z);for(let Y of J)if(Y===c0){if(Z.nodes)Z.each((Q)=>{if(!Q[V0])this.walkSync(Q)})}else{let Q=this.listeners[Y];if(Q){if(this.visitSync(Q,Z.toProxy()))return}}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};p0.registerPostcss=(X)=>{jZ=X};var C6=p0;p0.default=p0;C7.registerLazyResult(p0);M7.registerLazyResult(p0);var N7=Q6,I7=P9,T7=L6,S7=dZ,x7=cZ,UZ=class{constructor(Z,J,Y){J=J.toString(),this.stringified=!1,this._processor=Z,this._css=J,this._opts=Y,this._map=void 0;let Q,G=I7;this.result=new x7(this._processor,Q,this._opts),this.result.css=J;let K=this;Object.defineProperty(this.result,"root",{get(){return K.root}});let V=new N7(G,Q,this._opts,J);if(V.isMap()){let[q,W]=V.generate();if(q)this.result.css=q;if(W)this.result.map=W}else V.clearAnnotation(),this.result.css=V.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}sync(){if(this.error)throw this.error;return this.result}then(Z,J){if(!("from"in this._opts))T7("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.");return this.async().then(Z,J)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let Z,J=S7;try{Z=J(this._css,this._opts)}catch(Y){this.error=Y}if(this.error)throw this.error;else return this._root=Z,Z}get[Symbol.toStringTag](){return"NoWorkResult"}},b7=UZ;UZ.default=UZ;var f7=b7,k7=C6,v7=uZ,y7=O1,H1=class{constructor(Z=[]){this.version="8.4.38",this.plugins=this.normalize(Z)}normalize(Z){let J=[];for(let Y of Z){if(Y.postcss===!0)Y=Y();else if(Y.postcss)Y=Y.postcss;if(typeof Y==="object"&&Array.isArray(Y.plugins))J=J.concat(Y.plugins);else if(typeof Y==="object"&&Y.postcssPlugin)J.push(Y);else if(typeof Y==="function")J.push(Y);else if(typeof Y==="object"&&(Y.parse||Y.stringify))throw 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 Error(Y+" is not a PostCSS plugin")}return J}process(Z,J={}){if(!this.plugins.length&&!J.parser&&!J.stringifier&&!J.syntax)return new f7(this,Z,J);else return new k7(this,Z,J)}use(Z){return this.plugins=this.plugins.concat(this.normalize([Z])),this}},h7=H1;H1.default=H1;y7.registerProcessor(H1);v7.registerProcessor(H1);var g7=O9,m7=e8,u7=M9,c7=pZ,p7=A9,l7=O1,d7=lZ;function B1(X,Z){if(Array.isArray(X))return X.map((Q)=>B1(Q));let{inputs:J,...Y}=X;if(J){Z=[];for(let Q of J){let G={...Q,__proto__:p7.prototype};if(G.map)G.map={...G.map,__proto__:m7.prototype};Z.push(G)}}if(Y.nodes)Y.nodes=X.nodes.map((Q)=>B1(Q,Z));if(Y.source){let{inputId:Q,...G}=Y.source;if(Y.source=G,Q!=null)Y.source.input=Z[Q]}if(Y.type==="root")return new l7(Y);else if(Y.type==="decl")return new g7(Y);else if(Y.type==="rule")return new d7(Y);else if(Y.type==="comment")return new u7(Y);else if(Y.type==="atrule")return new c7(Y);else throw Error("Unknown node type: "+X.type)}var i7=B1;B1.default=B1;var s7=hZ,R6=O9,a7=C6,r7=E0,iZ=h7,o7=P9,n7=i7,E6=uZ,t7=D6,$6=M9,N6=pZ,e7=cZ,ZG=A9,JG=dZ,XG=M6,I6=lZ,T6=O1,YG=F9;function N(...X){if(X.length===1&&Array.isArray(X[0]))X=X[0];return new iZ(X)}N.plugin=function(Z,J){let Y=!1;function Q(...K){if(console&&console.warn&&!Y){if(Y=!0,console.warn(Z+`: postcss.plugin was deprecated. Migration guide:
28
28
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn"))console.warn(Z+`: 里面 postcss.plugin 被弃用. 迁移指南:
29
- https://www.w3ctech.com/topic/2226`)}let V=J(...q);return V.postcssPlugin=Z,V.postcssVersion=new cZ().version,V}let K;return Object.defineProperty(Q,"postcss",{get(){if(!K)K=Q();return K}}),Q.process=function(q,V,G){return $([Q(G)]).process(q,V)},Q};$.stringify=E7;$.parse=S7;$.fromJSON=I7;$.list=f7;$.comment=(X)=>new W6(X);$.atRule=(X)=>new H6(X);$.decl=(X)=>new V6(X);$.rule=(X)=>new z6(X);$.root=(X)=>new B6(X);$.document=(X)=>new U6(X);$.CssSyntaxError=_7;$.Declaration=V6;$.Container=R7;$.Processor=cZ;$.Document=U6;$.Comment=W6;$.Warning=$7;$.AtRule=H6;$.Result=N7;$.Input=T7;$.Rule=z6;$.Root=B6;$.Node=x7;C7.registerPostcss($);var b7=$;$.default=$;var h=lY(b7);h.stringify;h.fromJSON;h.plugin;h.parse;h.list;h.document;h.comment;h.atRule;h.rule;h.decl;h.root;h.CssSyntaxError;h.Declaration;h.Container;h.Processor;h.Document;h.Comment;h.Warning;h.AtRule;h.Result;h.Input;h.Rule;h.Root;h.Node;var k7=Object.defineProperty,v7=(X,Z,J)=>(Z in X)?k7(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,Z0=(X,Z,J)=>v7(X,typeof Z!=="symbol"?Z+"":Z,J);function h7(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function y7(X){if(X.__esModule)return X;var Z=X.default;if(typeof Z=="function"){var J=function Y(){if(this instanceof Y)return Reflect.construct(Z,arguments,this.constructor);return Z.apply(this,arguments)};J.prototype=Z.prototype}else J={};return Object.defineProperty(J,"__esModule",{value:!0}),Object.keys(X).forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(X,Y);Object.defineProperty(J,Y,Q.get?Q:{enumerable:!0,get:function(){return X[Y]}})}),J}var pZ={exports:{}},k=String,j6=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}};pZ.exports=j6();pZ.exports.createColors=j6;var g7=pZ.exports,m7={},u7=Object.freeze(Object.defineProperty({__proto__:null,default:m7},Symbol.toStringTag,{value:"Module"})),Q0=y7(u7),rJ=g7,oJ=Q0,HZ=class X extends Error{constructor(Z,J,Y,Q,K,q){super(Z);if(this.name="CssSyntaxError",this.reason=Z,K)this.file=K;if(Q)this.source=Q;if(q)this.plugin=q;if(typeof J<"u"&&typeof Y<"u")if(typeof J==="number")this.line=J,this.column=Y;else this.line=J.line,this.column=J.column,this.endLine=Y.line,this.endColumn=Y.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,X)}setMessage(){if(this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u")this.message+=":"+this.line+":"+this.column;this.message+=": "+this.reason}showSourceCode(Z){if(!this.source)return"";let J=this.source;if(Z==null)Z=rJ.isColorSupported;if(oJ){if(Z)J=oJ(J)}let Y=J.split(/\r?\n/),Q=Math.max(this.line-3,0),K=Math.min(this.line+2,Y.length),q=String(K).length,V,G;if(Z){let{bold:U,gray:W,red:H}=rJ.createColors(!0);V=(B)=>U(H(B)),G=(B)=>W(B)}else V=G=(U)=>U;return Y.slice(Q,K).map((U,W)=>{let H=Q+1+W,B=" "+(" "+H).slice(-q)+" | ";if(H===this.line){let j=G(B.replace(/\d/g," "))+U.slice(0,this.column-1).replace(/[^\t]/g," ");return V(">")+G(B)+U+`
30
- `+j+V("^")}return" "+G(B)+U}).join(`
29
+ https://www.w3ctech.com/topic/2226`)}let V=J(...K);return V.postcssPlugin=Z,V.postcssVersion=new iZ().version,V}let G;return Object.defineProperty(Q,"postcss",{get(){if(!G)G=Q();return G}}),Q.process=function(K,V,q){return N([Q(q)]).process(K,V)},Q};N.stringify=o7;N.parse=JG;N.fromJSON=n7;N.list=XG;N.comment=(X)=>new $6(X);N.atRule=(X)=>new N6(X);N.decl=(X)=>new R6(X);N.rule=(X)=>new I6(X);N.root=(X)=>new T6(X);N.document=(X)=>new E6(X);N.CssSyntaxError=s7;N.Declaration=R6;N.Container=r7;N.Processor=iZ;N.Document=E6;N.Comment=$6;N.Warning=t7;N.AtRule=N6;N.Result=e7;N.Input=ZG;N.Rule=I6;N.Root=T6;N.Node=YG;a7.registerPostcss(N);var QG=N;N.default=N;var y=UQ(QG);y.stringify;y.fromJSON;y.plugin;y.parse;y.list;y.document;y.comment;y.atRule;y.rule;y.decl;y.root;y.CssSyntaxError;y.Declaration;y.Container;y.Processor;y.Document;y.Comment;y.Warning;y.AtRule;y.Result;y.Input;y.Rule;y.Root;y.Node;var GG=Object.defineProperty,KG=(X,Z,J)=>(Z in X)?GG(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,Z0=(X,Z,J)=>KG(X,typeof Z!=="symbol"?Z+"":Z,J);function qG(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function VG(X){if(X.__esModule)return X;var Z=X.default;if(typeof Z=="function"){var J=function Y(){if(this instanceof Y)return Reflect.construct(Z,arguments,this.constructor);return Z.apply(this,arguments)};J.prototype=Z.prototype}else J={};return Object.defineProperty(J,"__esModule",{value:!0}),Object.keys(X).forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(X,Y);Object.defineProperty(J,Y,Q.get?Q:{enumerable:!0,get:function(){return X[Y]}})}),J}var sZ={exports:{}},k=String,S6=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}};sZ.exports=S6();sZ.exports.createColors=S6;var WG=sZ.exports,zG={},HG=Object.freeze(Object.defineProperty({__proto__:null,default:zG},Symbol.toStringTag,{value:"Module"})),G0=VG(HG),B8=WG,j8=G0,LZ=class X extends Error{constructor(Z,J,Y,Q,G,K){super(Z);if(this.name="CssSyntaxError",this.reason=Z,G)this.file=G;if(Q)this.source=Q;if(K)this.plugin=K;if(typeof J<"u"&&typeof Y<"u")if(typeof J==="number")this.line=J,this.column=Y;else this.line=J.line,this.column=J.column,this.endLine=Y.line,this.endColumn=Y.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,X)}setMessage(){if(this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u")this.message+=":"+this.line+":"+this.column;this.message+=": "+this.reason}showSourceCode(Z){if(!this.source)return"";let J=this.source;if(Z==null)Z=B8.isColorSupported;if(j8){if(Z)J=j8(J)}let Y=J.split(/\r?\n/),Q=Math.max(this.line-3,0),G=Math.min(this.line+2,Y.length),K=String(G).length,V,q;if(Z){let{bold:W,gray:z,red:H}=B8.createColors(!0);V=(j)=>W(H(j)),q=(j)=>z(j)}else V=q=(W)=>W;return Y.slice(Q,G).map((W,z)=>{let H=Q+1+z,j=" "+(" "+H).slice(-K)+" | ";if(H===this.line){let U=q(j.replace(/\d/g," "))+W.slice(0,this.column-1).replace(/[^\t]/g," ");return V(">")+q(j)+W+`
30
+ `+U+V("^")}return" "+q(j)+W}).join(`
31
31
  `)}toString(){let Z=this.showSourceCode();if(Z)Z=`
32
32
 
33
33
  `+Z+`
34
- `;return this.name+": "+this.message+Z}},lZ=HZ;HZ.default=HZ;var D1={};D1.isClean=Symbol("isClean");D1.my=Symbol("my");var nJ={after:`
34
+ `;return this.name+": "+this.message+Z}},aZ=LZ;LZ.default=LZ;var A1={};A1.isClean=Symbol("isClean");A1.my=Symbol("my");var U8={after:`
35
35
  `,beforeClose:`
36
36
  `,beforeComment:`
37
37
  `,beforeDecl:`
38
38
  `,beforeOpen:" ",beforeRule:`
39
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function c7(X){return X[0].toUpperCase()+X.slice(1)}var zZ=class{constructor(Z){this.builder=Z}atrule(Z,J){let Y="@"+Z.name,Q=Z.params?this.rawValue(Z,"params"):"";if(typeof Z.raws.afterName<"u")Y+=Z.raws.afterName;else if(Q)Y+=" ";if(Z.nodes)this.block(Z,Y+Q);else{let K=(Z.raws.between||"")+(J?";":"");this.builder(Y+Q+K,Z)}}beforeAfter(Z,J){let Y;if(Z.type==="decl")Y=this.raw(Z,null,"beforeDecl");else if(Z.type==="comment")Y=this.raw(Z,null,"beforeComment");else if(J==="before")Y=this.raw(Z,null,"beforeRule");else Y=this.raw(Z,null,"beforeClose");let Q=Z.parent,K=0;while(Q&&Q.type!=="root")K+=1,Q=Q.parent;if(Y.includes(`
40
- `)){let q=this.raw(Z,null,"indent");if(q.length)for(let V=0;V<K;V++)Y+=q}return Y}block(Z,J){let Y=this.raw(Z,"between","beforeOpen");this.builder(J+Y+"{",Z,"start");let Q;if(Z.nodes&&Z.nodes.length)this.body(Z),Q=this.raw(Z,"after");else Q=this.raw(Z,"after","emptyBody");if(Q)this.builder(Q);this.builder("}",Z,"end")}body(Z){let J=Z.nodes.length-1;while(J>0){if(Z.nodes[J].type!=="comment")break;J-=1}let Y=this.raw(Z,"semicolon");for(let Q=0;Q<Z.nodes.length;Q++){let K=Z.nodes[Q],q=this.raw(K,"before");if(q)this.builder(q);this.stringify(K,J!==Q||Y)}}comment(Z){let J=this.raw(Z,"left","commentLeft"),Y=this.raw(Z,"right","commentRight");this.builder("/*"+J+Z.text+Y+"*/",Z)}decl(Z,J){let Y=this.raw(Z,"between","colon"),Q=Z.prop+Y+this.rawValue(Z,"value");if(Z.important)Q+=Z.raws.important||" !important";if(J)Q+=";";this.builder(Q,Z)}document(Z){this.body(Z)}raw(Z,J,Y){let Q;if(!Y)Y=J;if(J){if(Q=Z.raws[J],typeof Q<"u")return Q}let K=Z.parent;if(Y==="before"){if(!K||K.type==="root"&&K.first===Z)return"";if(K&&K.type==="document")return""}if(!K)return nJ[Y];let q=Z.root();if(!q.rawCache)q.rawCache={};if(typeof q.rawCache[Y]<"u")return q.rawCache[Y];if(Y==="before"||Y==="after")return this.beforeAfter(Z,Y);else{let V="raw"+c7(Y);if(this[V])Q=this[V](q,Z);else q.walk((G)=>{if(Q=G.raws[J],typeof Q<"u")return!1})}if(typeof Q>"u")Q=nJ[Y];return q.rawCache[Y]=Q,Q}rawBeforeClose(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length>0){if(typeof Y.raws.after<"u"){if(J=Y.raws.after,J.includes(`
39
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function BG(X){return X[0].toUpperCase()+X.slice(1)}var DZ=class{constructor(Z){this.builder=Z}atrule(Z,J){let Y="@"+Z.name,Q=Z.params?this.rawValue(Z,"params"):"";if(typeof Z.raws.afterName<"u")Y+=Z.raws.afterName;else if(Q)Y+=" ";if(Z.nodes)this.block(Z,Y+Q);else{let G=(Z.raws.between||"")+(J?";":"");this.builder(Y+Q+G,Z)}}beforeAfter(Z,J){let Y;if(Z.type==="decl")Y=this.raw(Z,null,"beforeDecl");else if(Z.type==="comment")Y=this.raw(Z,null,"beforeComment");else if(J==="before")Y=this.raw(Z,null,"beforeRule");else Y=this.raw(Z,null,"beforeClose");let Q=Z.parent,G=0;while(Q&&Q.type!=="root")G+=1,Q=Q.parent;if(Y.includes(`
40
+ `)){let K=this.raw(Z,null,"indent");if(K.length)for(let V=0;V<G;V++)Y+=K}return Y}block(Z,J){let Y=this.raw(Z,"between","beforeOpen");this.builder(J+Y+"{",Z,"start");let Q;if(Z.nodes&&Z.nodes.length)this.body(Z),Q=this.raw(Z,"after");else Q=this.raw(Z,"after","emptyBody");if(Q)this.builder(Q);this.builder("}",Z,"end")}body(Z){let J=Z.nodes.length-1;while(J>0){if(Z.nodes[J].type!=="comment")break;J-=1}let Y=this.raw(Z,"semicolon");for(let Q=0;Q<Z.nodes.length;Q++){let G=Z.nodes[Q],K=this.raw(G,"before");if(K)this.builder(K);this.stringify(G,J!==Q||Y)}}comment(Z){let J=this.raw(Z,"left","commentLeft"),Y=this.raw(Z,"right","commentRight");this.builder("/*"+J+Z.text+Y+"*/",Z)}decl(Z,J){let Y=this.raw(Z,"between","colon"),Q=Z.prop+Y+this.rawValue(Z,"value");if(Z.important)Q+=Z.raws.important||" !important";if(J)Q+=";";this.builder(Q,Z)}document(Z){this.body(Z)}raw(Z,J,Y){let Q;if(!Y)Y=J;if(J){if(Q=Z.raws[J],typeof Q<"u")return Q}let G=Z.parent;if(Y==="before"){if(!G||G.type==="root"&&G.first===Z)return"";if(G&&G.type==="document")return""}if(!G)return U8[Y];let K=Z.root();if(!K.rawCache)K.rawCache={};if(typeof K.rawCache[Y]<"u")return K.rawCache[Y];if(Y==="before"||Y==="after")return this.beforeAfter(Z,Y);else{let V="raw"+BG(Y);if(this[V])Q=this[V](K,Z);else K.walk((q)=>{if(Q=q.raws[J],typeof Q<"u")return!1})}if(typeof Q>"u")Q=U8[Y];return K.rawCache[Y]=Q,Q}rawBeforeClose(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length>0){if(typeof Y.raws.after<"u"){if(J=Y.raws.after,J.includes(`
41
41
  `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawBeforeComment(Z,J){let Y;if(Z.walkComments((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
42
42
  `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeDecl");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeDecl(Z,J){let Y;if(Z.walkDecls((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
43
43
  `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeRule");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeOpen(Z){let J;return Z.walk((Y)=>{if(Y.type!=="decl"){if(J=Y.raws.between,typeof J<"u")return!1}}),J}rawBeforeRule(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&(Y.parent!==Z||Z.first!==Y)){if(typeof Y.raws.before<"u"){if(J=Y.raws.before,J.includes(`
44
- `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawColon(Z){let J;return Z.walkDecls((Y)=>{if(typeof Y.raws.between<"u")return J=Y.raws.between.replace(/[^\s:]/g,""),!1}),J}rawEmptyBody(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length===0){if(J=Y.raws.after,typeof J<"u")return!1}}),J}rawIndent(Z){if(Z.raws.indent)return Z.raws.indent;let J;return Z.walk((Y)=>{let Q=Y.parent;if(Q&&Q!==Z&&Q.parent&&Q.parent===Z){if(typeof Y.raws.before<"u"){let K=Y.raws.before.split(`
45
- `);return J=K[K.length-1],J=J.replace(/\S/g,""),!1}}}),J}rawSemicolon(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length&&Y.last.type==="decl"){if(J=Y.raws.semicolon,typeof J<"u")return!1}}),J}rawValue(Z,J){let Y=Z[J],Q=Z.raws[J];if(Q&&Q.value===Y)return Q.raw;return Y}root(Z){if(this.body(Z),Z.raws.after)this.builder(Z.raws.after)}rule(Z){if(this.block(Z,this.rawValue(Z,"selector")),Z.raws.ownSemicolon)this.builder(Z.raws.ownSemicolon,Z,"end")}stringify(Z,J){if(!this[Z.type])throw Error("Unknown AST node type "+Z.type+". Maybe you need to change PostCSS stringifier.");this[Z.type](Z,J)}},L6=zZ;zZ.default=zZ;var p7=L6;function BZ(X,Z){new p7(Z).stringify(X)}var A9=BZ;BZ.default=BZ;var{isClean:k1,my:l7}=D1,d7=lZ,i7=L6,s7=A9;function jZ(X,Z){let J=new X.constructor;for(let Y in X){if(!Object.prototype.hasOwnProperty.call(X,Y))continue;if(Y==="proxyCache")continue;let Q=X[Y],K=typeof Q;if(Y==="parent"&&K==="object"){if(Z)J[Y]=Z}else if(Y==="source")J[Y]=Q;else if(Array.isArray(Q))J[Y]=Q.map((q)=>jZ(q,J));else{if(K==="object"&&Q!==null)Q=jZ(Q);J[Y]=Q}}return J}var LZ=class{constructor(Z={}){this.raws={},this[k1]=!1,this[l7]=!0;for(let J in Z)if(J==="nodes"){this.nodes=[];for(let Y of Z[J])if(typeof Y.clone==="function")this.append(Y.clone());else this.append(Y)}else this[J]=Z[J]}addToError(Z){if(Z.postcssNode=this,Z.stack&&this.source&&/\n\s{4}at /.test(Z.stack)){let J=this.source;Z.stack=Z.stack.replace(/\n\s{4}at /,`$&${J.input.from}:${J.start.line}:${J.start.column}$&`)}return Z}after(Z){return this.parent.insertAfter(this,Z),this}assign(Z={}){for(let J in Z)this[J]=Z[J];return this}before(Z){return this.parent.insertBefore(this,Z),this}cleanRaws(Z){if(delete this.raws.before,delete this.raws.after,!Z)delete this.raws.between}clone(Z={}){let J=jZ(this);for(let Y in Z)J[Y]=Z[Y];return J}cloneAfter(Z={}){let J=this.clone(Z);return this.parent.insertAfter(this,J),J}cloneBefore(Z={}){let J=this.clone(Z);return this.parent.insertBefore(this,J),J}error(Z,J={}){if(this.source){let{end:Y,start:Q}=this.rangeBy(J);return this.source.input.error(Z,{column:Q.column,line:Q.line},{column:Y.column,line:Y.line},J)}return new d7(Z)}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(J==="root")return()=>Z.root().toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="prop"||J==="value"||J==="name"||J==="params"||J==="important"||J==="text")Z.markDirty();return!0}}}markDirty(){if(this[k1]){this[k1]=!1;let Z=this;while(Z=Z.parent)Z[k1]=!1}}next(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z+1]}positionBy(Z,J){let Y=this.source.start;if(Z.index)Y=this.positionInside(Z.index,J);else if(Z.word){J=this.toString();let Q=J.indexOf(Z.word);if(Q!==-1)Y=this.positionInside(Q,J)}return Y}positionInside(Z,J){let Y=J||this.toString(),Q=this.source.start.column,K=this.source.start.line;for(let q=0;q<Z;q++)if(Y[q]===`
46
- `)Q=1,K+=1;else Q+=1;return{column:Q,line:K}}prev(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z-1]}rangeBy(Z){let J={column:this.source.start.column,line:this.source.start.line},Y=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:J.column+1,line:J.line};if(Z.word){let Q=this.toString(),K=Q.indexOf(Z.word);if(K!==-1)J=this.positionInside(K,Q),Y=this.positionInside(K+Z.word.length,Q)}else{if(Z.start)J={column:Z.start.column,line:Z.start.line};else if(Z.index)J=this.positionInside(Z.index);if(Z.end)Y={column:Z.end.column,line:Z.end.line};else if(typeof Z.endIndex==="number")Y=this.positionInside(Z.endIndex);else if(Z.index)Y=this.positionInside(Z.index+1)}if(Y.line<J.line||Y.line===J.line&&Y.column<=J.column)Y={column:J.column+1,line:J.line};return{end:Y,start:J}}raw(Z,J){return new i7().raw(this,Z,J)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...Z){if(this.parent){let J=this,Y=!1;for(let Q of Z)if(Q===this)Y=!0;else if(Y)this.parent.insertAfter(J,Q),J=Q;else this.parent.insertBefore(J,Q);if(!Y)this.remove()}return this}root(){let Z=this;while(Z.parent&&Z.parent.type!=="document")Z=Z.parent;return Z}toJSON(Z,J){let Y={},Q=J==null;J=J||new Map;let K=0;for(let q in this){if(!Object.prototype.hasOwnProperty.call(this,q))continue;if(q==="parent"||q==="proxyCache")continue;let V=this[q];if(Array.isArray(V))Y[q]=V.map((G)=>{if(typeof G==="object"&&G.toJSON)return G.toJSON(null,J);else return G});else if(typeof V==="object"&&V.toJSON)Y[q]=V.toJSON(null,J);else if(q==="source"){let G=J.get(V.input);if(G==null)G=K,J.set(V.input,K),K++;Y[q]={end:V.end,inputId:G,start:V.start}}else Y[q]=V}if(Q)Y.inputs=[...J.keys()].map((q)=>q.toJSON());return Y}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(Z=s7){if(Z.stringify)Z=Z.stringify;let J="";return Z(this,(Y)=>{J+=Y}),J}warn(Z,J,Y){let Q={node:this};for(let K in Y)Q[K]=Y[K];return Z.warn(J,Q)}get proxyOf(){return this}},O9=LZ;LZ.default=LZ;var a7=O9,PZ=class extends a7{constructor(Z){if(Z&&typeof Z.value<"u"&&typeof Z.value!=="string")Z={...Z,value:String(Z.value)};super(Z);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},M9=PZ;PZ.default=PZ;var r7="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",o7=(X,Z=21)=>{return(J=Z)=>{let Y="",Q=J;while(Q--)Y+=X[Math.random()*X.length|0];return Y}},n7=(X=21)=>{let Z="",J=X;while(J--)Z+=r7[Math.random()*64|0];return Z},t7={nanoid:n7,customAlphabet:o7},{SourceMapConsumer:tJ,SourceMapGenerator:eJ}=Q0,{existsSync:e7,readFileSync:ZK}=Q0,{dirname:u9,join:JK}=Q0;function XK(X){if(Buffer)return Buffer.from(X,"base64").toString();else return window.atob(X)}var DZ=class{constructor(Z,J){if(J.map===!1)return;this.loadAnnotation(Z),this.inline=this.startWith(this.annotation,"data:");let Y=J.map?J.map.prev:void 0,Q=this.loadMap(J.from,Y);if(!this.mapFile&&J.from)this.mapFile=J.from;if(this.mapFile)this.root=u9(this.mapFile);if(Q)this.text=Q}consumer(){if(!this.consumerCache)this.consumerCache=new tJ(this.text);return this.consumerCache}decodeInline(Z){let J=/^data:application\/json;charset=utf-?8;base64,/,Y=/^data:application\/json;base64,/,Q=/^data:application\/json;charset=utf-?8,/,K=/^data:application\/json,/;if(Q.test(Z)||K.test(Z))return decodeURIComponent(Z.substr(RegExp.lastMatch.length));if(J.test(Z)||Y.test(Z))return XK(Z.substr(RegExp.lastMatch.length));let q=Z.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+q)}getAnnotationURL(Z){return Z.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(Z){if(typeof Z!=="object")return!1;return typeof Z.mappings==="string"||typeof Z._mappings==="string"||Array.isArray(Z.sections)}loadAnnotation(Z){let J=Z.match(/\/\*\s*# sourceMappingURL=/gm);if(!J)return;let Y=Z.lastIndexOf(J.pop()),Q=Z.indexOf("*/",Y);if(Y>-1&&Q>-1)this.annotation=this.getAnnotationURL(Z.substring(Y,Q))}loadFile(Z){if(this.root=u9(Z),e7(Z))return this.mapFile=Z,ZK(Z,"utf-8").toString().trim()}loadMap(Z,J){if(J===!1)return!1;if(J)if(typeof J==="string")return J;else if(typeof J==="function"){let Y=J(Z);if(Y){let Q=this.loadFile(Y);if(!Q)throw Error("Unable to load previous source map: "+Y.toString());return Q}}else if(J instanceof tJ)return eJ.fromSourceMap(J).toString();else if(J instanceof eJ)return J.toString();else if(this.isMap(J))return JSON.stringify(J);else throw Error("Unsupported previous source map format: "+J.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let Y=this.annotation;if(Z)Y=JK(u9(Z),Y);return this.loadFile(Y)}}startWith(Z,J){if(!Z)return!1;return Z.substr(0,J.length)===J}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},P6=DZ;DZ.default=DZ;var{SourceMapConsumer:YK,SourceMapGenerator:QK}=Q0,{fileURLToPath:ZX,pathToFileURL:v1}=Q0,{isAbsolute:FZ,resolve:AZ}=Q0,{nanoid:KK}=t7,c9=Q0,JX=lZ,qK=P6,p9=Symbol("fromOffsetCache"),GK=Boolean(YK&&QK),XX=Boolean(AZ&&FZ),G9=class{constructor(Z,J={}){if(Z===null||typeof Z>"u"||typeof Z==="object"&&!Z.toString)throw Error(`PostCSS received ${Z} instead of CSS string`);if(this.css=Z.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(J.from)if(!XX||/^\w+:\/\//.test(J.from)||FZ(J.from))this.file=J.from;else this.file=AZ(J.from);if(XX&&GK){let Y=new qK(this.css,J);if(Y.text){this.map=Y;let Q=Y.consumer().file;if(!this.file&&Q)this.file=this.mapResolve(Q)}}if(!this.file)this.id="<input css "+KK(6)+">";if(this.map)this.map.file=this.from}error(Z,J,Y,Q={}){let K,q,V;if(J&&typeof J==="object"){let U=J,W=Y;if(typeof U.offset==="number"){let H=this.fromOffset(U.offset);J=H.line,Y=H.col}else J=U.line,Y=U.column;if(typeof W.offset==="number"){let H=this.fromOffset(W.offset);q=H.line,V=H.col}else q=W.line,V=W.column}else if(!Y){let U=this.fromOffset(J);J=U.line,Y=U.col}let G=this.origin(J,Y,q,V);if(G)K=new JX(Z,G.endLine===void 0?G.line:{column:G.column,line:G.line},G.endLine===void 0?G.column:{column:G.endColumn,line:G.endLine},G.source,G.file,Q.plugin);else K=new JX(Z,q===void 0?J:{column:Y,line:J},q===void 0?Y:{column:V,line:q},this.css,this.file,Q.plugin);if(K.input={column:Y,endColumn:V,endLine:q,line:J,source:this.css},this.file){if(v1)K.input.url=v1(this.file).toString();K.input.file=this.file}return K}fromOffset(Z){let J,Y;if(!this[p9]){let K=this.css.split(`
47
- `);Y=Array(K.length);let q=0;for(let V=0,G=K.length;V<G;V++)Y[V]=q,q+=K[V].length+1;this[p9]=Y}else Y=this[p9];J=Y[Y.length-1];let Q=0;if(Z>=J)Q=Y.length-1;else{let K=Y.length-2,q;while(Q<K)if(q=Q+(K-Q>>1),Z<Y[q])K=q-1;else if(Z>=Y[q+1])Q=q+1;else{Q=q;break}}return{col:Z-Y[Q]+1,line:Q+1}}mapResolve(Z){if(/^\w+:\/\//.test(Z))return Z;return AZ(this.map.consumer().sourceRoot||this.map.root||".",Z)}origin(Z,J,Y,Q){if(!this.map)return!1;let K=this.map.consumer(),q=K.originalPositionFor({column:J,line:Z});if(!q.source)return!1;let V;if(typeof Y==="number")V=K.originalPositionFor({column:Q,line:Y});let G;if(FZ(q.source))G=v1(q.source);else G=new URL(q.source,this.map.consumer().sourceRoot||v1(this.map.mapFile));let U={column:q.column,endColumn:V&&V.column,endLine:V&&V.line,line:q.line,url:G.toString()};if(G.protocol==="file:")if(ZX)U.file=ZX(G);else throw Error("file: protocol is not available in this PostCSS build");let W=K.sourceContentFor(q.source);if(W)U.source=W;return U}toJSON(){let Z={};for(let J of["hasBOM","css","file","id"])if(this[J]!=null)Z[J]=this[J];if(this.map){if(Z.map={...this.map},Z.map.consumerCache)Z.map.consumerCache=void 0}return Z}get from(){return this.file||this.id}},w9=G9;G9.default=G9;if(c9&&c9.registerInput)c9.registerInput(G9);var{SourceMapConsumer:D6,SourceMapGenerator:r1}=Q0,{dirname:o1,relative:F6,resolve:A6,sep:O6}=Q0,{pathToFileURL:YX}=Q0,VK=w9,UK=Boolean(D6&&r1),WK=Boolean(o1&&A6&&F6&&O6),HK=class{constructor(Z,J,Y,Q){this.stringify=Z,this.mapOpts=Y.map||{},this.root=J,this.opts=Y,this.css=Q,this.originalCSS=Q,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let Z;if(this.isInline())Z="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")Z=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")Z=this.mapOpts.annotation(this.opts.to,this.root);else Z=this.outputFile()+".map";let J=`
44
+ `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawColon(Z){let J;return Z.walkDecls((Y)=>{if(typeof Y.raws.between<"u")return J=Y.raws.between.replace(/[^\s:]/g,""),!1}),J}rawEmptyBody(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length===0){if(J=Y.raws.after,typeof J<"u")return!1}}),J}rawIndent(Z){if(Z.raws.indent)return Z.raws.indent;let J;return Z.walk((Y)=>{let Q=Y.parent;if(Q&&Q!==Z&&Q.parent&&Q.parent===Z){if(typeof Y.raws.before<"u"){let G=Y.raws.before.split(`
45
+ `);return J=G[G.length-1],J=J.replace(/\S/g,""),!1}}}),J}rawSemicolon(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length&&Y.last.type==="decl"){if(J=Y.raws.semicolon,typeof J<"u")return!1}}),J}rawValue(Z,J){let Y=Z[J],Q=Z.raws[J];if(Q&&Q.value===Y)return Q.raw;return Y}root(Z){if(this.body(Z),Z.raws.after)this.builder(Z.raws.after)}rule(Z){if(this.block(Z,this.rawValue(Z,"selector")),Z.raws.ownSemicolon)this.builder(Z.raws.ownSemicolon,Z,"end")}stringify(Z,J){if(!this[Z.type])throw Error("Unknown AST node type "+Z.type+". Maybe you need to change PostCSS stringifier.");this[Z.type](Z,J)}},x6=DZ;DZ.default=DZ;var jG=x6;function PZ(X,Z){new jG(Z).stringify(X)}var w9=PZ;PZ.default=PZ;var{isClean:h1,my:UG}=A1,LG=aZ,DG=x6,PG=w9;function FZ(X,Z){let J=new X.constructor;for(let Y in X){if(!Object.prototype.hasOwnProperty.call(X,Y))continue;if(Y==="proxyCache")continue;let Q=X[Y],G=typeof Q;if(Y==="parent"&&G==="object"){if(Z)J[Y]=Z}else if(Y==="source")J[Y]=Q;else if(Array.isArray(Q))J[Y]=Q.map((K)=>FZ(K,J));else{if(G==="object"&&Q!==null)Q=FZ(Q);J[Y]=Q}}return J}var OZ=class{constructor(Z={}){this.raws={},this[h1]=!1,this[UG]=!0;for(let J in Z)if(J==="nodes"){this.nodes=[];for(let Y of Z[J])if(typeof Y.clone==="function")this.append(Y.clone());else this.append(Y)}else this[J]=Z[J]}addToError(Z){if(Z.postcssNode=this,Z.stack&&this.source&&/\n\s{4}at /.test(Z.stack)){let J=this.source;Z.stack=Z.stack.replace(/\n\s{4}at /,`$&${J.input.from}:${J.start.line}:${J.start.column}$&`)}return Z}after(Z){return this.parent.insertAfter(this,Z),this}assign(Z={}){for(let J in Z)this[J]=Z[J];return this}before(Z){return this.parent.insertBefore(this,Z),this}cleanRaws(Z){if(delete this.raws.before,delete this.raws.after,!Z)delete this.raws.between}clone(Z={}){let J=FZ(this);for(let Y in Z)J[Y]=Z[Y];return J}cloneAfter(Z={}){let J=this.clone(Z);return this.parent.insertAfter(this,J),J}cloneBefore(Z={}){let J=this.clone(Z);return this.parent.insertBefore(this,J),J}error(Z,J={}){if(this.source){let{end:Y,start:Q}=this.rangeBy(J);return this.source.input.error(Z,{column:Q.column,line:Q.line},{column:Y.column,line:Y.line},J)}return new LG(Z)}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(J==="root")return()=>Z.root().toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="prop"||J==="value"||J==="name"||J==="params"||J==="important"||J==="text")Z.markDirty();return!0}}}markDirty(){if(this[h1]){this[h1]=!1;let Z=this;while(Z=Z.parent)Z[h1]=!1}}next(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z+1]}positionBy(Z,J){let Y=this.source.start;if(Z.index)Y=this.positionInside(Z.index,J);else if(Z.word){J=this.toString();let Q=J.indexOf(Z.word);if(Q!==-1)Y=this.positionInside(Q,J)}return Y}positionInside(Z,J){let Y=J||this.toString(),Q=this.source.start.column,G=this.source.start.line;for(let K=0;K<Z;K++)if(Y[K]===`
46
+ `)Q=1,G+=1;else Q+=1;return{column:Q,line:G}}prev(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z-1]}rangeBy(Z){let J={column:this.source.start.column,line:this.source.start.line},Y=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:J.column+1,line:J.line};if(Z.word){let Q=this.toString(),G=Q.indexOf(Z.word);if(G!==-1)J=this.positionInside(G,Q),Y=this.positionInside(G+Z.word.length,Q)}else{if(Z.start)J={column:Z.start.column,line:Z.start.line};else if(Z.index)J=this.positionInside(Z.index);if(Z.end)Y={column:Z.end.column,line:Z.end.line};else if(typeof Z.endIndex==="number")Y=this.positionInside(Z.endIndex);else if(Z.index)Y=this.positionInside(Z.index+1)}if(Y.line<J.line||Y.line===J.line&&Y.column<=J.column)Y={column:J.column+1,line:J.line};return{end:Y,start:J}}raw(Z,J){return new DG().raw(this,Z,J)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...Z){if(this.parent){let J=this,Y=!1;for(let Q of Z)if(Q===this)Y=!0;else if(Y)this.parent.insertAfter(J,Q),J=Q;else this.parent.insertBefore(J,Q);if(!Y)this.remove()}return this}root(){let Z=this;while(Z.parent&&Z.parent.type!=="document")Z=Z.parent;return Z}toJSON(Z,J){let Y={},Q=J==null;J=J||new Map;let G=0;for(let K in this){if(!Object.prototype.hasOwnProperty.call(this,K))continue;if(K==="parent"||K==="proxyCache")continue;let V=this[K];if(Array.isArray(V))Y[K]=V.map((q)=>{if(typeof q==="object"&&q.toJSON)return q.toJSON(null,J);else return q});else if(typeof V==="object"&&V.toJSON)Y[K]=V.toJSON(null,J);else if(K==="source"){let q=J.get(V.input);if(q==null)q=G,J.set(V.input,G),G++;Y[K]={end:V.end,inputId:q,start:V.start}}else Y[K]=V}if(Q)Y.inputs=[...J.keys()].map((K)=>K.toJSON());return Y}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(Z=PG){if(Z.stringify)Z=Z.stringify;let J="";return Z(this,(Y)=>{J+=Y}),J}warn(Z,J,Y){let Q={node:this};for(let G in Y)Q[G]=Y[G];return Z.warn(J,Q)}get proxyOf(){return this}},_9=OZ;OZ.default=OZ;var FG=_9,AZ=class extends FG{constructor(Z){if(Z&&typeof Z.value<"u"&&typeof Z.value!=="string")Z={...Z,value:String(Z.value)};super(Z);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},C9=AZ;AZ.default=AZ;var OG="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",AG=(X,Z=21)=>{return(J=Z)=>{let Y="",Q=J;while(Q--)Y+=X[Math.random()*X.length|0];return Y}},MG=(X=21)=>{let Z="",J=X;while(J--)Z+=OG[Math.random()*64|0];return Z},wG={nanoid:MG,customAlphabet:AG},{SourceMapConsumer:L8,SourceMapGenerator:D8}=G0,{existsSync:_G,readFileSync:CG}=G0,{dirname:d9,join:RG}=G0;function EG(X){if(Buffer)return Buffer.from(X,"base64").toString();else return window.atob(X)}var MZ=class{constructor(Z,J){if(J.map===!1)return;this.loadAnnotation(Z),this.inline=this.startWith(this.annotation,"data:");let Y=J.map?J.map.prev:void 0,Q=this.loadMap(J.from,Y);if(!this.mapFile&&J.from)this.mapFile=J.from;if(this.mapFile)this.root=d9(this.mapFile);if(Q)this.text=Q}consumer(){if(!this.consumerCache)this.consumerCache=new L8(this.text);return this.consumerCache}decodeInline(Z){let J=/^data:application\/json;charset=utf-?8;base64,/,Y=/^data:application\/json;base64,/,Q=/^data:application\/json;charset=utf-?8,/,G=/^data:application\/json,/;if(Q.test(Z)||G.test(Z))return decodeURIComponent(Z.substr(RegExp.lastMatch.length));if(J.test(Z)||Y.test(Z))return EG(Z.substr(RegExp.lastMatch.length));let K=Z.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+K)}getAnnotationURL(Z){return Z.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(Z){if(typeof Z!=="object")return!1;return typeof Z.mappings==="string"||typeof Z._mappings==="string"||Array.isArray(Z.sections)}loadAnnotation(Z){let J=Z.match(/\/\*\s*# sourceMappingURL=/gm);if(!J)return;let Y=Z.lastIndexOf(J.pop()),Q=Z.indexOf("*/",Y);if(Y>-1&&Q>-1)this.annotation=this.getAnnotationURL(Z.substring(Y,Q))}loadFile(Z){if(this.root=d9(Z),_G(Z))return this.mapFile=Z,CG(Z,"utf-8").toString().trim()}loadMap(Z,J){if(J===!1)return!1;if(J)if(typeof J==="string")return J;else if(typeof J==="function"){let Y=J(Z);if(Y){let Q=this.loadFile(Y);if(!Q)throw Error("Unable to load previous source map: "+Y.toString());return Q}}else if(J instanceof L8)return D8.fromSourceMap(J).toString();else if(J instanceof D8)return J.toString();else if(this.isMap(J))return JSON.stringify(J);else throw Error("Unsupported previous source map format: "+J.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let Y=this.annotation;if(Z)Y=RG(d9(Z),Y);return this.loadFile(Y)}}startWith(Z,J){if(!Z)return!1;return Z.substr(0,J.length)===J}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},b6=MZ;MZ.default=MZ;var{SourceMapConsumer:$G,SourceMapGenerator:NG}=G0,{fileURLToPath:P8,pathToFileURL:g1}=G0,{isAbsolute:wZ,resolve:_Z}=G0,{nanoid:IG}=wG,i9=G0,F8=aZ,TG=b6,s9=Symbol("fromOffsetCache"),SG=Boolean($G&&NG),O8=Boolean(_Z&&wZ),z9=class{constructor(Z,J={}){if(Z===null||typeof Z>"u"||typeof Z==="object"&&!Z.toString)throw Error(`PostCSS received ${Z} instead of CSS string`);if(this.css=Z.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(J.from)if(!O8||/^\w+:\/\//.test(J.from)||wZ(J.from))this.file=J.from;else this.file=_Z(J.from);if(O8&&SG){let Y=new TG(this.css,J);if(Y.text){this.map=Y;let Q=Y.consumer().file;if(!this.file&&Q)this.file=this.mapResolve(Q)}}if(!this.file)this.id="<input css "+IG(6)+">";if(this.map)this.map.file=this.from}error(Z,J,Y,Q={}){let G,K,V;if(J&&typeof J==="object"){let W=J,z=Y;if(typeof W.offset==="number"){let H=this.fromOffset(W.offset);J=H.line,Y=H.col}else J=W.line,Y=W.column;if(typeof z.offset==="number"){let H=this.fromOffset(z.offset);K=H.line,V=H.col}else K=z.line,V=z.column}else if(!Y){let W=this.fromOffset(J);J=W.line,Y=W.col}let q=this.origin(J,Y,K,V);if(q)G=new F8(Z,q.endLine===void 0?q.line:{column:q.column,line:q.line},q.endLine===void 0?q.column:{column:q.endColumn,line:q.endLine},q.source,q.file,Q.plugin);else G=new F8(Z,K===void 0?J:{column:Y,line:J},K===void 0?Y:{column:V,line:K},this.css,this.file,Q.plugin);if(G.input={column:Y,endColumn:V,endLine:K,line:J,source:this.css},this.file){if(g1)G.input.url=g1(this.file).toString();G.input.file=this.file}return G}fromOffset(Z){let J,Y;if(!this[s9]){let G=this.css.split(`
47
+ `);Y=Array(G.length);let K=0;for(let V=0,q=G.length;V<q;V++)Y[V]=K,K+=G[V].length+1;this[s9]=Y}else Y=this[s9];J=Y[Y.length-1];let Q=0;if(Z>=J)Q=Y.length-1;else{let G=Y.length-2,K;while(Q<G)if(K=Q+(G-Q>>1),Z<Y[K])G=K-1;else if(Z>=Y[K+1])Q=K+1;else{Q=K;break}}return{col:Z-Y[Q]+1,line:Q+1}}mapResolve(Z){if(/^\w+:\/\//.test(Z))return Z;return _Z(this.map.consumer().sourceRoot||this.map.root||".",Z)}origin(Z,J,Y,Q){if(!this.map)return!1;let G=this.map.consumer(),K=G.originalPositionFor({column:J,line:Z});if(!K.source)return!1;let V;if(typeof Y==="number")V=G.originalPositionFor({column:Q,line:Y});let q;if(wZ(K.source))q=g1(K.source);else q=new URL(K.source,this.map.consumer().sourceRoot||g1(this.map.mapFile));let W={column:K.column,endColumn:V&&V.column,endLine:V&&V.line,line:K.line,url:q.toString()};if(q.protocol==="file:")if(P8)W.file=P8(q);else throw Error("file: protocol is not available in this PostCSS build");let z=G.sourceContentFor(K.source);if(z)W.source=z;return W}toJSON(){let Z={};for(let J of["hasBOM","css","file","id"])if(this[J]!=null)Z[J]=this[J];if(this.map){if(Z.map={...this.map},Z.map.consumerCache)Z.map.consumerCache=void 0}return Z}get from(){return this.file||this.id}},R9=z9;z9.default=z9;if(i9&&i9.registerInput)i9.registerInput(z9);var{SourceMapConsumer:f6,SourceMapGenerator:t1}=G0,{dirname:e1,relative:k6,resolve:v6,sep:y6}=G0,{pathToFileURL:A8}=G0,xG=R9,bG=Boolean(f6&&t1),fG=Boolean(e1&&v6&&k6&&y6),kG=class{constructor(Z,J,Y,Q){this.stringify=Z,this.mapOpts=Y.map||{},this.root=J,this.opts=Y,this.css=Q,this.originalCSS=Q,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let Z;if(this.isInline())Z="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")Z=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")Z=this.mapOpts.annotation(this.opts.to,this.root);else Z=this.outputFile()+".map";let J=`
48
48
  `;if(this.css.includes(`\r
49
49
  `))J=`\r
50
- `;this.css+=J+"/*# sourceMappingURL="+Z+" */"}applyPrevMaps(){for(let Z of this.previous()){let J=this.toUrl(this.path(Z.file)),Y=Z.root||o1(Z.file),Q;if(this.mapOpts.sourcesContent===!1){if(Q=new D6(Z.text),Q.sourcesContent)Q.sourcesContent=null}else Q=Z.consumer();this.map.applySourceMap(Q,J,this.toUrl(this.path(Y)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let Z;for(let J=this.root.nodes.length-1;J>=0;J--){if(Z=this.root.nodes[J],Z.type!=="comment")continue;if(Z.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(J)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),WK&&UK&&this.isMap())return this.generateMap();else{let Z="";return this.stringify(this.root,(J)=>{Z+=J}),[Z]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let Z=this.previous()[0].consumer();Z.file=this.outputFile(),this.map=r1.fromSourceMap(Z,{ignoreInvalidMapping:!0})}else this.map=new r1({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>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new r1({file:this.outputFile(),ignoreInvalidMapping:!0});let Z=1,J=1,Y="<no source>",Q={generated:{column:0,line:0},original:{column:0,line:0},source:""},K,q;this.stringify(this.root,(V,G,U)=>{if(this.css+=V,G&&U!=="end")if(Q.generated.line=Z,Q.generated.column=J-1,G.source&&G.source.start)Q.source=this.sourcePath(G),Q.original.line=G.source.start.line,Q.original.column=G.source.start.column-1,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,this.map.addMapping(Q);if(K=V.match(/\n/g),K)Z+=K.length,q=V.lastIndexOf(`
51
- `),J=V.length-q;else J+=V.length;if(G&&U!=="start"){let W=G.parent||{raws:{}};if(!(G.type==="decl"||G.type==="atrule"&&!G.nodes)||G!==W.last||W.raws.semicolon)if(G.source&&G.source.end)Q.source=this.sourcePath(G),Q.original.line=G.source.end.line,Q.original.column=G.source.end.column-1,Q.generated.line=Z,Q.generated.column=J-2,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,Q.generated.line=Z,Q.generated.column=J-1,this.map.addMapping(Q)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((Z)=>Z.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let Z=this.mapOpts.annotation;if(typeof Z<"u"&&Z!==!0)return!1;if(this.previous().length)return this.previous().some((J)=>J.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((Z)=>Z.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(Z){if(this.mapOpts.absolute)return Z;if(Z.charCodeAt(0)===60)return Z;if(/^\w+:\/\//.test(Z))return Z;let J=this.memoizedPaths.get(Z);if(J)return J;let Y=this.opts.to?o1(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")Y=o1(A6(Y,this.mapOpts.annotation));let Q=F6(Y,Z);return this.memoizedPaths.set(Z,Q),Q}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((Z)=>{if(Z.source&&Z.source.input.map){let J=Z.source.input.map;if(!this.previousMaps.includes(J))this.previousMaps.push(J)}});else{let Z=new VK(this.originalCSS,this.opts);if(Z.map)this.previousMaps.push(Z.map)}return this.previousMaps}setSourcesContent(){let Z={};if(this.root)this.root.walk((J)=>{if(J.source){let Y=J.source.input.from;if(Y&&!Z[Y]){Z[Y]=!0;let Q=this.usesFileUrls?this.toFileUrl(Y):this.toUrl(this.path(Y));this.map.setSourceContent(Q,J.source.input.css)}}});else if(this.css){let J=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(J,this.css)}}sourcePath(Z){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(Z.source.input.from);else return this.toUrl(this.path(Z.source.input.from))}toBase64(Z){if(Buffer)return Buffer.from(Z).toString("base64");else return window.btoa(unescape(encodeURIComponent(Z)))}toFileUrl(Z){let J=this.memoizedFileURLs.get(Z);if(J)return J;if(YX){let Y=YX(Z).toString();return this.memoizedFileURLs.set(Z,Y),Y}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(Z){let J=this.memoizedURLs.get(Z);if(J)return J;if(O6==="\\")Z=Z.replace(/\\/g,"/");let Y=encodeURI(Z).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(Z,Y),Y}},M6=HK,zK=O9,OZ=class extends zK{constructor(Z){super(Z);this.type="comment"}},_9=OZ;OZ.default=OZ;var{isClean:w6,my:_6}=D1,C6=M9,R6=_9,BK=O9,E6,dZ,iZ,I6;function $6(X){return X.map((Z)=>{if(Z.nodes)Z.nodes=$6(Z.nodes);return delete Z.source,Z})}function N6(X){if(X[w6]=!1,X.proxyOf.nodes)for(let Z of X.proxyOf.nodes)N6(Z)}var H0=class X extends BK{append(...Z){for(let J of Z){let Y=this.normalize(J,this.last);for(let Q of Y)this.proxyOf.nodes.push(Q)}return this.markDirty(),this}cleanRaws(Z){if(super.cleanRaws(Z),this.nodes)for(let J of this.nodes)J.cleanRaws(Z)}each(Z){if(!this.proxyOf.nodes)return;let J=this.getIterator(),Y,Q;while(this.indexes[J]<this.proxyOf.nodes.length){if(Y=this.indexes[J],Q=Z(this.proxyOf.nodes[Y],Y),Q===!1)break;this.indexes[J]+=1}return delete this.indexes[J],Q}every(Z){return this.nodes.every(Z)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let Z=this.lastEach;return this.indexes[Z]=0,Z}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(!Z[J])return Z[J];else if(J==="each"||typeof J==="string"&&J.startsWith("walk"))return(...Y)=>{return Z[J](...Y.map((Q)=>{if(typeof Q==="function")return(K,q)=>Q(K.toProxy(),q);else return Q}))};else if(J==="every"||J==="some")return(Y)=>{return Z[J]((Q,...K)=>Y(Q.toProxy(),...K))};else if(J==="root")return()=>Z.root().toProxy();else if(J==="nodes")return Z.nodes.map((Y)=>Y.toProxy());else if(J==="first"||J==="last")return Z[J].toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="name"||J==="params"||J==="selector")Z.markDirty();return!0}}}index(Z){if(typeof Z==="number")return Z;if(Z.proxyOf)Z=Z.proxyOf;return this.proxyOf.nodes.indexOf(Z)}insertAfter(Z,J){let Y=this.index(Z),Q=this.normalize(J,this.proxyOf.nodes[Y]).reverse();Y=this.index(Z);for(let q of Q)this.proxyOf.nodes.splice(Y+1,0,q);let K;for(let q in this.indexes)if(K=this.indexes[q],Y<K)this.indexes[q]=K+Q.length;return this.markDirty(),this}insertBefore(Z,J){let Y=this.index(Z),Q=Y===0?"prepend":!1,K=this.normalize(J,this.proxyOf.nodes[Y],Q).reverse();Y=this.index(Z);for(let V of K)this.proxyOf.nodes.splice(Y,0,V);let q;for(let V in this.indexes)if(q=this.indexes[V],Y<=q)this.indexes[V]=q+K.length;return this.markDirty(),this}normalize(Z,J){if(typeof Z==="string")Z=$6(E6(Z).nodes);else if(typeof Z>"u")Z=[];else if(Array.isArray(Z)){Z=Z.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type==="root"&&this.type!=="document"){Z=Z.nodes.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type)Z=[Z];else if(Z.prop){if(typeof Z.value>"u")throw Error("Value field is missed in node creation");else if(typeof Z.value!=="string")Z.value=String(Z.value);Z=[new C6(Z)]}else if(Z.selector)Z=[new dZ(Z)];else if(Z.name)Z=[new iZ(Z)];else if(Z.text)Z=[new R6(Z)];else throw Error("Unknown node type in node creation");return Z.map((Q)=>{if(!Q[_6])X.rebuild(Q);if(Q=Q.proxyOf,Q.parent)Q.parent.removeChild(Q);if(Q[w6])N6(Q);if(typeof Q.raws.before>"u"){if(J&&typeof J.raws.before<"u")Q.raws.before=J.raws.before.replace(/\S/g,"")}return Q.parent=this.proxyOf,Q})}prepend(...Z){Z=Z.reverse();for(let J of Z){let Y=this.normalize(J,this.first,"prepend").reverse();for(let Q of Y)this.proxyOf.nodes.unshift(Q);for(let Q in this.indexes)this.indexes[Q]=this.indexes[Q]+Y.length}return this.markDirty(),this}push(Z){return Z.parent=this,this.proxyOf.nodes.push(Z),this}removeAll(){for(let Z of this.proxyOf.nodes)Z.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(Z){Z=this.index(Z),this.proxyOf.nodes[Z].parent=void 0,this.proxyOf.nodes.splice(Z,1);let J;for(let Y in this.indexes)if(J=this.indexes[Y],J>=Z)this.indexes[Y]=J-1;return this.markDirty(),this}replaceValues(Z,J,Y){if(!Y)Y=J,J={};return this.walkDecls((Q)=>{if(J.props&&!J.props.includes(Q.prop))return;if(J.fast&&!Q.value.includes(J.fast))return;Q.value=Q.value.replace(Z,Y)}),this.markDirty(),this}some(Z){return this.nodes.some(Z)}walk(Z){return this.each((J,Y)=>{let Q;try{Q=Z(J,Y)}catch(K){throw J.addToError(K)}if(Q!==!1&&J.walk)Q=J.walk(Z);return Q})}walkAtRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="atrule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Z.test(Y.name))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Y.name===Z)return J(Y,Q)})}walkComments(Z){return this.walk((J,Y)=>{if(J.type==="comment")return Z(J,Y)})}walkDecls(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="decl")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="decl"&&Z.test(Y.prop))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="decl"&&Y.prop===Z)return J(Y,Q)})}walkRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="rule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="rule"&&Z.test(Y.selector))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="rule"&&Y.selector===Z)return J(Y,Q)})}get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};H0.registerParse=(X)=>{E6=X};H0.registerRule=(X)=>{dZ=X};H0.registerAtRule=(X)=>{iZ=X};H0.registerRoot=(X)=>{I6=X};var C0=H0;H0.default=H0;H0.rebuild=(X)=>{if(X.type==="atrule")Object.setPrototypeOf(X,iZ.prototype);else if(X.type==="rule")Object.setPrototypeOf(X,dZ.prototype);else if(X.type==="decl")Object.setPrototypeOf(X,C6.prototype);else if(X.type==="comment")Object.setPrototypeOf(X,R6.prototype);else if(X.type==="root")Object.setPrototypeOf(X,I6.prototype);if(X[_6]=!0,X.nodes)X.nodes.forEach((Z)=>{H0.rebuild(Z)})};var jK=C0,T6,S6,W1=class extends jK{constructor(Z){super({type:"document",...Z});if(!this.nodes)this.nodes=[]}toResult(Z={}){return new T6(new S6,this,Z).stringify()}};W1.registerLazyResult=(X)=>{T6=X};W1.registerProcessor=(X)=>{S6=X};var sZ=W1;W1.default=W1;var QX={},f6=function(Z){if(QX[Z])return;if(QX[Z]=!0,typeof console<"u"&&console.warn)console.warn(Z)},MZ=class{constructor(Z,J={}){if(this.type="warning",this.text=Z,J.node&&J.node.source){let Y=J.node.rangeBy(J);this.line=Y.start.line,this.column=Y.start.column,this.endLine=Y.end.line,this.endColumn=Y.end.column}for(let Y in J)this[Y]=J[Y]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}},x6=MZ;MZ.default=MZ;var LK=x6,wZ=class{constructor(Z,J,Y){this.processor=Z,this.messages=[],this.root=J,this.opts=Y,this.css=void 0,this.map=void 0}toString(){return this.css}warn(Z,J={}){if(!J.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)J.plugin=this.lastPlugin.postcssPlugin}let Y=new LK(Z,J);return this.messages.push(Y),Y}warnings(){return this.messages.filter((Z)=>Z.type==="warning")}get content(){return this.css}},aZ=wZ;wZ.default=wZ;var l9=39,KX=34,h1=92,qX=47,y1=10,Z1=32,g1=12,m1=9,u1=13,PK=91,DK=93,FK=40,AK=41,OK=123,MK=125,wK=59,_K=42,CK=58,RK=64,c1=/[\t\n\f\r "#'()/;[\\\]{}]/g,p1=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,EK=/.[\r\n"'(/\\]/,GX=/[\da-f]/i,IK=function(Z,J={}){let Y=Z.css.valueOf(),Q=J.ignoreErrors,K,q,V,G,U,W,H,B,j,P,L=Y.length,z=0,O=[],A=[];function D(){return z}function M(v){throw Z.error("Unclosed "+v,z)}function T(){return A.length===0&&z>=L}function f(v){if(A.length)return A.pop();if(z>=L)return;let c=v?v.ignoreUnclosed:!1;switch(K=Y.charCodeAt(z),K){case y1:case Z1:case m1:case u1:case g1:{q=z;do q+=1,K=Y.charCodeAt(q);while(K===Z1||K===y1||K===m1||K===u1||K===g1);P=["space",Y.slice(z,q)],z=q-1;break}case PK:case DK:case OK:case MK:case CK:case wK:case AK:{let i=String.fromCharCode(K);P=[i,i,z];break}case FK:{if(B=O.length?O.pop()[1]:"",j=Y.charCodeAt(z+1),B==="url"&&j!==l9&&j!==KX&&j!==Z1&&j!==y1&&j!==m1&&j!==g1&&j!==u1){q=z;do{if(W=!1,q=Y.indexOf(")",q+1),q===-1)if(Q||c){q=z;break}else M("bracket");H=q;while(Y.charCodeAt(H-1)===h1)H-=1,W=!W}while(W);P=["brackets",Y.slice(z,q+1),z,q],z=q}else if(q=Y.indexOf(")",z+1),G=Y.slice(z,q+1),q===-1||EK.test(G))P=["(","(",z];else P=["brackets",G,z,q],z=q;break}case l9:case KX:{V=K===l9?"'":'"',q=z;do{if(W=!1,q=Y.indexOf(V,q+1),q===-1)if(Q||c){q=z+1;break}else M("string");H=q;while(Y.charCodeAt(H-1)===h1)H-=1,W=!W}while(W);P=["string",Y.slice(z,q+1),z,q],z=q;break}case RK:{if(c1.lastIndex=z+1,c1.test(Y),c1.lastIndex===0)q=Y.length-1;else q=c1.lastIndex-2;P=["at-word",Y.slice(z,q+1),z,q],z=q;break}case h1:{q=z,U=!0;while(Y.charCodeAt(q+1)===h1)q+=1,U=!U;if(K=Y.charCodeAt(q+1),U&&K!==qX&&K!==Z1&&K!==y1&&K!==m1&&K!==u1&&K!==g1){if(q+=1,GX.test(Y.charAt(q))){while(GX.test(Y.charAt(q+1)))q+=1;if(Y.charCodeAt(q+1)===Z1)q+=1}}P=["word",Y.slice(z,q+1),z,q],z=q;break}default:{if(K===qX&&Y.charCodeAt(z+1)===_K){if(q=Y.indexOf("*/",z+2)+1,q===0)if(Q||c)q=Y.length;else M("comment");P=["comment",Y.slice(z,q+1),z,q],z=q}else{if(p1.lastIndex=z+1,p1.test(Y),p1.lastIndex===0)q=Y.length-1;else q=p1.lastIndex-2;P=["word",Y.slice(z,q+1),z,q],O.push(P),z=q}break}}return z++,P}function p(v){A.push(v)}return{back:p,endOfFile:T,nextToken:f,position:D}},b6=C0,V9=class extends b6{constructor(Z){super(Z);this.type="atrule"}append(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...Z)}prepend(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...Z)}},rZ=V9;V9.default=V9;b6.registerAtRule(V9);var k6=C0,v6,h6,u0=class extends k6{constructor(Z){super(Z);if(this.type="root",!this.nodes)this.nodes=[]}normalize(Z,J,Y){let Q=super.normalize(Z);if(J){if(Y==="prepend")if(this.nodes.length>1)J.raws.before=this.nodes[1].raws.before;else delete J.raws.before;else if(this.first!==J)for(let K of Q)K.raws.before=J.raws.before}return Q}removeChild(Z,J){let Y=this.index(Z);if(!J&&Y===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[Y].raws.before;return super.removeChild(Z)}toResult(Z={}){return new v6(new h6,this,Z).stringify()}};u0.registerLazyResult=(X)=>{v6=X};u0.registerProcessor=(X)=>{h6=X};var F1=u0;u0.default=u0;k6.registerRoot(u0);var H1={comma(X){return H1.split(X,[","],!0)},space(X){let Z=[" ",`
52
- `,"\t"];return H1.split(X,Z)},split(X,Z,J){let Y=[],Q="",K=!1,q=0,V=!1,G="",U=!1;for(let W of X){if(U)U=!1;else if(W==="\\")U=!0;else if(V){if(W===G)V=!1}else if(W==='"'||W==="'")V=!0,G=W;else if(W==="(")q+=1;else if(W===")"){if(q>0)q-=1}else if(q===0){if(Z.includes(W))K=!0}if(K){if(Q!=="")Y.push(Q.trim());Q="",K=!1}else Q+=W}if(J||Q!=="")Y.push(Q.trim());return Y}},y6=H1;H1.default=H1;var g6=C0,$K=y6,U9=class extends g6{constructor(Z){super(Z);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return $K.comma(this.selector)}set selectors(Z){let J=this.selector?this.selector.match(/,\s*/):null,Y=J?J[0]:","+this.raw("between","beforeOpen");this.selector=Z.join(Y)}},oZ=U9;U9.default=U9;g6.registerRule(U9);var NK=M9,TK=IK,SK=_9,fK=rZ,xK=F1,VX=oZ,UX={empty:!0,space:!0};function bK(X){for(let Z=X.length-1;Z>=0;Z--){let J=X[Z],Y=J[3]||J[2];if(Y)return Y}}var kK=class{constructor(Z){this.input=Z,this.root=new xK,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Z,start:{column:1,line:1,offset:0}}}atrule(Z){let J=new fK;if(J.name=Z[1].slice(1),J.name==="")this.unnamedAtrule(J,Z);this.init(J,Z[2]);let Y,Q,K,q=!1,V=!1,G=[],U=[];while(!this.tokenizer.endOfFile()){if(Z=this.tokenizer.nextToken(),Y=Z[0],Y==="("||Y==="[")U.push(Y==="("?")":"]");else if(Y==="{"&&U.length>0)U.push("}");else if(Y===U[U.length-1])U.pop();if(U.length===0)if(Y===";"){J.source.end=this.getPosition(Z[2]),J.source.end.offset++,this.semicolon=!0;break}else if(Y==="{"){V=!0;break}else if(Y==="}"){if(G.length>0){K=G.length-1,Q=G[K];while(Q&&Q[0]==="space")Q=G[--K];if(Q)J.source.end=this.getPosition(Q[3]||Q[2]),J.source.end.offset++}this.end(Z);break}else G.push(Z);else G.push(Z);if(this.tokenizer.endOfFile()){q=!0;break}}if(J.raws.between=this.spacesAndCommentsFromEnd(G),G.length){if(J.raws.afterName=this.spacesAndCommentsFromStart(G),this.raw(J,"params",G),q)Z=G[G.length-1],J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++,this.spaces=J.raws.between,J.raws.between=""}else J.raws.afterName="",J.params="";if(V)J.nodes=[],this.current=J}checkMissedSemicolon(Z){let J=this.colon(Z);if(J===!1)return;let Y=0,Q;for(let K=J-1;K>=0;K--)if(Q=Z[K],Q[0]!=="space"){if(Y+=1,Y===2)break}throw this.input.error("Missed semicolon",Q[0]==="word"?Q[3]+1:Q[2])}colon(Z){let J=0,Y,Q,K;for(let[q,V]of Z.entries()){if(Y=V,Q=Y[0],Q==="(")J+=1;if(Q===")")J-=1;if(J===0&&Q===":")if(!K)this.doubleColon(Y);else if(K[0]==="word"&&K[1]==="progid")continue;else return q;K=Y}return!1}comment(Z){let J=new SK;this.init(J,Z[2]),J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++;let Y=Z[1].slice(2,-2);if(/^\s*$/.test(Y))J.text="",J.raws.left=Y,J.raws.right="";else{let Q=Y.match(/^(\s*)([^]*\S)(\s*)$/);J.text=Q[2],J.raws.left=Q[1],J.raws.right=Q[3]}}createTokenizer(){this.tokenizer=TK(this.input)}decl(Z,J){let Y=new NK;this.init(Y,Z[0][2]);let Q=Z[Z.length-1];if(Q[0]===";")this.semicolon=!0,Z.pop();Y.source.end=this.getPosition(Q[3]||Q[2]||bK(Z)),Y.source.end.offset++;while(Z[0][0]!=="word"){if(Z.length===1)this.unknownWord(Z);Y.raws.before+=Z.shift()[1]}Y.source.start=this.getPosition(Z[0][2]),Y.prop="";while(Z.length){let U=Z[0][0];if(U===":"||U==="space"||U==="comment")break;Y.prop+=Z.shift()[1]}Y.raws.between="";let K;while(Z.length)if(K=Z.shift(),K[0]===":"){Y.raws.between+=K[1];break}else{if(K[0]==="word"&&/\w/.test(K[1]))this.unknownWord([K]);Y.raws.between+=K[1]}if(Y.prop[0]==="_"||Y.prop[0]==="*")Y.raws.before+=Y.prop[0],Y.prop=Y.prop.slice(1);let q=[],V;while(Z.length){if(V=Z[0][0],V!=="space"&&V!=="comment")break;q.push(Z.shift())}this.precheckMissedSemicolon(Z);for(let U=Z.length-1;U>=0;U--){if(K=Z[U],K[1].toLowerCase()==="!important"){Y.important=!0;let W=this.stringFrom(Z,U);if(W=this.spacesFromEnd(Z)+W,W!==" !important")Y.raws.important=W;break}else if(K[1].toLowerCase()==="important"){let W=Z.slice(0),H="";for(let B=U;B>0;B--){let j=W[B][0];if(H.trim().indexOf("!")===0&&j!=="space")break;H=W.pop()[1]+H}if(H.trim().indexOf("!")===0)Y.important=!0,Y.raws.important=H,Z=W}if(K[0]!=="space"&&K[0]!=="comment")break}if(Z.some((U)=>U[0]!=="space"&&U[0]!=="comment"))Y.raws.between+=q.map((U)=>U[1]).join(""),q=[];if(this.raw(Y,"value",q.concat(Z),J),Y.value.includes(":")&&!J)this.checkMissedSemicolon(Z)}doubleColon(Z){throw this.input.error("Double colon",{offset:Z[2]},{offset:Z[2]+Z[1].length})}emptyRule(Z){let J=new VX;this.init(J,Z[2]),J.selector="",J.raws.between="",this.current=J}end(Z){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(Z[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(Z)}endFile(){if(this.current.parent)this.unclosedBlock();if(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())}freeSemicolon(Z){if(this.spaces+=Z[1],this.current.nodes){let J=this.current.nodes[this.current.nodes.length-1];if(J&&J.type==="rule"&&!J.raws.ownSemicolon)J.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(Z){let J=this.input.fromOffset(Z);return{column:J.col,line:J.line,offset:Z}}init(Z,J){if(this.current.push(Z),Z.source={input:this.input,start:this.getPosition(J)},Z.raws.before=this.spaces,this.spaces="",Z.type!=="comment")this.semicolon=!1}other(Z){let J=!1,Y=null,Q=!1,K=null,q=[],V=Z[1].startsWith("--"),G=[],U=Z;while(U){if(Y=U[0],G.push(U),Y==="("||Y==="["){if(!K)K=U;q.push(Y==="("?")":"]")}else if(V&&Q&&Y==="{"){if(!K)K=U;q.push("}")}else if(q.length===0){if(Y===";")if(Q){this.decl(G,V);return}else break;else if(Y==="{"){this.rule(G);return}else if(Y==="}"){this.tokenizer.back(G.pop()),J=!0;break}else if(Y===":")Q=!0}else if(Y===q[q.length-1]){if(q.pop(),q.length===0)K=null}U=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())J=!0;if(q.length>0)this.unclosedBracket(K);if(J&&Q){if(!V)while(G.length){if(U=G[G.length-1][0],U!=="space"&&U!=="comment")break;this.tokenizer.back(G.pop())}this.decl(G,V)}else this.unknownWord(G)}parse(){let Z;while(!this.tokenizer.endOfFile())switch(Z=this.tokenizer.nextToken(),Z[0]){case"space":this.spaces+=Z[1];break;case";":this.freeSemicolon(Z);break;case"}":this.end(Z);break;case"comment":this.comment(Z);break;case"at-word":this.atrule(Z);break;case"{":this.emptyRule(Z);break;default:this.other(Z);break}this.endFile()}precheckMissedSemicolon(){}raw(Z,J,Y,Q){let K,q,V=Y.length,G="",U=!0,W,H;for(let B=0;B<V;B+=1)if(K=Y[B],q=K[0],q==="space"&&B===V-1&&!Q)U=!1;else if(q==="comment")if(H=Y[B-1]?Y[B-1][0]:"empty",W=Y[B+1]?Y[B+1][0]:"empty",!UX[H]&&!UX[W])if(G.slice(-1)===",")U=!1;else G+=K[1];else U=!1;else G+=K[1];if(!U){let B=Y.reduce((j,P)=>j+P[1],"");Z.raws[J]={raw:B,value:G}}Z[J]=G}rule(Z){Z.pop();let J=new VX;this.init(J,Z[0][2]),J.raws.between=this.spacesAndCommentsFromEnd(Z),this.raw(J,"selector",Z),this.current=J}spacesAndCommentsFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space"&&J!=="comment")break;Y=Z.pop()[1]+Y}return Y}spacesAndCommentsFromStart(Z){let J,Y="";while(Z.length){if(J=Z[0][0],J!=="space"&&J!=="comment")break;Y+=Z.shift()[1]}return Y}spacesFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space")break;Y=Z.pop()[1]+Y}return Y}stringFrom(Z,J){let Y="";for(let Q=J;Q<Z.length;Q++)Y+=Z[Q][1];return Z.splice(J,Z.length-J),Y}unclosedBlock(){let Z=this.current.source.start;throw this.input.error("Unclosed block",Z.line,Z.column)}unclosedBracket(Z){throw this.input.error("Unclosed bracket",{offset:Z[2]},{offset:Z[2]+1})}unexpectedClose(Z){throw this.input.error("Unexpected }",{offset:Z[2]},{offset:Z[2]+1})}unknownWord(Z){throw this.input.error("Unknown word",{offset:Z[0][2]},{offset:Z[0][2]+Z[0][1].length})}unnamedAtrule(Z,J){throw this.input.error("At-rule without name",{offset:J[2]},{offset:J[2]+J[1].length})}},vK=kK,hK=C0,yK=vK,gK=w9;function W9(X,Z){let J=new gK(X,Z),Y=new yK(J);try{Y.parse()}catch(Q){if(Q.name==="CssSyntaxError"&&Z&&Z.from){if(/\.scss$/i.test(Z.from))Q.message+=`
50
+ `;this.css+=J+"/*# sourceMappingURL="+Z+" */"}applyPrevMaps(){for(let Z of this.previous()){let J=this.toUrl(this.path(Z.file)),Y=Z.root||e1(Z.file),Q;if(this.mapOpts.sourcesContent===!1){if(Q=new f6(Z.text),Q.sourcesContent)Q.sourcesContent=null}else Q=Z.consumer();this.map.applySourceMap(Q,J,this.toUrl(this.path(Y)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let Z;for(let J=this.root.nodes.length-1;J>=0;J--){if(Z=this.root.nodes[J],Z.type!=="comment")continue;if(Z.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(J)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),fG&&bG&&this.isMap())return this.generateMap();else{let Z="";return this.stringify(this.root,(J)=>{Z+=J}),[Z]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let Z=this.previous()[0].consumer();Z.file=this.outputFile(),this.map=t1.fromSourceMap(Z,{ignoreInvalidMapping:!0})}else this.map=new t1({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>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new t1({file:this.outputFile(),ignoreInvalidMapping:!0});let Z=1,J=1,Y="<no source>",Q={generated:{column:0,line:0},original:{column:0,line:0},source:""},G,K;this.stringify(this.root,(V,q,W)=>{if(this.css+=V,q&&W!=="end")if(Q.generated.line=Z,Q.generated.column=J-1,q.source&&q.source.start)Q.source=this.sourcePath(q),Q.original.line=q.source.start.line,Q.original.column=q.source.start.column-1,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,this.map.addMapping(Q);if(G=V.match(/\n/g),G)Z+=G.length,K=V.lastIndexOf(`
51
+ `),J=V.length-K;else J+=V.length;if(q&&W!=="start"){let z=q.parent||{raws:{}};if(!(q.type==="decl"||q.type==="atrule"&&!q.nodes)||q!==z.last||z.raws.semicolon)if(q.source&&q.source.end)Q.source=this.sourcePath(q),Q.original.line=q.source.end.line,Q.original.column=q.source.end.column-1,Q.generated.line=Z,Q.generated.column=J-2,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,Q.generated.line=Z,Q.generated.column=J-1,this.map.addMapping(Q)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((Z)=>Z.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let Z=this.mapOpts.annotation;if(typeof Z<"u"&&Z!==!0)return!1;if(this.previous().length)return this.previous().some((J)=>J.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((Z)=>Z.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(Z){if(this.mapOpts.absolute)return Z;if(Z.charCodeAt(0)===60)return Z;if(/^\w+:\/\//.test(Z))return Z;let J=this.memoizedPaths.get(Z);if(J)return J;let Y=this.opts.to?e1(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")Y=e1(v6(Y,this.mapOpts.annotation));let Q=k6(Y,Z);return this.memoizedPaths.set(Z,Q),Q}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((Z)=>{if(Z.source&&Z.source.input.map){let J=Z.source.input.map;if(!this.previousMaps.includes(J))this.previousMaps.push(J)}});else{let Z=new xG(this.originalCSS,this.opts);if(Z.map)this.previousMaps.push(Z.map)}return this.previousMaps}setSourcesContent(){let Z={};if(this.root)this.root.walk((J)=>{if(J.source){let Y=J.source.input.from;if(Y&&!Z[Y]){Z[Y]=!0;let Q=this.usesFileUrls?this.toFileUrl(Y):this.toUrl(this.path(Y));this.map.setSourceContent(Q,J.source.input.css)}}});else if(this.css){let J=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(J,this.css)}}sourcePath(Z){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(Z.source.input.from);else return this.toUrl(this.path(Z.source.input.from))}toBase64(Z){if(Buffer)return Buffer.from(Z).toString("base64");else return window.btoa(unescape(encodeURIComponent(Z)))}toFileUrl(Z){let J=this.memoizedFileURLs.get(Z);if(J)return J;if(A8){let Y=A8(Z).toString();return this.memoizedFileURLs.set(Z,Y),Y}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(Z){let J=this.memoizedURLs.get(Z);if(J)return J;if(y6==="\\")Z=Z.replace(/\\/g,"/");let Y=encodeURI(Z).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(Z,Y),Y}},h6=kG,vG=_9,CZ=class extends vG{constructor(Z){super(Z);this.type="comment"}},E9=CZ;CZ.default=CZ;var{isClean:g6,my:m6}=A1,u6=C9,c6=E9,yG=_9,p6,rZ,oZ,l6;function d6(X){return X.map((Z)=>{if(Z.nodes)Z.nodes=d6(Z.nodes);return delete Z.source,Z})}function i6(X){if(X[g6]=!1,X.proxyOf.nodes)for(let Z of X.proxyOf.nodes)i6(Z)}var U0=class X extends yG{append(...Z){for(let J of Z){let Y=this.normalize(J,this.last);for(let Q of Y)this.proxyOf.nodes.push(Q)}return this.markDirty(),this}cleanRaws(Z){if(super.cleanRaws(Z),this.nodes)for(let J of this.nodes)J.cleanRaws(Z)}each(Z){if(!this.proxyOf.nodes)return;let J=this.getIterator(),Y,Q;while(this.indexes[J]<this.proxyOf.nodes.length){if(Y=this.indexes[J],Q=Z(this.proxyOf.nodes[Y],Y),Q===!1)break;this.indexes[J]+=1}return delete this.indexes[J],Q}every(Z){return this.nodes.every(Z)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let Z=this.lastEach;return this.indexes[Z]=0,Z}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(!Z[J])return Z[J];else if(J==="each"||typeof J==="string"&&J.startsWith("walk"))return(...Y)=>{return Z[J](...Y.map((Q)=>{if(typeof Q==="function")return(G,K)=>Q(G.toProxy(),K);else return Q}))};else if(J==="every"||J==="some")return(Y)=>{return Z[J]((Q,...G)=>Y(Q.toProxy(),...G))};else if(J==="root")return()=>Z.root().toProxy();else if(J==="nodes")return Z.nodes.map((Y)=>Y.toProxy());else if(J==="first"||J==="last")return Z[J].toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="name"||J==="params"||J==="selector")Z.markDirty();return!0}}}index(Z){if(typeof Z==="number")return Z;if(Z.proxyOf)Z=Z.proxyOf;return this.proxyOf.nodes.indexOf(Z)}insertAfter(Z,J){let Y=this.index(Z),Q=this.normalize(J,this.proxyOf.nodes[Y]).reverse();Y=this.index(Z);for(let K of Q)this.proxyOf.nodes.splice(Y+1,0,K);let G;for(let K in this.indexes)if(G=this.indexes[K],Y<G)this.indexes[K]=G+Q.length;return this.markDirty(),this}insertBefore(Z,J){let Y=this.index(Z),Q=Y===0?"prepend":!1,G=this.normalize(J,this.proxyOf.nodes[Y],Q).reverse();Y=this.index(Z);for(let V of G)this.proxyOf.nodes.splice(Y,0,V);let K;for(let V in this.indexes)if(K=this.indexes[V],Y<=K)this.indexes[V]=K+G.length;return this.markDirty(),this}normalize(Z,J){if(typeof Z==="string")Z=d6(p6(Z).nodes);else if(typeof Z>"u")Z=[];else if(Array.isArray(Z)){Z=Z.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type==="root"&&this.type!=="document"){Z=Z.nodes.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type)Z=[Z];else if(Z.prop){if(typeof Z.value>"u")throw Error("Value field is missed in node creation");else if(typeof Z.value!=="string")Z.value=String(Z.value);Z=[new u6(Z)]}else if(Z.selector)Z=[new rZ(Z)];else if(Z.name)Z=[new oZ(Z)];else if(Z.text)Z=[new c6(Z)];else throw Error("Unknown node type in node creation");return Z.map((Q)=>{if(!Q[m6])X.rebuild(Q);if(Q=Q.proxyOf,Q.parent)Q.parent.removeChild(Q);if(Q[g6])i6(Q);if(typeof Q.raws.before>"u"){if(J&&typeof J.raws.before<"u")Q.raws.before=J.raws.before.replace(/\S/g,"")}return Q.parent=this.proxyOf,Q})}prepend(...Z){Z=Z.reverse();for(let J of Z){let Y=this.normalize(J,this.first,"prepend").reverse();for(let Q of Y)this.proxyOf.nodes.unshift(Q);for(let Q in this.indexes)this.indexes[Q]=this.indexes[Q]+Y.length}return this.markDirty(),this}push(Z){return Z.parent=this,this.proxyOf.nodes.push(Z),this}removeAll(){for(let Z of this.proxyOf.nodes)Z.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(Z){Z=this.index(Z),this.proxyOf.nodes[Z].parent=void 0,this.proxyOf.nodes.splice(Z,1);let J;for(let Y in this.indexes)if(J=this.indexes[Y],J>=Z)this.indexes[Y]=J-1;return this.markDirty(),this}replaceValues(Z,J,Y){if(!Y)Y=J,J={};return this.walkDecls((Q)=>{if(J.props&&!J.props.includes(Q.prop))return;if(J.fast&&!Q.value.includes(J.fast))return;Q.value=Q.value.replace(Z,Y)}),this.markDirty(),this}some(Z){return this.nodes.some(Z)}walk(Z){return this.each((J,Y)=>{let Q;try{Q=Z(J,Y)}catch(G){throw J.addToError(G)}if(Q!==!1&&J.walk)Q=J.walk(Z);return Q})}walkAtRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="atrule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Z.test(Y.name))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Y.name===Z)return J(Y,Q)})}walkComments(Z){return this.walk((J,Y)=>{if(J.type==="comment")return Z(J,Y)})}walkDecls(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="decl")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="decl"&&Z.test(Y.prop))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="decl"&&Y.prop===Z)return J(Y,Q)})}walkRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="rule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="rule"&&Z.test(Y.selector))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="rule"&&Y.selector===Z)return J(Y,Q)})}get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};U0.registerParse=(X)=>{p6=X};U0.registerRule=(X)=>{rZ=X};U0.registerAtRule=(X)=>{oZ=X};U0.registerRoot=(X)=>{l6=X};var $0=U0;U0.default=U0;U0.rebuild=(X)=>{if(X.type==="atrule")Object.setPrototypeOf(X,oZ.prototype);else if(X.type==="rule")Object.setPrototypeOf(X,rZ.prototype);else if(X.type==="decl")Object.setPrototypeOf(X,u6.prototype);else if(X.type==="comment")Object.setPrototypeOf(X,c6.prototype);else if(X.type==="root")Object.setPrototypeOf(X,l6.prototype);if(X[m6]=!0,X.nodes)X.nodes.forEach((Z)=>{U0.rebuild(Z)})};var hG=$0,s6,a6,j1=class extends hG{constructor(Z){super({type:"document",...Z});if(!this.nodes)this.nodes=[]}toResult(Z={}){return new s6(new a6,this,Z).stringify()}};j1.registerLazyResult=(X)=>{s6=X};j1.registerProcessor=(X)=>{a6=X};var nZ=j1;j1.default=j1;var M8={},r6=function(Z){if(M8[Z])return;if(M8[Z]=!0,typeof console<"u"&&console.warn)console.warn(Z)},RZ=class{constructor(Z,J={}){if(this.type="warning",this.text=Z,J.node&&J.node.source){let Y=J.node.rangeBy(J);this.line=Y.start.line,this.column=Y.start.column,this.endLine=Y.end.line,this.endColumn=Y.end.column}for(let Y in J)this[Y]=J[Y]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}},o6=RZ;RZ.default=RZ;var gG=o6,EZ=class{constructor(Z,J,Y){this.processor=Z,this.messages=[],this.root=J,this.opts=Y,this.css=void 0,this.map=void 0}toString(){return this.css}warn(Z,J={}){if(!J.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)J.plugin=this.lastPlugin.postcssPlugin}let Y=new gG(Z,J);return this.messages.push(Y),Y}warnings(){return this.messages.filter((Z)=>Z.type==="warning")}get content(){return this.css}},tZ=EZ;EZ.default=EZ;var a9=39,w8=34,m1=92,_8=47,u1=10,Y1=32,c1=12,p1=9,l1=13,mG=91,uG=93,cG=40,pG=41,lG=123,dG=125,iG=59,sG=42,aG=58,rG=64,d1=/[\t\n\f\r "#'()/;[\\\]{}]/g,i1=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,oG=/.[\r\n"'(/\\]/,C8=/[\da-f]/i,nG=function(Z,J={}){let Y=Z.css.valueOf(),Q=J.ignoreErrors,G,K,V,q,W,z,H,j,U,D,L=Y.length,B=0,A=[],O=[];function P(){return B}function M(v){throw Z.error("Unclosed "+v,B)}function T(){return O.length===0&&B>=L}function x(v){if(O.length)return O.pop();if(B>=L)return;let c=v?v.ignoreUnclosed:!1;switch(G=Y.charCodeAt(B),G){case u1:case Y1:case p1:case l1:case c1:{K=B;do K+=1,G=Y.charCodeAt(K);while(G===Y1||G===u1||G===p1||G===l1||G===c1);D=["space",Y.slice(B,K)],B=K-1;break}case mG:case uG:case lG:case dG:case aG:case iG:case pG:{let i=String.fromCharCode(G);D=[i,i,B];break}case cG:{if(j=A.length?A.pop()[1]:"",U=Y.charCodeAt(B+1),j==="url"&&U!==a9&&U!==w8&&U!==Y1&&U!==u1&&U!==p1&&U!==c1&&U!==l1){K=B;do{if(z=!1,K=Y.indexOf(")",K+1),K===-1)if(Q||c){K=B;break}else M("bracket");H=K;while(Y.charCodeAt(H-1)===m1)H-=1,z=!z}while(z);D=["brackets",Y.slice(B,K+1),B,K],B=K}else if(K=Y.indexOf(")",B+1),q=Y.slice(B,K+1),K===-1||oG.test(q))D=["(","(",B];else D=["brackets",q,B,K],B=K;break}case a9:case w8:{V=G===a9?"'":'"',K=B;do{if(z=!1,K=Y.indexOf(V,K+1),K===-1)if(Q||c){K=B+1;break}else M("string");H=K;while(Y.charCodeAt(H-1)===m1)H-=1,z=!z}while(z);D=["string",Y.slice(B,K+1),B,K],B=K;break}case rG:{if(d1.lastIndex=B+1,d1.test(Y),d1.lastIndex===0)K=Y.length-1;else K=d1.lastIndex-2;D=["at-word",Y.slice(B,K+1),B,K],B=K;break}case m1:{K=B,W=!0;while(Y.charCodeAt(K+1)===m1)K+=1,W=!W;if(G=Y.charCodeAt(K+1),W&&G!==_8&&G!==Y1&&G!==u1&&G!==p1&&G!==l1&&G!==c1){if(K+=1,C8.test(Y.charAt(K))){while(C8.test(Y.charAt(K+1)))K+=1;if(Y.charCodeAt(K+1)===Y1)K+=1}}D=["word",Y.slice(B,K+1),B,K],B=K;break}default:{if(G===_8&&Y.charCodeAt(B+1)===sG){if(K=Y.indexOf("*/",B+2)+1,K===0)if(Q||c)K=Y.length;else M("comment");D=["comment",Y.slice(B,K+1),B,K],B=K}else{if(i1.lastIndex=B+1,i1.test(Y),i1.lastIndex===0)K=Y.length-1;else K=i1.lastIndex-2;D=["word",Y.slice(B,K+1),B,K],A.push(D),B=K}break}}return B++,D}function p(v){O.push(v)}return{back:p,endOfFile:T,nextToken:x,position:P}},n6=$0,H9=class extends n6{constructor(Z){super(Z);this.type="atrule"}append(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...Z)}prepend(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...Z)}},eZ=H9;H9.default=H9;n6.registerAtRule(H9);var t6=$0,e6,ZX,l0=class extends t6{constructor(Z){super(Z);if(this.type="root",!this.nodes)this.nodes=[]}normalize(Z,J,Y){let Q=super.normalize(Z);if(J){if(Y==="prepend")if(this.nodes.length>1)J.raws.before=this.nodes[1].raws.before;else delete J.raws.before;else if(this.first!==J)for(let G of Q)G.raws.before=J.raws.before}return Q}removeChild(Z,J){let Y=this.index(Z);if(!J&&Y===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[Y].raws.before;return super.removeChild(Z)}toResult(Z={}){return new e6(new ZX,this,Z).stringify()}};l0.registerLazyResult=(X)=>{e6=X};l0.registerProcessor=(X)=>{ZX=X};var M1=l0;l0.default=l0;t6.registerRoot(l0);var U1={comma(X){return U1.split(X,[","],!0)},space(X){let Z=[" ",`
52
+ `,"\t"];return U1.split(X,Z)},split(X,Z,J){let Y=[],Q="",G=!1,K=0,V=!1,q="",W=!1;for(let z of X){if(W)W=!1;else if(z==="\\")W=!0;else if(V){if(z===q)V=!1}else if(z==='"'||z==="'")V=!0,q=z;else if(z==="(")K+=1;else if(z===")"){if(K>0)K-=1}else if(K===0){if(Z.includes(z))G=!0}if(G){if(Q!=="")Y.push(Q.trim());Q="",G=!1}else Q+=z}if(J||Q!=="")Y.push(Q.trim());return Y}},JX=U1;U1.default=U1;var XX=$0,tG=JX,B9=class extends XX{constructor(Z){super(Z);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return tG.comma(this.selector)}set selectors(Z){let J=this.selector?this.selector.match(/,\s*/):null,Y=J?J[0]:","+this.raw("between","beforeOpen");this.selector=Z.join(Y)}},ZJ=B9;B9.default=B9;XX.registerRule(B9);var eG=C9,ZK=nG,JK=E9,XK=eZ,YK=M1,R8=ZJ,E8={empty:!0,space:!0};function QK(X){for(let Z=X.length-1;Z>=0;Z--){let J=X[Z],Y=J[3]||J[2];if(Y)return Y}}var GK=class{constructor(Z){this.input=Z,this.root=new YK,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Z,start:{column:1,line:1,offset:0}}}atrule(Z){let J=new XK;if(J.name=Z[1].slice(1),J.name==="")this.unnamedAtrule(J,Z);this.init(J,Z[2]);let Y,Q,G,K=!1,V=!1,q=[],W=[];while(!this.tokenizer.endOfFile()){if(Z=this.tokenizer.nextToken(),Y=Z[0],Y==="("||Y==="[")W.push(Y==="("?")":"]");else if(Y==="{"&&W.length>0)W.push("}");else if(Y===W[W.length-1])W.pop();if(W.length===0)if(Y===";"){J.source.end=this.getPosition(Z[2]),J.source.end.offset++,this.semicolon=!0;break}else if(Y==="{"){V=!0;break}else if(Y==="}"){if(q.length>0){G=q.length-1,Q=q[G];while(Q&&Q[0]==="space")Q=q[--G];if(Q)J.source.end=this.getPosition(Q[3]||Q[2]),J.source.end.offset++}this.end(Z);break}else q.push(Z);else q.push(Z);if(this.tokenizer.endOfFile()){K=!0;break}}if(J.raws.between=this.spacesAndCommentsFromEnd(q),q.length){if(J.raws.afterName=this.spacesAndCommentsFromStart(q),this.raw(J,"params",q),K)Z=q[q.length-1],J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++,this.spaces=J.raws.between,J.raws.between=""}else J.raws.afterName="",J.params="";if(V)J.nodes=[],this.current=J}checkMissedSemicolon(Z){let J=this.colon(Z);if(J===!1)return;let Y=0,Q;for(let G=J-1;G>=0;G--)if(Q=Z[G],Q[0]!=="space"){if(Y+=1,Y===2)break}throw this.input.error("Missed semicolon",Q[0]==="word"?Q[3]+1:Q[2])}colon(Z){let J=0,Y,Q,G;for(let[K,V]of Z.entries()){if(Y=V,Q=Y[0],Q==="(")J+=1;if(Q===")")J-=1;if(J===0&&Q===":")if(!G)this.doubleColon(Y);else if(G[0]==="word"&&G[1]==="progid")continue;else return K;G=Y}return!1}comment(Z){let J=new JK;this.init(J,Z[2]),J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++;let Y=Z[1].slice(2,-2);if(/^\s*$/.test(Y))J.text="",J.raws.left=Y,J.raws.right="";else{let Q=Y.match(/^(\s*)([^]*\S)(\s*)$/);J.text=Q[2],J.raws.left=Q[1],J.raws.right=Q[3]}}createTokenizer(){this.tokenizer=ZK(this.input)}decl(Z,J){let Y=new eG;this.init(Y,Z[0][2]);let Q=Z[Z.length-1];if(Q[0]===";")this.semicolon=!0,Z.pop();Y.source.end=this.getPosition(Q[3]||Q[2]||QK(Z)),Y.source.end.offset++;while(Z[0][0]!=="word"){if(Z.length===1)this.unknownWord(Z);Y.raws.before+=Z.shift()[1]}Y.source.start=this.getPosition(Z[0][2]),Y.prop="";while(Z.length){let W=Z[0][0];if(W===":"||W==="space"||W==="comment")break;Y.prop+=Z.shift()[1]}Y.raws.between="";let G;while(Z.length)if(G=Z.shift(),G[0]===":"){Y.raws.between+=G[1];break}else{if(G[0]==="word"&&/\w/.test(G[1]))this.unknownWord([G]);Y.raws.between+=G[1]}if(Y.prop[0]==="_"||Y.prop[0]==="*")Y.raws.before+=Y.prop[0],Y.prop=Y.prop.slice(1);let K=[],V;while(Z.length){if(V=Z[0][0],V!=="space"&&V!=="comment")break;K.push(Z.shift())}this.precheckMissedSemicolon(Z);for(let W=Z.length-1;W>=0;W--){if(G=Z[W],G[1].toLowerCase()==="!important"){Y.important=!0;let z=this.stringFrom(Z,W);if(z=this.spacesFromEnd(Z)+z,z!==" !important")Y.raws.important=z;break}else if(G[1].toLowerCase()==="important"){let z=Z.slice(0),H="";for(let j=W;j>0;j--){let U=z[j][0];if(H.trim().indexOf("!")===0&&U!=="space")break;H=z.pop()[1]+H}if(H.trim().indexOf("!")===0)Y.important=!0,Y.raws.important=H,Z=z}if(G[0]!=="space"&&G[0]!=="comment")break}if(Z.some((W)=>W[0]!=="space"&&W[0]!=="comment"))Y.raws.between+=K.map((W)=>W[1]).join(""),K=[];if(this.raw(Y,"value",K.concat(Z),J),Y.value.includes(":")&&!J)this.checkMissedSemicolon(Z)}doubleColon(Z){throw this.input.error("Double colon",{offset:Z[2]},{offset:Z[2]+Z[1].length})}emptyRule(Z){let J=new R8;this.init(J,Z[2]),J.selector="",J.raws.between="",this.current=J}end(Z){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(Z[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(Z)}endFile(){if(this.current.parent)this.unclosedBlock();if(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())}freeSemicolon(Z){if(this.spaces+=Z[1],this.current.nodes){let J=this.current.nodes[this.current.nodes.length-1];if(J&&J.type==="rule"&&!J.raws.ownSemicolon)J.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(Z){let J=this.input.fromOffset(Z);return{column:J.col,line:J.line,offset:Z}}init(Z,J){if(this.current.push(Z),Z.source={input:this.input,start:this.getPosition(J)},Z.raws.before=this.spaces,this.spaces="",Z.type!=="comment")this.semicolon=!1}other(Z){let J=!1,Y=null,Q=!1,G=null,K=[],V=Z[1].startsWith("--"),q=[],W=Z;while(W){if(Y=W[0],q.push(W),Y==="("||Y==="["){if(!G)G=W;K.push(Y==="("?")":"]")}else if(V&&Q&&Y==="{"){if(!G)G=W;K.push("}")}else if(K.length===0){if(Y===";")if(Q){this.decl(q,V);return}else break;else if(Y==="{"){this.rule(q);return}else if(Y==="}"){this.tokenizer.back(q.pop()),J=!0;break}else if(Y===":")Q=!0}else if(Y===K[K.length-1]){if(K.pop(),K.length===0)G=null}W=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())J=!0;if(K.length>0)this.unclosedBracket(G);if(J&&Q){if(!V)while(q.length){if(W=q[q.length-1][0],W!=="space"&&W!=="comment")break;this.tokenizer.back(q.pop())}this.decl(q,V)}else this.unknownWord(q)}parse(){let Z;while(!this.tokenizer.endOfFile())switch(Z=this.tokenizer.nextToken(),Z[0]){case"space":this.spaces+=Z[1];break;case";":this.freeSemicolon(Z);break;case"}":this.end(Z);break;case"comment":this.comment(Z);break;case"at-word":this.atrule(Z);break;case"{":this.emptyRule(Z);break;default:this.other(Z);break}this.endFile()}precheckMissedSemicolon(){}raw(Z,J,Y,Q){let G,K,V=Y.length,q="",W=!0,z,H;for(let j=0;j<V;j+=1)if(G=Y[j],K=G[0],K==="space"&&j===V-1&&!Q)W=!1;else if(K==="comment")if(H=Y[j-1]?Y[j-1][0]:"empty",z=Y[j+1]?Y[j+1][0]:"empty",!E8[H]&&!E8[z])if(q.slice(-1)===",")W=!1;else q+=G[1];else W=!1;else q+=G[1];if(!W){let j=Y.reduce((U,D)=>U+D[1],"");Z.raws[J]={raw:j,value:q}}Z[J]=q}rule(Z){Z.pop();let J=new R8;this.init(J,Z[0][2]),J.raws.between=this.spacesAndCommentsFromEnd(Z),this.raw(J,"selector",Z),this.current=J}spacesAndCommentsFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space"&&J!=="comment")break;Y=Z.pop()[1]+Y}return Y}spacesAndCommentsFromStart(Z){let J,Y="";while(Z.length){if(J=Z[0][0],J!=="space"&&J!=="comment")break;Y+=Z.shift()[1]}return Y}spacesFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space")break;Y=Z.pop()[1]+Y}return Y}stringFrom(Z,J){let Y="";for(let Q=J;Q<Z.length;Q++)Y+=Z[Q][1];return Z.splice(J,Z.length-J),Y}unclosedBlock(){let Z=this.current.source.start;throw this.input.error("Unclosed block",Z.line,Z.column)}unclosedBracket(Z){throw this.input.error("Unclosed bracket",{offset:Z[2]},{offset:Z[2]+1})}unexpectedClose(Z){throw this.input.error("Unexpected }",{offset:Z[2]},{offset:Z[2]+1})}unknownWord(Z){throw this.input.error("Unknown word",{offset:Z[0][2]},{offset:Z[0][2]+Z[0][1].length})}unnamedAtrule(Z,J){throw this.input.error("At-rule without name",{offset:J[2]},{offset:J[2]+J[1].length})}},KK=GK,qK=$0,VK=KK,WK=R9;function j9(X,Z){let J=new WK(X,Z),Y=new VK(J);try{Y.parse()}catch(Q){if(Q.name==="CssSyntaxError"&&Z&&Z.from){if(/\.scss$/i.test(Z.from))Q.message+=`
53
53
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`;else if(/\.sass/i.test(Z.from))Q.message+=`
54
54
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`;else if(/\.less$/i.test(Z.from))Q.message+=`
55
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw Q}return Y.root}var nZ=W9;W9.default=W9;hK.registerParse(W9);var{isClean:V0,my:mK}=D1,uK=M6,cK=A9,pK=C0,lK=sZ,dK=f6,WX=aZ,iK=nZ,sK=F1,aK={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rK={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},oK={Once:!0,postcssPlugin:!0,prepare:!0},c0=0;function J1(X){return typeof X==="object"&&typeof X.then==="function"}function m6(X){let Z=!1,J=aK[X.type];if(X.type==="decl")Z=X.prop.toLowerCase();else if(X.type==="atrule")Z=X.name.toLowerCase();if(Z&&X.append)return[J,J+"-"+Z,c0,J+"Exit",J+"Exit-"+Z];else if(Z)return[J,J+"-"+Z,J+"Exit",J+"Exit-"+Z];else if(X.append)return[J,c0,J+"Exit"];else return[J,J+"Exit"]}function HX(X){let Z;if(X.type==="document")Z=["Document",c0,"DocumentExit"];else if(X.type==="root")Z=["Root",c0,"RootExit"];else Z=m6(X);return{eventIndex:0,events:Z,iterator:0,node:X,visitorIndex:0,visitors:[]}}function _Z(X){if(X[V0]=!1,X.nodes)X.nodes.forEach((Z)=>_Z(Z));return X}var CZ={},p0=class X{constructor(Z,J,Y){this.stringified=!1,this.processed=!1;let Q;if(typeof J==="object"&&J!==null&&(J.type==="root"||J.type==="document"))Q=_Z(J);else if(J instanceof X||J instanceof WX){if(Q=_Z(J.root),J.map){if(typeof Y.map>"u")Y.map={};if(!Y.map.inline)Y.map.inline=!1;Y.map.prev=J.map}}else{let K=iK;if(Y.syntax)K=Y.syntax.parse;if(Y.parser)K=Y.parser;if(K.parse)K=K.parse;try{Q=K(J,Y)}catch(q){this.processed=!0,this.error=q}if(Q&&!Q[mK])pK.rebuild(Q)}this.result=new WX(Z,Q,Y),this.helpers={...CZ,postcss:CZ,result:this.result},this.plugins=this.processor.plugins.map((K)=>{if(typeof K==="object"&&K.prepare)return{...K,...K.prepare(this.result)};else return K})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(Z,J){let Y=this.result.lastPlugin;try{if(J)J.addToError(Z);if(this.error=Z,Z.name==="CssSyntaxError"&&!Z.plugin)Z.plugin=Y.postcssPlugin,Z.setMessage();else if(Y.postcssVersion){let{postcssPlugin:Q,postcssVersion:K}=Y,q=this.result.processor.version,V=K.split("."),G=q.split(".");if(V[0]!==G[0]||parseInt(V[1])>parseInt(G[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+q+", but "+Q+" uses "+K+". Perhaps this is the source of the error below.")}}catch(Q){if(console&&console.error)console.error(Q)}return Z}prepareVisitors(){this.listeners={};let Z=(J,Y,Q)=>{if(!this.listeners[Y])this.listeners[Y]=[];this.listeners[Y].push([J,Q])};for(let J of this.plugins)if(typeof J==="object")for(let Y in J){if(!rK[Y]&&/^[A-Z]/.test(Y))throw Error(`Unknown event ${Y} in ${J.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!oK[Y]){if(typeof J[Y]==="object")for(let Q in J[Y])if(Q==="*")Z(J,Y,J[Y][Q]);else Z(J,Y+"-"+Q.toLowerCase(),J[Y][Q]);else if(typeof J[Y]==="function")Z(J,Y,J[Y])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let Z=0;Z<this.plugins.length;Z++){let J=this.plugins[Z],Y=this.runOnRoot(J);if(J1(Y))try{await Y}catch(Q){throw this.handleError(Q)}}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[V0]){Z[V0]=!0;let J=[HX(Z)];while(J.length>0){let Y=this.visitTick(J);if(J1(Y))try{await Y}catch(Q){let K=J[J.length-1].node;throw this.handleError(Q,K)}}}if(this.listeners.OnceExit)for(let[J,Y]of this.listeners.OnceExit){this.result.lastPlugin=J;try{if(Z.type==="document"){let Q=Z.nodes.map((K)=>Y(K,this.helpers));await Promise.all(Q)}else await Y(Z,this.helpers)}catch(Q){throw this.handleError(Q)}}}return this.processed=!0,this.stringify()}runOnRoot(Z){this.result.lastPlugin=Z;try{if(typeof Z==="object"&&Z.Once){if(this.result.root.type==="document"){let J=this.result.root.nodes.map((Y)=>Z.Once(Y,this.helpers));if(J1(J[0]))return Promise.all(J);return J}return Z.Once(this.result.root,this.helpers)}else if(typeof Z==="function")return Z(this.result.root,this.result)}catch(J){throw this.handleError(J)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let Z=this.result.opts,J=cK;if(Z.syntax)J=Z.syntax.stringify;if(Z.stringifier)J=Z.stringifier;if(J.stringify)J=J.stringify;let Q=new uK(J,this.result.root,this.result.opts).generate();return this.result.css=Q[0],this.result.map=Q[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let Z of this.plugins){let J=this.runOnRoot(Z);if(J1(J))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[V0])Z[V0]=!0,this.walkSync(Z);if(this.listeners.OnceExit)if(Z.type==="document")for(let J of Z.nodes)this.visitSync(this.listeners.OnceExit,J);else this.visitSync(this.listeners.OnceExit,Z)}return this.result}then(Z,J){if(!("from"in this.opts))dK("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.");return this.async().then(Z,J)}toString(){return this.css}visitSync(Z,J){for(let[Y,Q]of Z){this.result.lastPlugin=Y;let K;try{K=Q(J,this.helpers)}catch(q){throw this.handleError(q,J.proxyOf)}if(J.type!=="root"&&J.type!=="document"&&!J.parent)return!0;if(J1(K))throw this.getAsyncError()}}visitTick(Z){let J=Z[Z.length-1],{node:Y,visitors:Q}=J;if(Y.type!=="root"&&Y.type!=="document"&&!Y.parent){Z.pop();return}if(Q.length>0&&J.visitorIndex<Q.length){let[q,V]=Q[J.visitorIndex];if(J.visitorIndex+=1,J.visitorIndex===Q.length)J.visitors=[],J.visitorIndex=0;this.result.lastPlugin=q;try{return V(Y.toProxy(),this.helpers)}catch(G){throw this.handleError(G,Y)}}if(J.iterator!==0){let q=J.iterator,V;while(V=Y.nodes[Y.indexes[q]])if(Y.indexes[q]+=1,!V[V0]){V[V0]=!0,Z.push(HX(V));return}J.iterator=0,delete Y.indexes[q]}let K=J.events;while(J.eventIndex<K.length){let q=K[J.eventIndex];if(J.eventIndex+=1,q===c0){if(Y.nodes&&Y.nodes.length)Y[V0]=!0,J.iterator=Y.getIterator();return}else if(this.listeners[q]){J.visitors=this.listeners[q];return}}Z.pop()}walkSync(Z){Z[V0]=!0;let J=m6(Z);for(let Y of J)if(Y===c0){if(Z.nodes)Z.each((Q)=>{if(!Q[V0])this.walkSync(Q)})}else{let Q=this.listeners[Y];if(Q){if(this.visitSync(Q,Z.toProxy()))return}}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};p0.registerPostcss=(X)=>{CZ=X};var u6=p0;p0.default=p0;sK.registerLazyResult(p0);lK.registerLazyResult(p0);var nK=M6,tK=A9,eK=f6,Zq=nZ,Jq=aZ,RZ=class{constructor(Z,J,Y){J=J.toString(),this.stringified=!1,this._processor=Z,this._css=J,this._opts=Y,this._map=void 0;let Q,K=tK;this.result=new Jq(this._processor,Q,this._opts),this.result.css=J;let q=this;Object.defineProperty(this.result,"root",{get(){return q.root}});let V=new nK(K,Q,this._opts,J);if(V.isMap()){let[G,U]=V.generate();if(G)this.result.css=G;if(U)this.result.map=U}else V.clearAnnotation(),this.result.css=V.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}sync(){if(this.error)throw this.error;return this.result}then(Z,J){if(!("from"in this._opts))eK("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.");return this.async().then(Z,J)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let Z,J=Zq;try{Z=J(this._css,this._opts)}catch(Y){this.error=Y}if(this.error)throw this.error;else return this._root=Z,Z}get[Symbol.toStringTag](){return"NoWorkResult"}},Xq=RZ;RZ.default=RZ;var Yq=Xq,Qq=u6,Kq=sZ,qq=F1,z1=class{constructor(Z=[]){this.version="8.4.38",this.plugins=this.normalize(Z)}normalize(Z){let J=[];for(let Y of Z){if(Y.postcss===!0)Y=Y();else if(Y.postcss)Y=Y.postcss;if(typeof Y==="object"&&Array.isArray(Y.plugins))J=J.concat(Y.plugins);else if(typeof Y==="object"&&Y.postcssPlugin)J.push(Y);else if(typeof Y==="function")J.push(Y);else if(typeof Y==="object"&&(Y.parse||Y.stringify))throw 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 Error(Y+" is not a PostCSS plugin")}return J}process(Z,J={}){if(!this.plugins.length&&!J.parser&&!J.stringifier&&!J.syntax)return new Yq(this,Z,J);else return new Qq(this,Z,J)}use(Z){return this.plugins=this.plugins.concat(this.normalize([Z])),this}},Gq=z1;z1.default=z1;qq.registerProcessor(z1);Kq.registerProcessor(z1);var Vq=M9,Uq=P6,Wq=_9,Hq=rZ,zq=w9,Bq=F1,jq=oZ;function B1(X,Z){if(Array.isArray(X))return X.map((Q)=>B1(Q));let{inputs:J,...Y}=X;if(J){Z=[];for(let Q of J){let K={...Q,__proto__:zq.prototype};if(K.map)K.map={...K.map,__proto__:Uq.prototype};Z.push(K)}}if(Y.nodes)Y.nodes=X.nodes.map((Q)=>B1(Q,Z));if(Y.source){let{inputId:Q,...K}=Y.source;if(Y.source=K,Q!=null)Y.source.input=Z[Q]}if(Y.type==="root")return new Bq(Y);else if(Y.type==="decl")return new Vq(Y);else if(Y.type==="rule")return new jq(Y);else if(Y.type==="comment")return new Wq(Y);else if(Y.type==="atrule")return new Hq(Y);else throw Error("Unknown node type: "+X.type)}var Lq=B1;B1.default=B1;var Pq=lZ,c6=M9,Dq=u6,Fq=C0,tZ=Gq,Aq=A9,Oq=Lq,p6=sZ,Mq=x6,l6=_9,d6=rZ,wq=aZ,_q=w9,Cq=nZ,Rq=y6,i6=oZ,s6=F1,Eq=O9;function N(...X){if(X.length===1&&Array.isArray(X[0]))X=X[0];return new tZ(X)}N.plugin=function(Z,J){let Y=!1;function Q(...q){if(console&&console.warn&&!Y){if(Y=!0,console.warn(Z+`: postcss.plugin was deprecated. Migration guide:
55
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw Q}return Y.root}var JJ=j9;j9.default=j9;qK.registerParse(j9);var{isClean:W0,my:zK}=A1,HK=h6,BK=w9,jK=$0,UK=nZ,LK=r6,$8=tZ,DK=JJ,PK=M1,FK={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},OK={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},AK={Once:!0,postcssPlugin:!0,prepare:!0},d0=0;function Q1(X){return typeof X==="object"&&typeof X.then==="function"}function YX(X){let Z=!1,J=FK[X.type];if(X.type==="decl")Z=X.prop.toLowerCase();else if(X.type==="atrule")Z=X.name.toLowerCase();if(Z&&X.append)return[J,J+"-"+Z,d0,J+"Exit",J+"Exit-"+Z];else if(Z)return[J,J+"-"+Z,J+"Exit",J+"Exit-"+Z];else if(X.append)return[J,d0,J+"Exit"];else return[J,J+"Exit"]}function N8(X){let Z;if(X.type==="document")Z=["Document",d0,"DocumentExit"];else if(X.type==="root")Z=["Root",d0,"RootExit"];else Z=YX(X);return{eventIndex:0,events:Z,iterator:0,node:X,visitorIndex:0,visitors:[]}}function $Z(X){if(X[W0]=!1,X.nodes)X.nodes.forEach((Z)=>$Z(Z));return X}var NZ={},i0=class X{constructor(Z,J,Y){this.stringified=!1,this.processed=!1;let Q;if(typeof J==="object"&&J!==null&&(J.type==="root"||J.type==="document"))Q=$Z(J);else if(J instanceof X||J instanceof $8){if(Q=$Z(J.root),J.map){if(typeof Y.map>"u")Y.map={};if(!Y.map.inline)Y.map.inline=!1;Y.map.prev=J.map}}else{let G=DK;if(Y.syntax)G=Y.syntax.parse;if(Y.parser)G=Y.parser;if(G.parse)G=G.parse;try{Q=G(J,Y)}catch(K){this.processed=!0,this.error=K}if(Q&&!Q[zK])jK.rebuild(Q)}this.result=new $8(Z,Q,Y),this.helpers={...NZ,postcss:NZ,result:this.result},this.plugins=this.processor.plugins.map((G)=>{if(typeof G==="object"&&G.prepare)return{...G,...G.prepare(this.result)};else return G})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(Z,J){let Y=this.result.lastPlugin;try{if(J)J.addToError(Z);if(this.error=Z,Z.name==="CssSyntaxError"&&!Z.plugin)Z.plugin=Y.postcssPlugin,Z.setMessage();else if(Y.postcssVersion){let{postcssPlugin:Q,postcssVersion:G}=Y,K=this.result.processor.version,V=G.split("."),q=K.split(".");if(V[0]!==q[0]||parseInt(V[1])>parseInt(q[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+K+", but "+Q+" uses "+G+". Perhaps this is the source of the error below.")}}catch(Q){if(console&&console.error)console.error(Q)}return Z}prepareVisitors(){this.listeners={};let Z=(J,Y,Q)=>{if(!this.listeners[Y])this.listeners[Y]=[];this.listeners[Y].push([J,Q])};for(let J of this.plugins)if(typeof J==="object")for(let Y in J){if(!OK[Y]&&/^[A-Z]/.test(Y))throw Error(`Unknown event ${Y} in ${J.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!AK[Y]){if(typeof J[Y]==="object")for(let Q in J[Y])if(Q==="*")Z(J,Y,J[Y][Q]);else Z(J,Y+"-"+Q.toLowerCase(),J[Y][Q]);else if(typeof J[Y]==="function")Z(J,Y,J[Y])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let Z=0;Z<this.plugins.length;Z++){let J=this.plugins[Z],Y=this.runOnRoot(J);if(Q1(Y))try{await Y}catch(Q){throw this.handleError(Q)}}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[W0]){Z[W0]=!0;let J=[N8(Z)];while(J.length>0){let Y=this.visitTick(J);if(Q1(Y))try{await Y}catch(Q){let G=J[J.length-1].node;throw this.handleError(Q,G)}}}if(this.listeners.OnceExit)for(let[J,Y]of this.listeners.OnceExit){this.result.lastPlugin=J;try{if(Z.type==="document"){let Q=Z.nodes.map((G)=>Y(G,this.helpers));await Promise.all(Q)}else await Y(Z,this.helpers)}catch(Q){throw this.handleError(Q)}}}return this.processed=!0,this.stringify()}runOnRoot(Z){this.result.lastPlugin=Z;try{if(typeof Z==="object"&&Z.Once){if(this.result.root.type==="document"){let J=this.result.root.nodes.map((Y)=>Z.Once(Y,this.helpers));if(Q1(J[0]))return Promise.all(J);return J}return Z.Once(this.result.root,this.helpers)}else if(typeof Z==="function")return Z(this.result.root,this.result)}catch(J){throw this.handleError(J)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let Z=this.result.opts,J=BK;if(Z.syntax)J=Z.syntax.stringify;if(Z.stringifier)J=Z.stringifier;if(J.stringify)J=J.stringify;let Q=new HK(J,this.result.root,this.result.opts).generate();return this.result.css=Q[0],this.result.map=Q[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let Z of this.plugins){let J=this.runOnRoot(Z);if(Q1(J))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[W0])Z[W0]=!0,this.walkSync(Z);if(this.listeners.OnceExit)if(Z.type==="document")for(let J of Z.nodes)this.visitSync(this.listeners.OnceExit,J);else this.visitSync(this.listeners.OnceExit,Z)}return this.result}then(Z,J){if(!("from"in this.opts))LK("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.");return this.async().then(Z,J)}toString(){return this.css}visitSync(Z,J){for(let[Y,Q]of Z){this.result.lastPlugin=Y;let G;try{G=Q(J,this.helpers)}catch(K){throw this.handleError(K,J.proxyOf)}if(J.type!=="root"&&J.type!=="document"&&!J.parent)return!0;if(Q1(G))throw this.getAsyncError()}}visitTick(Z){let J=Z[Z.length-1],{node:Y,visitors:Q}=J;if(Y.type!=="root"&&Y.type!=="document"&&!Y.parent){Z.pop();return}if(Q.length>0&&J.visitorIndex<Q.length){let[K,V]=Q[J.visitorIndex];if(J.visitorIndex+=1,J.visitorIndex===Q.length)J.visitors=[],J.visitorIndex=0;this.result.lastPlugin=K;try{return V(Y.toProxy(),this.helpers)}catch(q){throw this.handleError(q,Y)}}if(J.iterator!==0){let K=J.iterator,V;while(V=Y.nodes[Y.indexes[K]])if(Y.indexes[K]+=1,!V[W0]){V[W0]=!0,Z.push(N8(V));return}J.iterator=0,delete Y.indexes[K]}let G=J.events;while(J.eventIndex<G.length){let K=G[J.eventIndex];if(J.eventIndex+=1,K===d0){if(Y.nodes&&Y.nodes.length)Y[W0]=!0,J.iterator=Y.getIterator();return}else if(this.listeners[K]){J.visitors=this.listeners[K];return}}Z.pop()}walkSync(Z){Z[W0]=!0;let J=YX(Z);for(let Y of J)if(Y===d0){if(Z.nodes)Z.each((Q)=>{if(!Q[W0])this.walkSync(Q)})}else{let Q=this.listeners[Y];if(Q){if(this.visitSync(Q,Z.toProxy()))return}}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};i0.registerPostcss=(X)=>{NZ=X};var QX=i0;i0.default=i0;PK.registerLazyResult(i0);UK.registerLazyResult(i0);var MK=h6,wK=w9,_K=r6,CK=JJ,RK=tZ,IZ=class{constructor(Z,J,Y){J=J.toString(),this.stringified=!1,this._processor=Z,this._css=J,this._opts=Y,this._map=void 0;let Q,G=wK;this.result=new RK(this._processor,Q,this._opts),this.result.css=J;let K=this;Object.defineProperty(this.result,"root",{get(){return K.root}});let V=new MK(G,Q,this._opts,J);if(V.isMap()){let[q,W]=V.generate();if(q)this.result.css=q;if(W)this.result.map=W}else V.clearAnnotation(),this.result.css=V.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}sync(){if(this.error)throw this.error;return this.result}then(Z,J){if(!("from"in this._opts))_K("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.");return this.async().then(Z,J)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let Z,J=CK;try{Z=J(this._css,this._opts)}catch(Y){this.error=Y}if(this.error)throw this.error;else return this._root=Z,Z}get[Symbol.toStringTag](){return"NoWorkResult"}},EK=IZ;IZ.default=IZ;var $K=EK,NK=QX,IK=nZ,TK=M1,L1=class{constructor(Z=[]){this.version="8.4.38",this.plugins=this.normalize(Z)}normalize(Z){let J=[];for(let Y of Z){if(Y.postcss===!0)Y=Y();else if(Y.postcss)Y=Y.postcss;if(typeof Y==="object"&&Array.isArray(Y.plugins))J=J.concat(Y.plugins);else if(typeof Y==="object"&&Y.postcssPlugin)J.push(Y);else if(typeof Y==="function")J.push(Y);else if(typeof Y==="object"&&(Y.parse||Y.stringify))throw 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 Error(Y+" is not a PostCSS plugin")}return J}process(Z,J={}){if(!this.plugins.length&&!J.parser&&!J.stringifier&&!J.syntax)return new $K(this,Z,J);else return new NK(this,Z,J)}use(Z){return this.plugins=this.plugins.concat(this.normalize([Z])),this}},SK=L1;L1.default=L1;TK.registerProcessor(L1);IK.registerProcessor(L1);var xK=C9,bK=b6,fK=E9,kK=eZ,vK=R9,yK=M1,hK=ZJ;function D1(X,Z){if(Array.isArray(X))return X.map((Q)=>D1(Q));let{inputs:J,...Y}=X;if(J){Z=[];for(let Q of J){let G={...Q,__proto__:vK.prototype};if(G.map)G.map={...G.map,__proto__:bK.prototype};Z.push(G)}}if(Y.nodes)Y.nodes=X.nodes.map((Q)=>D1(Q,Z));if(Y.source){let{inputId:Q,...G}=Y.source;if(Y.source=G,Q!=null)Y.source.input=Z[Q]}if(Y.type==="root")return new yK(Y);else if(Y.type==="decl")return new xK(Y);else if(Y.type==="rule")return new hK(Y);else if(Y.type==="comment")return new fK(Y);else if(Y.type==="atrule")return new kK(Y);else throw Error("Unknown node type: "+X.type)}var gK=D1;D1.default=D1;var mK=aZ,GX=C9,uK=QX,cK=$0,XJ=SK,pK=w9,lK=gK,KX=nZ,dK=o6,qX=E9,VX=eZ,iK=tZ,sK=R9,aK=JJ,rK=JX,WX=ZJ,zX=M1,oK=_9;function I(...X){if(X.length===1&&Array.isArray(X[0]))X=X[0];return new XJ(X)}I.plugin=function(Z,J){let Y=!1;function Q(...K){if(console&&console.warn&&!Y){if(Y=!0,console.warn(Z+`: postcss.plugin was deprecated. Migration guide:
56
56
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn"))console.warn(Z+`: 里面 postcss.plugin 被弃用. 迁移指南:
57
- https://www.w3ctech.com/topic/2226`)}let V=J(...q);return V.postcssPlugin=Z,V.postcssVersion=new tZ().version,V}let K;return Object.defineProperty(Q,"postcss",{get(){if(!K)K=Q();return K}}),Q.process=function(q,V,G){return N([Q(G)]).process(q,V)},Q};N.stringify=Aq;N.parse=Cq;N.fromJSON=Oq;N.list=Rq;N.comment=(X)=>new l6(X);N.atRule=(X)=>new d6(X);N.decl=(X)=>new c6(X);N.rule=(X)=>new i6(X);N.root=(X)=>new s6(X);N.document=(X)=>new p6(X);N.CssSyntaxError=Pq;N.Declaration=c6;N.Container=Fq;N.Processor=tZ;N.Document=p6;N.Comment=l6;N.Warning=Mq;N.AtRule=d6;N.Result=wq;N.Input=_q;N.Rule=i6;N.Root=s6;N.Node=Eq;Dq.registerPostcss(N);var Iq=N;N.default=N;var y=h7(Iq);y.stringify;y.fromJSON;y.plugin;y.parse;y.list;y.document;y.comment;y.atRule;y.rule;y.decl;y.root;y.CssSyntaxError;y.Declaration;y.Container;y.Processor;y.Document;y.Comment;y.Warning;y.AtRule;y.Result;y.Input;y.Rule;y.Root;y.Node;class eZ{constructor(...X){Z0(this,"parentElement",null),Z0(this,"parentNode",null),Z0(this,"ownerDocument"),Z0(this,"firstChild",null),Z0(this,"lastChild",null),Z0(this,"previousSibling",null),Z0(this,"nextSibling",null),Z0(this,"ELEMENT_NODE",1),Z0(this,"TEXT_NODE",3),Z0(this,"nodeType"),Z0(this,"nodeName"),Z0(this,"RRNodeType")}get childNodes(){let X=[],Z=this.firstChild;while(Z)X.push(Z),Z=Z.nextSibling;return X}contains(X){if(!(X instanceof eZ))return!1;else if(X.ownerDocument!==this.ownerDocument)return!1;else if(X===this)return!0;while(X.parentNode){if(X.parentNode===this)return!0;X=X.parentNode}return!1}appendChild(X){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(X,Z){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(X){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}var zX={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},BX={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},l1={},$q=()=>{return!!globalThis.Zone};function ZJ(X){if(l1[X])return l1[X];let Z=globalThis[X],J=Z.prototype,Y=X in zX?zX[X]:void 0,Q=Boolean(Y&&Y.every((V)=>{var G,U;return Boolean((U=(G=Object.getOwnPropertyDescriptor(J,V))==null?void 0:G.get)==null?void 0:U.toString().includes("[native code]"))})),K=X in BX?BX[X]:void 0,q=Boolean(K&&K.every((V)=>{var G;return typeof J[V]==="function"&&((G=J[V])==null?void 0:G.toString().includes("[native code]"))}));if(Q&&q&&!$q())return l1[X]=Z.prototype,Z.prototype;try{let V=document.createElement("iframe");document.body.appendChild(V);let G=V.contentWindow;if(!G)return Z.prototype;let U=G[X].prototype;if(document.body.removeChild(V),!U)return J;return l1[X]=U}catch{return J}}var d9={};function B0(X,Z,J){var Y;let Q=`${X}.${String(J)}`;if(d9[Q])return d9[Q].call(Z);let K=ZJ(X),q=(Y=Object.getOwnPropertyDescriptor(K,J))==null?void 0:Y.get;if(!q)return Z[J];return d9[Q]=q,q.call(Z)}var i9={};function a6(X,Z,J){let Y=`${X}.${String(J)}`;if(i9[Y])return i9[Y].bind(Z);let K=ZJ(X)[J];if(typeof K!=="function")return Z[J];return i9[Y]=K,K.bind(Z)}function Nq(X){return B0("Node",X,"ownerDocument")}function Tq(X){return B0("Node",X,"childNodes")}function Sq(X){return B0("Node",X,"parentNode")}function fq(X){return B0("Node",X,"parentElement")}function xq(X){return B0("Node",X,"textContent")}function bq(X,Z){return a6("Node",X,"contains")(Z)}function kq(X){return a6("Node",X,"getRootNode")()}function vq(X){if(!X||!("host"in X))return null;return B0("ShadowRoot",X,"host")}function hq(X){return X.styleSheets}function yq(X){if(!X||!("shadowRoot"in X))return null;return B0("Element",X,"shadowRoot")}function gq(X,Z){return B0("Element",X,"querySelector")(Z)}function mq(X,Z){return B0("Element",X,"querySelectorAll")(Z)}function r6(){return ZJ("MutationObserver").constructor}function R0(X,Z,J){try{if(!(Z in X))return()=>{};let Y=X[Z],Q=J(Y);if(typeof Q==="function")Q.prototype=Q.prototype||{},Object.defineProperties(Q,{__rrweb_original__:{enumerable:!1,value:Y}});return X[Z]=Q,()=>{X[Z]=Y}}catch{return()=>{}}}var w={ownerDocument:Nq,childNodes:Tq,parentNode:Sq,parentElement:fq,textContent:xq,contains:bq,getRootNode:kq,host:vq,styleSheets:hq,shadowRoot:yq,querySelector:gq,querySelectorAll:mq,mutationObserver:r6,patch:R0};function a(X,Z,J=document){let Y={capture:!0,passive:!0};return J.addEventListener(X,Z,Y),()=>J.removeEventListener(X,Z,Y)}var f0=`Please stop import mirror directly. Instead of that,\r
57
+ https://www.w3ctech.com/topic/2226`)}let V=J(...K);return V.postcssPlugin=Z,V.postcssVersion=new XJ().version,V}let G;return Object.defineProperty(Q,"postcss",{get(){if(!G)G=Q();return G}}),Q.process=function(K,V,q){return I([Q(q)]).process(K,V)},Q};I.stringify=pK;I.parse=aK;I.fromJSON=lK;I.list=rK;I.comment=(X)=>new qX(X);I.atRule=(X)=>new VX(X);I.decl=(X)=>new GX(X);I.rule=(X)=>new WX(X);I.root=(X)=>new zX(X);I.document=(X)=>new KX(X);I.CssSyntaxError=mK;I.Declaration=GX;I.Container=cK;I.Processor=XJ;I.Document=KX;I.Comment=qX;I.Warning=dK;I.AtRule=VX;I.Result=iK;I.Input=sK;I.Rule=WX;I.Root=zX;I.Node=oK;uK.registerPostcss(I);var nK=I;I.default=I;var h=qG(nK);h.stringify;h.fromJSON;h.plugin;h.parse;h.list;h.document;h.comment;h.atRule;h.rule;h.decl;h.root;h.CssSyntaxError;h.Declaration;h.Container;h.Processor;h.Document;h.Comment;h.Warning;h.AtRule;h.Result;h.Input;h.Rule;h.Root;h.Node;class YJ{constructor(...X){Z0(this,"parentElement",null),Z0(this,"parentNode",null),Z0(this,"ownerDocument"),Z0(this,"firstChild",null),Z0(this,"lastChild",null),Z0(this,"previousSibling",null),Z0(this,"nextSibling",null),Z0(this,"ELEMENT_NODE",1),Z0(this,"TEXT_NODE",3),Z0(this,"nodeType"),Z0(this,"nodeName"),Z0(this,"RRNodeType")}get childNodes(){let X=[],Z=this.firstChild;while(Z)X.push(Z),Z=Z.nextSibling;return X}contains(X){if(!(X instanceof YJ))return!1;else if(X.ownerDocument!==this.ownerDocument)return!1;else if(X===this)return!0;while(X.parentNode){if(X.parentNode===this)return!0;X=X.parentNode}return!1}appendChild(X){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(X,Z){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(X){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}var I8={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},T8={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},s1={},tK=()=>{return!!globalThis.Zone};function QJ(X){if(s1[X])return s1[X];let Z=globalThis[X],J=Z.prototype,Y=X in I8?I8[X]:void 0,Q=Boolean(Y&&Y.every((V)=>{var q,W;return Boolean((W=(q=Object.getOwnPropertyDescriptor(J,V))==null?void 0:q.get)==null?void 0:W.toString().includes("[native code]"))})),G=X in T8?T8[X]:void 0,K=Boolean(G&&G.every((V)=>{var q;return typeof J[V]==="function"&&((q=J[V])==null?void 0:q.toString().includes("[native code]"))}));if(Q&&K&&!tK())return s1[X]=Z.prototype,Z.prototype;try{let V=document.createElement("iframe");document.body.appendChild(V);let q=V.contentWindow;if(!q)return Z.prototype;let W=q[X].prototype;if(document.body.removeChild(V),!W)return J;return s1[X]=W}catch{return J}}var r9={};function D0(X,Z,J){var Y;let Q=`${X}.${String(J)}`;if(r9[Q])return r9[Q].call(Z);let G=QJ(X),K=(Y=Object.getOwnPropertyDescriptor(G,J))==null?void 0:Y.get;if(!K)return Z[J];return r9[Q]=K,K.call(Z)}var o9={};function HX(X,Z,J){let Y=`${X}.${String(J)}`;if(o9[Y])return o9[Y].bind(Z);let G=QJ(X)[J];if(typeof G!=="function")return Z[J];return o9[Y]=G,G.bind(Z)}function eK(X){return D0("Node",X,"ownerDocument")}function Zq(X){return D0("Node",X,"childNodes")}function Jq(X){return D0("Node",X,"parentNode")}function Xq(X){return D0("Node",X,"parentElement")}function Yq(X){return D0("Node",X,"textContent")}function Qq(X,Z){return HX("Node",X,"contains")(Z)}function Gq(X){return HX("Node",X,"getRootNode")()}function Kq(X){if(!X||!("host"in X))return null;return D0("ShadowRoot",X,"host")}function qq(X){return X.styleSheets}function Vq(X){if(!X||!("shadowRoot"in X))return null;return D0("Element",X,"shadowRoot")}function Wq(X,Z){return D0("Element",X,"querySelector")(Z)}function zq(X,Z){return D0("Element",X,"querySelectorAll")(Z)}function BX(){return QJ("MutationObserver").constructor}function N0(X,Z,J){try{if(!(Z in X))return()=>{};let Y=X[Z],Q=J(Y);if(typeof Q==="function")Q.prototype=Q.prototype||{},Object.defineProperties(Q,{__rrweb_original__:{enumerable:!1,value:Y}});return X[Z]=Q,()=>{X[Z]=Y}}catch{return()=>{}}}var w={ownerDocument:eK,childNodes:Zq,parentNode:Jq,parentElement:Xq,textContent:Yq,contains:Qq,getRootNode:Gq,host:Kq,styleSheets:qq,shadowRoot:Vq,querySelector:Wq,querySelectorAll:zq,mutationObserver:BX,patch:N0};function a(X,Z,J=document){let Y={capture:!0,passive:!0};return J.addEventListener(X,Z,Y),()=>J.removeEventListener(X,Z,Y)}var k0=`Please stop import mirror directly. Instead of that,\r
58
58
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
59
- or you can use record.mirror to access the mirror instance during recording.`,jX={map:{},getId(){return console.error(f0),-1},getNode(){return console.error(f0),null},removeNodeFromMap(){console.error(f0)},has(){return console.error(f0),!1},reset(){console.error(f0)}};if(typeof window<"u"&&window.Proxy&&window.Reflect)jX=new Proxy(jX,{get(X,Z,J){if(Z==="map")console.error(f0);return Reflect.get(X,Z,J)}});function j1(X,Z,J={}){let Y=null,Q=0;return function(...K){let q=Date.now();if(!Q&&J.leading===!1)Q=q;let V=Z-(q-Q),G=this;if(V<=0||V>Z){if(Y)clearTimeout(Y),Y=null;Q=q,X.apply(G,K)}else if(!Y&&J.trailing!==!1)Y=setTimeout(()=>{Q=J.leading===!1?0:Date.now(),Y=null,X.apply(G,K)},V)}}function C9(X,Z,J,Y,Q=window){let K=Q.Object.getOwnPropertyDescriptor(X,Z);return Q.Object.defineProperty(X,Z,Y?J:{set(q){if(setTimeout(()=>{J.set.call(this,q)},0),K&&K.set)K.set.call(this,q)}}),()=>C9(X,Z,K||{},!0)}var H9=Date.now;if(!/[1-9][0-9]{12}/.test(Date.now().toString()))H9=()=>new Date().getTime();function o6(X){var Z,J,Y,Q;let K=X.document;return{left:K.scrollingElement?K.scrollingElement.scrollLeft:X.pageXOffset!==void 0?X.pageXOffset:K.documentElement.scrollLeft||(K==null?void 0:K.body)&&((Z=w.parentElement(K.body))==null?void 0:Z.scrollLeft)||((J=K==null?void 0:K.body)==null?void 0:J.scrollLeft)||0,top:K.scrollingElement?K.scrollingElement.scrollTop:X.pageYOffset!==void 0?X.pageYOffset:(K==null?void 0:K.documentElement.scrollTop)||(K==null?void 0:K.body)&&((Y=w.parentElement(K.body))==null?void 0:Y.scrollTop)||((Q=K==null?void 0:K.body)==null?void 0:Q.scrollTop)||0}}function n6(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function t6(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function e6(X){if(!X)return null;return X.nodeType===X.ELEMENT_NODE?X:w.parentElement(X)}function r(X,Z,J,Y){if(!X)return!1;let Q=e6(X);if(!Q)return!1;try{if(typeof Z==="string"){if(Q.classList.contains(Z))return!0;if(Y&&Q.closest("."+Z)!==null)return!0}else if(X9(Q,Z,Y))return!0}catch(K){}if(J){if(Q.matches(J))return!0;if(Y&&Q.closest(J)!==null)return!0}return!1}function uq(X,Z){return Z.getId(X)!==-1}function s9(X,Z,J){if(X.tagName==="TITLE"&&J.headTitleMutations)return!0;return Z.getId(X)===K1}function Z8(X,Z){if(X1(X))return!1;let J=Z.getId(X);if(!Z.has(J))return!0;let Y=w.parentNode(X);if(Y&&Y.nodeType===X.DOCUMENT_NODE)return!1;if(!Y)return!0;return Z8(Y,Z)}function EZ(X){return Boolean(X.changedTouches)}function cq(X=window){if("NodeList"in X&&!X.NodeList.prototype.forEach)X.NodeList.prototype.forEach=Array.prototype.forEach;if("DOMTokenList"in X&&!X.DOMTokenList.prototype.forEach)X.DOMTokenList.prototype.forEach=Array.prototype.forEach}function J8(X,Z){return Boolean(X.nodeName==="IFRAME"&&Z.getMeta(X))}function X8(X,Z){return Boolean(X.nodeName==="LINK"&&X.nodeType===X.ELEMENT_NODE&&X.getAttribute&&X.getAttribute("rel")==="stylesheet"&&Z.getMeta(X))}function IZ(X){if(!X)return!1;if(X instanceof eZ&&"shadowRoot"in X)return Boolean(X.shadowRoot);return Boolean(w.shadowRoot(X))}class Y8{constructor(){F(this,"id",1),F(this,"styleIDMap",new WeakMap),F(this,"idStyleMap",new Map)}getId(X){return this.styleIDMap.get(X)??-1}has(X){return this.styleIDMap.has(X)}add(X,Z){if(this.has(X))return this.getId(X);let J;if(Z===void 0)J=this.id++;else J=Z;return this.styleIDMap.set(X,J),this.idStyleMap.set(J,X),J}getStyle(X){return this.idStyleMap.get(X)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Q8(X){var Z;let J=null;if("getRootNode"in X&&((Z=w.getRootNode(X))==null?void 0:Z.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&w.host(w.getRootNode(X)))J=w.host(w.getRootNode(X));return J}function pq(X){let Z=X,J;while(J=Q8(Z))Z=J;return Z}function lq(X){let Z=w.ownerDocument(X);if(!Z)return!1;let J=pq(X);return w.contains(Z,J)}function K8(X){let Z=w.ownerDocument(X);if(!Z)return!1;return w.contains(Z,X)||lq(X)}var R=((X)=>{return X[X.DomContentLoaded=0]="DomContentLoaded",X[X.Load=1]="Load",X[X.FullSnapshot=2]="FullSnapshot",X[X.IncrementalSnapshot=3]="IncrementalSnapshot",X[X.Meta=4]="Meta",X[X.Custom=5]="Custom",X[X.Plugin=6]="Plugin",X})(R||{}),_=((X)=>{return X[X.Mutation=0]="Mutation",X[X.MouseMove=1]="MouseMove",X[X.MouseInteraction=2]="MouseInteraction",X[X.Scroll=3]="Scroll",X[X.ViewportResize=4]="ViewportResize",X[X.Input=5]="Input",X[X.TouchMove=6]="TouchMove",X[X.MediaInteraction=7]="MediaInteraction",X[X.StyleSheetRule=8]="StyleSheetRule",X[X.CanvasMutation=9]="CanvasMutation",X[X.Font=10]="Font",X[X.Log=11]="Log",X[X.Drag=12]="Drag",X[X.StyleDeclaration=13]="StyleDeclaration",X[X.Selection=14]="Selection",X[X.AdoptedStyleSheet=15]="AdoptedStyleSheet",X[X.CustomElement=16]="CustomElement",X})(_||{}),o=((X)=>{return X[X.MouseUp=0]="MouseUp",X[X.MouseDown=1]="MouseDown",X[X.Click=2]="Click",X[X.ContextMenu=3]="ContextMenu",X[X.DblClick=4]="DblClick",X[X.Focus=5]="Focus",X[X.Blur=6]="Blur",X[X.TouchStart=7]="TouchStart",X[X.TouchMove_Departed=8]="TouchMove_Departed",X[X.TouchEnd=9]="TouchEnd",X[X.TouchCancel=10]="TouchCancel",X})(o||{}),U0=((X)=>{return X[X.Mouse=0]="Mouse",X[X.Pen=1]="Pen",X[X.Touch=2]="Touch",X})(U0||{}),l0=((X)=>{return X[X["2D"]=0]="2D",X[X.WebGL=1]="WebGL",X[X.WebGL2=2]="WebGL2",X})(l0||{}),x0=((X)=>{return X[X.Play=0]="Play",X[X.Pause=1]="Pause",X[X.Seeked=2]="Seeked",X[X.VolumeChange=3]="VolumeChange",X[X.RateChange=4]="RateChange",X})(x0||{});var q8=((X)=>{return X[X.Document=0]="Document",X[X.DocumentType=1]="DocumentType",X[X.Element=2]="Element",X[X.Text=3]="Text",X[X.CDATA=4]="CDATA",X[X.Comment=5]="Comment",X})(q8||{});function LX(X){return"__ln"in X}class G8{constructor(){F(this,"length",0),F(this,"head",null),F(this,"tail",null)}get(X){if(X>=this.length)throw Error("Position outside of list range");let Z=this.head;for(let J=0;J<X;J++)Z=(Z==null?void 0:Z.next)||null;return Z}addNode(X){let Z={value:X,previous:null,next:null};if(X.__ln=Z,X.previousSibling&&LX(X.previousSibling)){let J=X.previousSibling.__ln.next;if(Z.next=J,Z.previous=X.previousSibling.__ln,X.previousSibling.__ln.next=Z,J)J.previous=Z}else if(X.nextSibling&&LX(X.nextSibling)&&X.nextSibling.__ln.previous){let J=X.nextSibling.__ln.previous;if(Z.previous=J,Z.next=X.nextSibling.__ln,X.nextSibling.__ln.previous=Z,J)J.next=Z}else{if(this.head)this.head.previous=Z;Z.next=this.head,this.head=Z}if(Z.next===null)this.tail=Z;this.length++}removeNode(X){let Z=X.__ln;if(!this.head)return;if(!Z.previous)if(this.head=Z.next,this.head)this.head.previous=null;else this.tail=null;else if(Z.previous.next=Z.next,Z.next)Z.next.previous=Z.previous;else this.tail=Z.previous;if(X.__ln)delete X.__ln;this.length--}}var PX=(X,Z)=>`${X}@${Z}`;class V8{constructor(){F(this,"frozen",!1),F(this,"locked",!1),F(this,"texts",[]),F(this,"attributes",[]),F(this,"attributeMap",new WeakMap),F(this,"removes",[]),F(this,"mapRemoves",[]),F(this,"movedMap",{}),F(this,"addedSet",new Set),F(this,"movedSet",new Set),F(this,"droppedSet",new Set),F(this,"removesSubTreeCache",new Set),F(this,"mutationCb"),F(this,"blockClass"),F(this,"blockSelector"),F(this,"maskTextClass"),F(this,"maskTextSelector"),F(this,"inlineStylesheet"),F(this,"maskInputOptions"),F(this,"maskTextFn"),F(this,"maskInputFn"),F(this,"keepIframeSrcFn"),F(this,"recordCanvas"),F(this,"inlineImages"),F(this,"slimDOMOptions"),F(this,"dataURLOptions"),F(this,"doc"),F(this,"mirror"),F(this,"iframeManager"),F(this,"stylesheetManager"),F(this,"shadowDomManager"),F(this,"canvasManager"),F(this,"processedNodeManager"),F(this,"unattachedDoc"),F(this,"processMutations",(X)=>{X.forEach(this.processMutation),this.emit()}),F(this,"emit",()=>{if(this.frozen||this.locked)return;let X=[],Z=new Set,J=new G8,Y=(V)=>{let G=V,U=K1;while(U===K1)G=G&&G.nextSibling,U=G&&this.mirror.getId(G);return U},Q=(V)=>{let G=w.parentNode(V);if(!G||!K8(V))return;let U=!1;if(V.nodeType===Node.TEXT_NODE){let j=G.tagName;if(j==="TEXTAREA")return;else if(j==="STYLE"&&this.addedSet.has(G))U=!0}let W=X1(G)?this.mirror.getId(Q8(V)):this.mirror.getId(G),H=Y(V);if(W===-1||H===-1)return J.addNode(V);let B=v0(V,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:(j)=>{if(J8(j,this.mirror))this.iframeManager.addIframe(j);if(X8(j,this.mirror))this.stylesheetManager.trackLinkElement(j);if(IZ(V))this.shadowDomManager.addShadowRoot(w.shadowRoot(V),this.doc)},onIframeLoad:(j,P)=>{this.iframeManager.attachIframe(j,P),this.shadowDomManager.observeAttachShadow(j)},onStylesheetLoad:(j,P)=>{this.stylesheetManager.attachLinkElement(j,P)},cssCaptured:U});if(B)X.push({parentId:W,nextId:H,node:B}),Z.add(B.id)};while(this.mapRemoves.length)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let V of this.movedSet){if(DX(this.removesSubTreeCache,V,this.mirror)&&!this.movedSet.has(w.parentNode(V)))continue;Q(V)}for(let V of this.addedSet)if(!FX(this.droppedSet,V)&&!DX(this.removesSubTreeCache,V,this.mirror))Q(V);else if(FX(this.movedSet,V))Q(V);else this.droppedSet.add(V);let K=null;while(J.length){let V=null;if(K){let G=this.mirror.getId(w.parentNode(K.value)),U=Y(K.value);if(G!==-1&&U!==-1)V=K}if(!V){let G=J.tail;while(G){let U=G;if(G=G.previous,U){let W=this.mirror.getId(w.parentNode(U.value));if(Y(U.value)===-1)continue;else if(W!==-1){V=U;break}else{let B=U.value,j=w.parentNode(B);if(j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let P=w.host(j);if(this.mirror.getId(P)!==-1){V=U;break}}}}}}if(!V){while(J.head)J.removeNode(J.head.value);break}K=V.previous,J.removeNode(V.value),Q(V.value)}let q={texts:this.texts.map((V)=>{let G=V.node,U=w.parentNode(G);if(U&&U.tagName==="TEXTAREA")this.genTextAreaValueMutation(U);return{id:this.mirror.getId(G),value:V.value}}).filter((V)=>!Z.has(V.id)).filter((V)=>this.mirror.has(V.id)),attributes:this.attributes.map((V)=>{let{attributes:G}=V;if(typeof G.style==="string"){let U=JSON.stringify(V.styleDiff),W=JSON.stringify(V._unchangedStyles);if(U.length<G.style.length){if((U+W).split("var(").length===G.style.split("var(").length)G.style=V.styleDiff}}return{id:this.mirror.getId(V.node),attributes:G}}).filter((V)=>!Z.has(V.id)).filter((V)=>this.mirror.has(V.id)),removes:this.removes,adds:X};if(!q.texts.length&&!q.attributes.length&&!q.removes.length&&!q.adds.length)return;this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(q)}),F(this,"genTextAreaValueMutation",(X)=>{let Z=this.attributeMap.get(X);if(!Z)Z={node:X,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(Z),this.attributeMap.set(X,Z);let J=Array.from(w.childNodes(X),(Y)=>w.textContent(Y)||"").join("");Z.attributes.value=e1({element:X,maskInputOptions:this.maskInputOptions,tagName:X.tagName,type:Z9(X),value:J,maskInputFn:this.maskInputFn})}),F(this,"processMutation",(X)=>{if(s9(X.target,this.mirror,this.slimDOMOptions))return;switch(X.type){case"characterData":{let Z=w.textContent(X.target);if(!r(X.target,this.blockClass,this.blockSelector,!1)&&Z!==X.oldValue)this.texts.push({value:fX(X.target,this.maskTextClass,this.maskTextSelector,!0)&&Z?this.maskTextFn?this.maskTextFn(Z,e6(X.target)):Z.replace(/[\S]/g,"*"):Z,node:X.target});break}case"attributes":{let{target:Z,attributeName:J}=X,Y=X.target.getAttribute(J);if(J==="value"){let K=Z9(Z);Y=e1({element:Z,maskInputOptions:this.maskInputOptions,tagName:Z.tagName,type:K,value:Y,maskInputFn:this.maskInputFn})}if(r(X.target,this.blockClass,this.blockSelector,!1)||Y===X.oldValue)return;let Q=this.attributeMap.get(X.target);if(Z.tagName==="IFRAME"&&J==="src"&&!this.keepIframeSrcFn(Y))if(!Z.contentDocument)J="rr_src";else return;if(!Q)Q={node:X.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(Q),this.attributeMap.set(X.target,Q);if(J==="type"&&Z.tagName==="INPUT"&&(X.oldValue||"").toLowerCase()==="password")Z.setAttribute("data-rr-is-password","true");if(!SX(Z.tagName,J)){if(Q.attributes[J]=TX(this.doc,w0(Z.tagName),w0(J),Y),J==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(q){this.unattachedDoc=this.doc}let K=this.unattachedDoc.createElement("span");if(X.oldValue)K.setAttribute("style",X.oldValue);for(let q of Array.from(Z.style)){let V=Z.style.getPropertyValue(q),G=Z.style.getPropertyPriority(q);if(V!==K.style.getPropertyValue(q)||G!==K.style.getPropertyPriority(q))if(G==="")Q.styleDiff[q]=V;else Q.styleDiff[q]=[V,G];else Q._unchangedStyles[q]=[V,G]}for(let q of Array.from(K.style))if(Z.style.getPropertyValue(q)==="")Q.styleDiff[q]=!1}else if(J==="open"&&Z.tagName==="DIALOG")if(Z.matches("dialog:modal"))Q.attributes.rr_open_mode="modal";else Q.attributes.rr_open_mode="non-modal"}break}case"childList":{if(r(X.target,this.blockClass,this.blockSelector,!0))return;if(X.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(X.target);return}X.addedNodes.forEach((Z)=>this.genAdds(Z,X.target)),X.removedNodes.forEach((Z)=>{let J=this.mirror.getId(Z),Y=X1(X.target)?this.mirror.getId(w.host(X.target)):this.mirror.getId(X.target);if(r(X.target,this.blockClass,this.blockSelector,!1)||s9(Z,this.mirror,this.slimDOMOptions)||!uq(Z,this.mirror))return;if(this.addedSet.has(Z))$Z(this.addedSet,Z),this.droppedSet.add(Z);else if(this.addedSet.has(X.target)&&J===-1);else if(Z8(X.target,this.mirror));else if(this.movedSet.has(Z)&&this.movedMap[PX(J,Y)])$Z(this.movedSet,Z);else this.removes.push({parentId:Y,id:J,isShadow:X1(X.target)&&Y1(X.target)?!0:void 0}),dq(Z,this.removesSubTreeCache);this.mapRemoves.push(Z)});break}}}),F(this,"genAdds",(X,Z)=>{if(this.processedNodeManager.inOtherBuffer(X,this))return;if(this.addedSet.has(X)||this.movedSet.has(X))return;if(this.mirror.hasNode(X)){if(s9(X,this.mirror,this.slimDOMOptions))return;this.movedSet.add(X);let J=null;if(Z&&this.mirror.hasNode(Z))J=this.mirror.getId(Z);if(J&&J!==-1)this.movedMap[PX(this.mirror.getId(X),J)]=!0}else this.addedSet.add(X),this.droppedSet.delete(X);if(!r(X,this.blockClass,this.blockSelector,!1)){if(w.childNodes(X).forEach((J)=>this.genAdds(J)),IZ(X))w.childNodes(w.shadowRoot(X)).forEach((J)=>{this.processedNodeManager.add(J,this),this.genAdds(J,X)})}})}init(X){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((Z)=>{this[Z]=X[Z]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function $Z(X,Z){X.delete(Z),w.childNodes(Z).forEach((J)=>$Z(X,J))}function dq(X,Z){let J=[X];while(J.length){let Y=J.pop();if(Z.has(Y))continue;Z.add(Y),w.childNodes(Y).forEach((Q)=>J.push(Q))}return}function DX(X,Z,J){if(X.size===0)return!1;return iq(X,Z)}function iq(X,Z,J){let Y=w.parentNode(Z);if(!Y)return!1;return X.has(Y)}function FX(X,Z){if(X.size===0)return!1;return U8(X,Z)}function U8(X,Z){let J=w.parentNode(Z);if(!J)return!1;if(X.has(J))return!0;return U8(X,J)}var Q1;function sq(X){Q1=X}function aq(){Q1=void 0}var C=(X)=>{if(!Q1)return X;return(...J)=>{try{return X(...J)}catch(Y){if(Q1&&Q1(Y)===!0)return;throw Y}}},M0=[];function A1(X){try{if("composedPath"in X){let Z=X.composedPath();if(Z.length)return Z[0]}else if("path"in X&&X.path.length)return X.path[0]}catch{}return X&&X.target}function W8(X,Z){let J=new V8;M0.push(J),J.init(X);let Y=new(r6())(C(J.processMutations.bind(J)));return Y.observe(Z,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),Y}function rq({mousemoveCb:X,sampling:Z,doc:J,mirror:Y}){if(Z.mousemove===!1)return()=>{};let Q=typeof Z.mousemove==="number"?Z.mousemove:50,K=typeof Z.mousemoveCallback==="number"?Z.mousemoveCallback:500,q=[],V,G=j1(C((H)=>{let B=Date.now()-V;X(q.map((j)=>{return j.timeOffset-=B,j}),H),q=[],V=null}),K),U=C(j1(C((H)=>{let B=A1(H),{clientX:j,clientY:P}=EZ(H)?H.changedTouches[0]:H;if(!V)V=H9();q.push({x:j,y:P,id:Y.getId(B),timeOffset:H9()-V}),G(typeof DragEvent<"u"&&H instanceof DragEvent?_.Drag:H instanceof MouseEvent?_.MouseMove:_.TouchMove)}),Q,{trailing:!1})),W=[a("mousemove",U,J),a("touchmove",U,J),a("drag",U,J)];return C(()=>{W.forEach((H)=>H())})}function oq({mouseInteractionCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,sampling:K}){if(K.mouseInteraction===!1)return()=>{};let q=K.mouseInteraction===!0||K.mouseInteraction===void 0?{}:K.mouseInteraction,V=[],G=null,U=(W)=>{return(H)=>{let B=A1(H);if(r(B,Y,Q,!0))return;let j=null,P=W;if("pointerType"in H){switch(H.pointerType){case"mouse":j=U0.Mouse;break;case"touch":j=U0.Touch;break;case"pen":j=U0.Pen;break}if(j===U0.Touch){if(o[W]===o.MouseDown)P="TouchStart";else if(o[W]===o.MouseUp)P="TouchEnd"}else if(j===U0.Pen);}else if(EZ(H))j=U0.Touch;if(j!==null){if(G=j,P.startsWith("Touch")&&j===U0.Touch||P.startsWith("Mouse")&&j===U0.Mouse)j=null}else if(o[W]===o.Click)j=G,G=null;let L=EZ(H)?H.changedTouches[0]:H;if(!L)return;let z=J.getId(B),{clientX:O,clientY:A}=L;C(X)({type:o[P],id:z,x:O,y:A,...j!==null&&{pointerType:j}})}};return Object.keys(o).filter((W)=>Number.isNaN(Number(W))&&!W.endsWith("_Departed")&&q[W]!==!1).forEach((W)=>{let H=w0(W),B=U(W);if(window.PointerEvent)switch(o[W]){case o.MouseDown:case o.MouseUp:H=H.replace("mouse","pointer");break;case o.TouchStart:case o.TouchEnd:return}V.push(a(H,B,Z))}),C(()=>{V.forEach((W)=>W())})}function H8({scrollCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,sampling:K}){let q=C(j1(C((V)=>{let G=A1(V);if(!G||r(G,Y,Q,!0))return;let U=J.getId(G);if(G===Z&&Z.defaultView){let W=o6(Z.defaultView);X({id:U,x:W.left,y:W.top})}else X({id:U,x:G.scrollLeft,y:G.scrollTop})}),K.scroll||100));return a("scroll",q,Z)}function nq({viewportResizeCb:X},{win:Z}){let J=-1,Y=-1,Q=C(j1(C(()=>{let K=n6(),q=t6();if(J!==K||Y!==q)X({width:Number(q),height:Number(K)}),J=K,Y=q}),200));return a("resize",Q,Z)}var tq=["INPUT","TEXTAREA","SELECT"],AX=new WeakMap;function eq({inputCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,ignoreClass:K,ignoreSelector:q,maskInputOptions:V,maskInputFn:G,sampling:U,userTriggeredOnInput:W}){function H(A){let D=A1(A),M=A.isTrusted,T=D&&D.tagName;if(D&&T==="OPTION")D=w.parentElement(D);if(!D||!T||tq.indexOf(T)<0||r(D,Y,Q,!0))return;if(D.classList.contains(K)||q&&D.matches(q))return;let f=D.value,p=!1,v=Z9(D)||"";if(v==="radio"||v==="checkbox")p=D.checked;else if(V[T.toLowerCase()]||V[v])f=e1({element:D,maskInputOptions:V,tagName:T,type:v,value:f,maskInputFn:G});B(D,W?{text:f,isChecked:p,userTriggered:M}:{text:f,isChecked:p});let c=D.name;if(v==="radio"&&c&&p)Z.querySelectorAll(`input[type="radio"][name="${c}"]`).forEach((i)=>{if(i!==D){let t=i.value;B(i,W?{text:t,isChecked:!p,userTriggered:!1}:{text:t,isChecked:!p})}})}function B(A,D){let M=AX.get(A);if(!M||M.text!==D.text||M.isChecked!==D.isChecked){AX.set(A,D);let T=J.getId(A);C(X)({...D,id:T})}}let P=(U.input==="last"?["change"]:["input","change"]).map((A)=>a(A,C(H),Z)),L=Z.defaultView;if(!L)return()=>{P.forEach((A)=>A())};let z=L.Object.getOwnPropertyDescriptor(L.HTMLInputElement.prototype,"value"),O=[[L.HTMLInputElement.prototype,"value"],[L.HTMLInputElement.prototype,"checked"],[L.HTMLSelectElement.prototype,"value"],[L.HTMLTextAreaElement.prototype,"value"],[L.HTMLSelectElement.prototype,"selectedIndex"],[L.HTMLOptionElement.prototype,"selected"]];if(z&&z.set)P.push(...O.map((A)=>C9(A[0],A[1],{set(){C(H)({target:this,isTrusted:!1})}},!1,L)));return C(()=>{P.forEach((A)=>A())})}function z9(X){let Z=[];function J(Y,Q){if(d1("CSSGroupingRule")&&Y.parentRule instanceof CSSGroupingRule||d1("CSSMediaRule")&&Y.parentRule instanceof CSSMediaRule||d1("CSSSupportsRule")&&Y.parentRule instanceof CSSSupportsRule||d1("CSSConditionRule")&&Y.parentRule instanceof CSSConditionRule){let q=Array.from(Y.parentRule.cssRules).indexOf(Y);Q.unshift(q)}else if(Y.parentStyleSheet){let q=Array.from(Y.parentStyleSheet.cssRules).indexOf(Y);Q.unshift(q)}return Q}return J(X,Z)}function P0(X,Z,J){let Y,Q;if(!X)return{};if(X.ownerNode)Y=Z.getId(X.ownerNode);else Q=J.getId(X);return{styleId:Q,id:Y}}function ZG({styleSheetRuleCb:X,mirror:Z,stylesheetManager:J},{win:Y}){if(!Y.CSSStyleSheet||!Y.CSSStyleSheet.prototype)return()=>{};let Q=Y.CSSStyleSheet.prototype.insertRule;Y.CSSStyleSheet.prototype.insertRule=new Proxy(Q,{apply:C((W,H,B)=>{let[j,P]=B,{id:L,styleId:z}=P0(H,Z,J.styleMirror);if(L&&L!==-1||z&&z!==-1)X({id:L,styleId:z,adds:[{rule:j,index:P}]});return W.apply(H,B)})}),Y.CSSStyleSheet.prototype.addRule=function(W,H,B=this.cssRules.length){let j=`${W} { ${H} }`;return Y.CSSStyleSheet.prototype.insertRule.apply(this,[j,B])};let K=Y.CSSStyleSheet.prototype.deleteRule;Y.CSSStyleSheet.prototype.deleteRule=new Proxy(K,{apply:C((W,H,B)=>{let[j]=B,{id:P,styleId:L}=P0(H,Z,J.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,removes:[{index:j}]});return W.apply(H,B)})}),Y.CSSStyleSheet.prototype.removeRule=function(W){return Y.CSSStyleSheet.prototype.deleteRule.apply(this,[W])};let q;if(Y.CSSStyleSheet.prototype.replace)q=Y.CSSStyleSheet.prototype.replace,Y.CSSStyleSheet.prototype.replace=new Proxy(q,{apply:C((W,H,B)=>{let[j]=B,{id:P,styleId:L}=P0(H,Z,J.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,replace:j});return W.apply(H,B)})});let V;if(Y.CSSStyleSheet.prototype.replaceSync)V=Y.CSSStyleSheet.prototype.replaceSync,Y.CSSStyleSheet.prototype.replaceSync=new Proxy(V,{apply:C((W,H,B)=>{let[j]=B,{id:P,styleId:L}=P0(H,Z,J.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,replaceSync:j});return W.apply(H,B)})});let G={};if(i1("CSSGroupingRule"))G.CSSGroupingRule=Y.CSSGroupingRule;else{if(i1("CSSMediaRule"))G.CSSMediaRule=Y.CSSMediaRule;if(i1("CSSConditionRule"))G.CSSConditionRule=Y.CSSConditionRule;if(i1("CSSSupportsRule"))G.CSSSupportsRule=Y.CSSSupportsRule}let U={};return Object.entries(G).forEach(([W,H])=>{U[W]={insertRule:H.prototype.insertRule,deleteRule:H.prototype.deleteRule},H.prototype.insertRule=new Proxy(U[W].insertRule,{apply:C((B,j,P)=>{let[L,z]=P,{id:O,styleId:A}=P0(j.parentStyleSheet,Z,J.styleMirror);if(O&&O!==-1||A&&A!==-1)X({id:O,styleId:A,adds:[{rule:L,index:[...z9(j),z||0]}]});return B.apply(j,P)})}),H.prototype.deleteRule=new Proxy(U[W].deleteRule,{apply:C((B,j,P)=>{let[L]=P,{id:z,styleId:O}=P0(j.parentStyleSheet,Z,J.styleMirror);if(z&&z!==-1||O&&O!==-1)X({id:z,styleId:O,removes:[{index:[...z9(j),L]}]});return B.apply(j,P)})})}),C(()=>{Y.CSSStyleSheet.prototype.insertRule=Q,Y.CSSStyleSheet.prototype.deleteRule=K,q&&(Y.CSSStyleSheet.prototype.replace=q),V&&(Y.CSSStyleSheet.prototype.replaceSync=V),Object.entries(G).forEach(([W,H])=>{H.prototype.insertRule=U[W].insertRule,H.prototype.deleteRule=U[W].deleteRule})})}function z8({mirror:X,stylesheetManager:Z},J){var Y,Q,K;let q=null;if(J.nodeName==="#document")q=X.getId(J);else q=X.getId(w.host(J));let V=J.nodeName==="#document"?(Y=J.defaultView)==null?void 0:Y.Document:(K=(Q=J.ownerDocument)==null?void 0:Q.defaultView)==null?void 0:K.ShadowRoot,G=(V==null?void 0:V.prototype)?Object.getOwnPropertyDescriptor(V==null?void 0:V.prototype,"adoptedStyleSheets"):void 0;if(q===null||q===-1||!V||!G)return()=>{};return Object.defineProperty(J,"adoptedStyleSheets",{configurable:G.configurable,enumerable:G.enumerable,get(){var U;return(U=G.get)==null?void 0:U.call(this)},set(U){var W;let H=(W=G.set)==null?void 0:W.call(this,U);if(q!==null&&q!==-1)try{Z.adoptStyleSheets(U,q)}catch(B){}return H}}),C(()=>{Object.defineProperty(J,"adoptedStyleSheets",{configurable:G.configurable,enumerable:G.enumerable,get:G.get,set:G.set})})}function JG({styleDeclarationCb:X,mirror:Z,ignoreCSSAttributes:J,stylesheetManager:Y},{win:Q}){let K=Q.CSSStyleDeclaration.prototype.setProperty;Q.CSSStyleDeclaration.prototype.setProperty=new Proxy(K,{apply:C((V,G,U)=>{var W;let[H,B,j]=U;if(J.has(H))return K.apply(G,[H,B,j]);let{id:P,styleId:L}=P0((W=G.parentRule)==null?void 0:W.parentStyleSheet,Z,Y.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,set:{property:H,value:B,priority:j},index:z9(G.parentRule)});return V.apply(G,U)})});let q=Q.CSSStyleDeclaration.prototype.removeProperty;return Q.CSSStyleDeclaration.prototype.removeProperty=new Proxy(q,{apply:C((V,G,U)=>{var W;let[H]=U;if(J.has(H))return q.apply(G,[H]);let{id:B,styleId:j}=P0((W=G.parentRule)==null?void 0:W.parentStyleSheet,Z,Y.styleMirror);if(B&&B!==-1||j&&j!==-1)X({id:B,styleId:j,remove:{property:H},index:z9(G.parentRule)});return V.apply(G,U)})}),C(()=>{Q.CSSStyleDeclaration.prototype.setProperty=K,Q.CSSStyleDeclaration.prototype.removeProperty=q})}function XG({mediaInteractionCb:X,blockClass:Z,blockSelector:J,mirror:Y,sampling:Q,doc:K}){let q=C((G)=>j1(C((U)=>{let W=A1(U);if(!W||r(W,Z,J,!0))return;let{currentTime:H,volume:B,muted:j,playbackRate:P,loop:L}=W;X({type:G,id:Y.getId(W),currentTime:H,volume:B,muted:j,playbackRate:P,loop:L})}),Q.media||500)),V=[a("play",q(x0.Play),K),a("pause",q(x0.Pause),K),a("seeked",q(x0.Seeked),K),a("volumechange",q(x0.VolumeChange),K),a("ratechange",q(x0.RateChange),K)];return C(()=>{V.forEach((G)=>G())})}function YG({fontCb:X,doc:Z}){let J=Z.defaultView;if(!J)return()=>{};let Y=[],Q=new WeakMap,K=J.FontFace;J.FontFace=function(G,U,W){let H=new K(G,U,W);return Q.set(H,{family:G,buffer:typeof U!=="string",descriptors:W,fontSource:typeof U==="string"?U:JSON.stringify(Array.from(new Uint8Array(U)))}),H};let q=R0(Z.fonts,"add",function(V){return function(G){return setTimeout(C(()=>{let U=Q.get(G);if(U)X(U),Q.delete(G)}),0),V.apply(this,[G])}});return Y.push(()=>{J.FontFace=K}),Y.push(q),C(()=>{Y.forEach((V)=>V())})}function QG(X){let{doc:Z,mirror:J,blockClass:Y,blockSelector:Q,selectionCb:K}=X,q=!0,V=C(()=>{let G=Z.getSelection();if(!G||q&&(G==null?void 0:G.isCollapsed))return;q=G.isCollapsed||!1;let U=[],W=G.rangeCount||0;for(let H=0;H<W;H++){let B=G.getRangeAt(H),{startContainer:j,startOffset:P,endContainer:L,endOffset:z}=B;if(r(j,Y,Q,!0)||r(L,Y,Q,!0))continue;U.push({start:J.getId(j),startOffset:P,end:J.getId(L),endOffset:z})}K({ranges:U})});return V(),a("selectionchange",V)}function KG({doc:X,customElementCb:Z}){let J=X.defaultView;if(!J||!J.customElements)return()=>{};return R0(J.customElements,"define",function(Q){return function(K,q,V){try{Z({define:{name:K}})}catch(G){console.warn(`Custom element callback failed for ${K}`)}return Q.apply(this,[K,q,V])}})}function qG(X,Z){let{mutationCb:J,mousemoveCb:Y,mouseInteractionCb:Q,scrollCb:K,viewportResizeCb:q,inputCb:V,mediaInteractionCb:G,styleSheetRuleCb:U,styleDeclarationCb:W,canvasMutationCb:H,fontCb:B,selectionCb:j,customElementCb:P}=X;X.mutationCb=(...L)=>{if(Z.mutation)Z.mutation(...L);J(...L)},X.mousemoveCb=(...L)=>{if(Z.mousemove)Z.mousemove(...L);Y(...L)},X.mouseInteractionCb=(...L)=>{if(Z.mouseInteraction)Z.mouseInteraction(...L);Q(...L)},X.scrollCb=(...L)=>{if(Z.scroll)Z.scroll(...L);K(...L)},X.viewportResizeCb=(...L)=>{if(Z.viewportResize)Z.viewportResize(...L);q(...L)},X.inputCb=(...L)=>{if(Z.input)Z.input(...L);V(...L)},X.mediaInteractionCb=(...L)=>{if(Z.mediaInteaction)Z.mediaInteaction(...L);G(...L)},X.styleSheetRuleCb=(...L)=>{if(Z.styleSheetRule)Z.styleSheetRule(...L);U(...L)},X.styleDeclarationCb=(...L)=>{if(Z.styleDeclaration)Z.styleDeclaration(...L);W(...L)},X.canvasMutationCb=(...L)=>{if(Z.canvasMutation)Z.canvasMutation(...L);H(...L)},X.fontCb=(...L)=>{if(Z.font)Z.font(...L);B(...L)},X.selectionCb=(...L)=>{if(Z.selection)Z.selection(...L);j(...L)},X.customElementCb=(...L)=>{if(Z.customElement)Z.customElement(...L);P(...L)}}function GG(X,Z={}){let J=X.doc.defaultView;if(!J)return()=>{};qG(X,Z);let Y;if(X.recordDOM)Y=W8(X,X.doc);let Q=rq(X),K=oq(X),q=H8(X),V=nq(X,{win:J}),G=eq(X),U=XG(X),W=()=>{},H=()=>{},B=()=>{},j=()=>{};if(X.recordDOM){if(W=ZG(X,{win:J}),H=z8(X,X.doc),B=JG(X,{win:J}),X.collectFonts)j=YG(X)}let P=QG(X),L=KG(X),z=[];for(let O of X.plugins)z.push(O.observer(O.callback,J,O.options));return C(()=>{M0.forEach((O)=>O.reset()),Y==null||Y.disconnect(),Q(),K(),q(),V(),G(),U(),W(),H(),B(),j(),P(),L(),z.forEach((O)=>O())})}function d1(X){return typeof window[X]<"u"}function i1(X){return Boolean(typeof window[X]<"u"&&window[X].prototype&&"insertRule"in window[X].prototype&&"deleteRule"in window[X].prototype)}class NZ{constructor(X){F(this,"iframeIdToRemoteIdMap",new WeakMap),F(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=X}getId(X,Z,J,Y){let Q=J||this.getIdToRemoteIdMap(X),K=Y||this.getRemoteIdToIdMap(X),q=Q.get(Z);if(!q)q=this.generateIdFn(),Q.set(Z,q),K.set(q,Z);return q}getIds(X,Z){let J=this.getIdToRemoteIdMap(X),Y=this.getRemoteIdToIdMap(X);return Z.map((Q)=>this.getId(X,Q,J,Y))}getRemoteId(X,Z,J){let Y=J||this.getRemoteIdToIdMap(X);if(typeof Z!=="number")return Z;let Q=Y.get(Z);if(!Q)return-1;return Q}getRemoteIds(X,Z){let J=this.getRemoteIdToIdMap(X);return Z.map((Y)=>this.getRemoteId(X,Y,J))}reset(X){if(!X){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(X),this.iframeRemoteIdToIdMap.delete(X)}getIdToRemoteIdMap(X){let Z=this.iframeIdToRemoteIdMap.get(X);if(!Z)Z=new Map,this.iframeIdToRemoteIdMap.set(X,Z);return Z}getRemoteIdToIdMap(X){let Z=this.iframeRemoteIdToIdMap.get(X);if(!Z)Z=new Map,this.iframeRemoteIdToIdMap.set(X,Z);return Z}}class B8{constructor(X){if(F(this,"iframes",new WeakMap),F(this,"crossOriginIframeMap",new WeakMap),F(this,"crossOriginIframeMirror",new NZ(NX)),F(this,"crossOriginIframeStyleMirror"),F(this,"crossOriginIframeRootIdMap",new WeakMap),F(this,"mirror"),F(this,"mutationCb"),F(this,"wrappedEmit"),F(this,"loadListener"),F(this,"stylesheetManager"),F(this,"recordCrossOriginIframes"),this.mutationCb=X.mutationCb,this.wrappedEmit=X.wrappedEmit,this.stylesheetManager=X.stylesheetManager,this.recordCrossOriginIframes=X.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new NZ(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=X.mirror,this.recordCrossOriginIframes)window.addEventListener("message",this.handleMessage.bind(this))}addIframe(X){if(this.iframes.set(X,!0),X.contentWindow)this.crossOriginIframeMap.set(X.contentWindow,X)}addLoadListener(X){this.loadListener=X}attachIframe(X,Z){var J,Y;if(this.mutationCb({adds:[{parentId:this.mirror.getId(X),nextId:null,node:Z}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes)(J=X.contentWindow)==null||J.addEventListener("message",this.handleMessage.bind(this));if((Y=this.loadListener)==null||Y.call(this,X),X.contentDocument&&X.contentDocument.adoptedStyleSheets&&X.contentDocument.adoptedStyleSheets.length>0)this.stylesheetManager.adoptStyleSheets(X.contentDocument.adoptedStyleSheets,this.mirror.getId(X.contentDocument))}handleMessage(X){let Z=X;if(Z.data.type!=="rrweb"||Z.origin!==Z.data.origin)return;if(!X.source)return;let Y=this.crossOriginIframeMap.get(X.source);if(!Y)return;let Q=this.transformCrossOriginEvent(Y,Z.data.event);if(Q)this.wrappedEmit(Q,Z.data.isCheckout)}transformCrossOriginEvent(X,Z){var J;switch(Z.type){case R.FullSnapshot:{this.crossOriginIframeMirror.reset(X),this.crossOriginIframeStyleMirror.reset(X),this.replaceIdOnNode(Z.data.node,X);let Y=Z.data.node.id;return this.crossOriginIframeRootIdMap.set(X,Y),this.patchRootIdOnNode(Z.data.node,Y),{timestamp:Z.timestamp,type:R.IncrementalSnapshot,data:{source:_.Mutation,adds:[{parentId:this.mirror.getId(X),nextId:null,node:Z.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case R.Meta:case R.Load:case R.DomContentLoaded:return!1;case R.Plugin:return Z;case R.Custom:return this.replaceIds(Z.data.payload,X,["id","parentId","previousId","nextId"]),Z;case R.IncrementalSnapshot:switch(Z.data.source){case _.Mutation:return Z.data.adds.forEach((Y)=>{this.replaceIds(Y,X,["parentId","nextId","previousId"]),this.replaceIdOnNode(Y.node,X);let Q=this.crossOriginIframeRootIdMap.get(X);Q&&this.patchRootIdOnNode(Y.node,Q)}),Z.data.removes.forEach((Y)=>{this.replaceIds(Y,X,["parentId","id"])}),Z.data.attributes.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z.data.texts.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z;case _.Drag:case _.TouchMove:case _.MouseMove:return Z.data.positions.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z;case _.ViewportResize:return!1;case _.MediaInteraction:case _.MouseInteraction:case _.Scroll:case _.CanvasMutation:case _.Input:return this.replaceIds(Z.data,X,["id"]),Z;case _.StyleSheetRule:case _.StyleDeclaration:return this.replaceIds(Z.data,X,["id"]),this.replaceStyleIds(Z.data,X,["styleId"]),Z;case _.Font:return Z;case _.Selection:return Z.data.ranges.forEach((Y)=>{this.replaceIds(Y,X,["start","end"])}),Z;case _.AdoptedStyleSheet:return this.replaceIds(Z.data,X,["id"]),this.replaceStyleIds(Z.data,X,["styleIds"]),(J=Z.data.styles)==null||J.forEach((Y)=>{this.replaceStyleIds(Y,X,["styleId"])}),Z}}return!1}replace(X,Z,J,Y){for(let Q of Y){if(!Array.isArray(Z[Q])&&typeof Z[Q]!=="number")continue;if(Array.isArray(Z[Q]))Z[Q]=X.getIds(J,Z[Q]);else Z[Q]=X.getId(J,Z[Q])}return Z}replaceIds(X,Z,J){return this.replace(this.crossOriginIframeMirror,X,Z,J)}replaceStyleIds(X,Z,J){return this.replace(this.crossOriginIframeStyleMirror,X,Z,J)}replaceIdOnNode(X,Z){if(this.replaceIds(X,Z,["id","rootId"]),"childNodes"in X)X.childNodes.forEach((J)=>{this.replaceIdOnNode(J,Z)})}patchRootIdOnNode(X,Z){if(X.type!==q8.Document&&!X.rootId)X.rootId=Z;if("childNodes"in X)X.childNodes.forEach((J)=>{this.patchRootIdOnNode(J,Z)})}}class j8{constructor(X){F(this,"shadowDoms",new WeakSet),F(this,"mutationCb"),F(this,"scrollCb"),F(this,"bypassOptions"),F(this,"mirror"),F(this,"restoreHandlers",[]),this.mutationCb=X.mutationCb,this.scrollCb=X.scrollCb,this.bypassOptions=X.bypassOptions,this.mirror=X.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(X,Z){if(!Y1(X))return;if(this.shadowDoms.has(X))return;this.shadowDoms.add(X);let J=W8({...this.bypassOptions,doc:Z,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},X);this.restoreHandlers.push(()=>J.disconnect()),this.restoreHandlers.push(H8({...this.bypassOptions,scrollCb:this.scrollCb,doc:X,mirror:this.mirror})),setTimeout(()=>{if(X.adoptedStyleSheets&&X.adoptedStyleSheets.length>0)this.bypassOptions.stylesheetManager.adoptStyleSheets(X.adoptedStyleSheets,this.mirror.getId(w.host(X)));this.restoreHandlers.push(z8({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},X))},0)}observeAttachShadow(X){if(!X.contentWindow||!X.contentDocument)return;this.patchAttachShadow(X.contentWindow.Element,X.contentDocument)}patchAttachShadow(X,Z){let J=this;this.restoreHandlers.push(R0(X.prototype,"attachShadow",function(Y){return function(Q){let K=Y.call(this,Q),q=w.shadowRoot(this);if(q&&K8(this))J.addShadowRoot(q,Z);return K}}))}reset(){this.restoreHandlers.forEach((X)=>{try{X()}catch(Z){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var h0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",VG=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(b0=0;b0<h0.length;b0++)VG[h0.charCodeAt(b0)]=b0;var b0,UG=function(X){var Z=new Uint8Array(X),J,Y=Z.length,Q="";for(J=0;J<Y;J+=3)Q+=h0[Z[J]>>2],Q+=h0[(Z[J]&3)<<4|Z[J+1]>>4],Q+=h0[(Z[J+1]&15)<<2|Z[J+2]>>6],Q+=h0[Z[J+2]&63];if(Y%3===2)Q=Q.substring(0,Q.length-1)+"=";else if(Y%3===1)Q=Q.substring(0,Q.length-2)+"==";return Q};var OX=new Map;function WG(X,Z){let J=OX.get(X);if(!J)J=new Map,OX.set(X,J);if(!J.has(Z))J.set(Z,[]);return J.get(Z)}var L8=(X,Z,J)=>{if(!X||!(D8(X,Z)||typeof X==="object"))return;let Y=X.constructor.name,Q=WG(J,Y),K=Q.indexOf(X);if(K===-1)K=Q.length,Q.push(X);return K};function n1(X,Z,J){if(X instanceof Array)return X.map((Y)=>n1(Y,Z,J));else if(X===null)return X;else if(X instanceof Float32Array||X instanceof Float64Array||X instanceof Int32Array||X instanceof Uint32Array||X instanceof Uint8Array||X instanceof Uint16Array||X instanceof Int16Array||X instanceof Int8Array||X instanceof Uint8ClampedArray)return{rr_type:X.constructor.name,args:[Object.values(X)]};else if(X instanceof ArrayBuffer){let Y=X.constructor.name,Q=UG(X);return{rr_type:Y,base64:Q}}else if(X instanceof DataView)return{rr_type:X.constructor.name,args:[n1(X.buffer,Z,J),X.byteOffset,X.byteLength]};else if(X instanceof HTMLImageElement){let Y=X.constructor.name,{src:Q}=X;return{rr_type:Y,src:Q}}else if(X instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:X.toDataURL()};else if(X instanceof ImageData)return{rr_type:X.constructor.name,args:[n1(X.data,Z,J),X.width,X.height]};else if(D8(X,Z)||typeof X==="object"){let Y=X.constructor.name,Q=L8(X,Z,J);return{rr_type:Y,index:Q}}return X}var P8=(X,Z,J)=>{return X.map((Y)=>n1(Y,Z,J))},D8=(X,Z)=>{let Y=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((Q)=>typeof Z[Q]==="function");return Boolean(Y.find((Q)=>X instanceof Z[Q]))};function HG(X,Z,J,Y){let Q=[],K=Object.getOwnPropertyNames(Z.CanvasRenderingContext2D.prototype);for(let q of K)try{if(typeof Z.CanvasRenderingContext2D.prototype[q]!=="function")continue;let V=R0(Z.CanvasRenderingContext2D.prototype,q,function(G){return function(...U){if(!r(this.canvas,J,Y,!0))setTimeout(()=>{let W=P8(U,Z,this);X(this.canvas,{type:l0["2D"],property:q,args:W})},0);return G.apply(this,U)}});Q.push(V)}catch{let V=C9(Z.CanvasRenderingContext2D.prototype,q,{set(G){X(this.canvas,{type:l0["2D"],property:q,args:[G],setter:!0})}});Q.push(V)}return()=>{Q.forEach((q)=>q())}}function zG(X){return X==="experimental-webgl"?"webgl":X}function MX(X,Z,J,Y){let Q=[];try{let K=R0(X.HTMLCanvasElement.prototype,"getContext",function(q){return function(V,...G){if(!r(this,Z,J,!0)){let U=zG(V);if(!("__context"in this))this.__context=U;if(Y&&["webgl","webgl2"].includes(U))if(G[0]&&typeof G[0]==="object"){let W=G[0];if(!W.preserveDrawingBuffer)W.preserveDrawingBuffer=!0}else G.splice(0,1,{preserveDrawingBuffer:!0})}return q.apply(this,[V,...G])}});Q.push(K)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{Q.forEach((K)=>K())}}function wX(X,Z,J,Y,Q,K){let q=[],V=Object.getOwnPropertyNames(X);for(let G of V){if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(G))continue;try{if(typeof X[G]!=="function")continue;let U=R0(X,G,function(W){return function(...H){let B=W.apply(this,H);if(L8(B,K,this),"tagName"in this.canvas&&!r(this.canvas,Y,Q,!0)){let j=P8(H,K,this),P={type:Z,property:G,args:j};J(this.canvas,P)}return B}});q.push(U)}catch{let U=C9(X,G,{set(W){J(this.canvas,{type:Z,property:G,args:[W],setter:!0})}});q.push(U)}}return q}function BG(X,Z,J,Y){let Q=[];if(Q.push(...wX(Z.WebGLRenderingContext.prototype,l0.WebGL,X,J,Y,Z)),typeof Z.WebGL2RenderingContext<"u")Q.push(...wX(Z.WebGL2RenderingContext.prototype,l0.WebGL2,X,J,Y,Z));return()=>{Q.forEach((K)=>K())}}var F8="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",jG=(X)=>Uint8Array.from(atob(X),(Z)=>Z.charCodeAt(0)),_X=typeof window<"u"&&window.Blob&&new Blob([jG(F8)],{type:"text/javascript;charset=utf-8"});function LG(X){let Z;try{if(Z=_X&&(window.URL||window.webkitURL).createObjectURL(_X),!Z)throw"";let J=new Worker(Z,{name:X==null?void 0:X.name});return J.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(Z)}),J}catch(J){return new Worker("data:text/javascript;base64,"+F8,{name:X==null?void 0:X.name})}finally{Z&&(window.URL||window.webkitURL).revokeObjectURL(Z)}}class A8{constructor(X){F(this,"pendingCanvasMutations",new Map),F(this,"rafStamps",{latestId:0,invokeId:null}),F(this,"mirror"),F(this,"mutationCb"),F(this,"resetObservers"),F(this,"frozen",!1),F(this,"locked",!1),F(this,"processMutation",(V,G)=>{if(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)this.rafStamps.invokeId=this.rafStamps.latestId;if(!this.pendingCanvasMutations.has(V))this.pendingCanvasMutations.set(V,[]);this.pendingCanvasMutations.get(V).push(G)});let{sampling:Z="all",win:J,blockClass:Y,blockSelector:Q,recordCanvas:K,dataURLOptions:q}=X;if(this.mutationCb=X.mutationCb,this.mirror=X.mirror,K&&Z==="all")this.initCanvasMutationObserver(J,Y,Q);if(K&&typeof Z==="number")this.initCanvasFPSObserver(Z,J,Y,Q,{dataURLOptions:q})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(X,Z,J,Y,Q){let K=MX(Z,J,Y,!0),q=new Map,V=new LG;V.onmessage=(j)=>{let{id:P}=j.data;if(q.set(P,!1),!("base64"in j.data))return;let{base64:L,type:z,width:O,height:A}=j.data;this.mutationCb({id:P,type:l0["2D"],commands:[{property:"clearRect",args:[0,0,O,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:L}],type:z}]},0,0]}]})};let G=1000/X,U=0,W,H=()=>{let j=[];return Z.document.querySelectorAll("canvas").forEach((P)=>{if(!r(P,J,Y,!0))j.push(P)}),j},B=(j)=>{if(U&&j-U<G){W=requestAnimationFrame(B);return}U=j,H().forEach(async(P)=>{var L;let z=this.mirror.getId(P);if(q.get(z))return;if(P.width===0||P.height===0)return;if(q.set(z,!0),["webgl","webgl2"].includes(P.__context)){let A=P.getContext(P.__context);if(((L=A==null?void 0:A.getContextAttributes())==null?void 0:L.preserveDrawingBuffer)===!1)A.clear(A.COLOR_BUFFER_BIT)}let O=await createImageBitmap(P);V.postMessage({id:z,bitmap:O,width:P.width,height:P.height,dataURLOptions:Q.dataURLOptions},[O])}),W=requestAnimationFrame(B)};W=requestAnimationFrame(B),this.resetObservers=()=>{K(),cancelAnimationFrame(W)}}initCanvasMutationObserver(X,Z,J){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let Y=MX(X,Z,J,!1),Q=HG(this.processMutation.bind(this),X,Z,J),K=BG(this.processMutation.bind(this),X,Z,J);this.resetObservers=()=>{Y(),Q(),K()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let X=(Z)=>{this.rafStamps.latestId=Z,requestAnimationFrame(X)};requestAnimationFrame(X)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((X,Z)=>{let J=this.mirror.getId(Z);this.flushPendingCanvasMutationFor(Z,J)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(X,Z){if(this.frozen||this.locked)return;let J=this.pendingCanvasMutations.get(X);if(!J||Z===-1)return;let Y=J.map((K)=>{let{type:q,...V}=K;return V}),{type:Q}=J[0];this.mutationCb({id:Z,type:Q,commands:Y}),this.pendingCanvasMutations.delete(X)}}class O8{constructor(X){F(this,"trackedLinkElements",new WeakSet),F(this,"mutationCb"),F(this,"adoptedStyleSheetCb"),F(this,"styleMirror",new Y8),this.mutationCb=X.mutationCb,this.adoptedStyleSheetCb=X.adoptedStyleSheetCb}attachLinkElement(X,Z){if("_cssText"in Z.attributes)this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:Z.id,attributes:Z.attributes}]});this.trackLinkElement(X)}trackLinkElement(X){if(this.trackedLinkElements.has(X))return;this.trackedLinkElements.add(X),this.trackStylesheetInLinkElement(X)}adoptStyleSheets(X,Z){if(X.length===0)return;let J={id:Z,styleIds:[]},Y=[];for(let Q of X){let K;if(!this.styleMirror.has(Q))K=this.styleMirror.add(Q),Y.push({styleId:K,rules:Array.from(Q.rules||CSSRule,(q,V)=>({rule:IX(q,Q.href),index:V}))});else K=this.styleMirror.getId(Q);J.styleIds.push(K)}if(Y.length>0)J.styles=Y;this.adoptedStyleSheetCb(J)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(X){}}class M8{constructor(){F(this,"nodeMap",new WeakMap),F(this,"active",!1)}inOtherBuffer(X,Z){let J=this.nodeMap.get(X);return J&&Array.from(J).some((Y)=>Y!==Z)}add(X,Z){if(!this.active)this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1});this.nodeMap.set(X,(this.nodeMap.get(X)||new Set).add(Z))}destroy(){}}var u,t1,a9,B9=!1;try{if(Array.from([1],(X)=>X*2)[0]!==2){let X=document.createElement("iframe");document.body.appendChild(X),Array.from=((RJ=X.contentWindow)==null?void 0:RJ.Array.from)||Array.from,document.body.removeChild(X)}}catch(X){console.debug("Unable to override Array.from",X)}var X0=FY();function E0(X={}){let{emit:Z,checkoutEveryNms:J,checkoutEveryNth:Y,blockClass:Q="rr-block",blockSelector:K=null,ignoreClass:q="rr-ignore",ignoreSelector:V=null,maskTextClass:G="rr-mask",maskTextSelector:U=null,inlineStylesheet:W=!0,maskAllInputs:H,maskInputOptions:B,slimDOMOptions:j,maskInputFn:P,maskTextFn:L,hooks:z,packFn:O,sampling:A={},dataURLOptions:D={},mousemoveWait:M,recordDOM:T=!0,recordCanvas:f=!1,recordCrossOriginIframes:p=!1,recordAfter:v=X.recordAfter==="DOMContentLoaded"?X.recordAfter:"load",userTriggeredOnInput:c=!1,collectFonts:i=!1,inlineImages:t=!1,plugins:K0,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:i0=new Set([]),errorHandler:s0}=X;sq(s0);let l=p?window.parent===window:!0,e=!1;if(!l)try{if(window.parent.document)e=!1}catch(I){e=!0}if(l&&!Z)throw Error("emit function is required");if(!l&&!e)return()=>{};if(M!==void 0&&A.mousemove===void 0)A.mousemove=M;X0.reset();let D0=H===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:B!==void 0?B:{password:!0},q0=xX(j);cq();let HJ,T9=0,zJ=(I)=>{for(let J0 of K0||[])if(J0.eventProcessor)I=J0.eventProcessor(I);if(O&&!e)I=O(I);return I};u=(I,J0)=>{var g;let m=I;if(m.timestamp=H9(),((g=M0[0])==null?void 0:g.isFrozen())&&m.type!==R.FullSnapshot&&!(m.type===R.IncrementalSnapshot&&m.data.source===_.Mutation))M0.forEach((n)=>n.unfreeze());if(l)Z==null||Z(zJ(m),J0);else if(e){let n={type:"rrweb",event:zJ(m),origin:window.location.origin,isCheckout:J0};window.parent.postMessage(n,"*")}if(m.type===R.FullSnapshot)HJ=m,T9=0;else if(m.type===R.IncrementalSnapshot){if(m.data.source===_.Mutation&&m.data.isAttachIframe)return;T9++;let n=Y&&T9>=Y,S=J&&m.timestamp-HJ.timestamp>J;if(n||S)t1(!0)}};let M1=(I)=>{u({type:R.IncrementalSnapshot,data:{source:_.Mutation,...I}})},BJ=(I)=>u({type:R.IncrementalSnapshot,data:{source:_.Scroll,...I}}),jJ=(I)=>u({type:R.IncrementalSnapshot,data:{source:_.CanvasMutation,...I}}),F0=new O8({mutationCb:M1,adoptedStyleSheetCb:(I)=>u({type:R.IncrementalSnapshot,data:{source:_.AdoptedStyleSheet,...I}})}),A0=new B8({mirror:X0,mutationCb:M1,stylesheetManager:F0,recordCrossOriginIframes:p,wrappedEmit:u});for(let I of K0||[])if(I.getMirror)I.getMirror({nodeMirror:X0,crossOriginIframeMirror:A0.crossOriginIframeMirror,crossOriginIframeStyleMirror:A0.crossOriginIframeStyleMirror});let S9=new M8;a9=new A8({recordCanvas:f,mutationCb:jJ,win:window,blockClass:Q,blockSelector:K,mirror:X0,sampling:A.canvas,dataURLOptions:D});let w1=new j8({mutationCb:M1,scrollCb:BJ,bypassOptions:{blockClass:Q,blockSelector:K,maskTextClass:G,maskTextSelector:U,inlineStylesheet:W,maskInputOptions:D0,dataURLOptions:D,maskTextFn:L,maskInputFn:P,recordCanvas:f,inlineImages:t,sampling:A,slimDOMOptions:q0,iframeManager:A0,stylesheetManager:F0,canvasManager:a9,keepIframeSrcFn:E,processedNodeManager:S9},mirror:X0});t1=(I=!1)=>{if(!T)return;u({type:R.Meta,data:{href:window.location.href,width:t6(),height:n6()}},I),F0.reset(),w1.init(),M0.forEach((g)=>g.lock());let J0=cY(document,{mirror:X0,blockClass:Q,blockSelector:K,maskTextClass:G,maskTextSelector:U,inlineStylesheet:W,maskAllInputs:D0,maskTextFn:L,maskInputFn:P,slimDOM:q0,dataURLOptions:D,recordCanvas:f,inlineImages:t,onSerialize:(g)=>{if(J8(g,X0))A0.addIframe(g);if(X8(g,X0))F0.trackLinkElement(g);if(IZ(g))w1.addShadowRoot(w.shadowRoot(g),document)},onIframeLoad:(g,m)=>{A0.attachIframe(g,m),w1.observeAttachShadow(g)},onStylesheetLoad:(g,m)=>{F0.attachLinkElement(g,m)},keepIframeSrcFn:E});if(!J0)return console.warn("Failed to snapshot the document");if(u({type:R.FullSnapshot,data:{node:J0,initialOffset:o6(window)}},I),M0.forEach((g)=>g.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0)F0.adoptStyleSheets(document.adoptedStyleSheets,X0.getId(document))};try{let I=[],J0=(m)=>{var n;return C(GG)({mutationCb:M1,mousemoveCb:(S,f9)=>u({type:R.IncrementalSnapshot,data:{source:f9,positions:S}}),mouseInteractionCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.MouseInteraction,...S}}),scrollCb:BJ,viewportResizeCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.ViewportResize,...S}}),inputCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.Input,...S}}),mediaInteractionCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.MediaInteraction,...S}}),styleSheetRuleCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.StyleSheetRule,...S}}),styleDeclarationCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.StyleDeclaration,...S}}),canvasMutationCb:jJ,fontCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.Font,...S}}),selectionCb:(S)=>{u({type:R.IncrementalSnapshot,data:{source:_.Selection,...S}})},customElementCb:(S)=>{u({type:R.IncrementalSnapshot,data:{source:_.CustomElement,...S}})},blockClass:Q,ignoreClass:q,ignoreSelector:V,maskTextClass:G,maskTextSelector:U,maskInputOptions:D0,inlineStylesheet:W,sampling:A,recordDOM:T,recordCanvas:f,inlineImages:t,userTriggeredOnInput:c,collectFonts:i,doc:m,maskInputFn:P,maskTextFn:L,keepIframeSrcFn:E,blockSelector:K,slimDOMOptions:q0,dataURLOptions:D,mirror:X0,iframeManager:A0,stylesheetManager:F0,shadowDomManager:w1,processedNodeManager:S9,canvasManager:a9,ignoreCSSAttributes:i0,plugins:((n=K0==null?void 0:K0.filter((S)=>S.observer))==null?void 0:n.map((S)=>({observer:S.observer,options:S.options,callback:(f9)=>u({type:R.Plugin,data:{plugin:S.name,payload:f9}})})))||[]},z)};A0.addLoadListener((m)=>{try{I.push(J0(m.contentDocument))}catch(n){console.warn(n)}});let g=()=>{t1(),I.push(J0(document)),B9=!0};if(["interactive","complete"].includes(document.readyState))g();else I.push(a("DOMContentLoaded",()=>{if(u({type:R.DomContentLoaded,data:{}}),v==="DOMContentLoaded")g()})),I.push(a("load",()=>{if(u({type:R.Load,data:{}}),v==="load")g()},window));return()=>{I.forEach((m)=>{try{m()}catch(n){if(!String(n).toLowerCase().includes("cross-origin"))console.warn(n)}}),S9.destroy(),B9=!1,aq()}}catch(I){console.warn(I)}}E0.addCustomEvent=(X,Z)=>{if(!B9)throw Error("please add custom event after start recording");u({type:R.Custom,data:{tag:X,payload:Z}})};E0.freezePage=()=>{M0.forEach((X)=>X.freeze())};E0.takeFullSnapshot=(X)=>{if(!B9)throw Error("please take full snapshot after start recording");t1(X)};E0.mirror=X0;/*! *****************************************************************************
59
+ or you can use record.mirror to access the mirror instance during recording.`,S8={map:{},getId(){return console.error(k0),-1},getNode(){return console.error(k0),null},removeNodeFromMap(){console.error(k0)},has(){return console.error(k0),!1},reset(){console.error(k0)}};if(typeof window<"u"&&window.Proxy&&window.Reflect)S8=new Proxy(S8,{get(X,Z,J){if(Z==="map")console.error(k0);return Reflect.get(X,Z,J)}});function P1(X,Z,J={}){let Y=null,Q=0;return function(...G){let K=Date.now();if(!Q&&J.leading===!1)Q=K;let V=Z-(K-Q),q=this;if(V<=0||V>Z){if(Y)clearTimeout(Y),Y=null;Q=K,X.apply(q,G)}else if(!Y&&J.trailing!==!1)Y=setTimeout(()=>{Q=J.leading===!1?0:Date.now(),Y=null,X.apply(q,G)},V)}}function $9(X,Z,J,Y,Q=window){let G=Q.Object.getOwnPropertyDescriptor(X,Z);return Q.Object.defineProperty(X,Z,Y?J:{set(K){if(setTimeout(()=>{J.set.call(this,K)},0),G&&G.set)G.set.call(this,K)}}),()=>$9(X,Z,G||{},!0)}var U9=Date.now;if(!/[1-9][0-9]{12}/.test(Date.now().toString()))U9=()=>new Date().getTime();function jX(X){var Z,J,Y,Q;let G=X.document;return{left:G.scrollingElement?G.scrollingElement.scrollLeft:X.pageXOffset!==void 0?X.pageXOffset:G.documentElement.scrollLeft||(G==null?void 0:G.body)&&((Z=w.parentElement(G.body))==null?void 0:Z.scrollLeft)||((J=G==null?void 0:G.body)==null?void 0:J.scrollLeft)||0,top:G.scrollingElement?G.scrollingElement.scrollTop:X.pageYOffset!==void 0?X.pageYOffset:(G==null?void 0:G.documentElement.scrollTop)||(G==null?void 0:G.body)&&((Y=w.parentElement(G.body))==null?void 0:Y.scrollTop)||((Q=G==null?void 0:G.body)==null?void 0:Q.scrollTop)||0}}function UX(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function LX(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function DX(X){if(!X)return null;return X.nodeType===X.ELEMENT_NODE?X:w.parentElement(X)}function r(X,Z,J,Y){if(!X)return!1;let Q=DX(X);if(!Q)return!1;try{if(typeof Z==="string"){if(Q.classList.contains(Z))return!0;if(Y&&Q.closest("."+Z)!==null)return!0}else if(G9(Q,Z,Y))return!0}catch(G){}if(J){if(Q.matches(J))return!0;if(Y&&Q.closest(J)!==null)return!0}return!1}function Hq(X,Z){return Z.getId(X)!==-1}function n9(X,Z,J){if(X.tagName==="TITLE"&&J.headTitleMutations)return!0;return Z.getId(X)===V1}function PX(X,Z){if(G1(X))return!1;let J=Z.getId(X);if(!Z.has(J))return!0;let Y=w.parentNode(X);if(Y&&Y.nodeType===X.DOCUMENT_NODE)return!1;if(!Y)return!0;return PX(Y,Z)}function TZ(X){return Boolean(X.changedTouches)}function Bq(X=window){if("NodeList"in X&&!X.NodeList.prototype.forEach)X.NodeList.prototype.forEach=Array.prototype.forEach;if("DOMTokenList"in X&&!X.DOMTokenList.prototype.forEach)X.DOMTokenList.prototype.forEach=Array.prototype.forEach}function FX(X,Z){return Boolean(X.nodeName==="IFRAME"&&Z.getMeta(X))}function OX(X,Z){return Boolean(X.nodeName==="LINK"&&X.nodeType===X.ELEMENT_NODE&&X.getAttribute&&X.getAttribute("rel")==="stylesheet"&&Z.getMeta(X))}function SZ(X){if(!X)return!1;if(X instanceof YJ&&"shadowRoot"in X)return Boolean(X.shadowRoot);return Boolean(w.shadowRoot(X))}class AX{constructor(){F(this,"id",1),F(this,"styleIDMap",new WeakMap),F(this,"idStyleMap",new Map)}getId(X){return this.styleIDMap.get(X)??-1}has(X){return this.styleIDMap.has(X)}add(X,Z){if(this.has(X))return this.getId(X);let J;if(Z===void 0)J=this.id++;else J=Z;return this.styleIDMap.set(X,J),this.idStyleMap.set(J,X),J}getStyle(X){return this.idStyleMap.get(X)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function MX(X){var Z;let J=null;if("getRootNode"in X&&((Z=w.getRootNode(X))==null?void 0:Z.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&w.host(w.getRootNode(X)))J=w.host(w.getRootNode(X));return J}function jq(X){let Z=X,J;while(J=MX(Z))Z=J;return Z}function Uq(X){let Z=w.ownerDocument(X);if(!Z)return!1;let J=jq(X);return w.contains(Z,J)}function wX(X){let Z=w.ownerDocument(X);if(!Z)return!1;return w.contains(Z,X)||Uq(X)}var R=((X)=>{return X[X.DomContentLoaded=0]="DomContentLoaded",X[X.Load=1]="Load",X[X.FullSnapshot=2]="FullSnapshot",X[X.IncrementalSnapshot=3]="IncrementalSnapshot",X[X.Meta=4]="Meta",X[X.Custom=5]="Custom",X[X.Plugin=6]="Plugin",X})(R||{}),_=((X)=>{return X[X.Mutation=0]="Mutation",X[X.MouseMove=1]="MouseMove",X[X.MouseInteraction=2]="MouseInteraction",X[X.Scroll=3]="Scroll",X[X.ViewportResize=4]="ViewportResize",X[X.Input=5]="Input",X[X.TouchMove=6]="TouchMove",X[X.MediaInteraction=7]="MediaInteraction",X[X.StyleSheetRule=8]="StyleSheetRule",X[X.CanvasMutation=9]="CanvasMutation",X[X.Font=10]="Font",X[X.Log=11]="Log",X[X.Drag=12]="Drag",X[X.StyleDeclaration=13]="StyleDeclaration",X[X.Selection=14]="Selection",X[X.AdoptedStyleSheet=15]="AdoptedStyleSheet",X[X.CustomElement=16]="CustomElement",X})(_||{}),o=((X)=>{return X[X.MouseUp=0]="MouseUp",X[X.MouseDown=1]="MouseDown",X[X.Click=2]="Click",X[X.ContextMenu=3]="ContextMenu",X[X.DblClick=4]="DblClick",X[X.Focus=5]="Focus",X[X.Blur=6]="Blur",X[X.TouchStart=7]="TouchStart",X[X.TouchMove_Departed=8]="TouchMove_Departed",X[X.TouchEnd=9]="TouchEnd",X[X.TouchCancel=10]="TouchCancel",X})(o||{}),B0=((X)=>{return X[X.Mouse=0]="Mouse",X[X.Pen=1]="Pen",X[X.Touch=2]="Touch",X})(B0||{}),s0=((X)=>{return X[X["2D"]=0]="2D",X[X.WebGL=1]="WebGL",X[X.WebGL2=2]="WebGL2",X})(s0||{}),v0=((X)=>{return X[X.Play=0]="Play",X[X.Pause=1]="Pause",X[X.Seeked=2]="Seeked",X[X.VolumeChange=3]="VolumeChange",X[X.RateChange=4]="RateChange",X})(v0||{});var _X=((X)=>{return X[X.Document=0]="Document",X[X.DocumentType=1]="DocumentType",X[X.Element=2]="Element",X[X.Text=3]="Text",X[X.CDATA=4]="CDATA",X[X.Comment=5]="Comment",X})(_X||{});function x8(X){return"__ln"in X}class CX{constructor(){F(this,"length",0),F(this,"head",null),F(this,"tail",null)}get(X){if(X>=this.length)throw Error("Position outside of list range");let Z=this.head;for(let J=0;J<X;J++)Z=(Z==null?void 0:Z.next)||null;return Z}addNode(X){let Z={value:X,previous:null,next:null};if(X.__ln=Z,X.previousSibling&&x8(X.previousSibling)){let J=X.previousSibling.__ln.next;if(Z.next=J,Z.previous=X.previousSibling.__ln,X.previousSibling.__ln.next=Z,J)J.previous=Z}else if(X.nextSibling&&x8(X.nextSibling)&&X.nextSibling.__ln.previous){let J=X.nextSibling.__ln.previous;if(Z.previous=J,Z.next=X.nextSibling.__ln,X.nextSibling.__ln.previous=Z,J)J.next=Z}else{if(this.head)this.head.previous=Z;Z.next=this.head,this.head=Z}if(Z.next===null)this.tail=Z;this.length++}removeNode(X){let Z=X.__ln;if(!this.head)return;if(!Z.previous)if(this.head=Z.next,this.head)this.head.previous=null;else this.tail=null;else if(Z.previous.next=Z.next,Z.next)Z.next.previous=Z.previous;else this.tail=Z.previous;if(X.__ln)delete X.__ln;this.length--}}var b8=(X,Z)=>`${X}@${Z}`;class RX{constructor(){F(this,"frozen",!1),F(this,"locked",!1),F(this,"texts",[]),F(this,"attributes",[]),F(this,"attributeMap",new WeakMap),F(this,"removes",[]),F(this,"mapRemoves",[]),F(this,"movedMap",{}),F(this,"addedSet",new Set),F(this,"movedSet",new Set),F(this,"droppedSet",new Set),F(this,"removesSubTreeCache",new Set),F(this,"mutationCb"),F(this,"blockClass"),F(this,"blockSelector"),F(this,"maskTextClass"),F(this,"maskTextSelector"),F(this,"inlineStylesheet"),F(this,"maskInputOptions"),F(this,"maskTextFn"),F(this,"maskInputFn"),F(this,"keepIframeSrcFn"),F(this,"recordCanvas"),F(this,"inlineImages"),F(this,"slimDOMOptions"),F(this,"dataURLOptions"),F(this,"doc"),F(this,"mirror"),F(this,"iframeManager"),F(this,"stylesheetManager"),F(this,"shadowDomManager"),F(this,"canvasManager"),F(this,"processedNodeManager"),F(this,"unattachedDoc"),F(this,"processMutations",(X)=>{X.forEach(this.processMutation),this.emit()}),F(this,"emit",()=>{if(this.frozen||this.locked)return;let X=[],Z=new Set,J=new CX,Y=(V)=>{let q=V,W=V1;while(W===V1)q=q&&q.nextSibling,W=q&&this.mirror.getId(q);return W},Q=(V)=>{let q=w.parentNode(V);if(!q||!wX(V))return;let W=!1;if(V.nodeType===Node.TEXT_NODE){let U=q.tagName;if(U==="TEXTAREA")return;else if(U==="STYLE"&&this.addedSet.has(q))W=!0}let z=G1(q)?this.mirror.getId(MX(V)):this.mirror.getId(q),H=Y(V);if(z===-1||H===-1)return J.addNode(V);let j=g0(V,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:(U)=>{if(FX(U,this.mirror))this.iframeManager.addIframe(U);if(OX(U,this.mirror))this.stylesheetManager.trackLinkElement(U);if(SZ(V))this.shadowDomManager.addShadowRoot(w.shadowRoot(V),this.doc)},onIframeLoad:(U,D)=>{this.iframeManager.attachIframe(U,D),this.shadowDomManager.observeAttachShadow(U)},onStylesheetLoad:(U,D)=>{this.stylesheetManager.attachLinkElement(U,D)},cssCaptured:W});if(j)X.push({parentId:z,nextId:H,node:j}),Z.add(j.id)};while(this.mapRemoves.length)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let V of this.movedSet){if(f8(this.removesSubTreeCache,V,this.mirror)&&!this.movedSet.has(w.parentNode(V)))continue;Q(V)}for(let V of this.addedSet)if(!k8(this.droppedSet,V)&&!f8(this.removesSubTreeCache,V,this.mirror))Q(V);else if(k8(this.movedSet,V))Q(V);else this.droppedSet.add(V);let G=null;while(J.length){let V=null;if(G){let q=this.mirror.getId(w.parentNode(G.value)),W=Y(G.value);if(q!==-1&&W!==-1)V=G}if(!V){let q=J.tail;while(q){let W=q;if(q=q.previous,W){let z=this.mirror.getId(w.parentNode(W.value));if(Y(W.value)===-1)continue;else if(z!==-1){V=W;break}else{let j=W.value,U=w.parentNode(j);if(U&&U.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let D=w.host(U);if(this.mirror.getId(D)!==-1){V=W;break}}}}}}if(!V){while(J.head)J.removeNode(J.head.value);break}G=V.previous,J.removeNode(V.value),Q(V.value)}let K={texts:this.texts.map((V)=>{let q=V.node,W=w.parentNode(q);if(W&&W.tagName==="TEXTAREA")this.genTextAreaValueMutation(W);return{id:this.mirror.getId(q),value:V.value}}).filter((V)=>!Z.has(V.id)).filter((V)=>this.mirror.has(V.id)),attributes:this.attributes.map((V)=>{let{attributes:q}=V;if(typeof q.style==="string"){let W=JSON.stringify(V.styleDiff),z=JSON.stringify(V._unchangedStyles);if(W.length<q.style.length){if((W+z).split("var(").length===q.style.split("var(").length)q.style=V.styleDiff}}return{id:this.mirror.getId(V.node),attributes:q}}).filter((V)=>!Z.has(V.id)).filter((V)=>this.mirror.has(V.id)),removes:this.removes,adds:X};if(!K.texts.length&&!K.attributes.length&&!K.removes.length&&!K.adds.length)return;this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(K)}),F(this,"genTextAreaValueMutation",(X)=>{let Z=this.attributeMap.get(X);if(!Z)Z={node:X,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(Z),this.attributeMap.set(X,Z);let J=Array.from(w.childNodes(X),(Y)=>w.textContent(Y)||"").join("");Z.attributes.value=X9({element:X,maskInputOptions:this.maskInputOptions,tagName:X.tagName,type:Y9(X),value:J,maskInputFn:this.maskInputFn})}),F(this,"processMutation",(X)=>{if(n9(X.target,this.mirror,this.slimDOMOptions))return;switch(X.type){case"characterData":{let Z=w.textContent(X.target);if(!r(X.target,this.blockClass,this.blockSelector,!1)&&Z!==X.oldValue)this.texts.push({value:r8(X.target,this.maskTextClass,this.maskTextSelector,!0)&&Z?this.maskTextFn?this.maskTextFn(Z,DX(X.target)):Z.replace(/[\S]/g,"*"):Z,node:X.target});break}case"attributes":{let{target:Z,attributeName:J}=X,Y=X.target.getAttribute(J);if(J==="value"){let G=Y9(Z);Y=X9({element:Z,maskInputOptions:this.maskInputOptions,tagName:Z.tagName,type:G,value:Y,maskInputFn:this.maskInputFn})}if(r(X.target,this.blockClass,this.blockSelector,!1)||Y===X.oldValue)return;let Q=this.attributeMap.get(X.target);if(Z.tagName==="IFRAME"&&J==="src"&&!this.keepIframeSrcFn(Y))if(!Z.contentDocument)J="rr_src";else return;if(!Q)Q={node:X.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(Q),this.attributeMap.set(X.target,Q);if(J==="type"&&Z.tagName==="INPUT"&&(X.oldValue||"").toLowerCase()==="password")Z.setAttribute("data-rr-is-password","true");if(!a8(Z.tagName,J)){if(Q.attributes[J]=s8(this.doc,R0(Z.tagName),R0(J),Y),J==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(K){this.unattachedDoc=this.doc}let G=this.unattachedDoc.createElement("span");if(X.oldValue)G.setAttribute("style",X.oldValue);for(let K of Array.from(Z.style)){let V=Z.style.getPropertyValue(K),q=Z.style.getPropertyPriority(K);if(V!==G.style.getPropertyValue(K)||q!==G.style.getPropertyPriority(K))if(q==="")Q.styleDiff[K]=V;else Q.styleDiff[K]=[V,q];else Q._unchangedStyles[K]=[V,q]}for(let K of Array.from(G.style))if(Z.style.getPropertyValue(K)==="")Q.styleDiff[K]=!1}else if(J==="open"&&Z.tagName==="DIALOG")if(Z.matches("dialog:modal"))Q.attributes.rr_open_mode="modal";else Q.attributes.rr_open_mode="non-modal"}break}case"childList":{if(r(X.target,this.blockClass,this.blockSelector,!0))return;if(X.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(X.target);return}X.addedNodes.forEach((Z)=>this.genAdds(Z,X.target)),X.removedNodes.forEach((Z)=>{let J=this.mirror.getId(Z),Y=G1(X.target)?this.mirror.getId(w.host(X.target)):this.mirror.getId(X.target);if(r(X.target,this.blockClass,this.blockSelector,!1)||n9(Z,this.mirror,this.slimDOMOptions)||!Hq(Z,this.mirror))return;if(this.addedSet.has(Z))xZ(this.addedSet,Z),this.droppedSet.add(Z);else if(this.addedSet.has(X.target)&&J===-1);else if(PX(X.target,this.mirror));else if(this.movedSet.has(Z)&&this.movedMap[b8(J,Y)])xZ(this.movedSet,Z);else this.removes.push({parentId:Y,id:J,isShadow:G1(X.target)&&K1(X.target)?!0:void 0}),Lq(Z,this.removesSubTreeCache);this.mapRemoves.push(Z)});break}}}),F(this,"genAdds",(X,Z)=>{if(this.processedNodeManager.inOtherBuffer(X,this))return;if(this.addedSet.has(X)||this.movedSet.has(X))return;if(this.mirror.hasNode(X)){if(n9(X,this.mirror,this.slimDOMOptions))return;this.movedSet.add(X);let J=null;if(Z&&this.mirror.hasNode(Z))J=this.mirror.getId(Z);if(J&&J!==-1)this.movedMap[b8(this.mirror.getId(X),J)]=!0}else this.addedSet.add(X),this.droppedSet.delete(X);if(!r(X,this.blockClass,this.blockSelector,!1)){if(w.childNodes(X).forEach((J)=>this.genAdds(J)),SZ(X))w.childNodes(w.shadowRoot(X)).forEach((J)=>{this.processedNodeManager.add(J,this),this.genAdds(J,X)})}})}init(X){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((Z)=>{this[Z]=X[Z]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function xZ(X,Z){X.delete(Z),w.childNodes(Z).forEach((J)=>xZ(X,J))}function Lq(X,Z){let J=[X];while(J.length){let Y=J.pop();if(Z.has(Y))continue;Z.add(Y),w.childNodes(Y).forEach((Q)=>J.push(Q))}return}function f8(X,Z,J){if(X.size===0)return!1;return Dq(X,Z)}function Dq(X,Z,J){let Y=w.parentNode(Z);if(!Y)return!1;return X.has(Y)}function k8(X,Z){if(X.size===0)return!1;return EX(X,Z)}function EX(X,Z){let J=w.parentNode(Z);if(!J)return!1;if(X.has(J))return!0;return EX(X,J)}var q1;function Pq(X){q1=X}function Fq(){q1=void 0}var C=(X)=>{if(!q1)return X;return(...J)=>{try{return X(...J)}catch(Y){if(q1&&q1(Y)===!0)return;throw Y}}},C0=[];function w1(X){try{if("composedPath"in X){let Z=X.composedPath();if(Z.length)return Z[0]}else if("path"in X&&X.path.length)return X.path[0]}catch{}return X&&X.target}function $X(X,Z){let J=new RX;C0.push(J),J.init(X);let Y=new(BX())(C(J.processMutations.bind(J)));return Y.observe(Z,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),Y}function Oq({mousemoveCb:X,sampling:Z,doc:J,mirror:Y}){if(Z.mousemove===!1)return()=>{};let Q=typeof Z.mousemove==="number"?Z.mousemove:50,G=typeof Z.mousemoveCallback==="number"?Z.mousemoveCallback:500,K=[],V,q=P1(C((H)=>{let j=Date.now()-V;X(K.map((U)=>{return U.timeOffset-=j,U}),H),K=[],V=null}),G),W=C(P1(C((H)=>{let j=w1(H),{clientX:U,clientY:D}=TZ(H)?H.changedTouches[0]:H;if(!V)V=U9();K.push({x:U,y:D,id:Y.getId(j),timeOffset:U9()-V}),q(typeof DragEvent<"u"&&H instanceof DragEvent?_.Drag:H instanceof MouseEvent?_.MouseMove:_.TouchMove)}),Q,{trailing:!1})),z=[a("mousemove",W,J),a("touchmove",W,J),a("drag",W,J)];return C(()=>{z.forEach((H)=>H())})}function Aq({mouseInteractionCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,sampling:G}){if(G.mouseInteraction===!1)return()=>{};let K=G.mouseInteraction===!0||G.mouseInteraction===void 0?{}:G.mouseInteraction,V=[],q=null,W=(z)=>{return(H)=>{let j=w1(H);if(r(j,Y,Q,!0))return;let U=null,D=z;if("pointerType"in H){switch(H.pointerType){case"mouse":U=B0.Mouse;break;case"touch":U=B0.Touch;break;case"pen":U=B0.Pen;break}if(U===B0.Touch){if(o[z]===o.MouseDown)D="TouchStart";else if(o[z]===o.MouseUp)D="TouchEnd"}else if(U===B0.Pen);}else if(TZ(H))U=B0.Touch;if(U!==null){if(q=U,D.startsWith("Touch")&&U===B0.Touch||D.startsWith("Mouse")&&U===B0.Mouse)U=null}else if(o[z]===o.Click)U=q,q=null;let L=TZ(H)?H.changedTouches[0]:H;if(!L)return;let B=J.getId(j),{clientX:A,clientY:O}=L;C(X)({type:o[D],id:B,x:A,y:O,...U!==null&&{pointerType:U}})}};return Object.keys(o).filter((z)=>Number.isNaN(Number(z))&&!z.endsWith("_Departed")&&K[z]!==!1).forEach((z)=>{let H=R0(z),j=W(z);if(window.PointerEvent)switch(o[z]){case o.MouseDown:case o.MouseUp:H=H.replace("mouse","pointer");break;case o.TouchStart:case o.TouchEnd:return}V.push(a(H,j,Z))}),C(()=>{V.forEach((z)=>z())})}function NX({scrollCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,sampling:G}){let K=C(P1(C((V)=>{let q=w1(V);if(!q||r(q,Y,Q,!0))return;let W=J.getId(q);if(q===Z&&Z.defaultView){let z=jX(Z.defaultView);X({id:W,x:z.left,y:z.top})}else X({id:W,x:q.scrollLeft,y:q.scrollTop})}),G.scroll||100));return a("scroll",K,Z)}function Mq({viewportResizeCb:X},{win:Z}){let J=-1,Y=-1,Q=C(P1(C(()=>{let G=UX(),K=LX();if(J!==G||Y!==K)X({width:Number(K),height:Number(G)}),J=G,Y=K}),200));return a("resize",Q,Z)}var wq=["INPUT","TEXTAREA","SELECT"],v8=new WeakMap;function _q({inputCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,ignoreClass:G,ignoreSelector:K,maskInputOptions:V,maskInputFn:q,sampling:W,userTriggeredOnInput:z}){function H(O){let P=w1(O),M=O.isTrusted,T=P&&P.tagName;if(P&&T==="OPTION")P=w.parentElement(P);if(!P||!T||wq.indexOf(T)<0||r(P,Y,Q,!0))return;if(P.classList.contains(G)||K&&P.matches(K))return;let x=P.value,p=!1,v=Y9(P)||"";if(v==="radio"||v==="checkbox")p=P.checked;else if(V[T.toLowerCase()]||V[v])x=X9({element:P,maskInputOptions:V,tagName:T,type:v,value:x,maskInputFn:q});j(P,z?{text:x,isChecked:p,userTriggered:M}:{text:x,isChecked:p});let c=P.name;if(v==="radio"&&c&&p)Z.querySelectorAll(`input[type="radio"][name="${c}"]`).forEach((i)=>{if(i!==P){let t=i.value;j(i,z?{text:t,isChecked:!p,userTriggered:!1}:{text:t,isChecked:!p})}})}function j(O,P){let M=v8.get(O);if(!M||M.text!==P.text||M.isChecked!==P.isChecked){v8.set(O,P);let T=J.getId(O);C(X)({...P,id:T})}}let D=(W.input==="last"?["change"]:["input","change"]).map((O)=>a(O,C(H),Z)),L=Z.defaultView;if(!L)return()=>{D.forEach((O)=>O())};let B=L.Object.getOwnPropertyDescriptor(L.HTMLInputElement.prototype,"value"),A=[[L.HTMLInputElement.prototype,"value"],[L.HTMLInputElement.prototype,"checked"],[L.HTMLSelectElement.prototype,"value"],[L.HTMLTextAreaElement.prototype,"value"],[L.HTMLSelectElement.prototype,"selectedIndex"],[L.HTMLOptionElement.prototype,"selected"]];if(B&&B.set)D.push(...A.map((O)=>$9(O[0],O[1],{set(){C(H)({target:this,isTrusted:!1})}},!1,L)));return C(()=>{D.forEach((O)=>O())})}function L9(X){let Z=[];function J(Y,Q){if(a1("CSSGroupingRule")&&Y.parentRule instanceof CSSGroupingRule||a1("CSSMediaRule")&&Y.parentRule instanceof CSSMediaRule||a1("CSSSupportsRule")&&Y.parentRule instanceof CSSSupportsRule||a1("CSSConditionRule")&&Y.parentRule instanceof CSSConditionRule){let K=Array.from(Y.parentRule.cssRules).indexOf(Y);Q.unshift(K)}else if(Y.parentStyleSheet){let K=Array.from(Y.parentStyleSheet.cssRules).indexOf(Y);Q.unshift(K)}return Q}return J(X,Z)}function F0(X,Z,J){let Y,Q;if(!X)return{};if(X.ownerNode)Y=Z.getId(X.ownerNode);else Q=J.getId(X);return{styleId:Q,id:Y}}function Cq({styleSheetRuleCb:X,mirror:Z,stylesheetManager:J},{win:Y}){if(!Y.CSSStyleSheet||!Y.CSSStyleSheet.prototype)return()=>{};let Q=Y.CSSStyleSheet.prototype.insertRule;Y.CSSStyleSheet.prototype.insertRule=new Proxy(Q,{apply:C((z,H,j)=>{let[U,D]=j,{id:L,styleId:B}=F0(H,Z,J.styleMirror);if(L&&L!==-1||B&&B!==-1)X({id:L,styleId:B,adds:[{rule:U,index:D}]});return z.apply(H,j)})}),Y.CSSStyleSheet.prototype.addRule=function(z,H,j=this.cssRules.length){let U=`${z} { ${H} }`;return Y.CSSStyleSheet.prototype.insertRule.apply(this,[U,j])};let G=Y.CSSStyleSheet.prototype.deleteRule;Y.CSSStyleSheet.prototype.deleteRule=new Proxy(G,{apply:C((z,H,j)=>{let[U]=j,{id:D,styleId:L}=F0(H,Z,J.styleMirror);if(D&&D!==-1||L&&L!==-1)X({id:D,styleId:L,removes:[{index:U}]});return z.apply(H,j)})}),Y.CSSStyleSheet.prototype.removeRule=function(z){return Y.CSSStyleSheet.prototype.deleteRule.apply(this,[z])};let K;if(Y.CSSStyleSheet.prototype.replace)K=Y.CSSStyleSheet.prototype.replace,Y.CSSStyleSheet.prototype.replace=new Proxy(K,{apply:C((z,H,j)=>{let[U]=j,{id:D,styleId:L}=F0(H,Z,J.styleMirror);if(D&&D!==-1||L&&L!==-1)X({id:D,styleId:L,replace:U});return z.apply(H,j)})});let V;if(Y.CSSStyleSheet.prototype.replaceSync)V=Y.CSSStyleSheet.prototype.replaceSync,Y.CSSStyleSheet.prototype.replaceSync=new Proxy(V,{apply:C((z,H,j)=>{let[U]=j,{id:D,styleId:L}=F0(H,Z,J.styleMirror);if(D&&D!==-1||L&&L!==-1)X({id:D,styleId:L,replaceSync:U});return z.apply(H,j)})});let q={};if(r1("CSSGroupingRule"))q.CSSGroupingRule=Y.CSSGroupingRule;else{if(r1("CSSMediaRule"))q.CSSMediaRule=Y.CSSMediaRule;if(r1("CSSConditionRule"))q.CSSConditionRule=Y.CSSConditionRule;if(r1("CSSSupportsRule"))q.CSSSupportsRule=Y.CSSSupportsRule}let W={};return Object.entries(q).forEach(([z,H])=>{W[z]={insertRule:H.prototype.insertRule,deleteRule:H.prototype.deleteRule},H.prototype.insertRule=new Proxy(W[z].insertRule,{apply:C((j,U,D)=>{let[L,B]=D,{id:A,styleId:O}=F0(U.parentStyleSheet,Z,J.styleMirror);if(A&&A!==-1||O&&O!==-1)X({id:A,styleId:O,adds:[{rule:L,index:[...L9(U),B||0]}]});return j.apply(U,D)})}),H.prototype.deleteRule=new Proxy(W[z].deleteRule,{apply:C((j,U,D)=>{let[L]=D,{id:B,styleId:A}=F0(U.parentStyleSheet,Z,J.styleMirror);if(B&&B!==-1||A&&A!==-1)X({id:B,styleId:A,removes:[{index:[...L9(U),L]}]});return j.apply(U,D)})})}),C(()=>{Y.CSSStyleSheet.prototype.insertRule=Q,Y.CSSStyleSheet.prototype.deleteRule=G,K&&(Y.CSSStyleSheet.prototype.replace=K),V&&(Y.CSSStyleSheet.prototype.replaceSync=V),Object.entries(q).forEach(([z,H])=>{H.prototype.insertRule=W[z].insertRule,H.prototype.deleteRule=W[z].deleteRule})})}function IX({mirror:X,stylesheetManager:Z},J){var Y,Q,G;let K=null;if(J.nodeName==="#document")K=X.getId(J);else K=X.getId(w.host(J));let V=J.nodeName==="#document"?(Y=J.defaultView)==null?void 0:Y.Document:(G=(Q=J.ownerDocument)==null?void 0:Q.defaultView)==null?void 0:G.ShadowRoot,q=(V==null?void 0:V.prototype)?Object.getOwnPropertyDescriptor(V==null?void 0:V.prototype,"adoptedStyleSheets"):void 0;if(K===null||K===-1||!V||!q)return()=>{};return Object.defineProperty(J,"adoptedStyleSheets",{configurable:q.configurable,enumerable:q.enumerable,get(){var W;return(W=q.get)==null?void 0:W.call(this)},set(W){var z;let H=(z=q.set)==null?void 0:z.call(this,W);if(K!==null&&K!==-1)try{Z.adoptStyleSheets(W,K)}catch(j){}return H}}),C(()=>{Object.defineProperty(J,"adoptedStyleSheets",{configurable:q.configurable,enumerable:q.enumerable,get:q.get,set:q.set})})}function Rq({styleDeclarationCb:X,mirror:Z,ignoreCSSAttributes:J,stylesheetManager:Y},{win:Q}){let G=Q.CSSStyleDeclaration.prototype.setProperty;Q.CSSStyleDeclaration.prototype.setProperty=new Proxy(G,{apply:C((V,q,W)=>{var z;let[H,j,U]=W;if(J.has(H))return G.apply(q,[H,j,U]);let{id:D,styleId:L}=F0((z=q.parentRule)==null?void 0:z.parentStyleSheet,Z,Y.styleMirror);if(D&&D!==-1||L&&L!==-1)X({id:D,styleId:L,set:{property:H,value:j,priority:U},index:L9(q.parentRule)});return V.apply(q,W)})});let K=Q.CSSStyleDeclaration.prototype.removeProperty;return Q.CSSStyleDeclaration.prototype.removeProperty=new Proxy(K,{apply:C((V,q,W)=>{var z;let[H]=W;if(J.has(H))return K.apply(q,[H]);let{id:j,styleId:U}=F0((z=q.parentRule)==null?void 0:z.parentStyleSheet,Z,Y.styleMirror);if(j&&j!==-1||U&&U!==-1)X({id:j,styleId:U,remove:{property:H},index:L9(q.parentRule)});return V.apply(q,W)})}),C(()=>{Q.CSSStyleDeclaration.prototype.setProperty=G,Q.CSSStyleDeclaration.prototype.removeProperty=K})}function Eq({mediaInteractionCb:X,blockClass:Z,blockSelector:J,mirror:Y,sampling:Q,doc:G}){let K=C((q)=>P1(C((W)=>{let z=w1(W);if(!z||r(z,Z,J,!0))return;let{currentTime:H,volume:j,muted:U,playbackRate:D,loop:L}=z;X({type:q,id:Y.getId(z),currentTime:H,volume:j,muted:U,playbackRate:D,loop:L})}),Q.media||500)),V=[a("play",K(v0.Play),G),a("pause",K(v0.Pause),G),a("seeked",K(v0.Seeked),G),a("volumechange",K(v0.VolumeChange),G),a("ratechange",K(v0.RateChange),G)];return C(()=>{V.forEach((q)=>q())})}function $q({fontCb:X,doc:Z}){let J=Z.defaultView;if(!J)return()=>{};let Y=[],Q=new WeakMap,G=J.FontFace;J.FontFace=function(q,W,z){let H=new G(q,W,z);return Q.set(H,{family:q,buffer:typeof W!=="string",descriptors:z,fontSource:typeof W==="string"?W:JSON.stringify(Array.from(new Uint8Array(W)))}),H};let K=N0(Z.fonts,"add",function(V){return function(q){return setTimeout(C(()=>{let W=Q.get(q);if(W)X(W),Q.delete(q)}),0),V.apply(this,[q])}});return Y.push(()=>{J.FontFace=G}),Y.push(K),C(()=>{Y.forEach((V)=>V())})}function Nq(X){let{doc:Z,mirror:J,blockClass:Y,blockSelector:Q,selectionCb:G}=X,K=!0,V=C(()=>{let q=Z.getSelection();if(!q||K&&(q==null?void 0:q.isCollapsed))return;K=q.isCollapsed||!1;let W=[],z=q.rangeCount||0;for(let H=0;H<z;H++){let j=q.getRangeAt(H),{startContainer:U,startOffset:D,endContainer:L,endOffset:B}=j;if(r(U,Y,Q,!0)||r(L,Y,Q,!0))continue;W.push({start:J.getId(U),startOffset:D,end:J.getId(L),endOffset:B})}G({ranges:W})});return V(),a("selectionchange",V)}function Iq({doc:X,customElementCb:Z}){let J=X.defaultView;if(!J||!J.customElements)return()=>{};return N0(J.customElements,"define",function(Q){return function(G,K,V){try{Z({define:{name:G}})}catch(q){console.warn(`Custom element callback failed for ${G}`)}return Q.apply(this,[G,K,V])}})}function Tq(X,Z){let{mutationCb:J,mousemoveCb:Y,mouseInteractionCb:Q,scrollCb:G,viewportResizeCb:K,inputCb:V,mediaInteractionCb:q,styleSheetRuleCb:W,styleDeclarationCb:z,canvasMutationCb:H,fontCb:j,selectionCb:U,customElementCb:D}=X;X.mutationCb=(...L)=>{if(Z.mutation)Z.mutation(...L);J(...L)},X.mousemoveCb=(...L)=>{if(Z.mousemove)Z.mousemove(...L);Y(...L)},X.mouseInteractionCb=(...L)=>{if(Z.mouseInteraction)Z.mouseInteraction(...L);Q(...L)},X.scrollCb=(...L)=>{if(Z.scroll)Z.scroll(...L);G(...L)},X.viewportResizeCb=(...L)=>{if(Z.viewportResize)Z.viewportResize(...L);K(...L)},X.inputCb=(...L)=>{if(Z.input)Z.input(...L);V(...L)},X.mediaInteractionCb=(...L)=>{if(Z.mediaInteaction)Z.mediaInteaction(...L);q(...L)},X.styleSheetRuleCb=(...L)=>{if(Z.styleSheetRule)Z.styleSheetRule(...L);W(...L)},X.styleDeclarationCb=(...L)=>{if(Z.styleDeclaration)Z.styleDeclaration(...L);z(...L)},X.canvasMutationCb=(...L)=>{if(Z.canvasMutation)Z.canvasMutation(...L);H(...L)},X.fontCb=(...L)=>{if(Z.font)Z.font(...L);j(...L)},X.selectionCb=(...L)=>{if(Z.selection)Z.selection(...L);U(...L)},X.customElementCb=(...L)=>{if(Z.customElement)Z.customElement(...L);D(...L)}}function Sq(X,Z={}){let J=X.doc.defaultView;if(!J)return()=>{};Tq(X,Z);let Y;if(X.recordDOM)Y=$X(X,X.doc);let Q=Oq(X),G=Aq(X),K=NX(X),V=Mq(X,{win:J}),q=_q(X),W=Eq(X),z=()=>{},H=()=>{},j=()=>{},U=()=>{};if(X.recordDOM){if(z=Cq(X,{win:J}),H=IX(X,X.doc),j=Rq(X,{win:J}),X.collectFonts)U=$q(X)}let D=Nq(X),L=Iq(X),B=[];for(let A of X.plugins)B.push(A.observer(A.callback,J,A.options));return C(()=>{C0.forEach((A)=>A.reset()),Y==null||Y.disconnect(),Q(),G(),K(),V(),q(),W(),z(),H(),j(),U(),D(),L(),B.forEach((A)=>A())})}function a1(X){return typeof window[X]<"u"}function r1(X){return Boolean(typeof window[X]<"u"&&window[X].prototype&&"insertRule"in window[X].prototype&&"deleteRule"in window[X].prototype)}class bZ{constructor(X){F(this,"iframeIdToRemoteIdMap",new WeakMap),F(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=X}getId(X,Z,J,Y){let Q=J||this.getIdToRemoteIdMap(X),G=Y||this.getRemoteIdToIdMap(X),K=Q.get(Z);if(!K)K=this.generateIdFn(),Q.set(Z,K),G.set(K,Z);return K}getIds(X,Z){let J=this.getIdToRemoteIdMap(X),Y=this.getRemoteIdToIdMap(X);return Z.map((Q)=>this.getId(X,Q,J,Y))}getRemoteId(X,Z,J){let Y=J||this.getRemoteIdToIdMap(X);if(typeof Z!=="number")return Z;let Q=Y.get(Z);if(!Q)return-1;return Q}getRemoteIds(X,Z){let J=this.getRemoteIdToIdMap(X);return Z.map((Y)=>this.getRemoteId(X,Y,J))}reset(X){if(!X){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(X),this.iframeRemoteIdToIdMap.delete(X)}getIdToRemoteIdMap(X){let Z=this.iframeIdToRemoteIdMap.get(X);if(!Z)Z=new Map,this.iframeIdToRemoteIdMap.set(X,Z);return Z}getRemoteIdToIdMap(X){let Z=this.iframeRemoteIdToIdMap.get(X);if(!Z)Z=new Map,this.iframeRemoteIdToIdMap.set(X,Z);return Z}}class TX{constructor(X){if(F(this,"iframes",new WeakMap),F(this,"crossOriginIframeMap",new WeakMap),F(this,"crossOriginIframeMirror",new bZ(i8)),F(this,"crossOriginIframeStyleMirror"),F(this,"crossOriginIframeRootIdMap",new WeakMap),F(this,"mirror"),F(this,"mutationCb"),F(this,"wrappedEmit"),F(this,"loadListener"),F(this,"stylesheetManager"),F(this,"recordCrossOriginIframes"),this.mutationCb=X.mutationCb,this.wrappedEmit=X.wrappedEmit,this.stylesheetManager=X.stylesheetManager,this.recordCrossOriginIframes=X.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new bZ(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=X.mirror,this.recordCrossOriginIframes)window.addEventListener("message",this.handleMessage.bind(this))}addIframe(X){if(this.iframes.set(X,!0),X.contentWindow)this.crossOriginIframeMap.set(X.contentWindow,X)}addLoadListener(X){this.loadListener=X}attachIframe(X,Z){var J,Y;if(this.mutationCb({adds:[{parentId:this.mirror.getId(X),nextId:null,node:Z}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes)(J=X.contentWindow)==null||J.addEventListener("message",this.handleMessage.bind(this));if((Y=this.loadListener)==null||Y.call(this,X),X.contentDocument&&X.contentDocument.adoptedStyleSheets&&X.contentDocument.adoptedStyleSheets.length>0)this.stylesheetManager.adoptStyleSheets(X.contentDocument.adoptedStyleSheets,this.mirror.getId(X.contentDocument))}handleMessage(X){let Z=X;if(Z.data.type!=="rrweb"||Z.origin!==Z.data.origin)return;if(!X.source)return;let Y=this.crossOriginIframeMap.get(X.source);if(!Y)return;let Q=this.transformCrossOriginEvent(Y,Z.data.event);if(Q)this.wrappedEmit(Q,Z.data.isCheckout)}transformCrossOriginEvent(X,Z){var J;switch(Z.type){case R.FullSnapshot:{this.crossOriginIframeMirror.reset(X),this.crossOriginIframeStyleMirror.reset(X),this.replaceIdOnNode(Z.data.node,X);let Y=Z.data.node.id;return this.crossOriginIframeRootIdMap.set(X,Y),this.patchRootIdOnNode(Z.data.node,Y),{timestamp:Z.timestamp,type:R.IncrementalSnapshot,data:{source:_.Mutation,adds:[{parentId:this.mirror.getId(X),nextId:null,node:Z.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case R.Meta:case R.Load:case R.DomContentLoaded:return!1;case R.Plugin:return Z;case R.Custom:return this.replaceIds(Z.data.payload,X,["id","parentId","previousId","nextId"]),Z;case R.IncrementalSnapshot:switch(Z.data.source){case _.Mutation:return Z.data.adds.forEach((Y)=>{this.replaceIds(Y,X,["parentId","nextId","previousId"]),this.replaceIdOnNode(Y.node,X);let Q=this.crossOriginIframeRootIdMap.get(X);Q&&this.patchRootIdOnNode(Y.node,Q)}),Z.data.removes.forEach((Y)=>{this.replaceIds(Y,X,["parentId","id"])}),Z.data.attributes.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z.data.texts.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z;case _.Drag:case _.TouchMove:case _.MouseMove:return Z.data.positions.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z;case _.ViewportResize:return!1;case _.MediaInteraction:case _.MouseInteraction:case _.Scroll:case _.CanvasMutation:case _.Input:return this.replaceIds(Z.data,X,["id"]),Z;case _.StyleSheetRule:case _.StyleDeclaration:return this.replaceIds(Z.data,X,["id"]),this.replaceStyleIds(Z.data,X,["styleId"]),Z;case _.Font:return Z;case _.Selection:return Z.data.ranges.forEach((Y)=>{this.replaceIds(Y,X,["start","end"])}),Z;case _.AdoptedStyleSheet:return this.replaceIds(Z.data,X,["id"]),this.replaceStyleIds(Z.data,X,["styleIds"]),(J=Z.data.styles)==null||J.forEach((Y)=>{this.replaceStyleIds(Y,X,["styleId"])}),Z}}return!1}replace(X,Z,J,Y){for(let Q of Y){if(!Array.isArray(Z[Q])&&typeof Z[Q]!=="number")continue;if(Array.isArray(Z[Q]))Z[Q]=X.getIds(J,Z[Q]);else Z[Q]=X.getId(J,Z[Q])}return Z}replaceIds(X,Z,J){return this.replace(this.crossOriginIframeMirror,X,Z,J)}replaceStyleIds(X,Z,J){return this.replace(this.crossOriginIframeStyleMirror,X,Z,J)}replaceIdOnNode(X,Z){if(this.replaceIds(X,Z,["id","rootId"]),"childNodes"in X)X.childNodes.forEach((J)=>{this.replaceIdOnNode(J,Z)})}patchRootIdOnNode(X,Z){if(X.type!==_X.Document&&!X.rootId)X.rootId=Z;if("childNodes"in X)X.childNodes.forEach((J)=>{this.patchRootIdOnNode(J,Z)})}}class SX{constructor(X){F(this,"shadowDoms",new WeakSet),F(this,"mutationCb"),F(this,"scrollCb"),F(this,"bypassOptions"),F(this,"mirror"),F(this,"restoreHandlers",[]),this.mutationCb=X.mutationCb,this.scrollCb=X.scrollCb,this.bypassOptions=X.bypassOptions,this.mirror=X.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(X,Z){if(!K1(X))return;if(this.shadowDoms.has(X))return;this.shadowDoms.add(X);let J=$X({...this.bypassOptions,doc:Z,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},X);this.restoreHandlers.push(()=>J.disconnect()),this.restoreHandlers.push(NX({...this.bypassOptions,scrollCb:this.scrollCb,doc:X,mirror:this.mirror})),setTimeout(()=>{if(X.adoptedStyleSheets&&X.adoptedStyleSheets.length>0)this.bypassOptions.stylesheetManager.adoptStyleSheets(X.adoptedStyleSheets,this.mirror.getId(w.host(X)));this.restoreHandlers.push(IX({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},X))},0)}observeAttachShadow(X){if(!X.contentWindow||!X.contentDocument)return;this.patchAttachShadow(X.contentWindow.Element,X.contentDocument)}patchAttachShadow(X,Z){let J=this;this.restoreHandlers.push(N0(X.prototype,"attachShadow",function(Y){return function(Q){let G=Y.call(this,Q),K=w.shadowRoot(this);if(K&&wX(this))J.addShadowRoot(K,Z);return G}}))}reset(){this.restoreHandlers.forEach((X)=>{try{X()}catch(Z){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var m0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xq=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(y0=0;y0<m0.length;y0++)xq[m0.charCodeAt(y0)]=y0;var y0,bq=function(X){var Z=new Uint8Array(X),J,Y=Z.length,Q="";for(J=0;J<Y;J+=3)Q+=m0[Z[J]>>2],Q+=m0[(Z[J]&3)<<4|Z[J+1]>>4],Q+=m0[(Z[J+1]&15)<<2|Z[J+2]>>6],Q+=m0[Z[J+2]&63];if(Y%3===2)Q=Q.substring(0,Q.length-1)+"=";else if(Y%3===1)Q=Q.substring(0,Q.length-2)+"==";return Q};var y8=new Map;function fq(X,Z){let J=y8.get(X);if(!J)J=new Map,y8.set(X,J);if(!J.has(Z))J.set(Z,[]);return J.get(Z)}var xX=(X,Z,J)=>{if(!X||!(fX(X,Z)||typeof X==="object"))return;let Y=X.constructor.name,Q=fq(J,Y),G=Q.indexOf(X);if(G===-1)G=Q.length,Q.push(X);return G};function Z9(X,Z,J){if(X instanceof Array)return X.map((Y)=>Z9(Y,Z,J));else if(X===null)return X;else if(X instanceof Float32Array||X instanceof Float64Array||X instanceof Int32Array||X instanceof Uint32Array||X instanceof Uint8Array||X instanceof Uint16Array||X instanceof Int16Array||X instanceof Int8Array||X instanceof Uint8ClampedArray)return{rr_type:X.constructor.name,args:[Object.values(X)]};else if(X instanceof ArrayBuffer){let Y=X.constructor.name,Q=bq(X);return{rr_type:Y,base64:Q}}else if(X instanceof DataView)return{rr_type:X.constructor.name,args:[Z9(X.buffer,Z,J),X.byteOffset,X.byteLength]};else if(X instanceof HTMLImageElement){let Y=X.constructor.name,{src:Q}=X;return{rr_type:Y,src:Q}}else if(X instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:X.toDataURL()};else if(X instanceof ImageData)return{rr_type:X.constructor.name,args:[Z9(X.data,Z,J),X.width,X.height]};else if(fX(X,Z)||typeof X==="object"){let Y=X.constructor.name,Q=xX(X,Z,J);return{rr_type:Y,index:Q}}return X}var bX=(X,Z,J)=>{return X.map((Y)=>Z9(Y,Z,J))},fX=(X,Z)=>{let Y=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((Q)=>typeof Z[Q]==="function");return Boolean(Y.find((Q)=>X instanceof Z[Q]))};function kq(X,Z,J,Y){let Q=[],G=Object.getOwnPropertyNames(Z.CanvasRenderingContext2D.prototype);for(let K of G)try{if(typeof Z.CanvasRenderingContext2D.prototype[K]!=="function")continue;let V=N0(Z.CanvasRenderingContext2D.prototype,K,function(q){return function(...W){if(!r(this.canvas,J,Y,!0))setTimeout(()=>{let z=bX(W,Z,this);X(this.canvas,{type:s0["2D"],property:K,args:z})},0);return q.apply(this,W)}});Q.push(V)}catch{let V=$9(Z.CanvasRenderingContext2D.prototype,K,{set(q){X(this.canvas,{type:s0["2D"],property:K,args:[q],setter:!0})}});Q.push(V)}return()=>{Q.forEach((K)=>K())}}function vq(X){return X==="experimental-webgl"?"webgl":X}function h8(X,Z,J,Y){let Q=[];try{let G=N0(X.HTMLCanvasElement.prototype,"getContext",function(K){return function(V,...q){if(!r(this,Z,J,!0)){let W=vq(V);if(!("__context"in this))this.__context=W;if(Y&&["webgl","webgl2"].includes(W))if(q[0]&&typeof q[0]==="object"){let z=q[0];if(!z.preserveDrawingBuffer)z.preserveDrawingBuffer=!0}else q.splice(0,1,{preserveDrawingBuffer:!0})}return K.apply(this,[V,...q])}});Q.push(G)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{Q.forEach((G)=>G())}}function g8(X,Z,J,Y,Q,G){let K=[],V=Object.getOwnPropertyNames(X);for(let q of V){if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(q))continue;try{if(typeof X[q]!=="function")continue;let W=N0(X,q,function(z){return function(...H){let j=z.apply(this,H);if(xX(j,G,this),"tagName"in this.canvas&&!r(this.canvas,Y,Q,!0)){let U=bX(H,G,this),D={type:Z,property:q,args:U};J(this.canvas,D)}return j}});K.push(W)}catch{let W=$9(X,q,{set(z){J(this.canvas,{type:Z,property:q,args:[z],setter:!0})}});K.push(W)}}return K}function yq(X,Z,J,Y){let Q=[];if(Q.push(...g8(Z.WebGLRenderingContext.prototype,s0.WebGL,X,J,Y,Z)),typeof Z.WebGL2RenderingContext<"u")Q.push(...g8(Z.WebGL2RenderingContext.prototype,s0.WebGL2,X,J,Y,Z));return()=>{Q.forEach((G)=>G())}}var kX="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",hq=(X)=>Uint8Array.from(atob(X),(Z)=>Z.charCodeAt(0)),m8=typeof window<"u"&&window.Blob&&new Blob([hq(kX)],{type:"text/javascript;charset=utf-8"});function gq(X){let Z;try{if(Z=m8&&(window.URL||window.webkitURL).createObjectURL(m8),!Z)throw"";let J=new Worker(Z,{name:X==null?void 0:X.name});return J.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(Z)}),J}catch(J){return new Worker("data:text/javascript;base64,"+kX,{name:X==null?void 0:X.name})}finally{Z&&(window.URL||window.webkitURL).revokeObjectURL(Z)}}class vX{constructor(X){F(this,"pendingCanvasMutations",new Map),F(this,"rafStamps",{latestId:0,invokeId:null}),F(this,"mirror"),F(this,"mutationCb"),F(this,"resetObservers"),F(this,"frozen",!1),F(this,"locked",!1),F(this,"processMutation",(V,q)=>{if(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)this.rafStamps.invokeId=this.rafStamps.latestId;if(!this.pendingCanvasMutations.has(V))this.pendingCanvasMutations.set(V,[]);this.pendingCanvasMutations.get(V).push(q)});let{sampling:Z="all",win:J,blockClass:Y,blockSelector:Q,recordCanvas:G,dataURLOptions:K}=X;if(this.mutationCb=X.mutationCb,this.mirror=X.mirror,G&&Z==="all")this.initCanvasMutationObserver(J,Y,Q);if(G&&typeof Z==="number")this.initCanvasFPSObserver(Z,J,Y,Q,{dataURLOptions:K})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(X,Z,J,Y,Q){let G=h8(Z,J,Y,!0),K=new Map,V=new gq;V.onmessage=(U)=>{let{id:D}=U.data;if(K.set(D,!1),!("base64"in U.data))return;let{base64:L,type:B,width:A,height:O}=U.data;this.mutationCb({id:D,type:s0["2D"],commands:[{property:"clearRect",args:[0,0,A,O]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:L}],type:B}]},0,0]}]})};let q=1000/X,W=0,z,H=()=>{let U=[];return Z.document.querySelectorAll("canvas").forEach((D)=>{if(!r(D,J,Y,!0))U.push(D)}),U},j=(U)=>{if(W&&U-W<q){z=requestAnimationFrame(j);return}W=U,H().forEach(async(D)=>{var L;let B=this.mirror.getId(D);if(K.get(B))return;if(D.width===0||D.height===0)return;if(K.set(B,!0),["webgl","webgl2"].includes(D.__context)){let O=D.getContext(D.__context);if(((L=O==null?void 0:O.getContextAttributes())==null?void 0:L.preserveDrawingBuffer)===!1)O.clear(O.COLOR_BUFFER_BIT)}let A=await createImageBitmap(D);V.postMessage({id:B,bitmap:A,width:D.width,height:D.height,dataURLOptions:Q.dataURLOptions},[A])}),z=requestAnimationFrame(j)};z=requestAnimationFrame(j),this.resetObservers=()=>{G(),cancelAnimationFrame(z)}}initCanvasMutationObserver(X,Z,J){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let Y=h8(X,Z,J,!1),Q=kq(this.processMutation.bind(this),X,Z,J),G=yq(this.processMutation.bind(this),X,Z,J);this.resetObservers=()=>{Y(),Q(),G()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let X=(Z)=>{this.rafStamps.latestId=Z,requestAnimationFrame(X)};requestAnimationFrame(X)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((X,Z)=>{let J=this.mirror.getId(Z);this.flushPendingCanvasMutationFor(Z,J)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(X,Z){if(this.frozen||this.locked)return;let J=this.pendingCanvasMutations.get(X);if(!J||Z===-1)return;let Y=J.map((G)=>{let{type:K,...V}=G;return V}),{type:Q}=J[0];this.mutationCb({id:Z,type:Q,commands:Y}),this.pendingCanvasMutations.delete(X)}}class yX{constructor(X){F(this,"trackedLinkElements",new WeakSet),F(this,"mutationCb"),F(this,"adoptedStyleSheetCb"),F(this,"styleMirror",new AX),this.mutationCb=X.mutationCb,this.adoptedStyleSheetCb=X.adoptedStyleSheetCb}attachLinkElement(X,Z){if("_cssText"in Z.attributes)this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:Z.id,attributes:Z.attributes}]});this.trackLinkElement(X)}trackLinkElement(X){if(this.trackedLinkElements.has(X))return;this.trackedLinkElements.add(X),this.trackStylesheetInLinkElement(X)}adoptStyleSheets(X,Z){if(X.length===0)return;let J={id:Z,styleIds:[]},Y=[];for(let Q of X){let G;if(!this.styleMirror.has(Q))G=this.styleMirror.add(Q),Y.push({styleId:G,rules:Array.from(Q.rules||CSSRule,(K,V)=>({rule:l8(K,Q.href),index:V}))});else G=this.styleMirror.getId(Q);J.styleIds.push(G)}if(Y.length>0)J.styles=Y;this.adoptedStyleSheetCb(J)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(X){}}class hX{constructor(){F(this,"nodeMap",new WeakMap),F(this,"active",!1)}inOtherBuffer(X,Z){let J=this.nodeMap.get(X);return J&&Array.from(J).some((Y)=>Y!==Z)}add(X,Z){if(!this.active)this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1});this.nodeMap.set(X,(this.nodeMap.get(X)||new Set).add(Z))}destroy(){}}var u,J9,t9,D9=!1;try{if(Array.from([1],(X)=>X*2)[0]!==2){let X=document.createElement("iframe");document.body.appendChild(X),Array.from=((cJ=X.contentWindow)==null?void 0:cJ.Array.from)||Array.from,document.body.removeChild(X)}}catch(X){console.debug("Unable to override Array.from",X)}var Y0=cY();function I0(X={}){let{emit:Z,checkoutEveryNms:J,checkoutEveryNth:Y,blockClass:Q="rr-block",blockSelector:G=null,ignoreClass:K="rr-ignore",ignoreSelector:V=null,maskTextClass:q="rr-mask",maskTextSelector:W=null,inlineStylesheet:z=!0,maskAllInputs:H,maskInputOptions:j,slimDOMOptions:U,maskInputFn:D,maskTextFn:L,hooks:B,packFn:A,sampling:O={},dataURLOptions:P={},mousemoveWait:M,recordDOM:T=!0,recordCanvas:x=!1,recordCrossOriginIframes:p=!1,recordAfter:v=X.recordAfter==="DOMContentLoaded"?X.recordAfter:"load",userTriggeredOnInput:c=!1,collectFonts:i=!1,inlineImages:t=!1,plugins:K0,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:n0=new Set([]),errorHandler:t0}=X;Pq(t0);let l=p?window.parent===window:!0,e=!1;if(!l)try{if(window.parent.document)e=!1}catch($){e=!0}if(l&&!Z)throw Error("emit function is required");if(!l&&!e)return()=>{};if(M!==void 0&&O.mousemove===void 0)O.mousemove=M;Y0.reset();let A0=H===!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}:j!==void 0?j:{password:!0},q0=o8(U);Bq();let MJ,f9=0,wJ=($)=>{for(let J0 of K0||[])if(J0.eventProcessor)$=J0.eventProcessor($);if(A&&!e)$=A($);return $};u=($,J0)=>{var g;let m=$;if(m.timestamp=U9(),((g=C0[0])==null?void 0:g.isFrozen())&&m.type!==R.FullSnapshot&&!(m.type===R.IncrementalSnapshot&&m.data.source===_.Mutation))C0.forEach((n)=>n.unfreeze());if(l)Z==null||Z(wJ(m),J0);else if(e){let n={type:"rrweb",event:wJ(m),origin:window.location.origin,isCheckout:J0};window.parent.postMessage(n,"*")}if(m.type===R.FullSnapshot)MJ=m,f9=0;else if(m.type===R.IncrementalSnapshot){if(m.data.source===_.Mutation&&m.data.isAttachIframe)return;f9++;let n=Y&&f9>=Y,S=J&&m.timestamp-MJ.timestamp>J;if(n||S)J9(!0)}};let C1=($)=>{u({type:R.IncrementalSnapshot,data:{source:_.Mutation,...$}})},_J=($)=>u({type:R.IncrementalSnapshot,data:{source:_.Scroll,...$}}),CJ=($)=>u({type:R.IncrementalSnapshot,data:{source:_.CanvasMutation,...$}}),M0=new yX({mutationCb:C1,adoptedStyleSheetCb:($)=>u({type:R.IncrementalSnapshot,data:{source:_.AdoptedStyleSheet,...$}})}),w0=new TX({mirror:Y0,mutationCb:C1,stylesheetManager:M0,recordCrossOriginIframes:p,wrappedEmit:u});for(let $ of K0||[])if($.getMirror)$.getMirror({nodeMirror:Y0,crossOriginIframeMirror:w0.crossOriginIframeMirror,crossOriginIframeStyleMirror:w0.crossOriginIframeStyleMirror});let k9=new hX;t9=new vX({recordCanvas:x,mutationCb:CJ,win:window,blockClass:Q,blockSelector:G,mirror:Y0,sampling:O.canvas,dataURLOptions:P});let R1=new SX({mutationCb:C1,scrollCb:_J,bypassOptions:{blockClass:Q,blockSelector:G,maskTextClass:q,maskTextSelector:W,inlineStylesheet:z,maskInputOptions:A0,dataURLOptions:P,maskTextFn:L,maskInputFn:D,recordCanvas:x,inlineImages:t,sampling:O,slimDOMOptions:q0,iframeManager:w0,stylesheetManager:M0,canvasManager:t9,keepIframeSrcFn:E,processedNodeManager:k9},mirror:Y0});J9=($=!1)=>{if(!T)return;u({type:R.Meta,data:{href:window.location.href,width:LX(),height:UX()}},$),M0.reset(),R1.init(),C0.forEach((g)=>g.lock());let J0=BQ(document,{mirror:Y0,blockClass:Q,blockSelector:G,maskTextClass:q,maskTextSelector:W,inlineStylesheet:z,maskAllInputs:A0,maskTextFn:L,maskInputFn:D,slimDOM:q0,dataURLOptions:P,recordCanvas:x,inlineImages:t,onSerialize:(g)=>{if(FX(g,Y0))w0.addIframe(g);if(OX(g,Y0))M0.trackLinkElement(g);if(SZ(g))R1.addShadowRoot(w.shadowRoot(g),document)},onIframeLoad:(g,m)=>{w0.attachIframe(g,m),R1.observeAttachShadow(g)},onStylesheetLoad:(g,m)=>{M0.attachLinkElement(g,m)},keepIframeSrcFn:E});if(!J0)return console.warn("Failed to snapshot the document");if(u({type:R.FullSnapshot,data:{node:J0,initialOffset:jX(window)}},$),C0.forEach((g)=>g.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0)M0.adoptStyleSheets(document.adoptedStyleSheets,Y0.getId(document))};try{let $=[],J0=(m)=>{var n;return C(Sq)({mutationCb:C1,mousemoveCb:(S,v9)=>u({type:R.IncrementalSnapshot,data:{source:v9,positions:S}}),mouseInteractionCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.MouseInteraction,...S}}),scrollCb:_J,viewportResizeCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.ViewportResize,...S}}),inputCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.Input,...S}}),mediaInteractionCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.MediaInteraction,...S}}),styleSheetRuleCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.StyleSheetRule,...S}}),styleDeclarationCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.StyleDeclaration,...S}}),canvasMutationCb:CJ,fontCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.Font,...S}}),selectionCb:(S)=>{u({type:R.IncrementalSnapshot,data:{source:_.Selection,...S}})},customElementCb:(S)=>{u({type:R.IncrementalSnapshot,data:{source:_.CustomElement,...S}})},blockClass:Q,ignoreClass:K,ignoreSelector:V,maskTextClass:q,maskTextSelector:W,maskInputOptions:A0,inlineStylesheet:z,sampling:O,recordDOM:T,recordCanvas:x,inlineImages:t,userTriggeredOnInput:c,collectFonts:i,doc:m,maskInputFn:D,maskTextFn:L,keepIframeSrcFn:E,blockSelector:G,slimDOMOptions:q0,dataURLOptions:P,mirror:Y0,iframeManager:w0,stylesheetManager:M0,shadowDomManager:R1,processedNodeManager:k9,canvasManager:t9,ignoreCSSAttributes:n0,plugins:((n=K0==null?void 0:K0.filter((S)=>S.observer))==null?void 0:n.map((S)=>({observer:S.observer,options:S.options,callback:(v9)=>u({type:R.Plugin,data:{plugin:S.name,payload:v9}})})))||[]},B)};w0.addLoadListener((m)=>{try{$.push(J0(m.contentDocument))}catch(n){console.warn(n)}});let g=()=>{J9(),$.push(J0(document)),D9=!0};if(["interactive","complete"].includes(document.readyState))g();else $.push(a("DOMContentLoaded",()=>{if(u({type:R.DomContentLoaded,data:{}}),v==="DOMContentLoaded")g()})),$.push(a("load",()=>{if(u({type:R.Load,data:{}}),v==="load")g()},window));return()=>{$.forEach((m)=>{try{m()}catch(n){if(!String(n).toLowerCase().includes("cross-origin"))console.warn(n)}}),k9.destroy(),D9=!1,Fq()}}catch($){console.warn($)}}I0.addCustomEvent=(X,Z)=>{if(!D9)throw Error("please add custom event after start recording");u({type:R.Custom,data:{tag:X,payload:Z}})};I0.freezePage=()=>{C0.forEach((X)=>X.freeze())};I0.takeFullSnapshot=(X)=>{if(!D9)throw Error("please take full snapshot after start recording");J9(X)};I0.mirror=Y0;/*! *****************************************************************************
60
60
  Copyright (c) Microsoft Corporation.
61
61
 
62
62
  Permission to use, copy, modify, and/or distribute this software for any
@@ -69,5 +69,5 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
69
69
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
70
70
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
71
71
  PERFORMANCE OF THIS SOFTWARE.
72
- ***************************************************************************** */var CX;(function(X){X[X.NotStarted=0]="NotStarted",X[X.Running=1]="Running",X[X.Stopped=2]="Stopped"})(CX||(CX={}));var{addCustomEvent:w8}=E0;var JJ=_1(),PG=61440,_8=(X,Z)=>{try{let J=new XMLHttpRequest;J.open("POST",X,!0),J.setRequestHeader("Content-Type","application/json"),J.send(Z)}catch(J){}},XJ=(X,Z)=>{let J=o0(),Y=!!J,Q=JJ??(Y?`${J}/api/track`:`${n0()}/events`),K=r0(),q=JSON.stringify({...Z,websiteId:K,type:X});if(JJ||!Y){_8(Q,q);return}if(q.length>PG){_8(Q,q);return}if(typeof navigator.sendBeacon==="function"){let V=new Blob([q],{type:"application/json"});if(navigator.sendBeacon(Q,V))return}fetch(Q,{method:"POST",headers:{"Content-Type":"application/json"},body:q,keepalive:!0}).catch(()=>{})},C8=async(X,Z)=>{let J=o0(),Q=JJ??(J?`${J}/api/track`:`${n0()}/events`),K=r0(),q=JSON.stringify({...Z,websiteId:K,type:X});try{let V=await fetch(Q,{method:"POST",headers:{"Content-Type":"application/json"},body:q,credentials:"omit"});if(!V.ok)return null;return await V.json()}catch{return null}};var YJ="_fs_vid",QJ="_fs_sid",KJ="_fs_sts",DG=1800000,R8="_fs_vid",E8="_fs_sid",FG=(X)=>{let Z=document.cookie.match(new RegExp(`(?:^|; )${X}=([^;]*)`));return Z?decodeURIComponent(Z[1]):null},I8=(X,Z,J)=>{let Y=new Date(Date.now()+J*86400000).toUTCString(),Q=DJ(),K=Q?`;domain=.${Q}`:"";document.cookie=`${X}=${encodeURIComponent(Z)};expires=${Y};path=/${K};SameSite=Lax;Secure`};var AG=()=>{let X=new URLSearchParams(window.location.search),Z=X.get(R8)||void 0,J=X.get(E8)||void 0;if(Z||J){X.delete(R8),X.delete(E8);let Y=X.toString(),Q=window.location.pathname+(Y?`?${Y}`:"")+window.location.hash;history.replaceState(null,"",Q)}return{vid:Z,sid:J}},qJ=null,$8=()=>{if(qJ===null)qJ=AG();return qJ},N8=()=>{if(b9())return;let X=$8();if(X.vid){I8(YJ,X.vid,730);let J=X.vid;return X.vid=void 0,J}let Z=FG(YJ);if(!Z)Z=a0(),I8(YJ,Z,730);return Z},T8=()=>{if(b9())return;let X=$8();if(X.sid){let Q=X.sid;return sessionStorage.setItem(QJ,Q),sessionStorage.setItem(KJ,Date.now().toString()),X.sid=void 0,Q}let Z=Date.now(),J=parseInt(sessionStorage.getItem(KJ)||"0",10),Y=sessionStorage.getItem(QJ);if(!Y||Z-J>DG)Y=a0(),sessionStorage.setItem(QJ,Y);return sessionStorage.setItem(KJ,Z.toString()),Y};var S8="_fs_rid",OG=15000,MG=262144,wG=500,$0=[],VJ=0,I9=0,f8=0,O1=!1,T0=!1,j0=null,R9=null,k8=OG,$9="",E9,N0=v8(),I0=[];function v8(){return{hasClicks:!1,hasInputs:!1,hasErrors:!1,hasRageClicks:!1}}var h8=[],_G=()=>{let X=[],Z=_1();if(Z)X.push(Z);let J=o0();if(J)X.push(`${J}/api/track`);let Y=n0();if(Y)X.push(`${Y}/events`);return X},GJ=(X)=>h8.some((Z)=>X.indexOf(Z)===0)||X.indexOf("analytics.flowsery.com")!==-1,CG=(X)=>{if(typeof X==="string")return X;if(X instanceof URL)return X.href;return X?.url??""},d0=(X,Z)=>{if(!O1||T0)return;try{w8(X,Z)}catch{}},RG=()=>{try{let Z=sessionStorage.getItem(S8);if(Z)return Z}catch{}let X=a0();try{sessionStorage.setItem(S8,X)}catch{}return X},EG=async(X)=>{let Z=window.CompressionStream;if(typeof Z>"u")return{encoding:"identity+base64+jsonl",payload:btoa(unescape(encodeURIComponent(X)))};let Y=new Blob([X]).stream().pipeThrough(new Z("gzip")),Q=await new Response(Y).arrayBuffer(),K=new Uint8Array(Q),q="";for(let V=0;V<K.length;V++)q+=String.fromCharCode(K[V]);return{encoding:"gzip+base64+jsonl",payload:btoa(q)}},IG=(X)=>{let Z=Date.now();I0.push({t:Z,x:X.x||0,y:X.y||0});while(I0.length&&Z-I0[0].t>500)I0.shift();if(I0.length<3)return!1;let J=I0[0];return I0.every((Y)=>Math.abs(Y.x-J.x)<30&&Math.abs(Y.y-J.y)<30)},N9=async(X)=>{if(T0)return;if($0.length===0&&!X)return;if(!O1&&$0.length===0)return;let Z=Date.now(),J=I9||Z,Y=$0.length,Q=$0.map((V)=>JSON.stringify(V)).join(`
73
- `),K=N0;if($0=[],VJ=0,I9=0,N0=v8(),Y===0&&X){XJ("recording_chunk",{recordingUid:$9,seq:f8++,startedAt:J,endedAt:Z,eventCount:0,payload:"",finalize:!0,encoding:"identity+base64+jsonl"});return}let q=await EG(Q);XJ("recording_chunk",{recordingUid:$9,seq:f8++,startedAt:J,endedAt:Z,eventCount:Y,encoding:q.encoding,payload:q.payload,hasClicks:K.hasClicks,hasInputs:K.hasInputs,hasErrors:K.hasErrors,hasRageClicks:K.hasRageClicks,finalize:X})},$G=()=>{if(j0)return;j0=setTimeout(()=>{j0=null,N9(!1)},k8)},UJ=(X)=>{if(T0)return;if(j0)clearTimeout(j0),j0=null;if(R9)clearTimeout(R9),R9=null;if(N9(X),E9)E9(),E9=void 0;T0=!0,O1=!1},NG=(X)=>{if(typeof X!=="number"||X===-1)return;if(!Number.isFinite(X)||X<=0){UJ(!0);return}R9=setTimeout(()=>{UJ(!0)},X)},TG=(X)=>{if(!O1||T0)return;if(!I9)I9=X.timestamp||Date.now();let Z=JSON.stringify(X);if(VJ+=Z.length,$0.push(X),X.type===3&&X.data){if(X.data.source===2&&X.data.type===2){if(N0.hasClicks=!0,IG(X.data))N0.hasRageClicks=!0}if(X.data.source===5)N0.hasInputs=!0}if($0.length>=wG||VJ>=MG){if(j0)clearTimeout(j0),j0=null;N9(!1)}else $G()},SG=(X)=>{if(X==="strict")return{maskAllInputs:!0,maskTextSelector:"*",blockSelector:"video, audio, canvas",recordCanvas:!1};if(X==="relaxed")return{maskAllInputs:!1};return{maskAllInputs:!0,maskInputOptions:{password:!0,email:!0,tel:!0}}},fG=(X)=>{let Z=SG(X);Z.emit=TG;try{let J=E0(Z);if(typeof J==="function")E9=J}catch{T0=!0}},xG=()=>{window.addEventListener("error",(X)=>{N0.hasErrors=!0,d0("error",{message:X.message,source:X.filename,line:X.lineno,column:X.colno,stack:X.error?.stack?.slice(0,2000)})}),window.addEventListener("unhandledrejection",(X)=>{N0.hasErrors=!0;let Z=X.reason;d0("error",{message:typeof Z==="string"?Z:Z?.message,stack:typeof Z==="object"?Z?.stack?.slice(0,2000):void 0,unhandledRejection:!0})})},x8=!1,bG=()=>{if(x8)return;x8=!0,h8=_G();let X=window.fetch;if(typeof X==="function"){let Q=X.bind(window);window.fetch=(K,q)=>{let V=CG(K),G=q?.method||K?.method||"GET",U=Date.now();return Q(K,q).then((W)=>{if(W.status>=400&&!GJ(V))d0("network",{url:V,method:G,status:W.status,durationMs:Date.now()-U});return W},(W)=>{if(!GJ(V))d0("network",{url:V,method:G,status:0,error:W?.message,durationMs:Date.now()-U});throw W})}}let Z=XMLHttpRequest.prototype,J=Z.open,Y=Z.send;Z.open=function(Q,K,...q){return this.__fsNet={method:Q,url:typeof K==="string"?K:K.href,startedAt:0},J.apply(this,[Q,K,...q])},Z.send=function(...Q){let K=this.__fsNet;if(K)K.startedAt=Date.now(),this.addEventListener("loadend",()=>{if((this.status===0||this.status>=400)&&!GJ(K.url))d0("network",{url:K.url,method:K.method,status:this.status,durationMs:Date.now()-K.startedAt})});return Y.apply(this,Q)}},b8=!1,kG=()=>{if(b8)return;b8=!0;let X=location.href,Z=()=>{if(location.href===X)return;X=location.href,d0("navigation",{url:location.href,title:document.title})},J=history.pushState,Y=history.replaceState;history.pushState=function(...Q){let K=J.apply(this,Q);return Z(),K},history.replaceState=function(...Q){let K=Y.apply(this,Q);return Z(),K},window.addEventListener("popstate",Z),window.addEventListener("hashchange",Z)},vG=()=>{let X=()=>{UJ(!0)};document.addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden")N9(!1)}),window.addEventListener("pagehide",X),window.addEventListener("beforeunload",X)},WJ=async()=>{let X=N8(),Z=T8();if(!X||!Z)return;$9=RG();let J=await C8("recording_start",{recordingUid:$9,visitorUid:X,sessionUid:Z,startUrl:location.href,startTitle:document.title,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight});if(!J||J.accepted!==!0){T0=!0;return}if(O1=!0,typeof J.flushIntervalMs==="number"&&J.flushIntervalMs>=1000&&J.flushIntervalMs<=60000)k8=J.flushIntervalMs;fG(J.privacyLevel||"balanced"),xG(),bG(),kG(),vG(),NG(J.maxDurationMs)};var y8=()=>{if(PJ())return;if(!r0())return;if(CJ())return;if(FJ()&&!AJ())return;if(OJ()&&!MJ())return;if(wJ()&&!_J())return;WJ()};if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",y8);else y8();})();
72
+ ***************************************************************************** */var u8;(function(X){X[X.NotStarted=0]="NotStarted",X[X.Running=1]="Running",X[X.Stopped=2]="Stopped"})(u8||(u8={}));var{addCustomEvent:gX}=I0;var N9=E1(),mX=61440,uX=3,mq=1000,cX=(X,Z,J)=>{try{let Y=new XMLHttpRequest;if(Y.open("POST",X,!0),Y.setRequestHeader("Content-Type","application/json"),J>0){let Q=()=>{let G=uX-J;setTimeout(()=>cX(X,Z,J-1),mq*Math.pow(2,G))};Y.onreadystatechange=()=>{if(Y.readyState!==4)return;if(Y.status===0||Y.status>=500)Q()},Y.onerror=Q}Y.send(Z)}catch(Y){}},GJ=(X,Z,J=!1)=>{cX(X,Z,J?uX:0)},pX=(X,Z)=>N9??(X?`${Z}/api/track`:`${Z1()}/events`),lX=(X,Z,J)=>{let Y=b0(),Q=!!Y,G=pX(Q,Y),K=x0(),V=JSON.stringify({...Z,websiteId:K,type:X}),q=J?.retry??!1;if(N9||!Q){GJ(G,V,q);return}if(V.length>mX){GJ(G,V,q);return}if(typeof navigator.sendBeacon==="function"){let W=new Blob([V],{type:"application/json"});if(navigator.sendBeacon(G,W))return}fetch(G,{method:"POST",headers:{"Content-Type":"application/json"},body:V,keepalive:!0}).catch(()=>{})},dX=(X,Z)=>{let J=b0(),Y=!!J,Q=pX(Y,J),G=JSON.stringify({...Z,websiteId:x0(),type:X});if(G.length<=mX){if(!N9&&Y&&typeof navigator.sendBeacon==="function"){let K=new Blob([G],{type:"application/json"});if(navigator.sendBeacon(Q,K))return}if(typeof fetch==="function")try{fetch(Q,{method:"POST",headers:{"Content-Type":"application/json"},body:G,keepalive:!0,credentials:"omit"}).catch(()=>{});return}catch(K){}}GJ(Q,G)},iX=async(X,Z)=>{let J=b0(),Q=N9??(J?`${J}/api/track`:`${Z1()}/events`),G=x0(),K=JSON.stringify({...Z,websiteId:G,type:X});try{let V=await fetch(Q,{method:"POST",headers:{"Content-Type":"application/json"},body:K,credentials:"omit"});if(!V.ok)return null;return await V.json()}catch{return null}};var KJ="_fs_vid",qJ="_fs_sid",VJ="_fs_sts",uq=1800000,sX="_fs_vid",aX="_fs_sid",cq=(X)=>{let Z=document.cookie.match(new RegExp(`(?:^|; )${X}=([^;]*)`));return Z?decodeURIComponent(Z[1]):null},rX=(X,Z,J)=>{let Y=new Date(Date.now()+J*86400000).toUTCString(),Q=NJ(),G=Q?`;domain=.${Q}`:"";document.cookie=`${X}=${encodeURIComponent(Z)};expires=${Y};path=/${G};SameSite=Lax;Secure`};var pq=()=>{let X=new URLSearchParams(window.location.search),Z=X.get(sX)||void 0,J=X.get(aX)||void 0;if(Z||J){X.delete(sX),X.delete(aX);let Y=X.toString(),Q=window.location.pathname+(Y?`?${Y}`:"")+window.location.hash;history.replaceState(null,"",Q)}return{vid:Z,sid:J}},WJ=null,oX=()=>{if(WJ===null)WJ=pq();return WJ},nX=()=>{if(h9())return;let X=oX();if(X.vid){rX(KJ,X.vid,730);let J=X.vid;return X.vid=void 0,J}let Z=cq(KJ);if(!Z)Z=e0(),rX(KJ,Z,730);return Z},tX=()=>{if(h9())return;let X=oX();if(X.sid){let Q=X.sid;return sessionStorage.setItem(qJ,Q),sessionStorage.setItem(VJ,Date.now().toString()),X.sid=void 0,Q}let Z=Date.now(),J=parseInt(sessionStorage.getItem(VJ)||"0",10),Y=sessionStorage.getItem(qJ);if(!Y||Z-J>uq)Y=e0(),sessionStorage.setItem(qJ,Y);return sessionStorage.setItem(VJ,Z.toString()),Y};var HJ="_fs_rid",lq=15000,dq=262144,iq=500,sq=50,aq=100,rq=100,oq=30,S0=[],BJ=0,S9=0,nq=0,_1=!1,O0=!1,jJ=!1,P0=null,I9=null,XY=lq,x9="",T9,z0=YY(),UJ=0,LJ=0,DJ=0,PJ=0,FJ=new Set,T0=[];function YY(){return{hasClicks:!1,hasInputs:!1,hasErrors:!1,hasRageClicks:!1}}var QY=[],tq=()=>{let X=[],Z=E1();if(Z)X.push(Z);let J=b0();if(J)X.push(`${J}/api/track`);let Y=Z1();if(Y)X.push(`${Y}/events`);return X},a0=(X)=>QY.some((Z)=>X.indexOf(Z)===0)||X.indexOf("analytics.flowsery.com")!==-1,eq=(X)=>{if(typeof X==="string")return X;if(X instanceof URL)return X.href;return X?.url??""},o0=(X,Z)=>{if(!_1||O0)return;try{gX(X,Z)}catch{}},r0=(X,Z)=>{if(X==="console"){if(UJ>=sq)return;UJ++}else if(Z.ok===!1){if(DJ>=rq)return;DJ++}else{if(LJ>=aq)return;LJ++}o0(X,Z)},ZV=()=>{try{let Z=sessionStorage.getItem(HJ);if(Z)return Z}catch{}let X=e0();try{sessionStorage.setItem(HJ,X)}catch{}return X},JV=async(X)=>{let Z=window.CompressionStream;if(typeof Z>"u")return{encoding:"identity+base64+jsonl",payload:btoa(unescape(encodeURIComponent(X)))};let Y=new Blob([X]).stream().pipeThrough(new Z("gzip")),Q=await new Response(Y).arrayBuffer(),G=new Uint8Array(Q),K="";for(let V=0;V<G.length;V++)K+=String.fromCharCode(G[V]);return{encoding:"gzip+base64+jsonl",payload:btoa(K)}},XV=(X)=>{let Z=Date.now();T0.push({t:Z,x:X.x||0,y:X.y||0});while(T0.length&&Z-T0[0].t>500)T0.shift();if(T0.length<3)return!1;let J=T0[0];return T0.every((Y)=>Math.abs(Y.x-J.x)<30&&Math.abs(Y.y-J.y)<30)},b9=async(X,Z=!1)=>{if(O0)return;if(S0.length===0&&!X)return;if(!_1&&S0.length===0)return;let J=Date.now(),Y=S9||J,Q=S0.length,G=S0.map((z)=>JSON.stringify(z)).join(`
73
+ `),K=z0,V=nq++,q=J;if(S0=[],BJ=0,S9=0,z0=YY(),UJ=0,LJ=0,DJ=0,PJ=0,FJ.clear(),X||Z||jJ){dX("recording_chunk",{recordingUid:x9,seq:V,startedAt:Y,endedAt:q,eventCount:Q,encoding:"identity+base64+jsonl",payload:Q===0?"":btoa(unescape(encodeURIComponent(G))),hasClicks:K.hasClicks,hasInputs:K.hasInputs,hasErrors:K.hasErrors,hasRageClicks:K.hasRageClicks,finalize:X});return}let W=await JV(G);lX("recording_chunk",{recordingUid:x9,seq:V,startedAt:Y,endedAt:q,eventCount:Q,encoding:W.encoding,payload:W.payload,hasClicks:K.hasClicks,hasInputs:K.hasInputs,hasErrors:K.hasErrors,hasRageClicks:K.hasRageClicks,finalize:X},{retry:!0})},YV=()=>{if(P0)return;P0=setTimeout(()=>{P0=null,b9(!1)},XY)},OJ=(X)=>{if(O0)return;if(P0)clearTimeout(P0),P0=null;if(I9)clearTimeout(I9),I9=null;if(b9(X),T9)T9(),T9=void 0;if(O0=!0,_1=!1,X)try{sessionStorage.removeItem(HJ)}catch{}},QV=(X)=>{if(typeof X!=="number"||X===-1)return;if(!Number.isFinite(X)||X<=0){OJ(!0);return}I9=setTimeout(()=>{OJ(!0)},X)},GV=(X)=>{if(!_1||O0)return;if(!S9)S9=X.timestamp||Date.now();let Z=JSON.stringify(X);if(BJ+=Z.length,S0.push(X),X.type===3&&X.data){if(X.data.source===2&&X.data.type===2){if(z0.hasClicks=!0,XV(X.data))z0.hasRageClicks=!0}if(X.data.source===5)z0.hasInputs=!0}if(S0.length>=iq||BJ>=dq){if(P0)clearTimeout(P0),P0=null;b9(!1)}else YV()},KV=(X)=>{if(X==="strict")return{maskAllInputs:!0,maskTextSelector:"*",blockSelector:"video, audio, canvas",recordCanvas:!1};if(X==="relaxed")return{maskAllInputs:!1};return{maskAllInputs:!0,maskInputOptions:{password:!0,email:!0,tel:!0}}},qV=(X)=>{let Z=KV(X);Z.emit=GV;try{let J=I0(Z);if(typeof J==="function")T9=J}catch{O0=!0}},VV=()=>{window.addEventListener("error",(X)=>{if(X.target&&X.target!==window)return;z0.hasErrors=!0,o0("error",{message:X.message,source:X.filename,line:X.lineno,column:X.colno,stack:X.error?.stack?.slice(0,2000)})}),window.addEventListener("error",(X)=>{let Z=X.target;if(!Z||Z===window)return;if(typeof Z.tagName!=="string")return;let J=Z.src||Z.href;if(!J)return;if(a0(J))return;if(FJ.has(J))return;if(PJ>=oq)return;PJ++,FJ.add(J),z0.hasErrors=!0,o0("network",{url:_0(J),method:"GET",status:0,ok:!1,error:"resource load failed",resource:Z.tagName.toLowerCase()})},!0),document.addEventListener("securitypolicyviolation",(X)=>{z0.hasErrors=!0,o0("error",{message:`CSP blocked ${X.blockedURI||"inline"} (${X.effectiveDirective})`,source:X.sourceFile||void 0,line:X.lineNumber||void 0,csp:!0,violatedDirective:X.violatedDirective,blockedURI:X.blockedURI,disposition:X.disposition})}),window.addEventListener("unhandledrejection",(X)=>{z0.hasErrors=!0;let Z=X.reason,J,Y;if(Z instanceof Error)J=Z.message,Y=Z.stack?.slice(0,2000);else if(typeof Z==="string")J=Z;else J=GY(Z);o0("error",{message:J,stack:Y,unhandledRejection:!0})})},eX=!1,zJ=!1,GY=(X)=>{try{if(X===null)return"null";if(X===void 0)return"undefined";if(typeof X==="string")return X.slice(0,2000);if(typeof X==="number"||typeof X==="boolean")return String(X);if(typeof X==="bigint")return`${X.toString()}n`;if(X instanceof Error)return`${X.name}: ${X.message}`;return(JSON.stringify(X,(J,Y)=>typeof Y==="bigint"?`${Y.toString()}n`:Y)??String(X)).slice(0,2000)}catch{try{return String(X).slice(0,2000)}catch{return"[Unserializable]"}}},WV=()=>{if(eX||kJ())return;eX=!0;let X=["log","info","warn","error","debug"];for(let Z of X){let J=console[Z];if(typeof J!=="function")continue;let Y=J.bind(console);console[Z]=function(...Q){if(Y(...Q),zJ)return;zJ=!0;try{let G=uJ(Q.slice(0,10).map(GY).join(" ")).slice(0,4000);if(r0("console",{level:Z,message:G}),Z==="error")z0.hasErrors=!0}catch{}finally{zJ=!1}}}},ZY=!1,zV=()=>{if(ZY)return;ZY=!0,QY=tq();let X=window.fetch;if(typeof X==="function"){let G=X.bind(window);window.fetch=(K,V)=>{let q=eq(K),W=(V?.method||K?.method||"GET").toUpperCase(),z=Date.now();return G(K,V).then((H)=>{if(!a0(q))r0("network",{url:_0(q),method:W,status:H.status,ok:H.status>=200&&H.status<400,durationMs:Date.now()-z});return H},(H)=>{if(!a0(q))r0("network",{url:_0(q),method:W,status:0,ok:!1,error:H?.message,durationMs:Date.now()-z});throw H})}}let Z=XMLHttpRequest.prototype,J=Z.open,Y=Z.send;Z.open=function(G,K,...V){return this.__fsNet={method:(G||"GET").toUpperCase(),url:typeof K==="string"?K:K.href,startedAt:0},J.apply(this,[G,K,...V])},Z.send=function(...G){let K=this.__fsNet;if(K)K.startedAt=Date.now(),this.addEventListener("loadend",()=>{if(!a0(K.url))r0("network",{url:_0(K.url),method:K.method,status:this.status,ok:this.status>=200&&this.status<400,durationMs:Date.now()-K.startedAt})});return Y.apply(this,G)};try{let G=navigator.sendBeacon;if(typeof G==="function")navigator.sendBeacon=function(K,V){let q=G.call(navigator,K,V??void 0),W=typeof K==="string"?K:K.href;if(!a0(W))r0("network",{url:_0(W),method:"BEACON",status:q?202:0,ok:q});return q}}catch{}let Q=(G,K,V)=>{try{let q=window[G];if(typeof q!=="function")return;window[G]=new Proxy(q,{construct(W,z,H){let j=Reflect.construct(W,z,H),U=String(z[0]??"");if(!a0(U))j.addEventListener("error",()=>{if(!V(j))return;r0("network",{url:_0(U),method:K,status:0,ok:!1,error:`${K.toLowerCase()} error`})});return j}})}catch{}};Q("WebSocket","WS",()=>!0),Q("EventSource","SSE",(G)=>G.readyState===2)},JY=!1,HV=()=>{if(JY)return;JY=!0;let X=location.href,Z=()=>{if(location.href===X)return;X=location.href,o0("navigation",{url:location.href,title:document.title})},J=history.pushState,Y=history.replaceState;history.pushState=function(...Q){let G=J.apply(this,Q);return Z(),G},history.replaceState=function(...Q){let G=Y.apply(this,Q);return Z(),G},window.addEventListener("popstate",Z),window.addEventListener("hashchange",Z)},BV=()=>{let X=()=>{OJ(!0)};document.addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden")jJ=!0,b9(!1,!0);else jJ=!1}),window.addEventListener("pagehide",X),window.addEventListener("beforeunload",X)},AJ=async()=>{let X=nX(),Z=tX();if(!X||!Z)return;if(x9=ZV(),!vJ(Z,hJ())){O0=!0;return}let J=await iX("recording_start",{recordingUid:x9,visitorUid:X,sessionUid:Z,startUrl:location.href,startTitle:document.title,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,aiSampleRate:gJ()});if(!J||J.accepted!==!0){O0=!0;return}if(_1=!0,typeof J.flushIntervalMs==="number"&&J.flushIntervalMs>=1000&&J.flushIntervalMs<=60000)XY=J.flushIntervalMs;qV(J.privacyLevel||"balanced"),VV(),WV(),zV(),HV(),BV(),QV(J.maxDurationMs)};var KY=()=>{if($J())return;if(!x0())return;if(mJ())return;if(IJ()&&!TJ())return;if(SJ()&&!xJ())return;if(bJ()&&!fJ())return;AJ()};if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",KY);else KY();})();