var __lovableRrwebRecordBundle=(()=>{var vn=Object.defineProperty,Sn=(e,t,r)=>t in e?vn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t,r)=>Sn(e,typeof t!="symbol"?t+"":t,r),ss,Cn=Object.defineProperty,En=(e,t,r)=>t in e?Cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,is=(e,t,r)=>En(e,typeof t!="symbol"?t+"":t,r),J=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(J||{}),ns={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},os={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ve={},Ni={},xn=()=>!!globalThis.Zone;function $r(e){if(Ve[e])return Ve[e];let t=globalThis[e],r=t.prototype,l=e in ns?ns[e]:void 0,s=!!(l&&l.every(m=>{var o,d;return!!((d=(o=Object.getOwnPropertyDescriptor(r,m))==null?void 0:o.get)!=null&&d.toString().includes("[native code]"))})),c=e in os?os[e]:void 0,f=!!(c&&c.every(m=>{var o;return typeof r[m]=="function"&&((o=r[m])==null?void 0:o.toString().includes("[native code]"))}));if(s&&f&&!xn())return Ve[e]=t.prototype,t.prototype;try{let m=document.createElement("iframe");m.style.display="none",document.body.appendChild(m);let o=m.contentWindow;if(!o)return t.prototype;let d=o[e].prototype;if(!d)return m.remove(),r;let i=navigator.userAgent;return i.includes("Safari")&&!i.includes("Chrome")?(m.classList.add("rr-block"),m.setAttribute("__rrwebUntaintedMutationObserver",""),Ni[e]=()=>m.remove()):m.remove(),Ve[e]=d}catch{return r}}var St={};function me(e,t,r){var l;let s=`${e}.${String(r)}`;if(St[s])return St[s].call(t);let c=$r(e),f=(l=Object.getOwnPropertyDescriptor(c,r))==null?void 0:l.get;return f?(St[s]=f,f.call(t)):t[r]}var Ct={};function Oi(e,t,r){let l=`${e}.${String(r)}`;if(Ct[l])return Ct[l].bind(t);let c=$r(e)[r];return typeof c!="function"?t[r]:(Ct[l]=c,c.bind(t))}function Rn(e){return me("Node",e,"ownerDocument")}function Mn(e){return me("Node",e,"childNodes")}function Nn(e){return me("Node",e,"parentNode")}function On(e){return me("Node",e,"parentElement")}function In(e){return me("Node",e,"textContent")}function Dn(e,t){return Oi("Node",e,"contains")(t)}function An(e){return Oi("Node",e,"getRootNode")()}function Tn(e){return!e||!("host"in e)?null:me("ShadowRoot",e,"host")}function _n(e){return e.styleSheets}function kn(e){return!e||!("shadowRoot"in e)?null:me("Element",e,"shadowRoot")}function Pn(e,t){return me("Element",e,"querySelector")(t)}function Ln(e,t){return me("Element",e,"querySelectorAll")(t)}function Fn(){return[$r("MutationObserver").constructor,Ni.MutationObserver??(()=>{})]}var Ii=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Ii=()=>new Date().getTime());function Un(e,t,r){try{if(!(t in e))return()=>{};let l=e[t],s=r(l);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:l}})),e[t]=s,()=>{e[t]=l}}catch{return()=>{}}}var Z={ownerDocument:Rn,childNodes:Mn,parentNode:Nn,parentElement:On,textContent:In,contains:Dn,getRootNode:An,host:Tn,styleSheets:_n,shadowRoot:kn,querySelector:Pn,querySelectorAll:Ln,nowTimestamp:Ii,mutationObserverCtor:Fn,patch:Un};function Di(e){return e.nodeType===e.ELEMENT_NODE}function Pe(e){let t=e&&"host"in e&&"mode"in e&&Z.host(e)||null;return!!(t&&"shadowRoot"in t&&Z.shadowRoot(t)===e)}function Le(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Bn(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function $n(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Nr(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let l=Array.from(t,s=>Ai(s,r)).join("");return Bn(l)}catch{return null}}function Ai(e,t){if(zn(e)){let r;try{r=Nr(e.styleSheet)||$n(e)}catch{r=e.cssText}return e.styleSheet.href?it(r,e.styleSheet.href):r}else{let r=e.cssText;return qn(e)&&e.selectorText.includes(":")&&(r=Wn(r)),t?it(r,t):r}}function Wn(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function zn(e){return"styleSheet"in e}function qn(e){return"selectorText"in e}var tt=class{constructor(){is(this,"idNodeMap",new Map),is(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(l=>this.removeNodeFromMap(l))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let l=r.id;this.idNodeMap.set(l,t),this.nodeMetaMap.set(t,r)}replace(t,r){let l=this.getNode(t);if(l){let s=this.nodeMetaMap.get(l);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Vn(){return new tt}function rt({element:e,maskInputOptions:t,tagName:r,type:l,value:s,maskInputFn:c}){let f=s||"",m=l&&Ce(l);return(t[r.toLowerCase()]||m&&t[m])&&(c?f=c(f,e):f="*".repeat(f.length)),f}function Ce(e){return e.toLowerCase()}var as="__rrweb_original__";function jn(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let l=0;l<e.width;l+=r)for(let s=0;s<e.height;s+=r){let c=t.getImageData,f=as in c?c[as]:c;if(new Uint32Array(f.call(t,l,s,Math.min(r,e.width-l),Math.min(r,e.height-s)).data.buffer).some(o=>o!==0))return!1}return!0}function st(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ce(t):null}function Ti(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let l=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(l);return s?.[1]??null}function Gn(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var Hn=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Yn=/^(?:[a-z+]+:)?\/\//i,Xn=/^www\..*/i,Jn=/^(data:)([^,]*),(.*)/i;function it(e,t){return(e||"").replace(Hn,(r,l,s,c,f,m)=>{let o=s||f||m,d=l||c||"";if(!o)return r;if(Yn.test(o)||Xn.test(o))return`url(${d}${o}${d})`;if(Jn.test(o))return`url(${d}${o}${d})`;if(o[0]==="/")return`url(${d}${Gn(t)+o}${d})`;let i=t.split("/"),h=o.split("/");i.pop();for(let a of h)a!=="."&&(a===".."?i.pop():i.push(a));return`url(${d}${i.join("/")}${d})`})}function je(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Qn(e,t,r=!1){let l=Array.from(t.childNodes),s=[],c=0;if(l.length>1&&e&&typeof e=="string"){let f=je(e,r),m=f.length/e.length;for(let o=1;o<l.length;o++)if(l[o].textContent&&typeof l[o].textContent=="string"){let d=je(l[o].textContent,r),i=100,h=3;for(;h<d.length&&(d[h].match(/[a-zA-Z0-9]/)||d.indexOf(d.substring(0,h),1)!==-1);h++);for(;h<d.length;h++){let a=d.substring(0,h),n=f.split(a),p=-1;if(n.length===2)p=n[0].length;else if(n.length>2&&n[0]===""&&l[o-1].textContent!=="")p=f.indexOf(a,1);else if(n.length===1){if(a=a.substring(0,a.length-1),n=f.split(a),n.length<=1)return s.push(e),s;h=i+1}else h===d.length-1&&(p=f.indexOf(a));if(n.length>=2&&h>i){let u=l[o-1].textContent;if(u&&typeof u=="string"){let g=je(u).length;p=f.indexOf(a,g)}p===-1&&(p=n[0].length)}if(p!==-1){let u=Math.floor(p/m);for(;u>0&&u<e.length;){if(c+=1,c>50*l.length)return s.push(e),s;let g=je(e.substring(0,u),r);if(g.length===p){s.push(e.substring(0,u)),e=e.substring(u),f=f.substring(p);break}else g.length<p?u+=Math.max(1,Math.floor((p-g.length)/m)):u-=Math.max(1,Math.floor((g.length-p)*m))}break}}}}return s.push(e),s}function Zn(e,t){return Qn(e,t).join("/* rr_split */")}var Kn=1,eo=new RegExp("[^a-z0-9-_:]"),Ue=-2;function _i(){return Kn++}function to(e){if(e instanceof HTMLFormElement)return"form";let t=Ce(e.tagName);return eo.test(t)?"div":t}var Me,ls,ro=/^[^ \t\n\r\u000c]+/,so=/^[, \t\n\r\u000c]+/;function io(e,t){if(t.trim()==="")return t;let r=0;function l(c){let f,m=c.exec(t.substring(r));return m?(f=m[0],r+=f.length,f):""}let s=[];for(;l(so),!(r>=t.length);){let c=l(ro);if(c.slice(-1)===",")c=Ie(e,c.substring(0,c.length-1)),s.push(c);else{let f="";c=Ie(e,c);let m=!1;for(;;){let o=t.charAt(r);if(o===""){s.push((c+f).trim());break}else if(m)o===")"&&(m=!1);else if(o===","){r+=1,s.push((c+f).trim());break}else o==="("&&(m=!0);f+=o,r+=1}}}return s.join(", ")}var us=new WeakMap;function Ie(e,t){return!t||t.trim()===""?t:Wr(e,t)}function no(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Wr(e,t){let r=us.get(e);if(r||(r=e.createElement("a"),us.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function ki(e,t,r,l){return l&&(r==="src"||r==="href"&&!(t==="use"&&l[0]==="#")||r==="xlink:href"&&l[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?Ie(e,l):r==="srcset"?io(e,l):r==="style"?it(l,Wr(e)):t==="object"&&r==="data"?Ie(e,l):l)}function Pi(e,t,r){return["video","audio"].includes(e)&&t==="autoplay"}function oo(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let l=e.classList.length;l--;){let s=e.classList[l];if(t.test(s))return!0}if(r)return e.matches(r)}catch{}return!1}function nt(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?nt(Z.parentNode(e),t,r):!1;for(let l=e.classList.length;l--;){let s=e.classList[l];if(t.test(s))return!0}return r?nt(Z.parentNode(e),t,r):!1}function Li(e,t,r,l){let s;if(Di(e)){if(s=e,!Z.childNodes(s).length)return!1}else{if(Z.parentElement(e)===null)return!1;s=Z.parentElement(e)}try{if(typeof t=="string"){if(l){if(s.closest(`.${t}`))return!0}else if(s.classList.contains(t))return!0}else if(nt(s,t,l))return!0;if(r){if(l){if(s.closest(r))return!0}else if(s.matches(r))return!0}}catch{}return!1}function ao(e,t,r){let l=e.contentWindow;if(!l)return;let s=!1,c;try{c=l.document.readyState}catch{return}if(c!=="complete"){let m=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(m),s=!0,t()});return}let f="about:blank";if(l.location.href!==f||e.src===f||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function lo(e,t,r){let l=!1,s;try{s=e.sheet}catch{return}if(s)return;let c=setTimeout(()=>{l||(t(),l=!0)},r);e.addEventListener("load",()=>{clearTimeout(c),l=!0,t()})}function uo(e,t){let{doc:r,mirror:l,blockClass:s,blockSelector:c,needsMask:f,inlineStylesheet:m,maskInputOptions:o={},maskTextFn:d,maskInputFn:i,dataURLOptions:h={},inlineImages:a,recordCanvas:n,keepIframeSrcFn:p,newlyAddedElement:u=!1,cssCaptured:g=!1}=t,S=co(r,l);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:J.Document,childNodes:[],compatMode:e.compatMode}:{type:J.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:J.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return fo(e,{doc:r,blockClass:s,blockSelector:c,inlineStylesheet:m,maskInputOptions:o,maskInputFn:i,dataURLOptions:h,inlineImages:a,recordCanvas:n,keepIframeSrcFn:p,newlyAddedElement:u,rootId:S});case e.TEXT_NODE:return ho(e,{doc:r,needsMask:f,maskTextFn:d,rootId:S,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:J.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:J.Comment,textContent:Z.textContent(e)||"",rootId:S};default:return!1}}function co(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function ho(e,t){let{needsMask:r,maskTextFn:l,rootId:s,cssCaptured:c}=t,f=Z.parentNode(e),m=f&&f.tagName,o="",d=m==="STYLE"?!0:void 0,i=m==="SCRIPT"?!0:void 0;return i?o="SCRIPT_PLACEHOLDER":c||(o=Z.textContent(e),d&&o&&(o=it(o,Wr(t.doc)))),!d&&!i&&o&&r&&(o=l?l(o,Z.parentElement(e)):o.replace(/[\S]/g,"*")),{type:J.Text,textContent:o||"",rootId:s}}function fo(e,t){let{doc:r,blockClass:l,blockSelector:s,inlineStylesheet:c,maskInputOptions:f={},maskInputFn:m,dataURLOptions:o={},inlineImages:d,recordCanvas:i,keepIframeSrcFn:h,newlyAddedElement:a=!1,rootId:n}=t,p=oo(e,l,s),u=to(e),g={},S=e.attributes.length;for(let v=0;v<S;v++){let E=e.attributes[v];Pi(u,E.name,E.value)||(g[E.name]=ki(r,u,Ce(E.name),E.value))}if(u==="link"&&c){let v=Array.from(r.styleSheets).find(w=>w.href===e.href),E=null;v&&(E=Nr(v)),E&&(delete g.rel,delete g.href,g._cssText=E)}if(u==="style"&&e.sheet){let v=Nr(e.sheet);v&&(e.childNodes.length>1&&(v=Zn(v,e)),g._cssText=v)}if(["input","textarea","select"].includes(u)){let v=e.value,E=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&v?g.value=rt({element:e,type:st(e),tagName:u,value:v,maskInputOptions:f,maskInputFn:m}):E&&(g.checked=E)}if(u==="option"&&(e.selected&&!f.select?g.selected=!0:delete g.selected),u==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),u==="canvas"&&i){if(e.__context==="2d")jn(e)||(g.rr_dataURL=e.toDataURL(o.type,o.quality));else if(!("__context"in e)){let v=e.toDataURL(o.type,o.quality),E=r.createElement("canvas");E.width=e.width,E.height=e.height;let w=E.toDataURL(o.type,o.quality);v!==w&&(g.rr_dataURL=v)}}if(u==="img"&&d){Me||(Me=r.createElement("canvas"),ls=Me.getContext("2d"));let v=e,E=v.currentSrc||v.getAttribute("src")||"<unknown-src>",w=v.crossOrigin,y=()=>{v.removeEventListener("load",y);try{Me.width=v.naturalWidth,Me.height=v.naturalHeight,ls.drawImage(v,0,0),g.rr_dataURL=Me.toDataURL(o.type,o.quality)}catch(C){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${E}! Error: ${C}`)}v.crossOrigin==="anonymous"&&(w?g.crossOrigin=w:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y)}if(["audio","video"].includes(u)){let v=g;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(a||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),p){let{width:v,height:E}=e.getBoundingClientRect();g={class:g.class,rr_width:`${v}px`,rr_height:`${E}px`}}u==="iframe"&&!h(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(u)&&(b=!0)}catch{}return{type:J.Element,tagName:u,attributes:g,childNodes:[],isSVG:no(e)||void 0,needBlock:p,rootId:n,isCustom:b}}function z(e){return e==null?"":e.toLowerCase()}function Fi(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function po(e,t){if(t.comment&&e.type===J.Comment)return!0;if(e.type===J.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ti(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(z(e.attributes.name).match(/^msapplication-tile(image|color)$/)||z(e.attributes.name)==="application-name"||z(e.attributes.rel)==="icon"||z(e.attributes.rel)==="apple-touch-icon"||z(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&z(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(z(e.attributes.property).match(/^(og|twitter|fb):/)||z(e.attributes.name).match(/^(og|twitter):/)||z(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(z(e.attributes.name)==="robots"||z(e.attributes.name)==="googlebot"||z(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(z(e.attributes.name)==="author"||z(e.attributes.name)==="generator"||z(e.attributes.name)==="framework"||z(e.attributes.name)==="publisher"||z(e.attributes.name)==="progid"||z(e.attributes.property).match(/^article:/)||z(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(z(e.attributes.name)==="google-site-verification"||z(e.attributes.name)==="yandex-verification"||z(e.attributes.name)==="csrf-token"||z(e.attributes.name)==="p:domain_verify"||z(e.attributes.name)==="verify-v1"||z(e.attributes.name)==="verification"||z(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function De(e,t){let{doc:r,mirror:l,blockClass:s,blockSelector:c,maskTextClass:f,maskTextSelector:m,skipChild:o=!1,inlineStylesheet:d=!0,maskInputOptions:i={},maskTextFn:h,maskInputFn:a,slimDOMOptions:n,dataURLOptions:p={},inlineImages:u=!1,recordCanvas:g=!1,onSerialize:S,onIframeLoad:b,iframeLoadTimeout:v=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:C=!1,cssCaptured:R=!1}=t,{needsMask:O}=t,{preserveWhiteSpace:M=!0}=t;O||(O=Li(e,f,m,O===void 0));let T=uo(e,{doc:r,mirror:l,blockClass:s,blockSelector:c,needsMask:O,inlineStylesheet:d,maskInputOptions:i,maskTextFn:h,maskInputFn:a,dataURLOptions:p,inlineImages:u,recordCanvas:g,keepIframeSrcFn:y,newlyAddedElement:C,cssCaptured:R});if(!T)return console.warn(e,"not serialized"),null;let D;l.hasNode(e)?D=l.getId(e):po(T,n)||!M&&T.type===J.Text&&!T.textContent.replace(/^\s+|\s+$/gm,"").length?D=Ue:D=_i();let x=Object.assign(T,{id:D});if(l.add(e,x),D===Ue)return null;S&&S(e);let ae=!o;if(x.type===J.Element){ae=ae&&!x.needBlock,delete x.needBlock;let U=Z.shadowRoot(e);U&&Le(U)&&(x.isShadowHost=!0)}if((x.type===J.Document||x.type===J.Element)&&ae){n.headWhitespace&&x.type===J.Element&&x.tagName==="head"&&(M=!1);let U={doc:r,mirror:l,blockClass:s,blockSelector:c,needsMask:O,maskTextClass:f,maskTextSelector:m,skipChild:o,inlineStylesheet:d,maskInputOptions:i,maskTextFn:h,maskInputFn:a,slimDOMOptions:n,dataURLOptions:p,inlineImages:u,recordCanvas:g,preserveWhiteSpace:M,onSerialize:S,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:w,keepIframeSrcFn:y,cssCaptured:!1};if(!(x.type===J.Element&&x.tagName==="textarea"&&x.attributes.value!==void 0)){x.type===J.Element&&x.attributes._cssText!==void 0&&typeof x.attributes._cssText=="string"&&(U.cssCaptured=!0);for(let H of Array.from(Z.childNodes(e))){let Q=De(H,U);Q&&x.childNodes.push(Q)}}let F=null;if(Di(e)&&(F=Z.shadowRoot(e)))for(let H of Array.from(Z.childNodes(F))){let Q=De(H,U);Q&&(Le(F)&&(Q.isShadow=!0),x.childNodes.push(Q))}}let se=Z.parentNode(e);return se&&Pe(se)&&Le(se)&&(x.isShadow=!0),x.type===J.Element&&x.tagName==="iframe"&&ao(e,()=>{let U=e.contentDocument;if(U&&b){let F=De(U,{doc:U,mirror:l,blockClass:s,blockSelector:c,needsMask:O,maskTextClass:f,maskTextSelector:m,skipChild:!1,inlineStylesheet:d,maskInputOptions:i,maskTextFn:h,maskInputFn:a,slimDOMOptions:n,dataURLOptions:p,inlineImages:u,recordCanvas:g,preserveWhiteSpace:M,onSerialize:S,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:w,keepIframeSrcFn:y});F&&b(e,F)}},v),x.type===J.Element&&x.tagName==="link"&&typeof x.attributes.rel=="string"&&(x.attributes.rel==="stylesheet"||x.attributes.rel==="preload"&&typeof x.attributes.href=="string"&&Ti(x.attributes.href)==="css")&&lo(e,()=>{if(E){let U=De(e,{doc:r,mirror:l,blockClass:s,blockSelector:c,needsMask:O,maskTextClass:f,maskTextSelector:m,skipChild:!1,inlineStylesheet:d,maskInputOptions:i,maskTextFn:h,maskInputFn:a,slimDOMOptions:n,dataURLOptions:p,inlineImages:u,recordCanvas:g,preserveWhiteSpace:M,onSerialize:S,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:w,keepIframeSrcFn:y});U&&E(e,U)}},w),x}function mo(e,t){let{mirror:r=new tt,blockClass:l="rr-block",blockSelector:s=null,maskTextClass:c="rr-mask",maskTextSelector:f=null,inlineStylesheet:m=!0,inlineImages:o=!1,recordCanvas:d=!1,maskAllInputs:i=!1,maskTextFn:h,maskInputFn:a,slimDOM:n=!1,dataURLOptions:p,preserveWhiteSpace:u,onSerialize:g,onIframeLoad:S,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:w=()=>!1}=t,y=i===!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}:i===!1?{password:!0}:i,C=Fi(n);return De(e,{doc:e,mirror:r,blockClass:l,blockSelector:s,maskTextClass:c,maskTextSelector:f,skipChild:!1,inlineStylesheet:m,maskInputOptions:y,maskTextFn:h,maskInputFn:a,slimDOMOptions:C,dataURLOptions:p,inlineImages:o,recordCanvas:d,preserveWhiteSpace:u,onSerialize:g,onIframeLoad:S,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:w,newlyAddedElement:!1})}var go=/(max|min)-device-(width|height)/,Ta=new RegExp(go.source,"g");function yo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function l(){return this instanceof l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(l){var s=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(r,l,s.get?s:{enumerable:!0,get:function(){return e[l]}})}),r}var Ge={exports:{}},cs;function bo(){if(cs)return Ge.exports;cs=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Ge.exports=t(),Ge.exports.createColors=t,Ge.exports}var vo={},So=Object.freeze(Object.defineProperty({__proto__:null,default:vo},Symbol.toStringTag,{value:"Module"})),ce=wo(So),Et,hs;function zr(){if(hs)return Et;hs=1;let e=bo(),t=ce;class r extends Error{constructor(s,c,f,m,o,d){super(s),this.name="CssSyntaxError",this.reason=s,o&&(this.file=o),m&&(this.source=m),d&&(this.plugin=d),typeof c<"u"&&typeof f<"u"&&(typeof c=="number"?(this.line=c,this.column=f):(this.line=c.line,this.column=c.column,this.endLine=f.line,this.endColumn=f.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){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(s){if(!this.source)return"";let c=this.source;s==null&&(s=e.isColorSupported),t&&s&&(c=t(c));let f=c.split(/\r?\n/),m=Math.max(this.line-3,0),o=Math.min(this.line+2,f.length),d=String(o).length,i,h;if(s){let{bold:a,gray:n,red:p}=e.createColors(!0);i=u=>a(p(u)),h=u=>n(u)}else i=h=a=>a;return f.slice(m,o).map((a,n)=>{let p=m+1+n,u=" "+(" "+p).slice(-d)+" | ";if(p===this.line){let g=h(u.replace(/\d/g," "))+a.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+h(u)+a+`
`+g+i("^")}return" "+h(u)+a}).join(`
`)}toString(){let s=this.showSourceCode();return s&&(s=`
`+s+`
`),this.name+": "+this.message+s}}return Et=r,r.default=r,Et}var He={},fs;function qr(){return fs||(fs=1,He.isClean=Symbol("isClean"),He.my=Symbol("my")),He}var xt,ds;function Ui(){if(ds)return xt;ds=1;let e={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(l){return l[0].toUpperCase()+l.slice(1)}class r{constructor(s){this.builder=s}atrule(s,c){let f="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?f+=s.raws.afterName:m&&(f+=" "),s.nodes)this.block(s,f+m);else{let o=(s.raws.between||"")+(c?";":"");this.builder(f+m+o,s)}}beforeAfter(s,c){let f;s.type==="decl"?f=this.raw(s,null,"beforeDecl"):s.type==="comment"?f=this.raw(s,null,"beforeComment"):c==="before"?f=this.raw(s,null,"beforeRule"):f=this.raw(s,null,"beforeClose");let m=s.parent,o=0;for(;m&&m.type!=="root";)o+=1,m=m.parent;if(f.includes(`
`)){let d=this.raw(s,null,"indent");if(d.length)for(let i=0;i<o;i++)f+=d}return f}block(s,c){let f=this.raw(s,"between","beforeOpen");this.builder(c+f+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let c=s.nodes.length-1;for(;c>0&&s.nodes[c].type==="comment";)c-=1;let f=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let o=s.nodes[m],d=this.raw(o,"before");d&&this.builder(d),this.stringify(o,c!==m||f)}}comment(s){let c=this.raw(s,"left","commentLeft"),f=this.raw(s,"right","commentRight");this.builder("/*"+c+s.text+f+"*/",s)}decl(s,c){let f=this.raw(s,"between","colon"),m=s.prop+f+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),c&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,c,f){let m;if(f||(f=c),c&&(m=s.raws[c],typeof m<"u"))return m;let o=s.parent;if(f==="before"&&(!o||o.type==="root"&&o.first===s||o&&o.type==="document"))return"";if(!o)return e[f];let d=s.root();if(d.rawCache||(d.rawCache={}),typeof d.rawCache[f]<"u")return d.rawCache[f];if(f==="before"||f==="after")return this.beforeAfter(s,f);{let i="raw"+t(f);this[i]?m=this[i](d,s):d.walk(h=>{if(m=h.raws[c],typeof m<"u")return!1})}return typeof m>"u"&&(m=e[f]),d.rawCache[f]=m,m}rawBeforeClose(s){let c;return s.walk(f=>{if(f.nodes&&f.nodes.length>0&&typeof f.raws.after<"u")return c=f.raws.after,c.includes(`
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawBeforeComment(s,c){let f;return s.walkComments(m=>{if(typeof m.raws.before<"u")return f=m.raws.before,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),typeof f>"u"?f=this.raw(c,null,"beforeDecl"):f&&(f=f.replace(/\S/g,"")),f}rawBeforeDecl(s,c){let f;return s.walkDecls(m=>{if(typeof m.raws.before<"u")return f=m.raws.before,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),typeof f>"u"?f=this.raw(c,null,"beforeRule"):f&&(f=f.replace(/\S/g,"")),f}rawBeforeOpen(s){let c;return s.walk(f=>{if(f.type!=="decl"&&(c=f.raws.between,typeof c<"u"))return!1}),c}rawBeforeRule(s){let c;return s.walk(f=>{if(f.nodes&&(f.parent!==s||s.first!==f)&&typeof f.raws.before<"u")return c=f.raws.before,c.includes(`
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawColon(s){let c;return s.walkDecls(f=>{if(typeof f.raws.between<"u")return c=f.raws.between.replace(/[^\s:]/g,""),!1}),c}rawEmptyBody(s){let c;return s.walk(f=>{if(f.nodes&&f.nodes.length===0&&(c=f.raws.after,typeof c<"u"))return!1}),c}rawIndent(s){if(s.raws.indent)return s.raws.indent;let c;return s.walk(f=>{let m=f.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof f.raws.before<"u"){let o=f.raws.before.split(`
`);return c=o[o.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(s){let c;return s.walk(f=>{if(f.nodes&&f.nodes.length&&f.last.type==="decl"&&(c=f.raws.semicolon,typeof c<"u"))return!1}),c}rawValue(s,c){let f=s[c],m=s.raws[c];return m&&m.value===f?m.raw:f}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,c){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,c)}}return xt=r,r.default=r,xt}var Rt,ps;function ut(){if(ps)return Rt;ps=1;let e=Ui();function t(r,l){new e(l).stringify(r)}return Rt=t,t.default=t,Rt}var Mt,ms;function ct(){if(ms)return Mt;ms=1;let{isClean:e,my:t}=qr(),r=zr(),l=Ui(),s=ut();function c(m,o){let d=new m.constructor;for(let i in m){if(!Object.prototype.hasOwnProperty.call(m,i)||i==="proxyCache")continue;let h=m[i],a=typeof h;i==="parent"&&a==="object"?o&&(d[i]=o):i==="source"?d[i]=h:Array.isArray(h)?d[i]=h.map(n=>c(n,d)):(a==="object"&&h!==null&&(h=c(h)),d[i]=h)}return d}class f{constructor(o={}){this.raws={},this[e]=!1,this[t]=!0;for(let d in o)if(d==="nodes"){this.nodes=[];for(let i of o[d])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[d]=o[d]}addToError(o){if(o.postcssNode=this,o.stack&&this.source&&/\n\s{4}at /.test(o.stack)){let d=this.source;o.stack=o.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return o}after(o){return this.parent.insertAfter(this,o),this}assign(o={}){for(let d in o)this[d]=o[d];return this}before(o){return this.parent.insertBefore(this,o),this}cleanRaws(o){delete this.raws.before,delete this.raws.after,o||delete this.raws.between}clone(o={}){let d=c(this);for(let i in o)d[i]=o[i];return d}cloneAfter(o={}){let d=this.clone(o);return this.parent.insertAfter(this,d),d}cloneBefore(o={}){let d=this.clone(o);return this.parent.insertBefore(this,d),d}error(o,d={}){if(this.source){let{end:i,start:h}=this.rangeBy(d);return this.source.input.error(o,{column:h.column,line:h.line},{column:i.column,line:i.line},d)}return new r(o)}getProxyProcessor(){return{get(o,d){return d==="proxyOf"?o:d==="root"?()=>o.root().toProxy():o[d]},set(o,d,i){return o[d]===i||(o[d]=i,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="text")&&o.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let o=this;for(;o=o.parent;)o[e]=!1}}next(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o+1]}positionBy(o,d){let i=this.source.start;if(o.index)i=this.positionInside(o.index,d);else if(o.word){d=this.toString();let h=d.indexOf(o.word);h!==-1&&(i=this.positionInside(h,d))}return i}positionInside(o,d){let i=d||this.toString(),h=this.source.start.column,a=this.source.start.line;for(let n=0;n<o;n++)i[n]===`
`?(h=1,a+=1):h+=1;return{column:h,line:a}}prev(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o-1]}rangeBy(o){let d={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(o.word){let h=this.toString(),a=h.indexOf(o.word);a!==-1&&(d=this.positionInside(a,h),i=this.positionInside(a+o.word.length,h))}else o.start?d={column:o.start.column,line:o.start.line}:o.index&&(d=this.positionInside(o.index)),o.end?i={column:o.end.column,line:o.end.line}:typeof o.endIndex=="number"?i=this.positionInside(o.endIndex):o.index&&(i=this.positionInside(o.index+1));return(i.line<d.line||i.line===d.line&&i.column<=d.column)&&(i={column:d.column+1,line:d.line}),{end:i,start:d}}raw(o,d){return new l().raw(this,o,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...o){if(this.parent){let d=this,i=!1;for(let h of o)h===this?i=!0:i?(this.parent.insertAfter(d,h),d=h):this.parent.insertBefore(d,h);i||this.remove()}return this}root(){let o=this;for(;o.parent&&o.parent.type!=="document";)o=o.parent;return o}toJSON(o,d){let i={},h=d==null;d=d||new Map;let a=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let p=this[n];if(Array.isArray(p))i[n]=p.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,d):u);else if(typeof p=="object"&&p.toJSON)i[n]=p.toJSON(null,d);else if(n==="source"){let u=d.get(p.input);u==null&&(u=a,d.set(p.input,a),a++),i[n]={end:p.end,inputId:u,start:p.start}}else i[n]=p}return h&&(i.inputs=[...d.keys()].map(n=>n.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(o=s){o.stringify&&(o=o.stringify);let d="";return o(this,i=>{d+=i}),d}warn(o,d,i){let h={node:this};for(let a in i)h[a]=i[a];return o.warn(d,h)}get proxyOf(){return this}}return Mt=f,f.default=f,Mt}var Nt,gs;function ht(){if(gs)return Nt;gs=1;let e=ct();class t extends e{constructor(l){l&&typeof l.value<"u"&&typeof l.value!="string"&&(l={...l,value:String(l.value)}),super(l),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Nt=t,t.default=t,Nt}var Ot,ys;function Co(){if(ys)return Ot;ys=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ot={nanoid:(l=21)=>{let s="",c=l;for(;c--;)s+=e[Math.random()*64|0];return s},customAlphabet:(l,s=21)=>(c=s)=>{let f="",m=c;for(;m--;)f+=l[Math.random()*l.length|0];return f}},Ot}var It,ws;function Bi(){if(ws)return It;ws=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ce,{existsSync:r,readFileSync:l}=ce,{dirname:s,join:c}=ce;function f(o){return Buffer?Buffer.from(o,"base64").toString():window.atob(o)}class m{constructor(d,i){if(i.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let h=i.map?i.map.prev:void 0,a=this.loadMap(i.from,h);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=s(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(d){let i=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(a.test(d)||n.test(d))return decodeURIComponent(d.substr(RegExp.lastMatch.length));if(i.test(d)||h.test(d))return f(d.substr(RegExp.lastMatch.length));let p=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+p)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let i=d.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let h=d.lastIndexOf(i.pop()),a=d.indexOf("*/",h);h>-1&&a>-1&&(this.annotation=this.getAnnotationURL(d.substring(h,a)))}loadFile(d){if(this.root=s(d),r(d))return this.mapFile=d,l(d,"utf-8").toString().trim()}loadMap(d,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let h=i(d);if(h){let a=this.loadFile(h);if(!a)throw new Error("Unable to load previous source map: "+h.toString());return a}}else{if(i instanceof e)return t.fromSourceMap(i).toString();if(i instanceof t)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return d&&(h=c(s(d),h)),this.loadFile(h)}}}startWith(d,i){return d?d.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return It=m,m.default=m,It}var Dt,bs;function ft(){if(bs)return Dt;bs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ce,{fileURLToPath:r,pathToFileURL:l}=ce,{isAbsolute:s,resolve:c}=ce,{nanoid:f}=Co(),m=ce,o=zr(),d=Bi(),i=Symbol("fromOffsetCache"),h=!!(e&&t),a=!!(c&&s);class n{constructor(u,g={}){if(u===null||typeof u>"u"||typeof u=="object"&&!u.toString)throw new Error(`PostCSS received ${u} instead of CSS string`);if(this.css=u.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!a||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=c(g.from)),a&&h){let S=new d(this.css,g);if(S.text){this.map=S;let b=S.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+f(6)+">"),this.map&&(this.map.file=this.from)}error(u,g,S,b={}){let v,E,w;if(g&&typeof g=="object"){let C=g,R=S;if(typeof C.offset=="number"){let O=this.fromOffset(C.offset);g=O.line,S=O.col}else g=C.line,S=C.column;if(typeof R.offset=="number"){let O=this.fromOffset(R.offset);E=O.line,w=O.col}else E=R.line,w=R.column}else if(!S){let C=this.fromOffset(g);g=C.line,S=C.col}let y=this.origin(g,S,E,w);return y?v=new o(u,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,b.plugin):v=new o(u,E===void 0?g:{column:S,line:g},E===void 0?S:{column:w,line:E},this.css,this.file,b.plugin),v.input={column:S,endColumn:w,endLine:E,line:g,source:this.css},this.file&&(l&&(v.input.url=l(this.file).toString()),v.input.file=this.file),v}fromOffset(u){let g,S;if(this[i])S=this[i];else{let v=this.css.split(`
`);S=new Array(v.length);let E=0;for(let w=0,y=v.length;w<y;w++)S[w]=E,E+=v[w].length+1;this[i]=S}g=S[S.length-1];let b=0;if(u>=g)b=S.length-1;else{let v=S.length-2,E;for(;b<v;)if(E=b+(v-b>>1),u<S[E])v=E-1;else if(u>=S[E+1])b=E+1;else{b=E;break}}return{col:u-S[b]+1,line:b+1}}mapResolve(u){return/^\w+:\/\//.test(u)?u:c(this.map.consumer().sourceRoot||this.map.root||".",u)}origin(u,g,S,b){if(!this.map)return!1;let v=this.map.consumer(),E=v.originalPositionFor({column:g,line:u});if(!E.source)return!1;let w;typeof S=="number"&&(w=v.originalPositionFor({column:b,line:S}));let y;s(E.source)?y=l(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let C={column:E.column,endColumn:w&&w.column,endLine:w&&w.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)C.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let R=v.sourceContentFor(E.source);return R&&(C.source=R),C}toJSON(){let u={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(u[g]=this[g]);return this.map&&(u.map={...this.map},u.map.consumerCache&&(u.map.consumerCache=void 0)),u}get from(){return this.file||this.id}}return Dt=n,n.default=n,m&&m.registerInput&&m.registerInput(n),Dt}var At,vs;function $i(){if(vs)return At;vs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ce,{dirname:r,relative:l,resolve:s,sep:c}=ce,{pathToFileURL:f}=ce,m=ft(),o=!!(e&&t),d=!!(r&&s&&l&&c);class i{constructor(a,n,p,u){this.stringify=a,this.mapOpts=p.map||{},this.root=n,this.opts=p,this.css=u,this.originalCSS=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let a;this.isInline()?a="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?a=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?a=this.mapOpts.annotation(this.opts.to,this.root):a=this.outputFile()+".map";let n=`
`;this.css.includes(`\r
`)&&(n=`\r
`),this.css+=n+"/*# sourceMappingURL="+a+" */"}applyPrevMaps(){for(let a of this.previous()){let n=this.toUrl(this.path(a.file)),p=a.root||r(a.file),u;this.mapOpts.sourcesContent===!1?(u=new e(a.text),u.sourcesContent&&(u.sourcesContent=null)):u=a.consumer(),this.map.applySourceMap(u,n,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let a;for(let n=this.root.nodes.length-1;n>=0;n--)a=this.root.nodes[n],a.type==="comment"&&a.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&o&&this.isMap())return this.generateMap();{let a="";return this.stringify(this.root,n=>{a+=n}),[a]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let a=this.previous()[0].consumer();a.file=this.outputFile(),this.map=t.fromSourceMap(a,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let a=1,n=1,p="<no source>",u={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,S;this.stringify(this.root,(b,v,E)=>{if(this.css+=b,v&&E!=="end"&&(u.generated.line=a,u.generated.column=n-1,v.source&&v.source.start?(u.source=this.sourcePath(v),u.original.line=v.source.start.line,u.original.column=v.source.start.column-1,this.map.addMapping(u)):(u.source=p,u.original.line=1,u.original.column=0,this.map.addMapping(u))),g=b.match(/\n/g),g?(a+=g.length,S=b.lastIndexOf(`
`),n=b.length-S):n+=b.length,v&&E!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(u.source=this.sourcePath(v),u.original.line=v.source.end.line,u.original.column=v.source.end.column-1,u.generated.line=a,u.generated.column=n-2,this.map.addMapping(u)):(u.source=p,u.original.line=1,u.original.column=0,u.generated.line=a,u.generated.column=n-1,this.map.addMapping(u)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(a=>a.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let a=this.mapOpts.annotation;return typeof a<"u"&&a!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(a=>a.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(a){if(this.mapOpts.absolute||a.charCodeAt(0)===60||/^\w+:\/\//.test(a))return a;let n=this.memoizedPaths.get(a);if(n)return n;let p=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=r(s(p,this.mapOpts.annotation)));let u=l(p,a);return this.memoizedPaths.set(a,u),u}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(a=>{if(a.source&&a.source.input.map){let n=a.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let a=new m(this.originalCSS,this.opts);a.map&&this.previousMaps.push(a.map)}return this.previousMaps}setSourcesContent(){let a={};if(this.root)this.root.walk(n=>{if(n.source){let p=n.source.input.from;if(p&&!a[p]){a[p]=!0;let u=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(u,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(a){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(a.source.input.from):this.toUrl(this.path(a.source.input.from))}toBase64(a){return Buffer?Buffer.from(a).toString("base64"):window.btoa(unescape(encodeURIComponent(a)))}toFileUrl(a){let n=this.memoizedFileURLs.get(a);if(n)return n;if(f){let p=f(a).toString();return this.memoizedFileURLs.set(a,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(a){let n=this.memoizedURLs.get(a);if(n)return n;c==="\\"&&(a=a.replace(/\\/g,"/"));let p=encodeURI(a).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(a,p),p}}return At=i,At}var Tt,Ss;function dt(){if(Ss)return Tt;Ss=1;let e=ct();class t extends e{constructor(l){super(l),this.type="comment"}}return Tt=t,t.default=t,Tt}var _t,Cs;function Ee(){if(Cs)return _t;Cs=1;let{isClean:e,my:t}=qr(),r=ht(),l=dt(),s=ct(),c,f,m,o;function d(a){return a.map(n=>(n.nodes&&(n.nodes=d(n.nodes)),delete n.source,n))}function i(a){if(a[e]=!1,a.proxyOf.nodes)for(let n of a.proxyOf.nodes)i(n)}class h extends s{append(...n){for(let p of n){let u=this.normalize(p,this.last);for(let g of u)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let p of this.nodes)p.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let p=this.getIterator(),u,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(u=this.indexes[p],g=n(this.proxyOf.nodes[u],u),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,p){return p==="proxyOf"?n:n[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...u)=>n[p](...u.map(g=>typeof g=="function"?(S,b)=>g(S.toProxy(),b):g)):p==="every"||p==="some"?u=>n[p]((g,...S)=>u(g.toProxy(),...S)):p==="root"?()=>n.root().toProxy():p==="nodes"?n.nodes.map(u=>u.toProxy()):p==="first"||p==="last"?n[p].toProxy():n[p]:n[p]},set(n,p,u){return n[p]===u||(n[p]=u,(p==="name"||p==="params"||p==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,p){let u=this.index(n),g=this.normalize(p,this.proxyOf.nodes[u]).reverse();u=this.index(n);for(let b of g)this.proxyOf.nodes.splice(u+1,0,b);let S;for(let b in this.indexes)S=this.indexes[b],u<S&&(this.indexes[b]=S+g.length);return this.markDirty(),this}insertBefore(n,p){let u=this.index(n),g=u===0?"prepend":!1,S=this.normalize(p,this.proxyOf.nodes[u],g).reverse();u=this.index(n);for(let v of S)this.proxyOf.nodes.splice(u,0,v);let b;for(let v in this.indexes)b=this.indexes[v],u<=b&&(this.indexes[v]=b+S.length);return this.markDirty(),this}normalize(n,p){if(typeof n=="string")n=d(c(n).nodes);else if(typeof n>"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new r(n)]}else if(n.selector)n=[new f(n)];else if(n.name)n=[new m(n)];else if(n.text)n=[new l(n)];else throw new Error("Unknown node type in node creation");return n.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&i(g),typeof g.raws.before>"u"&&p&&typeof p.raws.before<"u"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...n){n=n.reverse();for(let p of n){let u=this.normalize(p,this.first,"prepend").reverse();for(let g of u)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+u.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let p;for(let u in this.indexes)p=this.indexes[u],p>=n&&(this.indexes[u]=p-1);return this.markDirty(),this}replaceValues(n,p,u){return u||(u=p,p={}),this.walkDecls(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(n,u))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((p,u)=>{let g;try{g=n(p,u)}catch(S){throw p.addToError(S)}return g!==!1&&p.walk&&(g=p.walk(n)),g})}walkAtRules(n,p){return p?n instanceof RegExp?this.walk((u,g)=>{if(u.type==="atrule"&&n.test(u.name))return p(u,g)}):this.walk((u,g)=>{if(u.type==="atrule"&&u.name===n)return p(u,g)}):(p=n,this.walk((u,g)=>{if(u.type==="atrule")return p(u,g)}))}walkComments(n){return this.walk((p,u)=>{if(p.type==="comment")return n(p,u)})}walkDecls(n,p){return p?n instanceof RegExp?this.walk((u,g)=>{if(u.type==="decl"&&n.test(u.prop))return p(u,g)}):this.walk((u,g)=>{if(u.type==="decl"&&u.prop===n)return p(u,g)}):(p=n,this.walk((u,g)=>{if(u.type==="decl")return p(u,g)}))}walkRules(n,p){return p?n instanceof RegExp?this.walk((u,g)=>{if(u.type==="rule"&&n.test(u.selector))return p(u,g)}):this.walk((u,g)=>{if(u.type==="rule"&&u.selector===n)return p(u,g)}):(p=n,this.walk((u,g)=>{if(u.type==="rule")return p(u,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return h.registerParse=a=>{c=a},h.registerRule=a=>{f=a},h.registerAtRule=a=>{m=a},h.registerRoot=a=>{o=a},_t=h,h.default=h,h.rebuild=a=>{a.type==="atrule"?Object.setPrototypeOf(a,m.prototype):a.type==="rule"?Object.setPrototypeOf(a,f.prototype):a.type==="decl"?Object.setPrototypeOf(a,r.prototype):a.type==="comment"?Object.setPrototypeOf(a,l.prototype):a.type==="root"&&Object.setPrototypeOf(a,o.prototype),a[t]=!0,a.nodes&&a.nodes.forEach(n=>{h.rebuild(n)})},_t}var kt,Es;function Vr(){if(Es)return kt;Es=1;let e=Ee(),t,r;class l extends e{constructor(c){super({type:"document",...c}),this.nodes||(this.nodes=[])}toResult(c={}){return new t(new r,this,c).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},kt=l,l.default=l,kt}var Pt,xs;function Wi(){if(xs)return Pt;xs=1;let e={};return Pt=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Pt}var Lt,Rs;function zi(){if(Rs)return Lt;Rs=1;class e{constructor(r,l={}){if(this.type="warning",this.text=r,l.node&&l.node.source){let s=l.node.rangeBy(l);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in l)this[s]=l[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Lt=e,e.default=e,Lt}var Ft,Ms;function jr(){if(Ms)return Ft;Ms=1;let e=zi();class t{constructor(l,s,c){this.processor=l,this.messages=[],this.root=s,this.opts=c,this.css=void 0,this.map=void 0}toString(){return this.css}warn(l,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let c=new e(l,s);return this.messages.push(c),c}warnings(){return this.messages.filter(l=>l.type==="warning")}get content(){return this.css}}return Ft=t,t.default=t,Ft}var Ut,Ns;function Eo(){if(Ns)return Ut;Ns=1;let e=39,t=34,r=92,l=47,s=10,c=32,f=12,m=9,o=13,d=91,i=93,h=40,a=41,n=123,p=125,u=59,g=42,S=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Ut=function(R,O={}){let M=R.css.valueOf(),T=O.ignoreErrors,D,x,ae,se,U,F,H,Q,Y,B,ye=M.length,N=0,fe=[],ne=[];function _e(){return N}function K(A){throw R.error("Unclosed "+A,N)}function le(){return ne.length===0&&N>=ye}function ve(A){if(ne.length)return ne.pop();if(N>=ye)return;let X=A?A.ignoreUnclosed:!1;switch(D=M.charCodeAt(N),D){case s:case c:case m:case o:case f:{x=N;do x+=1,D=M.charCodeAt(x);while(D===c||D===s||D===m||D===o||D===f);B=["space",M.slice(N,x)],N=x-1;break}case d:case i:case n:case p:case S:case u:case a:{let $=String.fromCharCode(D);B=[$,$,N];break}case h:{if(Q=fe.length?fe.pop()[1]:"",Y=M.charCodeAt(N+1),Q==="url"&&Y!==e&&Y!==t&&Y!==c&&Y!==s&&Y!==m&&Y!==f&&Y!==o){x=N;do{if(F=!1,x=M.indexOf(")",x+1),x===-1)if(T||X){x=N;break}else K("bracket");for(H=x;M.charCodeAt(H-1)===r;)H-=1,F=!F}while(F);B=["brackets",M.slice(N,x+1),N,x],N=x}else x=M.indexOf(")",N+1),se=M.slice(N,x+1),x===-1||w.test(se)?B=["(","(",N]:(B=["brackets",se,N,x],N=x);break}case e:case t:{ae=D===e?"'":'"',x=N;do{if(F=!1,x=M.indexOf(ae,x+1),x===-1)if(T||X){x=N+1;break}else K("string");for(H=x;M.charCodeAt(H-1)===r;)H-=1,F=!F}while(F);B=["string",M.slice(N,x+1),N,x],N=x;break}case b:{v.lastIndex=N+1,v.test(M),v.lastIndex===0?x=M.length-1:x=v.lastIndex-2,B=["at-word",M.slice(N,x+1),N,x],N=x;break}case r:{for(x=N,U=!0;M.charCodeAt(x+1)===r;)x+=1,U=!U;if(D=M.charCodeAt(x+1),U&&D!==l&&D!==c&&D!==s&&D!==m&&D!==o&&D!==f&&(x+=1,y.test(M.charAt(x)))){for(;y.test(M.charAt(x+1));)x+=1;M.charCodeAt(x+1)===c&&(x+=1)}B=["word",M.slice(N,x+1),N,x],N=x;break}default:{D===l&&M.charCodeAt(N+1)===g?(x=M.indexOf("*/",N+2)+1,x===0&&(T||X?x=M.length:K("comment")),B=["comment",M.slice(N,x+1),N,x],N=x):(E.lastIndex=N+1,E.test(M),E.lastIndex===0?x=M.length-1:x=E.lastIndex-2,B=["word",M.slice(N,x+1),N,x],fe.push(B),N=x);break}}return N++,B}function we(A){ne.push(A)}return{back:we,endOfFile:le,nextToken:ve,position:_e}},Ut}var Bt,Os;function Gr(){if(Os)return Bt;Os=1;let e=Ee();class t extends e{constructor(l){super(l),this.type="atrule"}append(...l){return this.proxyOf.nodes||(this.nodes=[]),super.append(...l)}prepend(...l){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...l)}}return Bt=t,t.default=t,e.registerAtRule(t),Bt}var $t,Is;function We(){if(Is)return $t;Is=1;let e=Ee(),t,r;class l extends e{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,f,m){let o=super.normalize(c);if(f){if(m==="prepend")this.nodes.length>1?f.raws.before=this.nodes[1].raws.before:delete f.raws.before;else if(this.first!==f)for(let d of o)d.raws.before=f.raws.before}return o}removeChild(c,f){let m=this.index(c);return!f&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(c)}toResult(c={}){return new t(new r,this,c).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},$t=l,l.default=l,e.registerRoot(l),$t}var Wt,Ds;function qi(){if(Ds)return Wt;Ds=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
`," "];return e.split(t,r)},split(t,r,l){let s=[],c="",f=!1,m=0,o=!1,d="",i=!1;for(let h of t)i?i=!1:h==="\\"?i=!0:o?h===d&&(o=!1):h==='"'||h==="'"?(o=!0,d=h):h==="("?m+=1:h===")"?m>0&&(m-=1):m===0&&r.includes(h)&&(f=!0),f?(c!==""&&s.push(c.trim()),c="",f=!1):c+=h;return(l||c!=="")&&s.push(c.trim()),s}};return Wt=e,e.default=e,Wt}var zt,As;function Hr(){if(As)return zt;As=1;let e=Ee(),t=qi();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let c=this.selector?this.selector.match(/,\s*/):null,f=c?c[0]:","+this.raw("between","beforeOpen");this.selector=s.join(f)}}return zt=r,r.default=r,e.registerRule(r),zt}var qt,Ts;function xo(){if(Ts)return qt;Ts=1;let e=ht(),t=Eo(),r=dt(),l=Gr(),s=We(),c=Hr(),f={empty:!0,space:!0};function m(d){for(let i=d.length-1;i>=0;i--){let h=d[i],a=h[3]||h[2];if(a)return a}}class o{constructor(i){this.input=i,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}atrule(i){let h=new l;h.name=i[1].slice(1),h.name===""&&this.unnamedAtrule(h,i),this.init(h,i[2]);let a,n,p,u=!1,g=!1,S=[],b=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),a=i[0],a==="("||a==="["?b.push(a==="("?")":"]"):a==="{"&&b.length>0?b.push("}"):a===b[b.length-1]&&b.pop(),b.length===0)if(a===";"){h.source.end=this.getPosition(i[2]),h.source.end.offset++,this.semicolon=!0;break}else if(a==="{"){g=!0;break}else if(a==="}"){if(S.length>0){for(p=S.length-1,n=S[p];n&&n[0]==="space";)n=S[--p];n&&(h.source.end=this.getPosition(n[3]||n[2]),h.source.end.offset++)}this.end(i);break}else S.push(i);else S.push(i);if(this.tokenizer.endOfFile()){u=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(h.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(h,"params",S),u&&(i=S[S.length-1],h.source.end=this.getPosition(i[3]||i[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),g&&(h.nodes=[],this.current=h)}checkMissedSemicolon(i){let h=this.colon(i);if(h===!1)return;let a=0,n;for(let p=h-1;p>=0&&(n=i[p],!(n[0]!=="space"&&(a+=1,a===2)));p--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(i){let h=0,a,n,p;for(let[u,g]of i.entries()){if(a=g,n=a[0],n==="("&&(h+=1),n===")"&&(h-=1),h===0&&n===":")if(!p)this.doubleColon(a);else{if(p[0]==="word"&&p[1]==="progid")continue;return u}p=a}return!1}comment(i){let h=new r;this.init(h,i[2]),h.source.end=this.getPosition(i[3]||i[2]),h.source.end.offset++;let a=i[1].slice(2,-2);if(/^\s*$/.test(a))h.text="",h.raws.left=a,h.raws.right="";else{let n=a.match(/^(\s*)([^]*\S)(\s*)$/);h.text=n[2],h.raws.left=n[1],h.raws.right=n[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(i,h){let a=new e;this.init(a,i[0][2]);let n=i[i.length-1];for(n[0]===";"&&(this.semicolon=!0,i.pop()),a.source.end=this.getPosition(n[3]||n[2]||m(i)),a.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),a.raws.before+=i.shift()[1];for(a.source.start=this.getPosition(i[0][2]),a.prop="";i.length;){let b=i[0][0];if(b===":"||b==="space"||b==="comment")break;a.prop+=i.shift()[1]}a.raws.between="";let p;for(;i.length;)if(p=i.shift(),p[0]===":"){a.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),a.raws.between+=p[1];(a.prop[0]==="_"||a.prop[0]==="*")&&(a.raws.before+=a.prop[0],a.prop=a.prop.slice(1));let u=[],g;for(;i.length&&(g=i[0][0],!(g!=="space"&&g!=="comment"));)u.push(i.shift());this.precheckMissedSemicolon(i);for(let b=i.length-1;b>=0;b--){if(p=i[b],p[1].toLowerCase()==="!important"){a.important=!0;let v=this.stringFrom(i,b);v=this.spacesFromEnd(i)+v,v!==" !important"&&(a.raws.important=v);break}else if(p[1].toLowerCase()==="important"){let v=i.slice(0),E="";for(let w=b;w>0;w--){let y=v[w][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(a.important=!0,a.raws.important=E,i=v)}if(p[0]!=="space"&&p[0]!=="comment")break}i.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(a.raws.between+=u.map(b=>b[1]).join(""),u=[]),this.raw(a,"value",u.concat(i),h),a.value.includes(":")&&!h&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let h=new c;this.init(h,i[2]),h.selector="",h.raws.between="",this.current=h}end(i){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(i[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(i)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(i){if(this.spaces+=i[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(i){let h=this.input.fromOffset(i);return{column:h.col,line:h.line,offset:i}}init(i,h){this.current.push(i),i.source={input:this.input,start:this.getPosition(h)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let h=!1,a=null,n=!1,p=null,u=[],g=i[1].startsWith("--"),S=[],b=i;for(;b;){if(a=b[0],S.push(b),a==="("||a==="[")p||(p=b),u.push(a==="("?")":"]");else if(g&&n&&a==="{")p||(p=b),u.push("}");else if(u.length===0)if(a===";")if(n){this.decl(S,g);return}else break;else if(a==="{"){this.rule(S);return}else if(a==="}"){this.tokenizer.back(S.pop()),h=!0;break}else a===":"&&(n=!0);else a===u[u.length-1]&&(u.pop(),u.length===0&&(p=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),u.length>0&&this.unclosedBracket(p),h&&n){if(!g)for(;S.length&&(b=S[S.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,g)}else this.unknownWord(S)}parse(){let i;for(;!this.tokenizer.endOfFile();)switch(i=this.tokenizer.nextToken(),i[0]){case"space":this.spaces+=i[1];break;case";":this.freeSemicolon(i);break;case"}":this.end(i);break;case"comment":this.comment(i);break;case"at-word":this.atrule(i);break;case"{":this.emptyRule(i);break;default:this.other(i);break}this.endFile()}precheckMissedSemicolon(){}raw(i,h,a,n){let p,u,g=a.length,S="",b=!0,v,E;for(let w=0;w<g;w+=1)p=a[w],u=p[0],u==="space"&&w===g-1&&!n?b=!1:u==="comment"?(E=a[w-1]?a[w-1][0]:"empty",v=a[w+1]?a[w+1][0]:"empty",!f[E]&&!f[v]?S.slice(-1)===","?b=!1:S+=p[1]:b=!1):S+=p[1];if(!b){let w=a.reduce((y,C)=>y+C[1],"");i.raws[h]={raw:w,value:S}}i[h]=S}rule(i){i.pop();let h=new c;this.init(h,i[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(h,"selector",i),this.current=h}spacesAndCommentsFromEnd(i){let h,a="";for(;i.length&&(h=i[i.length-1][0],!(h!=="space"&&h!=="comment"));)a=i.pop()[1]+a;return a}spacesAndCommentsFromStart(i){let h,a="";for(;i.length&&(h=i[0][0],!(h!=="space"&&h!=="comment"));)a+=i.shift()[1];return a}spacesFromEnd(i){let h,a="";for(;i.length&&(h=i[i.length-1][0],h==="space");)a=i.pop()[1]+a;return a}stringFrom(i,h){let a="";for(let n=h;n<i.length;n++)a+=i[n][1];return i.splice(h,i.length-h),a}unclosedBlock(){let i=this.current.source.start;throw this.input.error("Unclosed block",i.line,i.column)}unclosedBracket(i){throw this.input.error("Unclosed bracket",{offset:i[2]},{offset:i[2]+1})}unexpectedClose(i){throw this.input.error("Unexpected }",{offset:i[2]},{offset:i[2]+1})}unknownWord(i){throw this.input.error("Unknown word",{offset:i[0][2]},{offset:i[0][2]+i[0][1].length})}unnamedAtrule(i,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return qt=o,qt}var Vt,_s;function Yr(){if(_s)return Vt;_s=1;let e=Ee(),t=xo(),r=ft();function l(s,c){let f=new r(s,c),m=new t(f);try{m.parse()}catch(o){throw o}return m.root}return Vt=l,l.default=l,e.registerParse(l),Vt}var jt,ks;function Vi(){if(ks)return jt;ks=1;let{isClean:e,my:t}=qr(),r=$i(),l=ut(),s=Ee(),c=Vr(),f=Wi(),m=jr(),o=Yr(),d=We(),i={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={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},a={Once:!0,postcssPlugin:!0,prepare:!0},n=0;function p(E){return typeof E=="object"&&typeof E.then=="function"}function u(E){let w=!1,y=i[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[y,y+"-"+w,n,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:E.append?[y,n,y+"Exit"]:[y,y+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",n,"DocumentExit"]:E.type==="root"?w=["Root",n,"RootExit"]:w=u(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function S(E){return E[e]=!1,E.nodes&&E.nodes.forEach(w=>S(w)),E}let b={};class v{constructor(w,y,C){this.stringified=!1,this.processed=!1;let R;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))R=S(y);else if(y instanceof v||y instanceof m)R=S(y.root),y.map&&(typeof C.map>"u"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=y.map);else{let O=o;C.syntax&&(O=C.syntax.parse),C.parser&&(O=C.parser),O.parse&&(O=O.parse);try{R=O(y,C)}catch(M){this.processed=!0,this.error=M}R&&!R[t]&&s.rebuild(R)}this.result=new m(w,R,C),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(O=>typeof O=="object"&&O.prepare?{...O,...O.prepare(this.result)}:O)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let C=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=C.postcssPlugin,w.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(y,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([y,R])};for(let y of this.plugins)if(typeof y=="object")for(let C in y){if(!h[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!a[C])if(typeof y[C]=="object")for(let R in y[C])R==="*"?w(y,C,y[C][R]):w(y,C+"-"+R.toLowerCase(),y[C][R]);else typeof y[C]=="function"&&w(y,C,y[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],C=this.runOnRoot(y);if(p(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[g(w)];for(;y.length>0;){let C=this.visitTick(y);if(p(C))try{await C}catch(R){let O=y[y.length-1].node;throw this.handleError(R,O)}}}if(this.listeners.OnceExit)for(let[y,C]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let R=w.nodes.map(O=>C(O,this.helpers));await Promise.all(R)}else await C(w,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(C=>w.Once(C,this.helpers));return p(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=l;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let R=new r(y,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[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 w of this.plugins){let y=this.runOnRoot(w);if(p(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[C,R]of w){this.result.lastPlugin=C;let O;try{O=R(y,this.helpers)}catch(M){throw this.handleError(M,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(p(O))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:C,visitors:R}=y;if(C.type!=="root"&&C.type!=="document"&&!C.parent){w.pop();return}if(R.length>0&&y.visitorIndex<R.length){let[M,T]=R[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===R.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=M;try{return T(C.toProxy(),this.helpers)}catch(D){throw this.handleError(D,C)}}if(y.iterator!==0){let M=y.iterator,T;for(;T=C.nodes[C.indexes[M]];)if(C.indexes[M]+=1,!T[e]){T[e]=!0,w.push(g(T));return}y.iterator=0,delete C.indexes[M]}let O=y.events;for(;y.eventIndex<O.length;){let M=O[y.eventIndex];if(y.eventIndex+=1,M===n){C.nodes&&C.nodes.length&&(C[e]=!0,y.iterator=C.getIterator());return}else if(this.listeners[M]){y.visitors=this.listeners[M];return}}w.pop()}walkSync(w){w[e]=!0;let y=u(w);for(let C of y)if(C===n)w.nodes&&w.each(R=>{R[e]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,w.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"}}return v.registerPostcss=E=>{b=E},jt=v,v.default=v,d.registerLazyResult(v),c.registerLazyResult(v),jt}var Gt,Ps;function Ro(){if(Ps)return Gt;Ps=1;let e=$i(),t=ut(),r=Wi(),l=Yr(),s=jr();class c{constructor(m,o,d){o=o.toString(),this.stringified=!1,this._processor=m,this._css=o,this._opts=d,this._map=void 0;let i,h=t;this.result=new s(this._processor,i,this._opts),this.result.css=o;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let n=new e(h,i,this._opts,o);if(n.isMap()){let[p,u]=n.generate();p&&(this.result.css=p),u&&(this.result.map=u)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(m){return this.async().catch(m)}finally(m){return this.async().then(m,m)}sync(){if(this.error)throw this.error;return this.result}then(m,o){return this.async().then(m,o)}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 m,o=l;try{m=o(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=m,m}get[Symbol.toStringTag](){return"NoWorkResult"}}return Gt=c,c.default=c,Gt}var Ht,Ls;function Mo(){if(Ls)return Ht;Ls=1;let e=Ro(),t=Vi(),r=Vr(),l=We();class s{constructor(f=[]){this.version="8.4.38",this.plugins=this.normalize(f)}normalize(f){let m=[];for(let o of f)if(o.postcss===!0?o=o():o.postcss&&(o=o.postcss),typeof o=="object"&&Array.isArray(o.plugins))m=m.concat(o.plugins);else if(typeof o=="object"&&o.postcssPlugin)m.push(o);else if(typeof o=="function")m.push(o);else if(!(typeof o=="object"&&(o.parse||o.stringify)))throw new Error(o+" is not a PostCSS plugin");return m}process(f,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,f,m):new t(this,f,m)}use(f){return this.plugins=this.plugins.concat(this.normalize([f])),this}}return Ht=s,s.default=s,l.registerProcessor(s),r.registerProcessor(s),Ht}var Yt,Fs;function No(){if(Fs)return Yt;Fs=1;let e=ht(),t=Bi(),r=dt(),l=Gr(),s=ft(),c=We(),f=Hr();function m(o,d){if(Array.isArray(o))return o.map(a=>m(a));let{inputs:i,...h}=o;if(i){d=[];for(let a of i){let n={...a,__proto__:s.prototype};n.map&&(n.map={...n.map,__proto__:t.prototype}),d.push(n)}}if(h.nodes&&(h.nodes=o.nodes.map(a=>m(a,d))),h.source){let{inputId:a,...n}=h.source;h.source=n,a!=null&&(h.source.input=d[a])}if(h.type==="root")return new c(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new f(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new l(h);throw new Error("Unknown node type: "+o.type)}return Yt=m,m.default=m,Yt}var Xt,Us;function Oo(){if(Us)return Xt;Us=1;let e=zr(),t=ht(),r=Vi(),l=Ee(),s=Mo(),c=ut(),f=No(),m=Vr(),o=zi(),d=dt(),i=Gr(),h=jr(),a=ft(),n=Yr(),p=qi(),u=Hr(),g=We(),S=ct();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new s(v)}return b.plugin=function(E,w){let y=!1;function C(...O){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(E+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
https://www.w3ctech.com/topic/2226`));let M=w(...O);return M.postcssPlugin=E,M.postcssVersion=new s().version,M}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(O,M,T){return b([C(T)]).process(O,M)},C},b.stringify=c,b.parse=n,b.fromJSON=f,b.list=p,b.comment=v=>new d(v),b.atRule=v=>new i(v),b.decl=v=>new t(v),b.rule=v=>new u(v),b.root=v=>new g(v),b.document=v=>new m(v),b.CssSyntaxError=e,b.Declaration=t,b.Container=l,b.Processor=s,b.Document=m,b.Comment=d,b.Warning=o,b.AtRule=i,b.Result=h,b.Input=a,b.Rule=u,b.Root=g,b.Node=S,r.registerPostcss(b),Xt=b,b.default=b,Xt}var Io=Oo(),q=yo(Io);q.stringify;q.fromJSON;q.plugin;q.parse;q.list;q.document;q.comment;q.atRule;q.rule;q.decl;q.root;q.CssSyntaxError;q.Declaration;q.Container;q.Processor;q.Document;q.Comment;q.Warning;q.AtRule;q.Result;q.Input;q.Rule;q.Root;q.Node;var Do=Object.defineProperty,Ao=(e,t,r)=>t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oe=(e,t,r)=>Ao(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();function To(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _o(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function l(){return this instanceof l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(l){var s=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(r,l,s.get?s:{enumerable:!0,get:function(){return e[l]}})}),r}var Ye={exports:{}},Bs;function ko(){if(Bs)return Ye.exports;Bs=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Ye.exports=t(),Ye.exports.createColors=t,Ye.exports}var Po={},Lo=Object.freeze(Object.defineProperty({__proto__:null,default:Po},Symbol.toStringTag,{value:"Module"})),he=_o(Lo),Jt,$s;function Xr(){if($s)return Jt;$s=1;let e=ko(),t=he;class r extends Error{constructor(s,c,f,m,o,d){super(s),this.name="CssSyntaxError",this.reason=s,o&&(this.file=o),m&&(this.source=m),d&&(this.plugin=d),typeof c<"u"&&typeof f<"u"&&(typeof c=="number"?(this.line=c,this.column=f):(this.line=c.line,this.column=c.column,this.endLine=f.line,this.endColumn=f.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){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(s){if(!this.source)return"";let c=this.source;s==null&&(s=e.isColorSupported),t&&s&&(c=t(c));let f=c.split(/\r?\n/),m=Math.max(this.line-3,0),o=Math.min(this.line+2,f.length),d=String(o).length,i,h;if(s){let{bold:a,gray:n,red:p}=e.createColors(!0);i=u=>a(p(u)),h=u=>n(u)}else i=h=a=>a;return f.slice(m,o).map((a,n)=>{let p=m+1+n,u=" "+(" "+p).slice(-d)+" | ";if(p===this.line){let g=h(u.replace(/\d/g," "))+a.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+h(u)+a+`
`+g+i("^")}return" "+h(u)+a}).join(`
`)}toString(){let s=this.showSourceCode();return s&&(s=`
`+s+`
`),this.name+": "+this.message+s}}return Jt=r,r.default=r,Jt}var Xe={},Ws;function Jr(){return Ws||(Ws=1,Xe.isClean=Symbol("isClean"),Xe.my=Symbol("my")),Xe}var Qt,zs;function ji(){if(zs)return Qt;zs=1;let e={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(l){return l[0].toUpperCase()+l.slice(1)}class r{constructor(s){this.builder=s}atrule(s,c){let f="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?f+=s.raws.afterName:m&&(f+=" "),s.nodes)this.block(s,f+m);else{let o=(s.raws.between||"")+(c?";":"");this.builder(f+m+o,s)}}beforeAfter(s,c){let f;s.type==="decl"?f=this.raw(s,null,"beforeDecl"):s.type==="comment"?f=this.raw(s,null,"beforeComment"):c==="before"?f=this.raw(s,null,"beforeRule"):f=this.raw(s,null,"beforeClose");let m=s.parent,o=0;for(;m&&m.type!=="root";)o+=1,m=m.parent;if(f.includes(`
`)){let d=this.raw(s,null,"indent");if(d.length)for(let i=0;i<o;i++)f+=d}return f}block(s,c){let f=this.raw(s,"between","beforeOpen");this.builder(c+f+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let c=s.nodes.length-1;for(;c>0&&s.nodes[c].type==="comment";)c-=1;let f=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let o=s.nodes[m],d=this.raw(o,"before");d&&this.builder(d),this.stringify(o,c!==m||f)}}comment(s){let c=this.raw(s,"left","commentLeft"),f=this.raw(s,"right","commentRight");this.builder("/*"+c+s.text+f+"*/",s)}decl(s,c){let f=this.raw(s,"between","colon"),m=s.prop+f+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),c&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,c,f){let m;if(f||(f=c),c&&(m=s.raws[c],typeof m<"u"))return m;let o=s.parent;if(f==="before"&&(!o||o.type==="root"&&o.first===s||o&&o.type==="document"))return"";if(!o)return e[f];let d=s.root();if(d.rawCache||(d.rawCache={}),typeof d.rawCache[f]<"u")return d.rawCache[f];if(f==="before"||f==="after")return this.beforeAfter(s,f);{let i="raw"+t(f);this[i]?m=this[i](d,s):d.walk(h=>{if(m=h.raws[c],typeof m<"u")return!1})}return typeof m>"u"&&(m=e[f]),d.rawCache[f]=m,m}rawBeforeClose(s){let c;return s.walk(f=>{if(f.nodes&&f.nodes.length>0&&typeof f.raws.after<"u")return c=f.raws.after,c.includes(`
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawBeforeComment(s,c){let f;return s.walkComments(m=>{if(typeof m.raws.before<"u")return f=m.raws.before,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),typeof f>"u"?f=this.raw(c,null,"beforeDecl"):f&&(f=f.replace(/\S/g,"")),f}rawBeforeDecl(s,c){let f;return s.walkDecls(m=>{if(typeof m.raws.before<"u")return f=m.raws.before,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),typeof f>"u"?f=this.raw(c,null,"beforeRule"):f&&(f=f.replace(/\S/g,"")),f}rawBeforeOpen(s){let c;return s.walk(f=>{if(f.type!=="decl"&&(c=f.raws.between,typeof c<"u"))return!1}),c}rawBeforeRule(s){let c;return s.walk(f=>{if(f.nodes&&(f.parent!==s||s.first!==f)&&typeof f.raws.before<"u")return c=f.raws.before,c.includes(`
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawColon(s){let c;return s.walkDecls(f=>{if(typeof f.raws.between<"u")return c=f.raws.between.replace(/[^\s:]/g,""),!1}),c}rawEmptyBody(s){let c;return s.walk(f=>{if(f.nodes&&f.nodes.length===0&&(c=f.raws.after,typeof c<"u"))return!1}),c}rawIndent(s){if(s.raws.indent)return s.raws.indent;let c;return s.walk(f=>{let m=f.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof f.raws.before<"u"){let o=f.raws.before.split(`
`);return c=o[o.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(s){let c;return s.walk(f=>{if(f.nodes&&f.nodes.length&&f.last.type==="decl"&&(c=f.raws.semicolon,typeof c<"u"))return!1}),c}rawValue(s,c){let f=s[c],m=s.raws[c];return m&&m.value===f?m.raw:f}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,c){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,c)}}return Qt=r,r.default=r,Qt}var Zt,qs;function pt(){if(qs)return Zt;qs=1;let e=ji();function t(r,l){new e(l).stringify(r)}return Zt=t,t.default=t,Zt}var Kt,Vs;function mt(){if(Vs)return Kt;Vs=1;let{isClean:e,my:t}=Jr(),r=Xr(),l=ji(),s=pt();function c(m,o){let d=new m.constructor;for(let i in m){if(!Object.prototype.hasOwnProperty.call(m,i)||i==="proxyCache")continue;let h=m[i],a=typeof h;i==="parent"&&a==="object"?o&&(d[i]=o):i==="source"?d[i]=h:Array.isArray(h)?d[i]=h.map(n=>c(n,d)):(a==="object"&&h!==null&&(h=c(h)),d[i]=h)}return d}class f{constructor(o={}){this.raws={},this[e]=!1,this[t]=!0;for(let d in o)if(d==="nodes"){this.nodes=[];for(let i of o[d])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[d]=o[d]}addToError(o){if(o.postcssNode=this,o.stack&&this.source&&/\n\s{4}at /.test(o.stack)){let d=this.source;o.stack=o.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return o}after(o){return this.parent.insertAfter(this,o),this}assign(o={}){for(let d in o)this[d]=o[d];return this}before(o){return this.parent.insertBefore(this,o),this}cleanRaws(o){delete this.raws.before,delete this.raws.after,o||delete this.raws.between}clone(o={}){let d=c(this);for(let i in o)d[i]=o[i];return d}cloneAfter(o={}){let d=this.clone(o);return this.parent.insertAfter(this,d),d}cloneBefore(o={}){let d=this.clone(o);return this.parent.insertBefore(this,d),d}error(o,d={}){if(this.source){let{end:i,start:h}=this.rangeBy(d);return this.source.input.error(o,{column:h.column,line:h.line},{column:i.column,line:i.line},d)}return new r(o)}getProxyProcessor(){return{get(o,d){return d==="proxyOf"?o:d==="root"?()=>o.root().toProxy():o[d]},set(o,d,i){return o[d]===i||(o[d]=i,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="text")&&o.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let o=this;for(;o=o.parent;)o[e]=!1}}next(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o+1]}positionBy(o,d){let i=this.source.start;if(o.index)i=this.positionInside(o.index,d);else if(o.word){d=this.toString();let h=d.indexOf(o.word);h!==-1&&(i=this.positionInside(h,d))}return i}positionInside(o,d){let i=d||this.toString(),h=this.source.start.column,a=this.source.start.line;for(let n=0;n<o;n++)i[n]===`
`?(h=1,a+=1):h+=1;return{column:h,line:a}}prev(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o-1]}rangeBy(o){let d={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(o.word){let h=this.toString(),a=h.indexOf(o.word);a!==-1&&(d=this.positionInside(a,h),i=this.positionInside(a+o.word.length,h))}else o.start?d={column:o.start.column,line:o.start.line}:o.index&&(d=this.positionInside(o.index)),o.end?i={column:o.end.column,line:o.end.line}:typeof o.endIndex=="number"?i=this.positionInside(o.endIndex):o.index&&(i=this.positionInside(o.index+1));return(i.line<d.line||i.line===d.line&&i.column<=d.column)&&(i={column:d.column+1,line:d.line}),{end:i,start:d}}raw(o,d){return new l().raw(this,o,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...o){if(this.parent){let d=this,i=!1;for(let h of o)h===this?i=!0:i?(this.parent.insertAfter(d,h),d=h):this.parent.insertBefore(d,h);i||this.remove()}return this}root(){let o=this;for(;o.parent&&o.parent.type!=="document";)o=o.parent;return o}toJSON(o,d){let i={},h=d==null;d=d||new Map;let a=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let p=this[n];if(Array.isArray(p))i[n]=p.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,d):u);else if(typeof p=="object"&&p.toJSON)i[n]=p.toJSON(null,d);else if(n==="source"){let u=d.get(p.input);u==null&&(u=a,d.set(p.input,a),a++),i[n]={end:p.end,inputId:u,start:p.start}}else i[n]=p}return h&&(i.inputs=[...d.keys()].map(n=>n.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(o=s){o.stringify&&(o=o.stringify);let d="";return o(this,i=>{d+=i}),d}warn(o,d,i){let h={node:this};for(let a in i)h[a]=i[a];return o.warn(d,h)}get proxyOf(){return this}}return Kt=f,f.default=f,Kt}var er,js;function gt(){if(js)return er;js=1;let e=mt();class t extends e{constructor(l){l&&typeof l.value<"u"&&typeof l.value!="string"&&(l={...l,value:String(l.value)}),super(l),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return er=t,t.default=t,er}var tr,Gs;function Fo(){if(Gs)return tr;Gs=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return tr={nanoid:(l=21)=>{let s="",c=l;for(;c--;)s+=e[Math.random()*64|0];return s},customAlphabet:(l,s=21)=>(c=s)=>{let f="",m=c;for(;m--;)f+=l[Math.random()*l.length|0];return f}},tr}var rr,Hs;function Gi(){if(Hs)return rr;Hs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=he,{existsSync:r,readFileSync:l}=he,{dirname:s,join:c}=he;function f(o){return Buffer?Buffer.from(o,"base64").toString():window.atob(o)}class m{constructor(d,i){if(i.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let h=i.map?i.map.prev:void 0,a=this.loadMap(i.from,h);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=s(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(d){let i=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(a.test(d)||n.test(d))return decodeURIComponent(d.substr(RegExp.lastMatch.length));if(i.test(d)||h.test(d))return f(d.substr(RegExp.lastMatch.length));let p=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+p)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let i=d.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let h=d.lastIndexOf(i.pop()),a=d.indexOf("*/",h);h>-1&&a>-1&&(this.annotation=this.getAnnotationURL(d.substring(h,a)))}loadFile(d){if(this.root=s(d),r(d))return this.mapFile=d,l(d,"utf-8").toString().trim()}loadMap(d,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let h=i(d);if(h){let a=this.loadFile(h);if(!a)throw new Error("Unable to load previous source map: "+h.toString());return a}}else{if(i instanceof e)return t.fromSourceMap(i).toString();if(i instanceof t)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return d&&(h=c(s(d),h)),this.loadFile(h)}}}startWith(d,i){return d?d.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return rr=m,m.default=m,rr}var sr,Ys;function yt(){if(Ys)return sr;Ys=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=he,{fileURLToPath:r,pathToFileURL:l}=he,{isAbsolute:s,resolve:c}=he,{nanoid:f}=Fo(),m=he,o=Xr(),d=Gi(),i=Symbol("fromOffsetCache"),h=!!(e&&t),a=!!(c&&s);class n{constructor(u,g={}){if(u===null||typeof u>"u"||typeof u=="object"&&!u.toString)throw new Error(`PostCSS received ${u} instead of CSS string`);if(this.css=u.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!a||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=c(g.from)),a&&h){let S=new d(this.css,g);if(S.text){this.map=S;let b=S.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+f(6)+">"),this.map&&(this.map.file=this.from)}error(u,g,S,b={}){let v,E,w;if(g&&typeof g=="object"){let C=g,R=S;if(typeof C.offset=="number"){let O=this.fromOffset(C.offset);g=O.line,S=O.col}else g=C.line,S=C.column;if(typeof R.offset=="number"){let O=this.fromOffset(R.offset);E=O.line,w=O.col}else E=R.line,w=R.column}else if(!S){let C=this.fromOffset(g);g=C.line,S=C.col}let y=this.origin(g,S,E,w);return y?v=new o(u,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,b.plugin):v=new o(u,E===void 0?g:{column:S,line:g},E===void 0?S:{column:w,line:E},this.css,this.file,b.plugin),v.input={column:S,endColumn:w,endLine:E,line:g,source:this.css},this.file&&(l&&(v.input.url=l(this.file).toString()),v.input.file=this.file),v}fromOffset(u){let g,S;if(this[i])S=this[i];else{let v=this.css.split(`
`);S=new Array(v.length);let E=0;for(let w=0,y=v.length;w<y;w++)S[w]=E,E+=v[w].length+1;this[i]=S}g=S[S.length-1];let b=0;if(u>=g)b=S.length-1;else{let v=S.length-2,E;for(;b<v;)if(E=b+(v-b>>1),u<S[E])v=E-1;else if(u>=S[E+1])b=E+1;else{b=E;break}}return{col:u-S[b]+1,line:b+1}}mapResolve(u){return/^\w+:\/\//.test(u)?u:c(this.map.consumer().sourceRoot||this.map.root||".",u)}origin(u,g,S,b){if(!this.map)return!1;let v=this.map.consumer(),E=v.originalPositionFor({column:g,line:u});if(!E.source)return!1;let w;typeof S=="number"&&(w=v.originalPositionFor({column:b,line:S}));let y;s(E.source)?y=l(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let C={column:E.column,endColumn:w&&w.column,endLine:w&&w.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)C.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let R=v.sourceContentFor(E.source);return R&&(C.source=R),C}toJSON(){let u={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(u[g]=this[g]);return this.map&&(u.map={...this.map},u.map.consumerCache&&(u.map.consumerCache=void 0)),u}get from(){return this.file||this.id}}return sr=n,n.default=n,m&&m.registerInput&&m.registerInput(n),sr}var ir,Xs;function Hi(){if(Xs)return ir;Xs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=he,{dirname:r,relative:l,resolve:s,sep:c}=he,{pathToFileURL:f}=he,m=yt(),o=!!(e&&t),d=!!(r&&s&&l&&c);class i{constructor(a,n,p,u){this.stringify=a,this.mapOpts=p.map||{},this.root=n,this.opts=p,this.css=u,this.originalCSS=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let a;this.isInline()?a="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?a=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?a=this.mapOpts.annotation(this.opts.to,this.root):a=this.outputFile()+".map";let n=`
`;this.css.includes(`\r
`)&&(n=`\r
`),this.css+=n+"/*# sourceMappingURL="+a+" */"}applyPrevMaps(){for(let a of this.previous()){let n=this.toUrl(this.path(a.file)),p=a.root||r(a.file),u;this.mapOpts.sourcesContent===!1?(u=new e(a.text),u.sourcesContent&&(u.sourcesContent=null)):u=a.consumer(),this.map.applySourceMap(u,n,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let a;for(let n=this.root.nodes.length-1;n>=0;n--)a=this.root.nodes[n],a.type==="comment"&&a.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&o&&this.isMap())return this.generateMap();{let a="";return this.stringify(this.root,n=>{a+=n}),[a]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let a=this.previous()[0].consumer();a.file=this.outputFile(),this.map=t.fromSourceMap(a,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let a=1,n=1,p="<no source>",u={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,S;this.stringify(this.root,(b,v,E)=>{if(this.css+=b,v&&E!=="end"&&(u.generated.line=a,u.generated.column=n-1,v.source&&v.source.start?(u.source=this.sourcePath(v),u.original.line=v.source.start.line,u.original.column=v.source.start.column-1,this.map.addMapping(u)):(u.source=p,u.original.line=1,u.original.column=0,this.map.addMapping(u))),g=b.match(/\n/g),g?(a+=g.length,S=b.lastIndexOf(`
`),n=b.length-S):n+=b.length,v&&E!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(u.source=this.sourcePath(v),u.original.line=v.source.end.line,u.original.column=v.source.end.column-1,u.generated.line=a,u.generated.column=n-2,this.map.addMapping(u)):(u.source=p,u.original.line=1,u.original.column=0,u.generated.line=a,u.generated.column=n-1,this.map.addMapping(u)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(a=>a.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let a=this.mapOpts.annotation;return typeof a<"u"&&a!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(a=>a.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(a){if(this.mapOpts.absolute||a.charCodeAt(0)===60||/^\w+:\/\//.test(a))return a;let n=this.memoizedPaths.get(a);if(n)return n;let p=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=r(s(p,this.mapOpts.annotation)));let u=l(p,a);return this.memoizedPaths.set(a,u),u}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(a=>{if(a.source&&a.source.input.map){let n=a.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let a=new m(this.originalCSS,this.opts);a.map&&this.previousMaps.push(a.map)}return this.previousMaps}setSourcesContent(){let a={};if(this.root)this.root.walk(n=>{if(n.source){let p=n.source.input.from;if(p&&!a[p]){a[p]=!0;let u=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(u,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(a){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(a.source.input.from):this.toUrl(this.path(a.source.input.from))}toBase64(a){return Buffer?Buffer.from(a).toString("base64"):window.btoa(unescape(encodeURIComponent(a)))}toFileUrl(a){let n=this.memoizedFileURLs.get(a);if(n)return n;if(f){let p=f(a).toString();return this.memoizedFileURLs.set(a,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(a){let n=this.memoizedURLs.get(a);if(n)return n;c==="\\"&&(a=a.replace(/\\/g,"/"));let p=encodeURI(a).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(a,p),p}}return ir=i,ir}var nr,Js;function wt(){if(Js)return nr;Js=1;let e=mt();class t extends e{constructor(l){super(l),this.type="comment"}}return nr=t,t.default=t,nr}var or,Qs;function xe(){if(Qs)return or;Qs=1;let{isClean:e,my:t}=Jr(),r=gt(),l=wt(),s=mt(),c,f,m,o;function d(a){return a.map(n=>(n.nodes&&(n.nodes=d(n.nodes)),delete n.source,n))}function i(a){if(a[e]=!1,a.proxyOf.nodes)for(let n of a.proxyOf.nodes)i(n)}class h extends s{append(...n){for(let p of n){let u=this.normalize(p,this.last);for(let g of u)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let p of this.nodes)p.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let p=this.getIterator(),u,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(u=this.indexes[p],g=n(this.proxyOf.nodes[u],u),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,p){return p==="proxyOf"?n:n[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...u)=>n[p](...u.map(g=>typeof g=="function"?(S,b)=>g(S.toProxy(),b):g)):p==="every"||p==="some"?u=>n[p]((g,...S)=>u(g.toProxy(),...S)):p==="root"?()=>n.root().toProxy():p==="nodes"?n.nodes.map(u=>u.toProxy()):p==="first"||p==="last"?n[p].toProxy():n[p]:n[p]},set(n,p,u){return n[p]===u||(n[p]=u,(p==="name"||p==="params"||p==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,p){let u=this.index(n),g=this.normalize(p,this.proxyOf.nodes[u]).reverse();u=this.index(n);for(let b of g)this.proxyOf.nodes.splice(u+1,0,b);let S;for(let b in this.indexes)S=this.indexes[b],u<S&&(this.indexes[b]=S+g.length);return this.markDirty(),this}insertBefore(n,p){let u=this.index(n),g=u===0?"prepend":!1,S=this.normalize(p,this.proxyOf.nodes[u],g).reverse();u=this.index(n);for(let v of S)this.proxyOf.nodes.splice(u,0,v);let b;for(let v in this.indexes)b=this.indexes[v],u<=b&&(this.indexes[v]=b+S.length);return this.markDirty(),this}normalize(n,p){if(typeof n=="string")n=d(c(n).nodes);else if(typeof n>"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new r(n)]}else if(n.selector)n=[new f(n)];else if(n.name)n=[new m(n)];else if(n.text)n=[new l(n)];else throw new Error("Unknown node type in node creation");return n.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&i(g),typeof g.raws.before>"u"&&p&&typeof p.raws.before<"u"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...n){n=n.reverse();for(let p of n){let u=this.normalize(p,this.first,"prepend").reverse();for(let g of u)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+u.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let p;for(let u in this.indexes)p=this.indexes[u],p>=n&&(this.indexes[u]=p-1);return this.markDirty(),this}replaceValues(n,p,u){return u||(u=p,p={}),this.walkDecls(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(n,u))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((p,u)=>{let g;try{g=n(p,u)}catch(S){throw p.addToError(S)}return g!==!1&&p.walk&&(g=p.walk(n)),g})}walkAtRules(n,p){return p?n instanceof RegExp?this.walk((u,g)=>{if(u.type==="atrule"&&n.test(u.name))return p(u,g)}):this.walk((u,g)=>{if(u.type==="atrule"&&u.name===n)return p(u,g)}):(p=n,this.walk((u,g)=>{if(u.type==="atrule")return p(u,g)}))}walkComments(n){return this.walk((p,u)=>{if(p.type==="comment")return n(p,u)})}walkDecls(n,p){return p?n instanceof RegExp?this.walk((u,g)=>{if(u.type==="decl"&&n.test(u.prop))return p(u,g)}):this.walk((u,g)=>{if(u.type==="decl"&&u.prop===n)return p(u,g)}):(p=n,this.walk((u,g)=>{if(u.type==="decl")return p(u,g)}))}walkRules(n,p){return p?n instanceof RegExp?this.walk((u,g)=>{if(u.type==="rule"&&n.test(u.selector))return p(u,g)}):this.walk((u,g)=>{if(u.type==="rule"&&u.selector===n)return p(u,g)}):(p=n,this.walk((u,g)=>{if(u.type==="rule")return p(u,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return h.registerParse=a=>{c=a},h.registerRule=a=>{f=a},h.registerAtRule=a=>{m=a},h.registerRoot=a=>{o=a},or=h,h.default=h,h.rebuild=a=>{a.type==="atrule"?Object.setPrototypeOf(a,m.prototype):a.type==="rule"?Object.setPrototypeOf(a,f.prototype):a.type==="decl"?Object.setPrototypeOf(a,r.prototype):a.type==="comment"?Object.setPrototypeOf(a,l.prototype):a.type==="root"&&Object.setPrototypeOf(a,o.prototype),a[t]=!0,a.nodes&&a.nodes.forEach(n=>{h.rebuild(n)})},or}var ar,Zs;function Qr(){if(Zs)return ar;Zs=1;let e=xe(),t,r;class l extends e{constructor(c){super({type:"document",...c}),this.nodes||(this.nodes=[])}toResult(c={}){return new t(new r,this,c).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},ar=l,l.default=l,ar}var lr,Ks;function Yi(){if(Ks)return lr;Ks=1;let e={};return lr=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},lr}var ur,ei;function Xi(){if(ei)return ur;ei=1;class e{constructor(r,l={}){if(this.type="warning",this.text=r,l.node&&l.node.source){let s=l.node.rangeBy(l);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in l)this[s]=l[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ur=e,e.default=e,ur}var cr,ti;function Zr(){if(ti)return cr;ti=1;let e=Xi();class t{constructor(l,s,c){this.processor=l,this.messages=[],this.root=s,this.opts=c,this.css=void 0,this.map=void 0}toString(){return this.css}warn(l,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let c=new e(l,s);return this.messages.push(c),c}warnings(){return this.messages.filter(l=>l.type==="warning")}get content(){return this.css}}return cr=t,t.default=t,cr}var hr,ri;function Uo(){if(ri)return hr;ri=1;let e=39,t=34,r=92,l=47,s=10,c=32,f=12,m=9,o=13,d=91,i=93,h=40,a=41,n=123,p=125,u=59,g=42,S=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return hr=function(R,O={}){let M=R.css.valueOf(),T=O.ignoreErrors,D,x,ae,se,U,F,H,Q,Y,B,ye=M.length,N=0,fe=[],ne=[];function _e(){return N}function K(A){throw R.error("Unclosed "+A,N)}function le(){return ne.length===0&&N>=ye}function ve(A){if(ne.length)return ne.pop();if(N>=ye)return;let X=A?A.ignoreUnclosed:!1;switch(D=M.charCodeAt(N),D){case s:case c:case m:case o:case f:{x=N;do x+=1,D=M.charCodeAt(x);while(D===c||D===s||D===m||D===o||D===f);B=["space",M.slice(N,x)],N=x-1;break}case d:case i:case n:case p:case S:case u:case a:{let $=String.fromCharCode(D);B=[$,$,N];break}case h:{if(Q=fe.length?fe.pop()[1]:"",Y=M.charCodeAt(N+1),Q==="url"&&Y!==e&&Y!==t&&Y!==c&&Y!==s&&Y!==m&&Y!==f&&Y!==o){x=N;do{if(F=!1,x=M.indexOf(")",x+1),x===-1)if(T||X){x=N;break}else K("bracket");for(H=x;M.charCodeAt(H-1)===r;)H-=1,F=!F}while(F);B=["brackets",M.slice(N,x+1),N,x],N=x}else x=M.indexOf(")",N+1),se=M.slice(N,x+1),x===-1||w.test(se)?B=["(","(",N]:(B=["brackets",se,N,x],N=x);break}case e:case t:{ae=D===e?"'":'"',x=N;do{if(F=!1,x=M.indexOf(ae,x+1),x===-1)if(T||X){x=N+1;break}else K("string");for(H=x;M.charCodeAt(H-1)===r;)H-=1,F=!F}while(F);B=["string",M.slice(N,x+1),N,x],N=x;break}case b:{v.lastIndex=N+1,v.test(M),v.lastIndex===0?x=M.length-1:x=v.lastIndex-2,B=["at-word",M.slice(N,x+1),N,x],N=x;break}case r:{for(x=N,U=!0;M.charCodeAt(x+1)===r;)x+=1,U=!U;if(D=M.charCodeAt(x+1),U&&D!==l&&D!==c&&D!==s&&D!==m&&D!==o&&D!==f&&(x+=1,y.test(M.charAt(x)))){for(;y.test(M.charAt(x+1));)x+=1;M.charCodeAt(x+1)===c&&(x+=1)}B=["word",M.slice(N,x+1),N,x],N=x;break}default:{D===l&&M.charCodeAt(N+1)===g?(x=M.indexOf("*/",N+2)+1,x===0&&(T||X?x=M.length:K("comment")),B=["comment",M.slice(N,x+1),N,x],N=x):(E.lastIndex=N+1,E.test(M),E.lastIndex===0?x=M.length-1:x=E.lastIndex-2,B=["word",M.slice(N,x+1),N,x],fe.push(B),N=x);break}}return N++,B}function we(A){ne.push(A)}return{back:we,endOfFile:le,nextToken:ve,position:_e}},hr}var fr,si;function Kr(){if(si)return fr;si=1;let e=xe();class t extends e{constructor(l){super(l),this.type="atrule"}append(...l){return this.proxyOf.nodes||(this.nodes=[]),super.append(...l)}prepend(...l){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...l)}}return fr=t,t.default=t,e.registerAtRule(t),fr}var dr,ii;function ze(){if(ii)return dr;ii=1;let e=xe(),t,r;class l extends e{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,f,m){let o=super.normalize(c);if(f){if(m==="prepend")this.nodes.length>1?f.raws.before=this.nodes[1].raws.before:delete f.raws.before;else if(this.first!==f)for(let d of o)d.raws.before=f.raws.before}return o}removeChild(c,f){let m=this.index(c);return!f&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(c)}toResult(c={}){return new t(new r,this,c).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},dr=l,l.default=l,e.registerRoot(l),dr}var pr,ni;function Ji(){if(ni)return pr;ni=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
`," "];return e.split(t,r)},split(t,r,l){let s=[],c="",f=!1,m=0,o=!1,d="",i=!1;for(let h of t)i?i=!1:h==="\\"?i=!0:o?h===d&&(o=!1):h==='"'||h==="'"?(o=!0,d=h):h==="("?m+=1:h===")"?m>0&&(m-=1):m===0&&r.includes(h)&&(f=!0),f?(c!==""&&s.push(c.trim()),c="",f=!1):c+=h;return(l||c!=="")&&s.push(c.trim()),s}};return pr=e,e.default=e,pr}var mr,oi;function es(){if(oi)return mr;oi=1;let e=xe(),t=Ji();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let c=this.selector?this.selector.match(/,\s*/):null,f=c?c[0]:","+this.raw("between","beforeOpen");this.selector=s.join(f)}}return mr=r,r.default=r,e.registerRule(r),mr}var gr,ai;function Bo(){if(ai)return gr;ai=1;let e=gt(),t=Uo(),r=wt(),l=Kr(),s=ze(),c=es(),f={empty:!0,space:!0};function m(d){for(let i=d.length-1;i>=0;i--){let h=d[i],a=h[3]||h[2];if(a)return a}}class o{constructor(i){this.input=i,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}atrule(i){let h=new l;h.name=i[1].slice(1),h.name===""&&this.unnamedAtrule(h,i),this.init(h,i[2]);let a,n,p,u=!1,g=!1,S=[],b=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),a=i[0],a==="("||a==="["?b.push(a==="("?")":"]"):a==="{"&&b.length>0?b.push("}"):a===b[b.length-1]&&b.pop(),b.length===0)if(a===";"){h.source.end=this.getPosition(i[2]),h.source.end.offset++,this.semicolon=!0;break}else if(a==="{"){g=!0;break}else if(a==="}"){if(S.length>0){for(p=S.length-1,n=S[p];n&&n[0]==="space";)n=S[--p];n&&(h.source.end=this.getPosition(n[3]||n[2]),h.source.end.offset++)}this.end(i);break}else S.push(i);else S.push(i);if(this.tokenizer.endOfFile()){u=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(h.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(h,"params",S),u&&(i=S[S.length-1],h.source.end=this.getPosition(i[3]||i[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),g&&(h.nodes=[],this.current=h)}checkMissedSemicolon(i){let h=this.colon(i);if(h===!1)return;let a=0,n;for(let p=h-1;p>=0&&(n=i[p],!(n[0]!=="space"&&(a+=1,a===2)));p--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(i){let h=0,a,n,p;for(let[u,g]of i.entries()){if(a=g,n=a[0],n==="("&&(h+=1),n===")"&&(h-=1),h===0&&n===":")if(!p)this.doubleColon(a);else{if(p[0]==="word"&&p[1]==="progid")continue;return u}p=a}return!1}comment(i){let h=new r;this.init(h,i[2]),h.source.end=this.getPosition(i[3]||i[2]),h.source.end.offset++;let a=i[1].slice(2,-2);if(/^\s*$/.test(a))h.text="",h.raws.left=a,h.raws.right="";else{let n=a.match(/^(\s*)([^]*\S)(\s*)$/);h.text=n[2],h.raws.left=n[1],h.raws.right=n[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(i,h){let a=new e;this.init(a,i[0][2]);let n=i[i.length-1];for(n[0]===";"&&(this.semicolon=!0,i.pop()),a.source.end=this.getPosition(n[3]||n[2]||m(i)),a.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),a.raws.before+=i.shift()[1];for(a.source.start=this.getPosition(i[0][2]),a.prop="";i.length;){let b=i[0][0];if(b===":"||b==="space"||b==="comment")break;a.prop+=i.shift()[1]}a.raws.between="";let p;for(;i.length;)if(p=i.shift(),p[0]===":"){a.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),a.raws.between+=p[1];(a.prop[0]==="_"||a.prop[0]==="*")&&(a.raws.before+=a.prop[0],a.prop=a.prop.slice(1));let u=[],g;for(;i.length&&(g=i[0][0],!(g!=="space"&&g!=="comment"));)u.push(i.shift());this.precheckMissedSemicolon(i);for(let b=i.length-1;b>=0;b--){if(p=i[b],p[1].toLowerCase()==="!important"){a.important=!0;let v=this.stringFrom(i,b);v=this.spacesFromEnd(i)+v,v!==" !important"&&(a.raws.important=v);break}else if(p[1].toLowerCase()==="important"){let v=i.slice(0),E="";for(let w=b;w>0;w--){let y=v[w][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(a.important=!0,a.raws.important=E,i=v)}if(p[0]!=="space"&&p[0]!=="comment")break}i.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(a.raws.between+=u.map(b=>b[1]).join(""),u=[]),this.raw(a,"value",u.concat(i),h),a.value.includes(":")&&!h&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let h=new c;this.init(h,i[2]),h.selector="",h.raws.between="",this.current=h}end(i){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(i[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(i)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(i){if(this.spaces+=i[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(i){let h=this.input.fromOffset(i);return{column:h.col,line:h.line,offset:i}}init(i,h){this.current.push(i),i.source={input:this.input,start:this.getPosition(h)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let h=!1,a=null,n=!1,p=null,u=[],g=i[1].startsWith("--"),S=[],b=i;for(;b;){if(a=b[0],S.push(b),a==="("||a==="[")p||(p=b),u.push(a==="("?")":"]");else if(g&&n&&a==="{")p||(p=b),u.push("}");else if(u.length===0)if(a===";")if(n){this.decl(S,g);return}else break;else if(a==="{"){this.rule(S);return}else if(a==="}"){this.tokenizer.back(S.pop()),h=!0;break}else a===":"&&(n=!0);else a===u[u.length-1]&&(u.pop(),u.length===0&&(p=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),u.length>0&&this.unclosedBracket(p),h&&n){if(!g)for(;S.length&&(b=S[S.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,g)}else this.unknownWord(S)}parse(){let i;for(;!this.tokenizer.endOfFile();)switch(i=this.tokenizer.nextToken(),i[0]){case"space":this.spaces+=i[1];break;case";":this.freeSemicolon(i);break;case"}":this.end(i);break;case"comment":this.comment(i);break;case"at-word":this.atrule(i);break;case"{":this.emptyRule(i);break;default:this.other(i);break}this.endFile()}precheckMissedSemicolon(){}raw(i,h,a,n){let p,u,g=a.length,S="",b=!0,v,E;for(let w=0;w<g;w+=1)p=a[w],u=p[0],u==="space"&&w===g-1&&!n?b=!1:u==="comment"?(E=a[w-1]?a[w-1][0]:"empty",v=a[w+1]?a[w+1][0]:"empty",!f[E]&&!f[v]?S.slice(-1)===","?b=!1:S+=p[1]:b=!1):S+=p[1];if(!b){let w=a.reduce((y,C)=>y+C[1],"");i.raws[h]={raw:w,value:S}}i[h]=S}rule(i){i.pop();let h=new c;this.init(h,i[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(h,"selector",i),this.current=h}spacesAndCommentsFromEnd(i){let h,a="";for(;i.length&&(h=i[i.length-1][0],!(h!=="space"&&h!=="comment"));)a=i.pop()[1]+a;return a}spacesAndCommentsFromStart(i){let h,a="";for(;i.length&&(h=i[0][0],!(h!=="space"&&h!=="comment"));)a+=i.shift()[1];return a}spacesFromEnd(i){let h,a="";for(;i.length&&(h=i[i.length-1][0],h==="space");)a=i.pop()[1]+a;return a}stringFrom(i,h){let a="";for(let n=h;n<i.length;n++)a+=i[n][1];return i.splice(h,i.length-h),a}unclosedBlock(){let i=this.current.source.start;throw this.input.error("Unclosed block",i.line,i.column)}unclosedBracket(i){throw this.input.error("Unclosed bracket",{offset:i[2]},{offset:i[2]+1})}unexpectedClose(i){throw this.input.error("Unexpected }",{offset:i[2]},{offset:i[2]+1})}unknownWord(i){throw this.input.error("Unknown word",{offset:i[0][2]},{offset:i[0][2]+i[0][1].length})}unnamedAtrule(i,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return gr=o,gr}var yr,li;function ts(){if(li)return yr;li=1;let e=xe(),t=Bo(),r=yt();function l(s,c){let f=new r(s,c),m=new t(f);try{m.parse()}catch(o){throw o}return m.root}return yr=l,l.default=l,e.registerParse(l),yr}var wr,ui;function Qi(){if(ui)return wr;ui=1;let{isClean:e,my:t}=Jr(),r=Hi(),l=pt(),s=xe(),c=Qr(),f=Yi(),m=Zr(),o=ts(),d=ze(),i={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={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},a={Once:!0,postcssPlugin:!0,prepare:!0},n=0;function p(E){return typeof E=="object"&&typeof E.then=="function"}function u(E){let w=!1,y=i[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[y,y+"-"+w,n,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:E.append?[y,n,y+"Exit"]:[y,y+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",n,"DocumentExit"]:E.type==="root"?w=["Root",n,"RootExit"]:w=u(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function S(E){return E[e]=!1,E.nodes&&E.nodes.forEach(w=>S(w)),E}let b={};class v{constructor(w,y,C){this.stringified=!1,this.processed=!1;let R;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))R=S(y);else if(y instanceof v||y instanceof m)R=S(y.root),y.map&&(typeof C.map>"u"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=y.map);else{let O=o;C.syntax&&(O=C.syntax.parse),C.parser&&(O=C.parser),O.parse&&(O=O.parse);try{R=O(y,C)}catch(M){this.processed=!0,this.error=M}R&&!R[t]&&s.rebuild(R)}this.result=new m(w,R,C),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(O=>typeof O=="object"&&O.prepare?{...O,...O.prepare(this.result)}:O)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let C=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=C.postcssPlugin,w.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(y,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([y,R])};for(let y of this.plugins)if(typeof y=="object")for(let C in y){if(!h[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!a[C])if(typeof y[C]=="object")for(let R in y[C])R==="*"?w(y,C,y[C][R]):w(y,C+"-"+R.toLowerCase(),y[C][R]);else typeof y[C]=="function"&&w(y,C,y[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],C=this.runOnRoot(y);if(p(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[g(w)];for(;y.length>0;){let C=this.visitTick(y);if(p(C))try{await C}catch(R){let O=y[y.length-1].node;throw this.handleError(R,O)}}}if(this.listeners.OnceExit)for(let[y,C]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let R=w.nodes.map(O=>C(O,this.helpers));await Promise.all(R)}else await C(w,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(C=>w.Once(C,this.helpers));return p(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=l;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let R=new r(y,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[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 w of this.plugins){let y=this.runOnRoot(w);if(p(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[C,R]of w){this.result.lastPlugin=C;let O;try{O=R(y,this.helpers)}catch(M){throw this.handleError(M,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(p(O))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:C,visitors:R}=y;if(C.type!=="root"&&C.type!=="document"&&!C.parent){w.pop();return}if(R.length>0&&y.visitorIndex<R.length){let[M,T]=R[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===R.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=M;try{return T(C.toProxy(),this.helpers)}catch(D){throw this.handleError(D,C)}}if(y.iterator!==0){let M=y.iterator,T;for(;T=C.nodes[C.indexes[M]];)if(C.indexes[M]+=1,!T[e]){T[e]=!0,w.push(g(T));return}y.iterator=0,delete C.indexes[M]}let O=y.events;for(;y.eventIndex<O.length;){let M=O[y.eventIndex];if(y.eventIndex+=1,M===n){C.nodes&&C.nodes.length&&(C[e]=!0,y.iterator=C.getIterator());return}else if(this.listeners[M]){y.visitors=this.listeners[M];return}}w.pop()}walkSync(w){w[e]=!0;let y=u(w);for(let C of y)if(C===n)w.nodes&&w.each(R=>{R[e]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,w.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"}}return v.registerPostcss=E=>{b=E},wr=v,v.default=v,d.registerLazyResult(v),c.registerLazyResult(v),wr}var br,ci;function $o(){if(ci)return br;ci=1;let e=Hi(),t=pt(),r=Yi(),l=ts(),s=Zr();class c{constructor(m,o,d){o=o.toString(),this.stringified=!1,this._processor=m,this._css=o,this._opts=d,this._map=void 0;let i,h=t;this.result=new s(this._processor,i,this._opts),this.result.css=o;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let n=new e(h,i,this._opts,o);if(n.isMap()){let[p,u]=n.generate();p&&(this.result.css=p),u&&(this.result.map=u)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(m){return this.async().catch(m)}finally(m){return this.async().then(m,m)}sync(){if(this.error)throw this.error;return this.result}then(m,o){return this.async().then(m,o)}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 m,o=l;try{m=o(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=m,m}get[Symbol.toStringTag](){return"NoWorkResult"}}return br=c,c.default=c,br}var vr,hi;function Wo(){if(hi)return vr;hi=1;let e=$o(),t=Qi(),r=Qr(),l=ze();class s{constructor(f=[]){this.version="8.4.38",this.plugins=this.normalize(f)}normalize(f){let m=[];for(let o of f)if(o.postcss===!0?o=o():o.postcss&&(o=o.postcss),typeof o=="object"&&Array.isArray(o.plugins))m=m.concat(o.plugins);else if(typeof o=="object"&&o.postcssPlugin)m.push(o);else if(typeof o=="function")m.push(o);else if(!(typeof o=="object"&&(o.parse||o.stringify)))throw new Error(o+" is not a PostCSS plugin");return m}process(f,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,f,m):new t(this,f,m)}use(f){return this.plugins=this.plugins.concat(this.normalize([f])),this}}return vr=s,s.default=s,l.registerProcessor(s),r.registerProcessor(s),vr}var Sr,fi;function zo(){if(fi)return Sr;fi=1;let e=gt(),t=Gi(),r=wt(),l=Kr(),s=yt(),c=ze(),f=es();function m(o,d){if(Array.isArray(o))return o.map(a=>m(a));let{inputs:i,...h}=o;if(i){d=[];for(let a of i){let n={...a,__proto__:s.prototype};n.map&&(n.map={...n.map,__proto__:t.prototype}),d.push(n)}}if(h.nodes&&(h.nodes=o.nodes.map(a=>m(a,d))),h.source){let{inputId:a,...n}=h.source;h.source=n,a!=null&&(h.source.input=d[a])}if(h.type==="root")return new c(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new f(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new l(h);throw new Error("Unknown node type: "+o.type)}return Sr=m,m.default=m,Sr}var Cr,di;function qo(){if(di)return Cr;di=1;let e=Xr(),t=gt(),r=Qi(),l=xe(),s=Wo(),c=pt(),f=zo(),m=Qr(),o=Xi(),d=wt(),i=Kr(),h=Zr(),a=yt(),n=ts(),p=Ji(),u=es(),g=ze(),S=mt();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new s(v)}return b.plugin=function(E,w){let y=!1;function C(...O){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(E+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
https://www.w3ctech.com/topic/2226`));let M=w(...O);return M.postcssPlugin=E,M.postcssVersion=new s().version,M}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(O,M,T){return b([C(T)]).process(O,M)},C},b.stringify=c,b.parse=n,b.fromJSON=f,b.list=p,b.comment=v=>new d(v),b.atRule=v=>new i(v),b.decl=v=>new t(v),b.rule=v=>new u(v),b.root=v=>new g(v),b.document=v=>new m(v),b.CssSyntaxError=e,b.Declaration=t,b.Container=l,b.Processor=s,b.Document=m,b.Comment=d,b.Warning=o,b.AtRule=i,b.Result=h,b.Input=a,b.Rule=u,b.Root=g,b.Node=S,r.registerPostcss(b),Cr=b,b.default=b,Cr}var Vo=qo(),V=To(Vo);V.stringify;V.fromJSON;V.plugin;V.parse;V.list;V.document;V.comment;V.atRule;V.rule;V.decl;V.root;V.CssSyntaxError;V.Declaration;V.Container;V.Processor;V.Document;V.Comment;V.Warning;V.AtRule;V.Result;V.Input;V.Rule;V.Root;V.Node;var Or=class e{constructor(...t){oe(this,"parentElement",null),oe(this,"parentNode",null),oe(this,"ownerDocument"),oe(this,"firstChild",null),oe(this,"lastChild",null),oe(this,"previousSibling",null),oe(this,"nextSibling",null),oe(this,"ELEMENT_NODE",1),oe(this,"TEXT_NODE",3),oe(this,"nodeType"),oe(this,"nodeName"),oe(this,"RRNodeType")}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};var pi={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},mi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Je={},Zi={},jo=()=>!!globalThis.Zone;function rs(e){if(Je[e])return Je[e];let t=globalThis[e],r=t.prototype,l=e in pi?pi[e]:void 0,s=!!(l&&l.every(m=>{var o,d;return!!((d=(o=Object.getOwnPropertyDescriptor(r,m))==null?void 0:o.get)!=null&&d.toString().includes("[native code]"))})),c=e in mi?mi[e]:void 0,f=!!(c&&c.every(m=>{var o;return typeof r[m]=="function"&&((o=r[m])==null?void 0:o.toString().includes("[native code]"))}));if(s&&f&&!jo())return Je[e]=t.prototype,t.prototype;try{let m=document.createElement("iframe");m.style.display="none",document.body.appendChild(m);let o=m.contentWindow;if(!o)return t.prototype;let d=o[e].prototype;if(!d)return m.remove(),r;let i=navigator.userAgent;return i.includes("Safari")&&!i.includes("Chrome")?(m.classList.add("rr-block"),m.setAttribute("__rrwebUntaintedMutationObserver",""),Zi[e]=()=>m.remove()):m.remove(),Je[e]=d}catch{return r}}var Er={};function ge(e,t,r){var l;let s=`${e}.${String(r)}`;if(Er[s])return Er[s].call(t);let c=rs(e),f=(l=Object.getOwnPropertyDescriptor(c,r))==null?void 0:l.get;return f?(Er[s]=f,f.call(t)):t[r]}var xr={};function Ki(e,t,r){let l=`${e}.${String(r)}`;if(xr[l])return xr[l].bind(t);let c=rs(e)[r];return typeof c!="function"?t[r]:(xr[l]=c,c.bind(t))}function Go(e){return ge("Node",e,"ownerDocument")}function Ho(e){return ge("Node",e,"childNodes")}function Yo(e){return ge("Node",e,"parentNode")}function Xo(e){return ge("Node",e,"parentElement")}function Jo(e){return ge("Node",e,"textContent")}function Qo(e,t){return Ki("Node",e,"contains")(t)}function Zo(e){return Ki("Node",e,"getRootNode")()}function Ko(e){return!e||!("host"in e)?null:ge("ShadowRoot",e,"host")}function ea(e){return e.styleSheets}function ta(e){return!e||!("shadowRoot"in e)?null:ge("Element",e,"shadowRoot")}function ra(e,t){return ge("Element",e,"querySelector")(t)}function sa(e,t){return ge("Element",e,"querySelectorAll")(t)}function en(){return[rs("MutationObserver").constructor,Zi.MutationObserver??(()=>{})]}var Be=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Be=()=>new Date().getTime());function Re(e,t,r){try{if(!(t in e))return()=>{};let l=e[t],s=r(l);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:l}})),e[t]=s,()=>{e[t]=l}}catch{return()=>{}}}var _={ownerDocument:Go,childNodes:Ho,parentNode:Yo,parentElement:Xo,textContent:Jo,contains:Qo,getRootNode:Zo,host:Ko,styleSheets:ea,shadowRoot:ta,querySelector:ra,querySelectorAll:sa,nowTimestamp:Be,mutationObserverCtor:en,patch:Re};function ee(e,t,r=document){let l={capture:!0,passive:!0};return r.addEventListener(e,t,l),()=>r.removeEventListener(e,t,l)}var Ne=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`,gi={map:{},getId(){return console.error(Ne),-1},getNode(){return console.error(Ne),null},removeNodeFromMap(){console.error(Ne)},has(){return console.error(Ne),!1},reset(){console.error(Ne)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(gi=new Proxy(gi,{get(e,t,r){return t==="map"&&console.error(Ne),Reflect.get(e,t,r)}}));function $e(e,t,r={}){let l=null,s=0;return function(...c){let f=Date.now();!s&&r.leading===!1&&(s=f);let m=t-(f-s),o=this;m<=0||m>t?(l&&(clearTimeout(l),l=null),s=f,e.apply(o,c)):!l&&r.trailing!==!1&&(l=setTimeout(()=>{s=r.leading===!1?0:Date.now(),l=null,e.apply(o,c)},m))}}function bt(e,t,r,l,s=window){let c=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,l?r:{set(f){setTimeout(()=>{r.set.call(this,f)},0),c&&c.set&&c.set.call(this,f)}}),()=>bt(e,t,c||{},!0)}function tn(e){var t,r,l,s;let c=e.document;return{left:c.scrollingElement?c.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:c.documentElement.scrollLeft||c?.body&&((t=_.parentElement(c.body))==null?void 0:t.scrollLeft)||((r=c?.body)==null?void 0:r.scrollLeft)||0,top:c.scrollingElement?c.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:c?.documentElement.scrollTop||c?.body&&((l=_.parentElement(c.body))==null?void 0:l.scrollTop)||((s=c?.body)==null?void 0:s.scrollTop)||0}}function rn(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function sn(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function nn(e){return e?e.nodeType===e.ELEMENT_NODE?e:_.parentElement(e):null}function te(e,t,r,l){if(!e)return!1;let s=nn(e);if(!s)return!1;try{if(typeof t=="string"){if(s.classList.contains(t)||l&&s.closest("."+t)!==null)return!0}else if(nt(s,t,l))return!0}catch{}return!!(r&&(s.matches(r)||l&&s.closest(r)!==null))}function ia(e,t){return t.getId(e)!==-1}function Rr(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===Ue}function on(e,t){if(Pe(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let l=_.parentNode(e);return l&&l.nodeType===e.DOCUMENT_NODE?!1:l?on(l,t):!0}function Ir(e){return!!e.changedTouches}function na(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function an(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function ln(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Dr(e){return e?e instanceof Or&&"shadowRoot"in e?!!e.shadowRoot:!!_.shadowRoot(e):!1}var Ar=class{constructor(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let l;return r===void 0?l=this.id++:l=r,this.styleIDMap.set(t,l),this.idStyleMap.set(l,t),l}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function un(e){var t;let r=null;return"getRootNode"in e&&((t=_.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&_.host(_.getRootNode(e))&&(r=_.host(_.getRootNode(e))),r}function oa(e){let t=e,r;for(;r=un(t);)t=r;return t}function aa(e){let t=_.ownerDocument(e);if(!t)return!1;let r=oa(e);return _.contains(t,r)}function cn(e){let t=_.ownerDocument(e);return t?_.contains(t,e)||aa(e):!1}var L=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(L||{}),k=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(k||{}),re=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(re||{}),pe=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(pe||{}),Te=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Te||{}),Oe=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Oe||{});var hn=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(hn||{});function yi(e){return"__ln"in e}var Tr=class{constructor(){I(this,"length",0),I(this,"head",null),I(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let l=0;l<t;l++)r=r?.next||null;return r}addNode(t){let r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&yi(t.previousSibling)){let l=t.previousSibling.__ln.next;r.next=l,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,l&&(l.previous=r)}else if(t.nextSibling&&yi(t.nextSibling)&&t.nextSibling.__ln.previous){let l=t.nextSibling.__ln.previous;r.previous=l,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,l&&(l.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){let r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}},wi=(e,t)=>`${e}@${t}`,_r=class{constructor(){I(this,"frozen",!1),I(this,"locked",!1),I(this,"texts",[]),I(this,"attributes",[]),I(this,"attributeMap",new WeakMap),I(this,"removes",[]),I(this,"mapRemoves",[]),I(this,"movedMap",{}),I(this,"addedSet",new Set),I(this,"movedSet",new Set),I(this,"droppedSet",new Set),I(this,"removesSubTreeCache",new Set),I(this,"mutationCb"),I(this,"blockClass"),I(this,"blockSelector"),I(this,"maskTextClass"),I(this,"maskTextSelector"),I(this,"inlineStylesheet"),I(this,"maskInputOptions"),I(this,"maskTextFn"),I(this,"maskInputFn"),I(this,"keepIframeSrcFn"),I(this,"recordCanvas"),I(this,"inlineImages"),I(this,"slimDOMOptions"),I(this,"dataURLOptions"),I(this,"doc"),I(this,"mirror"),I(this,"iframeManager"),I(this,"stylesheetManager"),I(this,"shadowDomManager"),I(this,"canvasManager"),I(this,"processedNodeManager"),I(this,"unattachedDoc"),I(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),I(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set,l=new Tr,s=o=>{let d=o,i=Ue;for(;i===Ue;)d=d&&d.nextSibling,i=d&&this.mirror.getId(d);return i},c=o=>{let d=_.parentNode(o);if(!d||!cn(o))return;let i=!1;if(o.nodeType===Node.TEXT_NODE){let p=d.tagName;if(p==="TEXTAREA")return;p==="STYLE"&&this.addedSet.has(d)&&(i=!0)}let h=Pe(d)?this.mirror.getId(un(o)):this.mirror.getId(d),a=s(o);if(h===-1||a===-1)return l.addNode(o);let n=De(o,{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:p=>{an(p,this.mirror)&&this.iframeManager.addIframe(p),ln(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),Dr(o)&&this.shadowDomManager.addShadowRoot(_.shadowRoot(o),this.doc)},onIframeLoad:(p,u)=>{this.iframeManager.attachIframe(p,u),this.shadowDomManager.observeAttachShadow(p)},onStylesheetLoad:(p,u)=>{this.stylesheetManager.attachLinkElement(p,u)},cssCaptured:i});n&&(t.push({parentId:h,nextId:a,node:n}),r.add(n.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let o of this.movedSet)bi(this.removesSubTreeCache,o,this.mirror)&&!this.movedSet.has(_.parentNode(o))||c(o);for(let o of this.addedSet)!vi(this.droppedSet,o)&&!bi(this.removesSubTreeCache,o,this.mirror)||vi(this.movedSet,o)?c(o):this.droppedSet.add(o);let f=null;for(;l.length;){let o=null;if(f){let d=this.mirror.getId(_.parentNode(f.value)),i=s(f.value);d!==-1&&i!==-1&&(o=f)}if(!o){let d=l.tail;for(;d;){let i=d;if(d=d.previous,i){let h=this.mirror.getId(_.parentNode(i.value));if(s(i.value)===-1)continue;if(h!==-1){o=i;break}else{let n=i.value,p=_.parentNode(n);if(p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let u=_.host(p);if(this.mirror.getId(u)!==-1){o=i;break}}}}}}if(!o){for(;l.head;)l.removeNode(l.head.value);break}f=o.previous,l.removeNode(o.value),c(o.value)}let m={texts:this.texts.map(o=>{let d=o.node,i=_.parentNode(d);return i&&i.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(i),{id:this.mirror.getId(d),value:o.value}}).filter(o=>!r.has(o.id)).filter(o=>this.mirror.has(o.id)),attributes:this.attributes.map(o=>{let{attributes:d}=o;if(typeof d.style=="string"){let i=JSON.stringify(o.styleDiff),h=JSON.stringify(o._unchangedStyles);i.length<d.style.length&&(i+h).split("var(").length===d.style.split("var(").length&&(d.style=o.styleDiff)}return{id:this.mirror.getId(o.node),attributes:d}}).filter(o=>!r.has(o.id)).filter(o=>this.mirror.has(o.id)),removes:this.removes,adds:t};!m.texts.length&&!m.attributes.length&&!m.removes.length&&!m.adds.length||(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(m))}),I(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let l=Array.from(_.childNodes(t),s=>_.textContent(s)||"").join("");r.attributes.value=rt({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:st(t),value:l,maskInputFn:this.maskInputFn})}),I(this,"processMutation",t=>{if(!Rr(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=_.textContent(t.target);!te(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Li(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,nn(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,l=t.attributeName,s=t.target.getAttribute(l);if(l==="value"){let f=st(r);s=rt({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:f,value:s,maskInputFn:this.maskInputFn})}if(te(t.target,this.blockClass,this.blockSelector,!1)||s===t.oldValue)return;let c=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&l==="src"&&!this.keepIframeSrcFn(s))if(!r.contentDocument)l="rr_src";else return;if(c||(c={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(c),this.attributeMap.set(t.target,c)),l==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Pi(r.tagName,l))if(c.attributes[l]=ki(this.doc,Ce(r.tagName),Ce(l),s),l==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let f=this.unattachedDoc.createElement("span");t.oldValue&&f.setAttribute("style",t.oldValue);for(let m of Array.from(r.style)){let o=r.style.getPropertyValue(m),d=r.style.getPropertyPriority(m);o!==f.style.getPropertyValue(m)||d!==f.style.getPropertyPriority(m)?d===""?c.styleDiff[m]=o:c.styleDiff[m]=[o,d]:c._unchangedStyles[m]=[o,d]}for(let m of Array.from(f.style))r.style.getPropertyValue(m)===""&&(c.styleDiff[m]=!1)}else l==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?c.attributes.rr_open_mode="modal":c.attributes.rr_open_mode="non-modal");break}case"childList":{if(te(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let l=this.mirror.getId(r),s=Pe(t.target)?this.mirror.getId(_.host(t.target)):this.mirror.getId(t.target);te(t.target,this.blockClass,this.blockSelector,!1)||Rr(r,this.mirror,this.slimDOMOptions)||!ia(r,this.mirror)||(this.addedSet.has(r)?(kr(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&l===-1||on(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[wi(l,s)]?kr(this.movedSet,r):(this.removes.push({parentId:s,id:l,isShadow:Pe(t.target)&&Le(t.target)?!0:void 0}),la(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),I(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Rr(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let l=null;r&&this.mirror.hasNode(r)&&(l=this.mirror.getId(r)),l&&l!==-1&&(this.movedMap[wi(this.mirror.getId(t),l)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);te(t,this.blockClass,this.blockSelector,!1)||(_.childNodes(t).forEach(l=>this.genAdds(l)),Dr(t)&&_.childNodes(_.shadowRoot(t)).forEach(l=>{this.processedNodeManager.add(l,this),this.genAdds(l,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}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 kr(e,t){e.delete(t),_.childNodes(t).forEach(r=>kr(e,r))}function la(e,t){let r=[e];for(;r.length;){let l=r.pop();t.has(l)||(t.add(l),_.childNodes(l).forEach(s=>r.push(s)))}}function bi(e,t,r){return e.size===0?!1:ua(e,t)}function ua(e,t,r){let l=_.parentNode(t);return l?e.has(l):!1}function vi(e,t){return e.size===0?!1:fn(e,t)}function fn(e,t){let r=_.parentNode(t);return r?e.has(r)?!0:fn(e,r):!1}var Fe;function ca(e){Fe=e}function ha(){Fe=void 0}var P=e=>Fe?(...r)=>{try{return e(...r)}catch(l){if(Fe&&Fe(l)===!0)return;throw l}}:e,Se=[];function qe(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function dn(e,t){let r=new _r;Se.push(r),r.init(e);let[l,s]=en(),c=new l(P(r.processMutations.bind(r)));return c.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[c,s]}function fa({mousemoveCb:e,sampling:t,doc:r,mirror:l}){if(t.mousemove===!1)return()=>{};let s=typeof t.mousemove=="number"?t.mousemove:50,c=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,f=[],m,o=$e(P(h=>{let a=Date.now()-m;e(f.map(n=>(n.timeOffset-=a,n)),h),f=[],m=null}),c),d=P($e(P(h=>{let a=qe(h),{clientX:n,clientY:p}=Ir(h)?h.changedTouches[0]:h;m||(m=Be()),f.push({x:n,y:p,id:l.getId(a),timeOffset:Be()-m}),o(typeof DragEvent<"u"&&h instanceof DragEvent?k.Drag:h instanceof MouseEvent?k.MouseMove:k.TouchMove)}),s,{trailing:!1})),i=[ee("mousemove",d,r),ee("touchmove",d,r),ee("drag",d,r)];return P(()=>{i.forEach(h=>h())})}function da({mouseInteractionCb:e,doc:t,mirror:r,blockClass:l,blockSelector:s,sampling:c}){if(c.mouseInteraction===!1)return()=>{};let f=c.mouseInteraction===!0||c.mouseInteraction===void 0?{}:c.mouseInteraction,m=[],o=null,d=i=>h=>{let a=qe(h);if(te(a,l,s,!0))return;let n=null,p=i;if("pointerType"in h){switch(h.pointerType){case"mouse":n=pe.Mouse;break;case"touch":n=pe.Touch;break;case"pen":n=pe.Pen;break}n===pe.Touch?re[i]===re.MouseDown?p="TouchStart":re[i]===re.MouseUp&&(p="TouchEnd"):pe.Pen}else Ir(h)&&(n=pe.Touch);n!==null?(o=n,(p.startsWith("Touch")&&n===pe.Touch||p.startsWith("Mouse")&&n===pe.Mouse)&&(n=null)):re[i]===re.Click&&(n=o,o=null);let u=Ir(h)?h.changedTouches[0]:h;if(!u)return;let g=r.getId(a),{clientX:S,clientY:b}=u;P(e)({type:re[p],id:g,x:S,y:b,...n!==null&&{pointerType:n}})};return Object.keys(re).filter(i=>Number.isNaN(Number(i))&&!i.endsWith("_Departed")&&f[i]!==!1).forEach(i=>{let h=Ce(i),a=d(i);if(window.PointerEvent)switch(re[i]){case re.MouseDown:case re.MouseUp:h=h.replace("mouse","pointer");break;case re.TouchStart:case re.TouchEnd:return}m.push(ee(h,a,t))}),P(()=>{m.forEach(i=>i())})}function pn({scrollCb:e,doc:t,mirror:r,blockClass:l,blockSelector:s,sampling:c}){let f=P($e(P(m=>{let o=qe(m);if(!o||te(o,l,s,!0))return;let d=r.getId(o);if(o===t&&t.defaultView){let i=tn(t.defaultView);e({id:d,x:i.left,y:i.top})}else e({id:d,x:o.scrollLeft,y:o.scrollTop})}),c.scroll||100));return ee("scroll",f,t)}function pa({viewportResizeCb:e},{win:t}){let r=-1,l=-1,s=P($e(P(()=>{let c=rn(),f=sn();(r!==c||l!==f)&&(e({width:Number(f),height:Number(c)}),r=c,l=f)}),200));return ee("resize",s,t)}var ma=["INPUT","TEXTAREA","SELECT"],Si=new WeakMap;function ga({inputCb:e,doc:t,mirror:r,blockClass:l,blockSelector:s,ignoreClass:c,ignoreSelector:f,maskInputOptions:m,maskInputFn:o,sampling:d,userTriggeredOnInput:i}){function h(b){let v=qe(b),E=b.isTrusted,w=v&&v.tagName;if(v&&w==="OPTION"&&(v=_.parentElement(v)),!v||!w||ma.indexOf(w)<0||te(v,l,s,!0)||v.classList.contains(c)||f&&v.matches(f))return;let y=v.value,C=!1,R=st(v)||"";R==="radio"||R==="checkbox"?C=v.checked:(m[w.toLowerCase()]||m[R])&&(y=rt({element:v,maskInputOptions:m,tagName:w,type:R,value:y,maskInputFn:o})),a(v,i?{text:y,isChecked:C,userTriggered:E}:{text:y,isChecked:C});let O=v.name;R==="radio"&&O&&C&&t.querySelectorAll(`input[type="radio"][name="${O}"]`).forEach(M=>{if(M!==v){let T=M.value;a(M,i?{text:T,isChecked:!C,userTriggered:!1}:{text:T,isChecked:!C})}})}function a(b,v){let E=Si.get(b);if(!E||E.text!==v.text||E.isChecked!==v.isChecked){Si.set(b,v);let w=r.getId(b);P(e)({...v,id:w})}}let p=(d.input==="last"?["change"]:["input","change"]).map(b=>ee(b,P(h),t)),u=t.defaultView;if(!u)return()=>{p.forEach(b=>b())};let g=u.Object.getOwnPropertyDescriptor(u.HTMLInputElement.prototype,"value"),S=[[u.HTMLInputElement.prototype,"value"],[u.HTMLInputElement.prototype,"checked"],[u.HTMLSelectElement.prototype,"value"],[u.HTMLTextAreaElement.prototype,"value"],[u.HTMLSelectElement.prototype,"selectedIndex"],[u.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&p.push(...S.map(b=>bt(b[0],b[1],{set(){P(h)({target:this,isTrusted:!1})}},!1,u))),P(()=>{p.forEach(b=>b())})}function ot(e){let t=[];function r(l,s){if(Qe("CSSGroupingRule")&&l.parentRule instanceof CSSGroupingRule||Qe("CSSMediaRule")&&l.parentRule instanceof CSSMediaRule||Qe("CSSSupportsRule")&&l.parentRule instanceof CSSSupportsRule||Qe("CSSConditionRule")&&l.parentRule instanceof CSSConditionRule){let f=Array.from(l.parentRule.cssRules).indexOf(l);return s.unshift(f),r(l.parentRule,s)}else if(l.parentStyleSheet){let f=Array.from(l.parentStyleSheet.cssRules).indexOf(l);s.unshift(f)}return s}return r(e,t)}function be(e,t,r){let l,s;return e?(e.ownerNode?l=t.getId(e.ownerNode):s=r.getId(e),{styleId:s,id:l}):{}}function ya({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:l}){if(!l.CSSStyleSheet||!l.CSSStyleSheet.prototype)return()=>{};let s=l.CSSStyleSheet.prototype.insertRule;l.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:P((i,h,a)=>{let[n,p]=a,{id:u,styleId:g}=be(h,t,r.styleMirror);return(u&&u!==-1||g&&g!==-1)&&e({id:u,styleId:g,adds:[{rule:n,index:p}]}),i.apply(h,a)})}),l.CSSStyleSheet.prototype.addRule=function(i,h,a=this.cssRules.length){let n=`${i} { ${h} }`;return l.CSSStyleSheet.prototype.insertRule.apply(this,[n,a])};let c=l.CSSStyleSheet.prototype.deleteRule;l.CSSStyleSheet.prototype.deleteRule=new Proxy(c,{apply:P((i,h,a)=>{let[n]=a,{id:p,styleId:u}=be(h,t,r.styleMirror);return(p&&p!==-1||u&&u!==-1)&&e({id:p,styleId:u,removes:[{index:n}]}),i.apply(h,a)})}),l.CSSStyleSheet.prototype.removeRule=function(i){return l.CSSStyleSheet.prototype.deleteRule.apply(this,[i])};let f;l.CSSStyleSheet.prototype.replace&&(f=l.CSSStyleSheet.prototype.replace,l.CSSStyleSheet.prototype.replace=new Proxy(f,{apply:P((i,h,a)=>{let[n]=a,{id:p,styleId:u}=be(h,t,r.styleMirror);return(p&&p!==-1||u&&u!==-1)&&e({id:p,styleId:u,replace:n}),i.apply(h,a)})}));let m;l.CSSStyleSheet.prototype.replaceSync&&(m=l.CSSStyleSheet.prototype.replaceSync,l.CSSStyleSheet.prototype.replaceSync=new Proxy(m,{apply:P((i,h,a)=>{let[n]=a,{id:p,styleId:u}=be(h,t,r.styleMirror);return(p&&p!==-1||u&&u!==-1)&&e({id:p,styleId:u,replaceSync:n}),i.apply(h,a)})}));let o={};Ze("CSSGroupingRule")?o.CSSGroupingRule=l.CSSGroupingRule:(Ze("CSSMediaRule")&&(o.CSSMediaRule=l.CSSMediaRule),Ze("CSSConditionRule")&&(o.CSSConditionRule=l.CSSConditionRule),Ze("CSSSupportsRule")&&(o.CSSSupportsRule=l.CSSSupportsRule));let d={};return Object.entries(o).forEach(([i,h])=>{d[i]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=new Proxy(d[i].insertRule,{apply:P((a,n,p)=>{let[u,g]=p,{id:S,styleId:b}=be(n.parentStyleSheet,t,r.styleMirror);return(S&&S!==-1||b&&b!==-1)&&e({id:S,styleId:b,adds:[{rule:u,index:[...ot(n),g||0]}]}),a.apply(n,p)})}),h.prototype.deleteRule=new Proxy(d[i].deleteRule,{apply:P((a,n,p)=>{let[u]=p,{id:g,styleId:S}=be(n.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||S&&S!==-1)&&e({id:g,styleId:S,removes:[{index:[...ot(n),u]}]}),a.apply(n,p)})})}),P(()=>{l.CSSStyleSheet.prototype.insertRule=s,l.CSSStyleSheet.prototype.deleteRule=c,f&&(l.CSSStyleSheet.prototype.replace=f),m&&(l.CSSStyleSheet.prototype.replaceSync=m),Object.entries(o).forEach(([i,h])=>{h.prototype.insertRule=d[i].insertRule,h.prototype.deleteRule=d[i].deleteRule})})}function mn({mirror:e,stylesheetManager:t},r){var l,s,c;let f=null;r.nodeName==="#document"?f=e.getId(r):f=e.getId(_.host(r));let m=r.nodeName==="#document"?(l=r.defaultView)==null?void 0:l.Document:(c=(s=r.ownerDocument)==null?void 0:s.defaultView)==null?void 0:c.ShadowRoot,o=m?.prototype?Object.getOwnPropertyDescriptor(m?.prototype,"adoptedStyleSheets"):void 0;return f===null||f===-1||!m||!o?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){var d;return(d=o.get)==null?void 0:d.call(this)},set(d){var i;let h=(i=o.set)==null?void 0:i.call(this,d);if(f!==null&&f!==-1)try{t.adoptStyleSheets(d,f)}catch{}return h}}),P(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function wa({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:l},{win:s}){let c=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(c,{apply:P((m,o,d)=>{var i;let[h,a,n]=d;if(r.has(h))return c.apply(o,[h,a,n]);let{id:p,styleId:u}=be((i=o.parentRule)==null?void 0:i.parentStyleSheet,t,l.styleMirror);return(p&&p!==-1||u&&u!==-1)&&e({id:p,styleId:u,set:{property:h,value:a,priority:n},index:ot(o.parentRule)}),m.apply(o,d)})});let f=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(f,{apply:P((m,o,d)=>{var i;let[h]=d;if(r.has(h))return f.apply(o,[h]);let{id:a,styleId:n}=be((i=o.parentRule)==null?void 0:i.parentStyleSheet,t,l.styleMirror);return(a&&a!==-1||n&&n!==-1)&&e({id:a,styleId:n,remove:{property:h},index:ot(o.parentRule)}),m.apply(o,d)})}),P(()=>{s.CSSStyleDeclaration.prototype.setProperty=c,s.CSSStyleDeclaration.prototype.removeProperty=f})}function ba({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:l,sampling:s,doc:c}){let f=P(o=>$e(P(d=>{let i=qe(d);if(!i||te(i,t,r,!0))return;let{currentTime:h,volume:a,muted:n,playbackRate:p,loop:u}=i;e({type:o,id:l.getId(i),currentTime:h,volume:a,muted:n,playbackRate:p,loop:u})}),s.media||500)),m=[ee("play",f(Oe.Play),c),ee("pause",f(Oe.Pause),c),ee("seeked",f(Oe.Seeked),c),ee("volumechange",f(Oe.VolumeChange),c),ee("ratechange",f(Oe.RateChange),c)];return P(()=>{m.forEach(o=>o())})}function va({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let l=[],s=new WeakMap,c=r.FontFace;r.FontFace=function(o,d,i){let h=new c(o,d,i);return s.set(h,{family:o,buffer:typeof d!="string",descriptors:i,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),h};let f=Re(t.fonts,"add",function(m){return function(o){return setTimeout(P(()=>{let d=s.get(o);d&&(e(d),s.delete(o))}),0),m.apply(this,[o])}});return l.push(()=>{r.FontFace=c}),l.push(f),P(()=>{l.forEach(m=>m())})}function Sa(e){let{doc:t,mirror:r,blockClass:l,blockSelector:s,selectionCb:c}=e,f=!0,m=P(()=>{let o=t.getSelection();if(!o||f&&o?.isCollapsed)return;f=o.isCollapsed||!1;let d=[],i=o.rangeCount||0;for(let h=0;h<i;h++){let a=o.getRangeAt(h),{startContainer:n,startOffset:p,endContainer:u,endOffset:g}=a;te(n,l,s,!0)||te(u,l,s,!0)||d.push({start:r.getId(n),startOffset:p,end:r.getId(u),endOffset:g})}c({ranges:d})});return m(),ee("selectionchange",m)}function Ca({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:Re(r.customElements,"define",function(s){return function(c,f,m){try{t({define:{name:c}})}catch{console.warn(`Custom element callback failed for ${c}`)}return s.apply(this,[c,f,m])}})}function Ea(e,t){let{mutationCb:r,mousemoveCb:l,mouseInteractionCb:s,scrollCb:c,viewportResizeCb:f,inputCb:m,mediaInteractionCb:o,styleSheetRuleCb:d,styleDeclarationCb:i,canvasMutationCb:h,fontCb:a,selectionCb:n,customElementCb:p}=e;e.mutationCb=(...u)=>{t.mutation&&t.mutation(...u),r(...u)},e.mousemoveCb=(...u)=>{t.mousemove&&t.mousemove(...u),l(...u)},e.mouseInteractionCb=(...u)=>{t.mouseInteraction&&t.mouseInteraction(...u),s(...u)},e.scrollCb=(...u)=>{t.scroll&&t.scroll(...u),c(...u)},e.viewportResizeCb=(...u)=>{t.viewportResize&&t.viewportResize(...u),f(...u)},e.inputCb=(...u)=>{t.input&&t.input(...u),m(...u)},e.mediaInteractionCb=(...u)=>{t.mediaInteaction&&t.mediaInteaction(...u),o(...u)},e.styleSheetRuleCb=(...u)=>{t.styleSheetRule&&t.styleSheetRule(...u),d(...u)},e.styleDeclarationCb=(...u)=>{t.styleDeclaration&&t.styleDeclaration(...u),i(...u)},e.canvasMutationCb=(...u)=>{t.canvasMutation&&t.canvasMutation(...u),h(...u)},e.fontCb=(...u)=>{t.font&&t.font(...u),a(...u)},e.selectionCb=(...u)=>{t.selection&&t.selection(...u),n(...u)},e.customElementCb=(...u)=>{t.customElement&&t.customElement(...u),p(...u)}}function xa(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};Ea(e,t);let l,s=()=>{};e.recordDOM&&([l,s]=dn(e,e.doc));let c=fa(e),f=da(e),m=pn(e),o=pa(e,{win:r}),d=ga(e),i=ba(e),h=()=>{},a=()=>{},n=()=>{},p=()=>{};e.recordDOM&&(h=ya(e,{win:r}),a=mn(e,e.doc),n=wa(e,{win:r}),e.collectFonts&&(p=va(e)));let u=Sa(e),g=Ca(e),S=[];for(let b of e.plugins)S.push(b.observer(b.callback,r,b.options));return P(()=>{Se.forEach(b=>b.reset()),l?.disconnect(),s(),c(),f(),m(),o(),d(),i(),h(),a(),n(),p(),u(),g(),S.forEach(b=>b())})}function Qe(e){return typeof window[e]<"u"}function Ze(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var at=class{constructor(t){I(this,"iframeIdToRemoteIdMap",new WeakMap),I(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,l,s){let c=l||this.getIdToRemoteIdMap(t),f=s||this.getRemoteIdToIdMap(t),m=c.get(r);return m||(m=this.generateIdFn(),c.set(r,m),f.set(m,r)),m}getIds(t,r){let l=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return r.map(c=>this.getId(t,c,l,s))}getRemoteId(t,r,l){let s=l||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let c=s.get(r);return c||-1}getRemoteIds(t,r){let l=this.getRemoteIdToIdMap(t);return r.map(s=>this.getRemoteId(t,s,l))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},Pr=class{constructor(t){I(this,"iframes",new WeakMap),I(this,"crossOriginIframeMap",new WeakMap),I(this,"crossOriginIframeMirror",new at(_i)),I(this,"crossOriginIframeStyleMirror"),I(this,"crossOriginIframeRootIdMap",new WeakMap),I(this,"mirror"),I(this,"mutationCb"),I(this,"wrappedEmit"),I(this,"loadListener"),I(this,"stylesheetManager"),I(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new at(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var l,s;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((l=t.contentWindow)==null||l.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let s=this.crossOriginIframeMap.get(t.source);if(!s)return;let c=this.transformCrossOriginEvent(s,r.data.event);c&&this.wrappedEmit(c,r.data.isCheckout)}transformCrossOriginEvent(t,r){var l;switch(r.type){case L.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let s=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,s),this.patchRootIdOnNode(r.data.node,s),{timestamp:r.timestamp,type:L.IncrementalSnapshot,data:{source:k.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case L.Meta:case L.Load:case L.DomContentLoaded:return!1;case L.Plugin:return r;case L.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case L.IncrementalSnapshot:switch(r.data.source){case k.Mutation:return r.data.adds.forEach(s=>{this.replaceIds(s,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,t);let c=this.crossOriginIframeRootIdMap.get(t);c&&this.patchRootIdOnNode(s.node,c)}),r.data.removes.forEach(s=>{this.replaceIds(s,t,["parentId","id"])}),r.data.attributes.forEach(s=>{this.replaceIds(s,t,["id"])}),r.data.texts.forEach(s=>{this.replaceIds(s,t,["id"])}),r;case k.Drag:case k.TouchMove:case k.MouseMove:return r.data.positions.forEach(s=>{this.replaceIds(s,t,["id"])}),r;case k.ViewportResize:return!1;case k.MediaInteraction:case k.MouseInteraction:case k.Scroll:case k.CanvasMutation:case k.Input:return this.replaceIds(r.data,t,["id"]),r;case k.StyleSheetRule:case k.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case k.Font:return r;case k.Selection:return r.data.ranges.forEach(s=>{this.replaceIds(s,t,["start","end"])}),r;case k.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(l=r.data.styles)==null||l.forEach(s=>{this.replaceStyleIds(s,t,["styleId"])}),r}}return!1}replace(t,r,l,s){for(let c of s)!Array.isArray(r[c])&&typeof r[c]!="number"||(Array.isArray(r[c])?r[c]=t.getIds(l,r[c]):r[c]=t.getId(l,r[c]));return r}replaceIds(t,r,l){return this.replace(this.crossOriginIframeMirror,t,r,l)}replaceStyleIds(t,r,l){return this.replace(this.crossOriginIframeStyleMirror,t,r,l)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(l=>{this.replaceIdOnNode(l,r)})}patchRootIdOnNode(t,r){t.type!==hn.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(l=>{this.patchRootIdOnNode(l,r)})}},Lr=class{constructor(t){I(this,"shadowDoms",new WeakSet),I(this,"mutationCb"),I(this,"scrollCb"),I(this,"bypassOptions"),I(this,"mirror"),I(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!Le(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[l]=dn({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>l.disconnect()),this.restoreHandlers.push(pn({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(_.host(t))),this.restoreHandlers.push(mn({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let l=this;this.restoreHandlers.push(Re(t.prototype,"attachShadow",function(s){return function(c){let f=s.call(this,c),m=_.shadowRoot(this);return m&&cn(this)&&l.addShadowRoot(m,r),f}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ra=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(ke=0;ke<Ae.length;ke++)Ra[Ae.charCodeAt(ke)]=ke;var ke,Ma=function(e){var t=new Uint8Array(e),r,l=t.length,s="";for(r=0;r<l;r+=3)s+=Ae[t[r]>>2],s+=Ae[(t[r]&3)<<4|t[r+1]>>4],s+=Ae[(t[r+1]&15)<<2|t[r+2]>>6],s+=Ae[t[r+2]&63];return l%3===2?s=s.substring(0,s.length-1)+"=":l%3===1&&(s=s.substring(0,s.length-2)+"=="),s};var Ci=new Map;function Na(e,t){let r=Ci.get(e);return r||(r=new Map,Ci.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var gn=(e,t,r)=>{if(!e||!(wn(e,t)||typeof e=="object"))return;let l=e.constructor.name,s=Na(r,l),c=s.indexOf(e);return c===-1&&(c=s.length,s.push(e)),c};function Ke(e,t,r){if(e instanceof Array)return e.map(l=>Ke(l,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let l=e.constructor.name,s=Ma(e);return{rr_type:l,base64:s}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ke(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let l=e.constructor.name,{src:s}=e;return{rr_type:l,src:s}}else if(e instanceof HTMLCanvasElement){let l="HTMLImageElement",s=e.toDataURL();return{rr_type:l,src:s}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ke(e.data,t,r),e.width,e.height]};if(wn(e,t)||typeof e=="object"){let l=e.constructor.name,s=gn(e,t,r);return{rr_type:l,index:s}}}}return e}var yn=(e,t,r)=>e.map(l=>Ke(l,t,r)),wn=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(s=>typeof t[s]=="function").find(s=>e instanceof t[s]);function Oa(e,t,r,l){let s=[],c=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let f of c)try{if(typeof t.CanvasRenderingContext2D.prototype[f]!="function")continue;let m=Re(t.CanvasRenderingContext2D.prototype,f,function(o){return function(...d){return te(this.canvas,r,l,!0)||setTimeout(()=>{let i=yn(d,t,this);e(this.canvas,{type:Te["2D"],property:f,args:i})},0),o.apply(this,d)}});s.push(m)}catch{let m=bt(t.CanvasRenderingContext2D.prototype,f,{set(o){e(this.canvas,{type:Te["2D"],property:f,args:[o],setter:!0})}});s.push(m)}return()=>{s.forEach(f=>f())}}function Ia(e){return e==="experimental-webgl"?"webgl":e}function Ei(e,t,r,l){let s=[];try{let c=Re(e.HTMLCanvasElement.prototype,"getContext",function(f){return function(m,...o){if(!te(this,t,r,!0)){let d=Ia(m);if("__context"in this||(this.__context=d),l&&["webgl","webgl2"].includes(d))if(o[0]&&typeof o[0]=="object"){let i=o[0];i.preserveDrawingBuffer||(i.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return f.apply(this,[m,...o])}});s.push(c)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(c=>c())}}function xi(e,t,r,l,s,c){let f=[],m=Object.getOwnPropertyNames(e);for(let o of m)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if(typeof e[o]!="function")continue;let d=Re(e,o,function(i){return function(...h){let a=i.apply(this,h);if(gn(a,c,this),"tagName"in this.canvas&&!te(this.canvas,l,s,!0)){let n=yn(h,c,this),p={type:t,property:o,args:n};r(this.canvas,p)}return a}});f.push(d)}catch{let d=bt(e,o,{set(i){r(this.canvas,{type:t,property:o,args:[i],setter:!0})}});f.push(d)}return f}function Da(e,t,r,l){let s=[];return typeof t.WebGLRenderingContext<"u"&&s.push(...xi(t.WebGLRenderingContext.prototype,Te.WebGL,e,r,l,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...xi(t.WebGL2RenderingContext.prototype,Te.WebGL2,e,r,l,t)),()=>{s.forEach(c=>c())}}var bn=`(function() {
"use strict";
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
for (var i = 0; i < chars.length; i++) {
lookup[chars.charCodeAt(i)] = i;
}
var encode = function(arraybuffer) {
var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";
for (i2 = 0; i2 < len; i2 += 3) {
base64 += chars[bytes[i2] >> 2];
base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];
base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];
base64 += chars[bytes[i2 + 2] & 63];
}
if (len % 3 === 2) {
base64 = base64.substring(0, base64.length - 1) + "=";
} else if (len % 3 === 1) {
base64 = base64.substring(0, base64.length - 2) + "==";
}
return base64;
};
const lastBlobMap = /* @__PURE__ */ new Map();
const transparentBlobMap = /* @__PURE__ */ new Map();
async function getTransparentBlobFor(width, height, dataURLOptions) {
const id = \`\${width}-\${height}\`;
if ("OffscreenCanvas" in globalThis) {
if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);
const offscreen = new OffscreenCanvas(width, height);
offscreen.getContext("2d");
const blob = await offscreen.convertToBlob(dataURLOptions);
const arrayBuffer = await blob.arrayBuffer();
const base64 = encode(arrayBuffer);
transparentBlobMap.set(id, base64);
return base64;
} else {
return "";
}
}
const worker = self;
worker.onmessage = async function(e) {
if ("OffscreenCanvas" in globalThis) {
const { id, bitmap, width, height, dataURLOptions } = e.data;
const transparentBase64 = getTransparentBlobFor(
width,
height,
dataURLOptions
);
const offscreen = new OffscreenCanvas(width, height);
const ctx = offscreen.getContext("2d");
ctx.drawImage(bitmap, 0, 0);
bitmap.close();
const blob = await offscreen.convertToBlob(dataURLOptions);
const type = blob.type;
const arrayBuffer = await blob.arrayBuffer();
const base64 = encode(arrayBuffer);
if (!lastBlobMap.has(id) && await transparentBase64 === base64) {
lastBlobMap.set(id, base64);
return worker.postMessage({ id });
}
if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });
worker.postMessage({
id,
type,
base64,
width,
height
});
lastBlobMap.set(id, base64);
} else {
return worker.postMessage({ id: e.data.id });
}
};
})();
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
`,Ri=typeof self<"u"&&self.Blob&&new Blob([bn],{type:"text/javascript;charset=utf-8"});function Aa(e){let t;try{if(t=Ri&&(self.URL||self.webkitURL).createObjectURL(Ri),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(bn),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var Fr=class{constructor(t){I(this,"pendingCanvasMutations",new Map),I(this,"rafStamps",{latestId:0,invokeId:null}),I(this,"mirror"),I(this,"mutationCb"),I(this,"resetObservers"),I(this,"frozen",!1),I(this,"locked",!1),I(this,"processMutation",(o,d)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(o)||this.pendingCanvasMutations.set(o,[]),this.pendingCanvasMutations.get(o).push(d)});let{sampling:r="all",win:l,blockClass:s,blockSelector:c,recordCanvas:f,dataURLOptions:m}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,f&&r==="all"&&this.initCanvasMutationObserver(l,s,c),f&&typeof r=="number"&&this.initCanvasFPSObserver(r,l,s,c,{dataURLOptions:m})}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(t,r,l,s,c){let f=Ei(r,l,s,!0),m=new Map,o=new Aa;o.onmessage=p=>{let{id:u}=p.data;if(m.set(u,!1),!("base64"in p.data))return;let{base64:g,type:S,width:b,height:v}=p.data;this.mutationCb({id:u,type:Te["2D"],commands:[{property:"clearRect",args:[0,0,b,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:S}]},0,0]}]})};let d=1e3/t,i=0,h,a=()=>{let p=[];return r.document.querySelectorAll("canvas").forEach(u=>{te(u,l,s,!0)||p.push(u)}),p},n=p=>{if(i&&p-i<d){h=requestAnimationFrame(n);return}i=p,a().forEach(async u=>{var g;let S=this.mirror.getId(u);if(m.get(S)||u.width===0||u.height===0)return;if(m.set(S,!0),["webgl","webgl2"].includes(u.__context)){let v=u.getContext(u.__context);((g=v?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}let b=await createImageBitmap(u);o.postMessage({id:S,bitmap:b,width:u.width,height:u.height,dataURLOptions:c.dataURLOptions},[b])}),h=requestAnimationFrame(n)};h=requestAnimationFrame(n),this.resetObservers=()=>{f(),cancelAnimationFrame(h)}}initCanvasMutationObserver(t,r,l){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let s=Ei(t,r,l,!1),c=Oa(this.processMutation.bind(this),t,r,l),f=Da(this.processMutation.bind(this),t,r,l);this.resetObservers=()=>{s(),c(),f()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let l=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,l)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let l=this.pendingCanvasMutations.get(t);if(!l||r===-1)return;let s=l.map(f=>{let{type:m,...o}=f;return o}),{type:c}=l[0];this.mutationCb({id:r,type:c,commands:s}),this.pendingCanvasMutations.delete(t)}},Ur=class{constructor(t){I(this,"trackedLinkElements",new WeakSet),I(this,"mutationCb"),I(this,"adoptedStyleSheetCb"),I(this,"styleMirror",new Ar),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let l={id:r,styleIds:[]},s=[];for(let c of t){let f;this.styleMirror.has(c)?f=this.styleMirror.getId(c):(f=this.styleMirror.add(c),s.push({styleId:f,rules:Array.from(c.rules||CSSRule,(m,o)=>({rule:Ai(m,c.href),index:o}))})),l.styleIds.push(f)}s.length>0&&(l.styles=s),this.adoptedStyleSheetCb(l)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},Br=class{constructor(){I(this,"nodeMap",new WeakMap),I(this,"active",!1)}inOtherBuffer(t,r){let l=this.nodeMap.get(t);return l&&Array.from(l).some(s=>s!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},G,et,Mr,lt=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((ss=e.contentWindow)==null?void 0:ss.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var ue=Vn();function de(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:l,blockClass:s="rr-block",blockSelector:c=null,ignoreClass:f="rr-ignore",ignoreSelector:m=null,maskTextClass:o="rr-mask",maskTextSelector:d=null,inlineStylesheet:i=!0,maskAllInputs:h,maskInputOptions:a,slimDOMOptions:n,maskInputFn:p,maskTextFn:u,hooks:g,packFn:S,sampling:b={},dataURLOptions:v={},mousemoveWait:E,recordDOM:w=!0,recordCanvas:y=!1,recordCrossOriginIframes:C=!1,recordAfter:R=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:O=!1,collectFonts:M=!1,inlineImages:T=!1,plugins:D,keepIframeSrcFn:x=()=>!1,ignoreCSSAttributes:ae=new Set([]),errorHandler:se}=e;ca(se);let U=C?window.parent===window:!0,F=!1;if(!U)try{window.parent.document&&(F=!1)}catch{F=!0}if(U&&!t)throw new Error("emit function is required");if(!U&&!F)return()=>{};E!==void 0&&b.mousemove===void 0&&(b.mousemove=E),ue.reset();let H=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}:a!==void 0?a:{password:!0},Q=Fi(n);na();let Y,B=0,ye=A=>{for(let X of D||[])X.eventProcessor&&(A=X.eventProcessor(A));return S&&!F&&(A=S(A)),A};G=(A,X)=>{var $;let j=A;if(j.timestamp=Be(),($=Se[0])!=null&&$.isFrozen()&&j.type!==L.FullSnapshot&&!(j.type===L.IncrementalSnapshot&&j.data.source===k.Mutation)&&Se.forEach(ie=>ie.unfreeze()),U)t?.(ye(j),X);else if(F){let ie={type:"rrweb",event:ye(j),origin:window.location.origin,isCheckout:X};window.parent.postMessage(ie,"*")}if(j.type===L.FullSnapshot)Y=j,B=0;else if(j.type===L.IncrementalSnapshot){if(j.data.source===k.Mutation&&j.data.isAttachIframe)return;B++;let ie=l&&B>=l,W=r&&j.timestamp-Y.timestamp>r;(ie||W)&&et(!0)}};let N=A=>{G({type:L.IncrementalSnapshot,data:{source:k.Mutation,...A}})},fe=A=>G({type:L.IncrementalSnapshot,data:{source:k.Scroll,...A}}),ne=A=>G({type:L.IncrementalSnapshot,data:{source:k.CanvasMutation,...A}}),_e=A=>G({type:L.IncrementalSnapshot,data:{source:k.AdoptedStyleSheet,...A}}),K=new Ur({mutationCb:N,adoptedStyleSheetCb:_e}),le=new Pr({mirror:ue,mutationCb:N,stylesheetManager:K,recordCrossOriginIframes:C,wrappedEmit:G});for(let A of D||[])A.getMirror&&A.getMirror({nodeMirror:ue,crossOriginIframeMirror:le.crossOriginIframeMirror,crossOriginIframeStyleMirror:le.crossOriginIframeStyleMirror});let ve=new Br;Mr=new Fr({recordCanvas:y,mutationCb:ne,win:window,blockClass:s,blockSelector:c,mirror:ue,sampling:b.canvas,dataURLOptions:v});let we=new Lr({mutationCb:N,scrollCb:fe,bypassOptions:{blockClass:s,blockSelector:c,maskTextClass:o,maskTextSelector:d,inlineStylesheet:i,maskInputOptions:H,dataURLOptions:v,maskTextFn:u,maskInputFn:p,recordCanvas:y,inlineImages:T,sampling:b,slimDOMOptions:Q,iframeManager:le,stylesheetManager:K,canvasManager:Mr,keepIframeSrcFn:x,processedNodeManager:ve},mirror:ue});et=(A=!1)=>{if(!w)return;G({type:L.Meta,data:{href:window.location.href,width:sn(),height:rn()}},A),K.reset(),we.init(),Se.forEach($=>$.lock());let X=mo(document,{mirror:ue,blockClass:s,blockSelector:c,maskTextClass:o,maskTextSelector:d,inlineStylesheet:i,maskAllInputs:H,maskTextFn:u,maskInputFn:p,slimDOM:Q,dataURLOptions:v,recordCanvas:y,inlineImages:T,onSerialize:$=>{an($,ue)&&le.addIframe($),ln($,ue)&&K.trackLinkElement($),Dr($)&&we.addShadowRoot(_.shadowRoot($),document)},onIframeLoad:($,j)=>{le.attachIframe($,j),we.observeAttachShadow($)},onStylesheetLoad:($,j)=>{K.attachLinkElement($,j)},keepIframeSrcFn:x});if(!X)return console.warn("Failed to snapshot the document");G({type:L.FullSnapshot,data:{node:X,initialOffset:tn(window)}},A),Se.forEach($=>$.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,ue.getId(document))};try{let A=[],X=j=>{var ie;return P(xa)({mutationCb:N,mousemoveCb:(W,vt)=>G({type:L.IncrementalSnapshot,data:{source:vt,positions:W}}),mouseInteractionCb:W=>G({type:L.IncrementalSnapshot,data:{source:k.MouseInteraction,...W}}),scrollCb:fe,viewportResizeCb:W=>G({type:L.IncrementalSnapshot,data:{source:k.ViewportResize,...W}}),inputCb:W=>G({type:L.IncrementalSnapshot,data:{source:k.Input,...W}}),mediaInteractionCb:W=>G({type:L.IncrementalSnapshot,data:{source:k.MediaInteraction,...W}}),styleSheetRuleCb:W=>G({type:L.IncrementalSnapshot,data:{source:k.StyleSheetRule,...W}}),styleDeclarationCb:W=>G({type:L.IncrementalSnapshot,data:{source:k.StyleDeclaration,...W}}),canvasMutationCb:ne,fontCb:W=>G({type:L.IncrementalSnapshot,data:{source:k.Font,...W}}),selectionCb:W=>{G({type:L.IncrementalSnapshot,data:{source:k.Selection,...W}})},customElementCb:W=>{G({type:L.IncrementalSnapshot,data:{source:k.CustomElement,...W}})},blockClass:s,ignoreClass:f,ignoreSelector:m,maskTextClass:o,maskTextSelector:d,maskInputOptions:H,inlineStylesheet:i,sampling:b,recordDOM:w,recordCanvas:y,inlineImages:T,userTriggeredOnInput:O,collectFonts:M,doc:j,maskInputFn:p,maskTextFn:u,keepIframeSrcFn:x,blockSelector:c,slimDOMOptions:Q,dataURLOptions:v,mirror:ue,iframeManager:le,stylesheetManager:K,shadowDomManager:we,processedNodeManager:ve,canvasManager:Mr,ignoreCSSAttributes:ae,plugins:((ie=D?.filter(W=>W.observer))==null?void 0:ie.map(W=>({observer:W.observer,options:W.options,callback:vt=>G({type:L.Plugin,data:{plugin:W.name,payload:vt}})})))||[]},g)};le.addLoadListener(j=>{try{A.push(X(j.contentDocument))}catch(ie){console.warn(ie)}});let $=()=>{et(),A.push(X(document)),lt=!0};return["interactive","complete"].includes(document.readyState)?$():(A.push(ee("DOMContentLoaded",()=>{G({type:L.DomContentLoaded,data:{}}),R==="DOMContentLoaded"&&$()})),A.push(ee("load",()=>{G({type:L.Load,data:{}}),R==="load"&&$()},window))),()=>{A.forEach(j=>{try{j()}catch(ie){String(ie).toLowerCase().includes("cross-origin")||console.warn(ie)}}),ve.destroy(),lt=!1,ha()}}catch(A){console.warn(A)}}de.addCustomEvent=(e,t)=>{if(!lt)throw new Error("please add custom event after start recording");G({type:L.Custom,data:{tag:e,payload:t}})};de.freezePage=()=>{Se.forEach(e=>e.freeze())};de.takeFullSnapshot=e=>{if(!lt)throw new Error("please take full snapshot after start recording");et(e)};de.mirror=ue;var Mi;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Mi||(Mi={}));var _a=5*1e3;var{addCustomEvent:ka}=de,{freezePage:Pa}=de,{takeFullSnapshot:La}=de;globalThis.rrwebRecord=de;globalThis.rrweb=globalThis.rrweb||{};globalThis.rrweb.record=globalThis.rrweb.record||de;})();
/*! Bundled license information:
rrweb/dist/rrweb.js:
(*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** *)
*/
(function(){var g=typeof globalThis!=="undefined"?globalThis:window;g.rrweb=g.rrweb||{};if(!g.rrweb.record&&g.rrwebRecord)g.rrweb.record=g.rrwebRecord;if(g.rrweb.record&&!g.rrwebRecord)g.rrwebRecord=g.rrweb.record;})();