@posthog/rrweb-snapshot 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +69 -12
- package/dist/index.d.ts +69 -12
- package/dist/rrweb-snapshot.cjs +85 -195
- package/dist/rrweb-snapshot.cjs.map +1 -1
- package/dist/rrweb-snapshot.js +85 -195
- package/dist/rrweb-snapshot.js.map +1 -1
- package/dist/rrweb-snapshot.umd.cjs +85 -195
- package/dist/rrweb-snapshot.umd.cjs.map +4 -4
- package/dist/rrweb-snapshot.umd.min.cjs +19 -19
- package/dist/rrweb-snapshot.umd.min.cjs.map +4 -4
- package/package.json +1 -1
|
@@ -11,35 +11,35 @@
|
|
|
11
11
|
}(this, () => {
|
|
12
12
|
var exports = {};
|
|
13
13
|
var module = { exports };
|
|
14
|
-
"use strict";var Ur=Object.defineProperty,Br=Object.defineProperties;var Fr=Object.getOwnPropertyDescriptors;var re=Object.getOwnPropertySymbols;var gt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable;var mt=(e,r,o)=>r in e?Ur(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,q=(e,r)=>{for(var o in r||(r={}))gt.call(r,o)&&mt(e,o,r[o]);if(re)for(var o of re(r))yt.call(r,o)&&mt(e,o,r[o]);return e},K=(e,r)=>Br(e,Fr(r));var Ce=(e,r)=>{var o={};for(var l in e)gt.call(e,l)&&r.indexOf(l)<0&&(o[l]=e[l]);if(e!=null&&re)for(var l of re(e))r.indexOf(l)<0&&yt.call(e,l)&&(o[l]=e[l]);return o};var zr=Object.defineProperty,qr=(e,r,o)=>r in e?zr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,wt=(e,r,o)=>qr(e,typeof r!="symbol"?r+"":r,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var A=(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))(A||{});const bt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},St={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ie={};function Wr(e){var r,o;const l=(o=(r=globalThis==null?void 0:globalThis.Zone)==null?void 0:r.__symbol__)==null?void 0:o.call(r,e);if(l&&globalThis[l])return globalThis[l]}function rt(e){if(ie[e])return ie[e];const r=Wr(e)||globalThis[e],o=r.prototype,l=e in bt?bt[e]:void 0,s=!!(l&&l.every(h=>{var m,u;return!!((u=(m=Object.getOwnPropertyDescriptor(o,h))==null?void 0:m.get)!=null&&u.toString().includes("[native code]"))})),c=e in St?St[e]:void 0,a=!!(c&&c.every(h=>{var m;return typeof o[h]=="function"&&((m=o[h])==null?void 0:m.toString().includes("[native code]"))}));if(s&&a)return ie[e]=r.prototype,r.prototype;try{const h=document.createElement("iframe");document.body.appendChild(h);const m=h.contentWindow;if(!m)return r.prototype;const u=m[e].prototype;return document.body.removeChild(h),u?ie[e]=u:o}catch(h){return o}}const ve={};function $(e,r,o){var l;const s=`${e}.${String(o)}`;if(ve[s])return ve[s].call(r);const c=rt(e),a=(l=Object.getOwnPropertyDescriptor(c,o))==null?void 0:l.get;return a?(ve[s]=a,a.call(r)):r[o]}const xe={};function sr(e,r,o){const l=`${e}.${String(o)}`;if(xe[l])return xe[l].bind(r);const c=rt(e)[o];return typeof c!="function"?r[o]:(xe[l]=c,c.bind(r))}function jr(e){return $("Node",e,"childNodes")}function $r(e){return $("Node",e,"parentNode")}function Vr(e){return $("Node",e,"parentElement")}function Gr(e){return $("Node",e,"textContent")}function Hr(e,r){return sr("Node",e,"contains")(r)}function Jr(e){return sr("Node",e,"getRootNode")()}function Yr(e){return!e||!("host"in e)?null:$("ShadowRoot",e,"host")}function Kr(e){return e.styleSheets}function Qr(e){return!e||!("shadowRoot"in e)?null:$("Element",e,"shadowRoot")}function Zr(e,r){return $("Element",e,"querySelector")(r)}function Xr(e,r){return $("Element",e,"querySelectorAll")(r)}function ei(){return rt("MutationObserver").constructor}function ti(e,r,o){try{if(!(r in e))return()=>{};const l=e[r],s=o(l);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:l}})),e[r]=s,()=>{e[r]=l}}catch(l){return()=>{}}}const U={childNodes:jr,parentNode:$r,parentElement:Vr,textContent:Gr,contains:Hr,getRootNode:Jr,host:Yr,styleSheets:Kr,shadowRoot:Qr,querySelector:Zr,querySelectorAll:Xr,mutationObserver:ei,patch:ti};function fe(e){return e.nodeType===e.ELEMENT_NODE}function nr(e){const r=e&&"host"in e&&"mode"in e&&U.host(e)||null;return!!(r&&"shadowRoot"in r&&U.shadowRoot(r)===e)}function oe(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function ri(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 or(e){const{cssText:r}=e;if(r.split('"').length<3)return r;const o=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?o.push("layer"):e.layerName&&o.push(`layer(${e.layerName})`),e.supportsText&&o.push(`supports(${e.supportsText})`),e.media.length&&o.push(e.media.mediaText),o.join(" ")+";"}function ae(e){try{const r=e.rules||e.cssRules;if(!r)return null;let o=e.href;!o&&e.ownerNode&&e.ownerNode.ownerDocument&&(o=e.ownerNode.ownerDocument.location.href);const l=Array.from(r,s=>lr(s,o)).join("");return ri(l)}catch(r){return null}}function lr(e,r){if(ur(e)){let o;try{o=ae(e.styleSheet)||or(e)}catch(l){o=e.cssText}return e.styleSheet.href?Q(o,e.styleSheet.href):o}else{let o=e.cssText;return fr(e)&&e.selectorText.includes(":")&&(o=ar(o)),r?Q(o,r):o}}function ar(e){const r=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(r,"$1\\$2")}function ur(e){return"styleSheet"in e}function fr(e){return"selectorText"in e}class ce{constructor(){wt(this,"idNodeMap",new Map),wt(this,"nodeMetaMap",new WeakMap)}getId(r){var o;if(!r)return-1;const l=(o=this.getMeta(r))==null?void 0:o.id;return l!=null?l:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){const o=this.getId(r);this.idNodeMap.delete(o),r.childNodes&&r.childNodes.forEach(l=>this.removeNodeFromMap(l))}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,o){const l=o.id;this.idNodeMap.set(l,r),this.nodeMetaMap.set(r,o)}replace(r,o){const l=this.getNode(r);if(l){const s=this.nodeMetaMap.get(l);s&&this.nodeMetaMap.set(o,s)}this.idNodeMap.set(r,o)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ii(){return new ce}function cr({element:e,maskInputOptions:r,tagName:o,type:l,value:s,maskInputFn:c}){let a=s||"";const h=l&&Z(l);return(r[o.toLowerCase()]||h&&r[h])&&(c?a=c(a,e):a="*".repeat(a.length)),a}function Z(e){return e.toLowerCase()}const Ct="__rrweb_original__";function hr(e){const r=e.getContext("2d");if(!r)return!0;const o=50;for(let l=0;l<e.width;l+=o)for(let s=0;s<e.height;s+=o){const c=r.getImageData,a=Ct in c?c[Ct]:c;if(new Uint32Array(a.call(r,l,s,Math.min(o,e.width-l),Math.min(o,e.height-s)).data.buffer).some(m=>m!==0))return!1}return!0}function pr(e,r){return!e||!r||e.type!==r.type?!1:e.type===A.Document?e.compatMode===r.compatMode:e.type===A.DocumentType?e.name===r.name&&e.publicId===r.publicId&&e.systemId===r.systemId:e.type===A.Comment||e.type===A.Text||e.type===A.CDATA?e.textContent===r.textContent:e.type===A.Element?e.tagName===r.tagName&&JSON.stringify(e.attributes)===JSON.stringify(r.attributes)&&e.isSVG===r.isSVG&&e.needBlock===r.needBlock:!1}function dr(e){const r=e.type;return e.hasAttribute("data-rr-is-password")?"password":r?Z(r):null}function he(e,r){var c;let o;try{o=new URL(e,r!=null?r:window.location.href)}catch(a){return null}const l=/\.([0-9a-z]+)(?:$)/i,s=o.pathname.match(l);return(c=s==null?void 0:s[1])!=null?c:null}function si(e){let r="";return e.indexOf("//")>-1?r=e.split("/").slice(0,3).join("/"):r=e.split("/")[0],r=r.split("?")[0],r}const ni=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,oi=/^(?:[a-z+]+:)?\/\//i,li=/^www\..*/i,ai=/^(data:)([^,]*),(.*)/i;function Q(e,r){return(e||"").replace(ni,(o,l,s,c,a,h)=>{const m=s||a||h,u=l||c||"";if(!m)return o;if(oi.test(m)||li.test(m))return`url(${u}${m}${u})`;if(ai.test(m))return`url(${u}${m}${u})`;if(m[0]==="/")return`url(${u}${si(r)+m}${u})`;const t=r.split("/"),f=m.split("/");t.pop();for(const n of f)n!=="."&&(n===".."?t.pop():t.push(n));return`url(${u}${t.join("/")}${u})`})}const Re=new Map,Ee=new Map;function le(e){if(!Re.has(e)){const r=e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"");Re.set(e,r)}return Re.get(e)}function mr(e,r){const o=e;if(Ee.has(e))return Ee.get(e);const l=Array.from(r.childNodes),s=[];let c=0;if(l.length>1&&e&&typeof e=="string"){let a=le(e);const h=a.length/e.length;for(let m=1;m<l.length;m++)if(l[m].textContent&&typeof l[m].textContent=="string"){const u=le(l[m].textContent);let t=3;for(;t<u.length&&(u[t].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,t),1)!==-1);t++);for(;t<u.length;t++){const f=u.substring(0,t),n=a.split(f);let i=-1;if(n.length===2?i=a.indexOf(f):n.length>2&&n[0]===""&&l[m-1].textContent!==""&&(i=a.indexOf(f,1)),i!==-1){let d=Math.floor(i/h);for(;d>0&&d<e.length;){if(c+=1,c>50*l.length)return s.push(e),s;const p=le(e.substring(0,d));if(p.length===i){s.push(e.substring(0,d)),e=e.substring(d),a=a.substring(i);break}else p.length<i?d+=Math.max(1,Math.floor((i-p.length)/h)):d-=Math.max(1,Math.floor((p.length-i)*h))}break}}}}return s.push(e),o&&Ee.set(o,s),s}function gr(e,r){return mr(e,r).join("/* rr_split */")}let yr=1;const ui=new RegExp("[^a-z0-9-_:]"),tt=-2;function wr(){return yr++}function fi(e){if(e instanceof HTMLFormElement)return"form";const r=Z(e.tagName);return ui.test(r)?"div":r}let H,vt;const ci=/^[^ \t\n\r\u000c]+/,hi=/^[, \t\n\r\u000c]+/;function pi(e,r){if(r.trim()==="")return r;let o=0;function l(c){let a;const h=c.exec(r.substring(o));return h?(a=h[0],o+=a.length,a):""}const s=[];for(;l(hi),!(o>=r.length);){let c=l(ci);if(c.slice(-1)===",")c=J(e,c.substring(0,c.length-1)),s.push(c);else{let a="";c=J(e,c);let h=!1;for(;;){const m=r.charAt(o);if(m===""){s.push((c+a).trim());break}else if(h)m===")"&&(h=!1);else if(m===","){o+=1,s.push((c+a).trim());break}else m==="("&&(h=!0);a+=m,o+=1}}}return s.join(", ")}const xt=new WeakMap;function J(e,r){return!r||r.trim()===""?r:it(e,r)}function di(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function it(e,r){let o=xt.get(e);if(o||(o=e.createElement("a"),xt.set(e,o)),!r)r="";else if(r.startsWith("blob:")||r.startsWith("data:"))return r;return o.setAttribute("href",r),o.href}function br(e,r,o,l){return l&&(o==="src"||o==="href"&&!(r==="use"&&l[0]==="#")||o==="xlink:href"&&l[0]!=="#"||o==="background"&&(r==="table"||r==="td"||r==="th")?J(e,l):o==="srcset"?pi(e,l):o==="style"?Q(l,it(e)):r==="object"&&o==="data"?J(e,l):l)}function Sr(e,r,o){return(e==="video"||e==="audio")&&r==="autoplay"}function mi(e,r,o){try{if(typeof r=="string"){if(e.classList.contains(r))return!0}else for(let l=e.classList.length;l--;){const s=e.classList[l];if(r.test(s))return!0}if(o)return e.matches(o)}catch(l){}return!1}function ue(e,r,o){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return o?ue(U.parentNode(e),r,o):!1;for(let l=e.classList.length;l--;){const s=e.classList[l];if(r.test(s))return!0}return o?ue(U.parentNode(e),r,o):!1}function Cr(e,r,o,l){let s;if(fe(e)){if(s=e,!U.childNodes(s).length)return!1}else{if(U.parentElement(e)===null)return!1;s=U.parentElement(e)}try{if(typeof r=="string"){if(l){if(s.closest(`.${r}`))return!0}else if(s.classList.contains(r))return!0}else if(ue(s,r,l))return!0;if(o){if(l){if(s.closest(o))return!0}else if(s.matches(o))return!0}}catch(c){}return!1}function gi(e,r,o){const l=e.contentWindow;if(!l)return;let s=!1,c;try{c=l.document.readyState}catch(h){return}if(c!=="complete"){const h=setTimeout(()=>{s||(r(),s=!0)},o);e.addEventListener("load",()=>{clearTimeout(h),s=!0,r()});return}const a="about:blank";if(l.location.href!==a||e.src===a||e.src==="")return setTimeout(r,0),e.addEventListener("load",r);e.addEventListener("load",r)}function yi(e,r,o){let l=!1,s;try{s=e.sheet}catch(a){return}if(s)return;const c=setTimeout(()=>{l||(r(),l=!0)},o);e.addEventListener("load",()=>{clearTimeout(c),l=!0,r()})}function wi(e,r){const{doc:o,mirror:l,blockClass:s,blockSelector:c,needsMask:a,inlineStylesheet:h,maskInputOptions:m={},maskTextFn:u,maskInputFn:t,dataURLOptions:f={},inlineImages:n,recordCanvas:i,keepIframeSrcFn:d,newlyAddedElement:p=!1,cssCaptured:g=!1}=r,C=bi(o,l);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:A.Document,childNodes:[],compatMode:e.compatMode}:{type:A.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:A.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return vi(e,{doc:o,blockClass:s,blockSelector:c,inlineStylesheet:h,maskInputOptions:m,maskInputFn:t,dataURLOptions:f,inlineImages:n,recordCanvas:i,keepIframeSrcFn:d,newlyAddedElement:p,rootId:C});case e.TEXT_NODE:return Si(e,{doc:o,needsMask:a,maskTextFn:u,rootId:C,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:A.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:A.Comment,textContent:U.textContent(e)||"",rootId:C};default:return!1}}function bi(e,r){if(!r.hasNode(e))return;const o=r.getId(e);return o===1?void 0:o}function Si(e,r){const{needsMask:o,maskTextFn:l,rootId:s,cssCaptured:c}=r,a=U.parentNode(e),h=a&&a.tagName;let m="";const u=h==="STYLE"?!0:void 0,t=h==="SCRIPT"?!0:void 0;return t?m="SCRIPT_PLACEHOLDER":c||(m=U.textContent(e),u&&m&&(m=Q(m,it(r.doc)))),!u&&!t&&m&&o&&(m=l?l(m,U.parentElement(e)):m.replace(/[\S]/g,"*")),{type:A.Text,textContent:m||"",rootId:s}}function Rt(e,r){return Array.from(e.styleSheets).find(o=>o.href===r)}function Ci(e){return e.href}function vi(e,r){const{doc:o,blockClass:l,blockSelector:s,inlineStylesheet:c,maskInputOptions:a={},maskInputFn:h,dataURLOptions:m={},inlineImages:u,recordCanvas:t,keepIframeSrcFn:f,newlyAddedElement:n=!1,rootId:i}=r,d=mi(e,l,s),p=fi(e);let g={};const C=e.attributes.length;for(let y=0;y<C;y++){const v=e.attributes[y];Sr(p,v.name,v.value)||(g[v.name]=br(o,p,Z(v.name),v.value))}if(p==="link"&&c){const y=Ci(e);if(y){let v=Rt(o,y);if(!v&&y.includes(".css")){const w=window.location.origin,x=y.replace(window.location.href,""),E=w+"/"+x;v=Rt(o,E)}let b=null;v&&(b=ae(v)),b&&(delete g.rel,delete g.href,g._cssText=b)}}if(p==="style"&&e.sheet){let y=ae(e.sheet);y&&(e.childNodes.length>1&&(y=gr(y,e)),g._cssText=y)}if(p==="input"||p==="textarea"||p==="select"){const y=e.value,v=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&y?g.value=cr({element:e,type:dr(e),tagName:p,value:y,maskInputOptions:a,maskInputFn:h}):v&&(g.checked=v)}if(p==="option"&&(e.selected&&!a.select?g.selected=!0:delete g.selected),p==="dialog"&&e.open)try{g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(y){g.rr_open_mode="modal",g.ph_rr_could_not_detect_modal=!0}if(p==="canvas"&&t){if(e.__context==="2d")hr(e)||(g.rr_dataURL=e.toDataURL(m.type,m.quality));else if(!("__context"in e)){const y=e.toDataURL(m.type,m.quality),v=o.createElement("canvas");v.width=e.width,v.height=e.height;const b=v.toDataURL(m.type,m.quality);y!==b&&(g.rr_dataURL=y)}}if(p==="img"&&u){H||(H=o.createElement("canvas"),vt=H.getContext("2d"));const y=e,v=y.currentSrc||y.getAttribute("src")||"<unknown-src>",b=y.crossOrigin,w=()=>{y.removeEventListener("load",w);try{H.width=y.naturalWidth,H.height=y.naturalHeight,vt.drawImage(y,0,0),g.rr_dataURL=H.toDataURL(m.type,m.quality)}catch(x){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?w():y.addEventListener("load",w);return}else console.warn(`Cannot inline img src=${v}! Error: ${x}`)}y.crossOrigin==="anonymous"&&(b?g.crossOrigin=b:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?w():y.addEventListener("load",w)}if(p==="audio"||p==="video"){const y=g;y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime,y.rr_mediaPlaybackRate=e.playbackRate,y.rr_mediaMuted=e.muted,y.rr_mediaLoop=e.loop,y.rr_mediaVolume=e.volume}if(n||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),d){const{width:y,height:v}=e.getBoundingClientRect();g={class:g.class,rr_width:`${y}px`,rr_height:`${v}px`}}p==="iframe"&&!f(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let S;try{customElements.get(p)&&(S=!0)}catch(y){}return{type:A.Element,tagName:p,attributes:g,childNodes:[],isSVG:di(e)||void 0,needBlock:d,rootId:i,isCustom:S}}function k(e){return e==null?"":e.toLowerCase()}function xi(e,r){if(r.comment&&e.type===A.Comment)return!0;if(e.type===A.Element){if(r.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"&&he(e.attributes.href)==="js"))return!0;if(r.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(k(e.attributes.name).match(/^msapplication-tile(image|color)$/)||k(e.attributes.name)==="application-name"||k(e.attributes.rel)==="icon"||k(e.attributes.rel)==="apple-touch-icon"||k(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(r.headMetaDescKeywords&&k(e.attributes.name).match(/^description|keywords$/))return!0;if(r.headMetaSocial&&(k(e.attributes.property).match(/^(og|twitter|fb):/)||k(e.attributes.name).match(/^(og|twitter):/)||k(e.attributes.name)==="pinterest"))return!0;if(r.headMetaRobots&&(k(e.attributes.name)==="robots"||k(e.attributes.name)==="googlebot"||k(e.attributes.name)==="bingbot"))return!0;if(r.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(r.headMetaAuthorship&&(k(e.attributes.name)==="author"||k(e.attributes.name)==="generator"||k(e.attributes.name)==="framework"||k(e.attributes.name)==="publisher"||k(e.attributes.name)==="progid"||k(e.attributes.property).match(/^article:/)||k(e.attributes.property).match(/^product:/)))return!0;if(r.headMetaVerification&&(k(e.attributes.name)==="google-site-verification"||k(e.attributes.name)==="yandex-verification"||k(e.attributes.name)==="csrf-token"||k(e.attributes.name)==="p:domain_verify"||k(e.attributes.name)==="verify-v1"||k(e.attributes.name)==="verification"||k(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Y(e,r){const{doc:o,mirror:l,blockClass:s,blockSelector:c,maskTextClass:a,maskTextSelector:h,skipChild:m=!1,inlineStylesheet:u=!0,maskInputOptions:t={},maskTextFn:f,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d={},inlineImages:p=!1,recordCanvas:g=!1,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:y=5e3,onStylesheetLoad:v,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:x=!1,cssCaptured:E=!1}=r;let{needsMask:N}=r,{preserveWhiteSpace:O=!0}=r;N||(N=Cr(e,a,h,N===void 0));const L=wi(e,{doc:o,mirror:l,blockClass:s,blockSelector:c,needsMask:N,inlineStylesheet:u,maskInputOptions:t,maskTextFn:f,maskInputFn:n,dataURLOptions:d,inlineImages:p,recordCanvas:g,keepIframeSrcFn:w,newlyAddedElement:x,cssCaptured:E});if(!L)return console.warn(e,"not serialized"),null;let P;l.hasNode(e)?P=l.getId(e):xi(L,i)||!O&&L.type===A.Text&&!L.textContent.replace(/^\s+|\s+$/gm,"").length?P=tt:P=wr();const _=Object.assign(L,{id:P});if(l.add(e,_),P===tt)return null;C&&C(e);let W=!m;if(_.type===A.Element){W=W&&!_.needBlock,delete _.needBlock;const T=U.shadowRoot(e);T&&oe(T)&&(_.isShadowHost=!0)}if((_.type===A.Document||_.type===A.Element)&&W){i.headWhitespace&&_.type===A.Element&&_.tagName==="head"&&(O=!1);const T={doc:o,mirror:l,blockClass:s,blockSelector:c,needsMask:N,maskTextClass:a,maskTextSelector:h,skipChild:m,inlineStylesheet:u,maskInputOptions:t,maskTextFn:f,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d,inlineImages:p,recordCanvas:g,preserveWhiteSpace:O,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:y,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:w,cssCaptured:!1};if(!(_.type===A.Element&&_.tagName==="textarea"&&_.attributes.value!==void 0)){_.type===A.Element&&_.attributes._cssText!==void 0&&typeof _.attributes._cssText=="string"&&(T.cssCaptured=!0);for(const F of Array.from(U.childNodes(e))){const B=Y(F,T);B&&_.childNodes.push(B)}}let D=null;if(fe(e)&&(D=U.shadowRoot(e)))for(const F of Array.from(U.childNodes(D))){const B=Y(F,T);B&&(oe(D)&&(B.isShadow=!0),_.childNodes.push(B))}}const R=U.parentNode(e);return R&&nr(R)&&oe(R)&&(_.isShadow=!0),_.type===A.Element&&_.tagName==="iframe"&&gi(e,()=>{const T=e.contentDocument;if(T&&S){const D=Y(T,{doc:T,mirror:l,blockClass:s,blockSelector:c,needsMask:N,maskTextClass:a,maskTextSelector:h,skipChild:!1,inlineStylesheet:u,maskInputOptions:t,maskTextFn:f,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d,inlineImages:p,recordCanvas:g,preserveWhiteSpace:O,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:y,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:w});D&&S(e,D)}},y),_.type===A.Element&&_.tagName==="link"&&typeof _.attributes.rel=="string"&&(_.attributes.rel==="stylesheet"||_.attributes.rel==="preload"&&typeof _.attributes.href=="string"&&he(_.attributes.href)==="css")&&yi(e,()=>{if(v){const T=Y(e,{doc:o,mirror:l,blockClass:s,blockSelector:c,needsMask:N,maskTextClass:a,maskTextSelector:h,skipChild:!1,inlineStylesheet:u,maskInputOptions:t,maskTextFn:f,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d,inlineImages:p,recordCanvas:g,preserveWhiteSpace:O,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:y,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:w});T&&v(e,T)}},b),_}function Ri(e,r){const{mirror:o=new ce,blockClass:l="rr-block",blockSelector:s=null,maskTextClass:c="rr-mask",maskTextSelector:a=null,inlineStylesheet:h=!0,inlineImages:m=!1,recordCanvas:u=!1,maskAllInputs:t=!1,maskTextFn:f,maskInputFn:n,slimDOM:i=!1,dataURLOptions:d,preserveWhiteSpace:p,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:S,onStylesheetLoad:y,stylesheetLoadTimeout:v,keepIframeSrcFn:b=()=>!1}=r||{};return Y(e,{doc:e,mirror:o,blockClass:l,blockSelector:s,maskTextClass:c,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:t===!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}:t===!1?{password:!0}:t,maskTextFn:f,maskInputFn:n,slimDOMOptions:i===!0||i==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:i==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:i===!1?{}:i,dataURLOptions:d,inlineImages:m,recordCanvas:u,preserveWhiteSpace:p,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:S,onStylesheetLoad:y,stylesheetLoadTimeout:v,keepIframeSrcFn:b,newlyAddedElement:!1})}function Ei(e,r){function o(l){r(l),(l.type===A.Document||l.type===A.Element)&&l.childNodes.forEach(o)}o(e)}function Oi(){yr=1}const Ni=/(max|min)-device-(width|height)/,Et=new RegExp(Ni.source,"g"),Mi={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Et)&&(e.params=e.params.replace(Et,"$1-$2"))}}}},Ai={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(r){e.indexOf(r)===-1&&(e.push(r),r.selectors.forEach(function(o){o.includes(":hover")&&(r.selector+=`,
|
|
15
|
-
`+
|
|
16
|
-
`+
|
|
17
|
-
`+C+h("^")}return" "+
|
|
14
|
+
"use strict";var Ir=Object.defineProperty,Lr=Object.defineProperties;var Dr=Object.getOwnPropertyDescriptors;var ie=Object.getOwnPropertySymbols;var pt=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable;var ht=(e,r,l)=>r in e?Ir(e,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[r]=l,F=(e,r)=>{for(var l in r||(r={}))pt.call(r,l)&&ht(e,l,r[l]);if(ie)for(var l of ie(r))dt.call(r,l)&&ht(e,l,r[l]);return e},K=(e,r)=>Lr(e,Dr(r));var be=(e,r)=>{var l={};for(var u in e)pt.call(e,u)&&r.indexOf(u)<0&&(l[u]=e[u]);if(e!=null&&ie)for(var u of ie(e))r.indexOf(u)<0&&dt.call(e,u)&&(l[u]=e[u]);return l};var Tr=Object.defineProperty,Ur=(e,r,l)=>r in e?Tr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[r]=l,mt=(e,r,l)=>Ur(e,typeof r!="symbol"?r+"":r,l);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var _=(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))(_||{});const gt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},yt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},se={};function Br(e){var r,l;const u=(l=(r=globalThis==null?void 0:globalThis.Zone)==null?void 0:r.__symbol__)==null?void 0:l.call(r,e);if(u&&globalThis[u])return globalThis[u]}function Ze(e){if(se[e])return se[e];const r=Br(e)||globalThis[e],l=r.prototype,u=e in gt?gt[e]:void 0,s=!!(u&&u.every(h=>{var g,o;return!!((o=(g=Object.getOwnPropertyDescriptor(l,h))==null?void 0:g.get)!=null&&o.toString().includes("[native code]"))})),f=e in yt?yt[e]:void 0,c=!!(f&&f.every(h=>{var g;return typeof l[h]=="function"&&((g=l[h])==null?void 0:g.toString().includes("[native code]"))}));if(s&&c)return se[e]=r.prototype,r.prototype;try{const h=document.createElement("iframe");document.body.appendChild(h);const g=h.contentWindow;if(!g)return r.prototype;const o=g[e].prototype;return document.body.removeChild(h),o?se[e]=o:l}catch(h){return l}}const Se={};function W(e,r,l){var u;const s=`${e}.${String(l)}`;if(Se[s])return Se[s].call(r);const f=Ze(e),c=(u=Object.getOwnPropertyDescriptor(f,l))==null?void 0:u.get;return c?(Se[s]=c,c.call(r)):r[l]}const ve={};function tr(e,r,l){const u=`${e}.${String(l)}`;if(ve[u])return ve[u].bind(r);const f=Ze(e)[l];return typeof f!="function"?r[l]:(ve[u]=f,f.bind(r))}function Fr(e){return W("Node",e,"childNodes")}function qr(e){return W("Node",e,"parentNode")}function zr(e){return W("Node",e,"parentElement")}function Wr(e){return W("Node",e,"textContent")}function jr(e,r){return tr("Node",e,"contains")(r)}function $r(e){return tr("Node",e,"getRootNode")()}function Vr(e){return!e||!("host"in e)?null:W("ShadowRoot",e,"host")}function Gr(e){return e.styleSheets}function Hr(e){return!e||!("shadowRoot"in e)?null:W("Element",e,"shadowRoot")}function Jr(e,r){return W("Element",e,"querySelector")(r)}function Yr(e,r){return W("Element",e,"querySelectorAll")(r)}function Kr(){return Ze("MutationObserver").constructor}function Qr(e,r,l){try{if(!(r in e))return()=>{};const u=e[r],s=l(u);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:u}})),e[r]=s,()=>{e[r]=u}}catch(u){return()=>{}}}const L={childNodes:Fr,parentNode:qr,parentElement:zr,textContent:Wr,contains:jr,getRootNode:$r,host:Vr,styleSheets:Gr,shadowRoot:Hr,querySelector:Jr,querySelectorAll:Yr,mutationObserver:Kr,patch:Qr};function ue(e){return e.nodeType===e.ELEMENT_NODE}function rr(e){const r=e&&"host"in e&&"mode"in e&&L.host(e)||null;return!!(r&&"shadowRoot"in r&&L.shadowRoot(r)===e)}function le(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Xr(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 ir(e){const{cssText:r}=e;if(r.split('"').length<3)return r;const l=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?l.push("layer"):e.layerName&&l.push(`layer(${e.layerName})`),e.supportsText&&l.push(`supports(${e.supportsText})`),e.media.length&&l.push(e.media.mediaText),l.join(" ")+";"}function Q(e){try{const r=e.rules||e.cssRules;if(!r)return null;const l=Array.from(r,u=>sr(u,e.href)).join("");return Xr(l)}catch(r){return null}}function sr(e,r){if(or(e)){let l;try{l=Q(e.styleSheet)||ir(e)}catch(u){l=e.cssText}return e.styleSheet.href?X(l,e.styleSheet.href):l}else{let l=e.cssText;return lr(e)&&e.selectorText.includes(":")&&(l=nr(l)),r?X(l,r):l}}function nr(e){const r=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(r,"$1\\$2")}function or(e){return"styleSheet"in e}function lr(e){return"selectorText"in e}class ce{constructor(){mt(this,"idNodeMap",new Map),mt(this,"nodeMetaMap",new WeakMap)}getId(r){var l;if(!r)return-1;const u=(l=this.getMeta(r))==null?void 0:l.id;return u!=null?u:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){const l=this.getId(r);this.idNodeMap.delete(l),r.childNodes&&r.childNodes.forEach(u=>this.removeNodeFromMap(u))}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,l){const u=l.id;this.idNodeMap.set(u,r),this.nodeMetaMap.set(r,l)}replace(r,l){const u=this.getNode(r);if(u){const s=this.nodeMetaMap.get(u);s&&this.nodeMetaMap.set(l,s)}this.idNodeMap.set(r,l)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Zr(){return new ce}function ar({element:e,maskInputOptions:r,tagName:l,type:u,value:s,maskInputFn:f}){let c=s||"";const h=u&&Z(u);return(r[l.toLowerCase()]||h&&r[h])&&(f?c=f(c,e):c="*".repeat(c.length)),c}function Z(e){return e.toLowerCase()}const wt="__rrweb_original__";function ur(e){const r=e.getContext("2d");if(!r)return!0;const l=50;for(let u=0;u<e.width;u+=l)for(let s=0;s<e.height;s+=l){const f=r.getImageData,c=wt in f?f[wt]:f;if(new Uint32Array(c.call(r,u,s,Math.min(l,e.width-u),Math.min(l,e.height-s)).data.buffer).some(g=>g!==0))return!1}return!0}function cr(e,r){return!e||!r||e.type!==r.type?!1:e.type===_.Document?e.compatMode===r.compatMode:e.type===_.DocumentType?e.name===r.name&&e.publicId===r.publicId&&e.systemId===r.systemId:e.type===_.Comment||e.type===_.Text||e.type===_.CDATA?e.textContent===r.textContent:e.type===_.Element?e.tagName===r.tagName&&JSON.stringify(e.attributes)===JSON.stringify(r.attributes)&&e.isSVG===r.isSVG&&e.needBlock===r.needBlock:!1}function fr(e){const r=e.type;return e.hasAttribute("data-rr-is-password")?"password":r?Z(r):null}function fe(e,r){var f;let l;try{l=new URL(e,r!=null?r:window.location.href)}catch(c){return null}const u=/\.([0-9a-z]+)(?:$)/i,s=l.pathname.match(u);return(f=s==null?void 0:s[1])!=null?f:null}function ei(e){let r="";return e.indexOf("//")>-1?r=e.split("/").slice(0,3).join("/"):r=e.split("/")[0],r=r.split("?")[0],r}const ti=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ri=/^(?:[a-z+]+:)?\/\//i,ii=/^www\..*/i,si=/^(data:)([^,]*),(.*)/i;function X(e,r){return(e||"").replace(ti,(l,u,s,f,c,h)=>{const g=s||c||h,o=u||f||"";if(!g)return l;if(ri.test(g)||ii.test(g))return`url(${o}${g}${o})`;if(si.test(g))return`url(${o}${g}${o})`;if(g[0]==="/")return`url(${o}${ei(r)+g}${o})`;const t=r.split("/"),a=g.split("/");t.pop();for(const n of a)n!=="."&&(n===".."?t.pop():t.push(n));return`url(${o}${t.join("/")}${o})`})}let hr=1;const ni=new RegExp("[^a-z0-9-_:]"),Qe=-2;function pr(){return hr++}function oi(e){if(e instanceof HTMLFormElement)return"form";const r=Z(e.tagName);return ni.test(r)?"div":r}let H,bt;const li=/^[^ \t\n\r\u000c]+/,ai=/^[, \t\n\r\u000c]+/;function ui(e,r){if(r.trim()==="")return r;let l=0;function u(f){let c;const h=f.exec(r.substring(l));return h?(c=h[0],l+=c.length,c):""}const s=[];for(;u(ai),!(l>=r.length);){let f=u(li);if(f.slice(-1)===",")f=J(e,f.substring(0,f.length-1)),s.push(f);else{let c="";f=J(e,f);let h=!1;for(;;){const g=r.charAt(l);if(g===""){s.push((f+c).trim());break}else if(h)g===")"&&(h=!1);else if(g===","){l+=1,s.push((f+c).trim());break}else g==="("&&(h=!0);c+=g,l+=1}}}return s.join(", ")}const St=new WeakMap;function J(e,r){return!r||r.trim()===""?r:et(e,r)}function ci(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function et(e,r){let l=St.get(e);if(l||(l=e.createElement("a"),St.set(e,l)),!r)r="";else if(r.startsWith("blob:")||r.startsWith("data:"))return r;return l.setAttribute("href",r),l.href}function dr(e,r,l,u){return u&&(l==="src"||l==="href"&&!(r==="use"&&u[0]==="#")||l==="xlink:href"&&u[0]!=="#"||l==="background"&&(r==="table"||r==="td"||r==="th")?J(e,u):l==="srcset"?ui(e,u):l==="style"?X(u,et(e)):r==="object"&&l==="data"?J(e,u):u)}function mr(e,r,l){return(e==="video"||e==="audio")&&r==="autoplay"}function fi(e,r,l){try{if(typeof r=="string"){if(e.classList.contains(r))return!0}else for(let u=e.classList.length;u--;){const s=e.classList[u];if(r.test(s))return!0}if(l)return e.matches(l)}catch(u){}return!1}function ae(e,r,l){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return l?ae(L.parentNode(e),r,l):!1;for(let u=e.classList.length;u--;){const s=e.classList[u];if(r.test(s))return!0}return l?ae(L.parentNode(e),r,l):!1}function gr(e,r,l,u){let s;if(ue(e)){if(s=e,!L.childNodes(s).length)return!1}else{if(L.parentElement(e)===null)return!1;s=L.parentElement(e)}try{if(typeof r=="string"){if(u){if(s.closest(`.${r}`))return!0}else if(s.classList.contains(r))return!0}else if(ae(s,r,u))return!0;if(l){if(u){if(s.closest(l))return!0}else if(s.matches(l))return!0}}catch(f){}return!1}function hi(e,r,l){const u=e.contentWindow;if(!u)return;let s=!1,f;try{f=u.document.readyState}catch(h){return}if(f!=="complete"){const h=setTimeout(()=>{s||(r(),s=!0)},l);e.addEventListener("load",()=>{clearTimeout(h),s=!0,r()});return}const c="about:blank";if(u.location.href!==c||e.src===c||e.src==="")return setTimeout(r,0),e.addEventListener("load",r);e.addEventListener("load",r)}function pi(e,r,l){let u=!1,s;try{s=e.sheet}catch(c){return}if(s)return;const f=setTimeout(()=>{u||(r(),u=!0)},l);e.addEventListener("load",()=>{clearTimeout(f),u=!0,r()})}function di(e,r){const{doc:l,mirror:u,blockClass:s,blockSelector:f,needsMask:c,inlineStylesheet:h,maskInputOptions:g={},maskTextFn:o,maskInputFn:t,dataURLOptions:a={},inlineImages:n,recordCanvas:i,keepIframeSrcFn:d,newlyAddedElement:p=!1}=r,m=mi(l,u);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:_.Document,childNodes:[],compatMode:e.compatMode}:{type:_.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:_.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:m};case e.ELEMENT_NODE:return wi(e,{doc:l,blockClass:s,blockSelector:f,inlineStylesheet:h,maskInputOptions:g,maskInputFn:t,dataURLOptions:a,inlineImages:n,recordCanvas:i,keepIframeSrcFn:d,newlyAddedElement:p,rootId:m});case e.TEXT_NODE:return gi(e,{doc:l,needsMask:c,maskTextFn:o,rootId:m});case e.CDATA_SECTION_NODE:return{type:_.CDATA,textContent:"",rootId:m};case e.COMMENT_NODE:return{type:_.Comment,textContent:L.textContent(e)||"",rootId:m};default:return!1}}function mi(e,r){if(!r.hasNode(e))return;const l=r.getId(e);return l===1?void 0:l}function gi(e,r){var l;const{needsMask:u,maskTextFn:s,rootId:f}=r,c=L.parentNode(e),h=c&&c.tagName;let g=L.textContent(e);const o=h==="STYLE"?!0:void 0,t=h==="SCRIPT"?!0:void 0;if(o&&g){try{e.nextSibling||e.previousSibling||(l=c.sheet)!=null&&l.cssRules&&(g=Q(c.sheet))}catch(a){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${a}`,e)}g=X(g,et(r.doc))}return t&&(g="SCRIPT_PLACEHOLDER"),!o&&!t&&g&&u&&(g=s?s(g,L.parentElement(e)):g.replace(/[\S]/g,"*")),{type:_.Text,textContent:g||"",isStyle:o,rootId:f}}function vt(e,r){return Array.from(e.styleSheets).find(l=>l.href===r)}function yi(e){return e.href}function wi(e,r){const{doc:l,blockClass:u,blockSelector:s,inlineStylesheet:f,maskInputOptions:c={},maskInputFn:h,dataURLOptions:g={},inlineImages:o,recordCanvas:t,keepIframeSrcFn:a,newlyAddedElement:n=!1,rootId:i}=r,d=fi(e,u,s),p=oi(e);let m={};const C=e.attributes.length;for(let w=0;w<C;w++){const v=e.attributes[w];mr(p,v.name,v.value)||(m[v.name]=dr(l,p,Z(v.name),v.value))}if(p==="link"&&f){const w=yi(e);if(w){let v=vt(l,w);if(!v&&w.includes(".css")){const y=window.location.origin,x=w.replace(window.location.href,""),E=y+"/"+x;v=vt(l,E)}let b=null;v&&(b=Q(v)),b&&(delete m.rel,delete m.href,m._cssText=b)}}if(p==="style"&&e.sheet&&!(e.innerText||L.textContent(e)||"").trim().length){const w=Q(e.sheet);w&&(m._cssText=w)}if(p==="input"||p==="textarea"||p==="select"){const w=e.value,v=e.checked;m.type!=="radio"&&m.type!=="checkbox"&&m.type!=="submit"&&m.type!=="button"&&w?m.value=ar({element:e,type:fr(e),tagName:p,value:w,maskInputOptions:c,maskInputFn:h}):v&&(m.checked=v)}if(p==="option"&&(e.selected&&!c.select?m.selected=!0:delete m.selected),p==="dialog"&&e.open)try{m.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(w){m.rr_open_mode="modal",m.ph_rr_could_not_detect_modal=!0}if(p==="canvas"&&t){if(e.__context==="2d")ur(e)||(m.rr_dataURL=e.toDataURL(g.type,g.quality));else if(!("__context"in e)){const w=e.toDataURL(g.type,g.quality),v=l.createElement("canvas");v.width=e.width,v.height=e.height;const b=v.toDataURL(g.type,g.quality);w!==b&&(m.rr_dataURL=w)}}if(p==="img"&&o){H||(H=l.createElement("canvas"),bt=H.getContext("2d"));const w=e,v=w.currentSrc||w.getAttribute("src")||"<unknown-src>",b=w.crossOrigin,y=()=>{w.removeEventListener("load",y);try{H.width=w.naturalWidth,H.height=w.naturalHeight,bt.drawImage(w,0,0),m.rr_dataURL=H.toDataURL(g.type,g.quality)}catch(x){if(w.crossOrigin!=="anonymous"){w.crossOrigin="anonymous",w.complete&&w.naturalWidth!==0?y():w.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${v}! Error: ${x}`)}w.crossOrigin==="anonymous"&&(b?m.crossOrigin=b:w.removeAttribute("crossorigin"))};w.complete&&w.naturalWidth!==0?y():w.addEventListener("load",y)}if(p==="audio"||p==="video"){const w=m;w.rr_mediaState=e.paused?"paused":"played",w.rr_mediaCurrentTime=e.currentTime,w.rr_mediaPlaybackRate=e.playbackRate,w.rr_mediaMuted=e.muted,w.rr_mediaLoop=e.loop,w.rr_mediaVolume=e.volume}if(n||(e.scrollLeft&&(m.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(m.rr_scrollTop=e.scrollTop)),d){const{width:w,height:v}=e.getBoundingClientRect();m={class:m.class,rr_width:`${w}px`,rr_height:`${v}px`}}p==="iframe"&&!a(m.src)&&(e.contentDocument||(m.rr_src=m.src),delete m.src);let S;try{customElements.get(p)&&(S=!0)}catch(w){}return{type:_.Element,tagName:p,attributes:m,childNodes:[],isSVG:ci(e)||void 0,needBlock:d,rootId:i,isCustom:S}}function P(e){return e==null?"":e.toLowerCase()}function bi(e,r){if(r.comment&&e.type===_.Comment)return!0;if(e.type===_.Element){if(r.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"&&fe(e.attributes.href)==="js"))return!0;if(r.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(P(e.attributes.name).match(/^msapplication-tile(image|color)$/)||P(e.attributes.name)==="application-name"||P(e.attributes.rel)==="icon"||P(e.attributes.rel)==="apple-touch-icon"||P(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(r.headMetaDescKeywords&&P(e.attributes.name).match(/^description|keywords$/))return!0;if(r.headMetaSocial&&(P(e.attributes.property).match(/^(og|twitter|fb):/)||P(e.attributes.name).match(/^(og|twitter):/)||P(e.attributes.name)==="pinterest"))return!0;if(r.headMetaRobots&&(P(e.attributes.name)==="robots"||P(e.attributes.name)==="googlebot"||P(e.attributes.name)==="bingbot"))return!0;if(r.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(r.headMetaAuthorship&&(P(e.attributes.name)==="author"||P(e.attributes.name)==="generator"||P(e.attributes.name)==="framework"||P(e.attributes.name)==="publisher"||P(e.attributes.name)==="progid"||P(e.attributes.property).match(/^article:/)||P(e.attributes.property).match(/^product:/)))return!0;if(r.headMetaVerification&&(P(e.attributes.name)==="google-site-verification"||P(e.attributes.name)==="yandex-verification"||P(e.attributes.name)==="csrf-token"||P(e.attributes.name)==="p:domain_verify"||P(e.attributes.name)==="verify-v1"||P(e.attributes.name)==="verification"||P(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Y(e,r){const{doc:l,mirror:u,blockClass:s,blockSelector:f,maskTextClass:c,maskTextSelector:h,skipChild:g=!1,inlineStylesheet:o=!0,maskInputOptions:t={},maskTextFn:a,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d={},inlineImages:p=!1,recordCanvas:m=!1,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w=5e3,onStylesheetLoad:v,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:x=!1}=r;let{needsMask:E}=r,{preserveWhiteSpace:M=!0}=r;E||(E=gr(e,c,h,E===void 0));const O=di(e,{doc:l,mirror:u,blockClass:s,blockSelector:f,needsMask:E,inlineStylesheet:o,maskInputOptions:t,maskTextFn:a,maskInputFn:n,dataURLOptions:d,inlineImages:p,recordCanvas:m,keepIframeSrcFn:y,newlyAddedElement:x});if(!O)return console.warn(e,"not serialized"),null;let I;u.hasNode(e)?I=u.getId(e):bi(O,i)||!M&&O.type===_.Text&&!O.isStyle&&!O.textContent.replace(/^\s+|\s+$/gm,"").length?I=Qe:I=pr();const A=Object.assign(O,{id:I});if(u.add(e,A),I===Qe)return null;C&&C(e);let j=!g;if(A.type===_.Element){j=j&&!A.needBlock,delete A.needBlock;const R=L.shadowRoot(e);R&&le(R)&&(A.isShadowHost=!0)}if((A.type===_.Document||A.type===_.Element)&&j){i.headWhitespace&&A.type===_.Element&&A.tagName==="head"&&(M=!1);const R={doc:l,mirror:u,blockClass:s,blockSelector:f,needsMask:E,maskTextClass:c,maskTextSelector:h,skipChild:g,inlineStylesheet:o,maskInputOptions:t,maskTextFn:a,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d,inlineImages:p,recordCanvas:m,preserveWhiteSpace:M,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:y};if(!(A.type===_.Element&&A.tagName==="textarea"&&A.attributes.value!==void 0))for(const D of Array.from(L.childNodes(e))){const T=Y(D,R);T&&A.childNodes.push(T)}let B=null;if(ue(e)&&(B=L.shadowRoot(e)))for(const D of Array.from(L.childNodes(B))){const T=Y(D,R);T&&(le(B)&&(T.isShadow=!0),A.childNodes.push(T))}}const q=L.parentNode(e);return q&&rr(q)&&le(q)&&(A.isShadow=!0),A.type===_.Element&&A.tagName==="iframe"&&hi(e,()=>{const R=e.contentDocument;if(R&&S){const B=Y(R,{doc:R,mirror:u,blockClass:s,blockSelector:f,needsMask:E,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:o,maskInputOptions:t,maskTextFn:a,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d,inlineImages:p,recordCanvas:m,preserveWhiteSpace:M,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:y});B&&S(e,B)}},w),A.type===_.Element&&A.tagName==="link"&&typeof A.attributes.rel=="string"&&(A.attributes.rel==="stylesheet"||A.attributes.rel==="preload"&&typeof A.attributes.href=="string"&&fe(A.attributes.href)==="css")&&pi(e,()=>{if(v){const R=Y(e,{doc:l,mirror:u,blockClass:s,blockSelector:f,needsMask:E,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:o,maskInputOptions:t,maskTextFn:a,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d,inlineImages:p,recordCanvas:m,preserveWhiteSpace:M,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:y});R&&v(e,R)}},b),A}function Si(e,r){const{mirror:l=new ce,blockClass:u="rr-block",blockSelector:s=null,maskTextClass:f="rr-mask",maskTextSelector:c=null,inlineStylesheet:h=!0,inlineImages:g=!1,recordCanvas:o=!1,maskAllInputs:t=!1,maskTextFn:a,maskInputFn:n,slimDOM:i=!1,dataURLOptions:d,preserveWhiteSpace:p,onSerialize:m,onIframeLoad:C,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:v,keepIframeSrcFn:b=()=>!1}=r||{};return Y(e,{doc:e,mirror:l,blockClass:u,blockSelector:s,maskTextClass:f,maskTextSelector:c,skipChild:!1,inlineStylesheet:h,maskInputOptions:t===!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}:t===!1?{password:!0}:t,maskTextFn:a,maskInputFn:n,slimDOMOptions:i===!0||i==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:i==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:i===!1?{}:i,dataURLOptions:d,inlineImages:g,recordCanvas:o,preserveWhiteSpace:p,onSerialize:m,onIframeLoad:C,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:v,keepIframeSrcFn:b,newlyAddedElement:!1})}function vi(e,r){function l(u){r(u),(u.type===_.Document||u.type===_.Element)&&u.childNodes.forEach(l)}l(e)}function Ci(){hr=1}const xi=/(max|min)-device-(width|height)/,Ct=new RegExp(xi.source,"g"),Ri={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Ct)&&(e.params=e.params.replace(Ct,"$1-$2"))}}}},Ei={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(r){e.indexOf(r)===-1&&(e.push(r),r.selectors.forEach(function(l){l.includes(":hover")&&(r.selector+=`,
|
|
15
|
+
`+l.replace(/:hover/g,".\\:hover"))}))}}}};function yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Oi(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var l=function u(){return this instanceof u?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};l.prototype=r.prototype}else l={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.keys(e).forEach(function(u){var s=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(l,u,s.get?s:{enumerable:!0,get:function(){return e[u]}})}),l}var ne={exports:{}},xt;function Ai(){if(xt)return ne.exports;xt=1;var e=String,r=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,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return ne.exports=r(),ne.exports.createColors=r,ne.exports}const Ni={},Mi=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),U=Oi(Mi);var Ce,Rt;function tt(){if(Rt)return Ce;Rt=1;let e=Ai(),r=U;class l extends Error{constructor(s,f,c,h,g,o){super(s),this.name="CssSyntaxError",this.reason=s,g&&(this.file=g),h&&(this.source=h),o&&(this.plugin=o),typeof f!="undefined"&&typeof c!="undefined"&&(typeof f=="number"?(this.line=f,this.column=c):(this.line=f.line,this.column=f.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,l)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let f=this.source;s==null&&(s=e.isColorSupported);let c=i=>i,h=i=>i,g=i=>i;if(s){let{bold:i,gray:d,red:p}=e.createColors(!0);h=m=>i(p(m)),c=m=>d(m),r&&(g=m=>r(m))}let o=f.split(/\r?\n/),t=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),n=String(a).length;return o.slice(t,a).map((i,d)=>{let p=t+1+d,m=" "+(" "+p).slice(-n)+" | ";if(p===this.line){if(i.length>160){let S=20,w=Math.max(0,this.column-S),v=Math.max(this.column+S,this.endColumn+S),b=i.slice(w,v),y=c(m.replace(/\d/g," "))+i.slice(0,Math.min(this.column-1,S-1)).replace(/[^\t]/g," ");return h(">")+c(m)+g(b)+`
|
|
16
|
+
`+y+h("^")}let C=c(m.replace(/\d/g," "))+i.slice(0,this.column-1).replace(/[^\t]/g," ");return h(">")+c(m)+g(i)+`
|
|
17
|
+
`+C+h("^")}return" "+c(m)+g(i)}).join(`
|
|
18
18
|
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
19
19
|
|
|
20
20
|
`+s+`
|
|
21
|
-
`),this.name+": "+this.message+s}}return
|
|
21
|
+
`),this.name+": "+this.message+s}}return Ce=l,l.default=l,Ce}var xe,Et;function wr(){if(Et)return xe;Et=1;const e={after:`
|
|
22
22
|
`,beforeClose:`
|
|
23
23
|
`,beforeComment:`
|
|
24
24
|
`,beforeDecl:`
|
|
25
25
|
`,beforeOpen:" ",beforeRule:`
|
|
26
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function r(
|
|
27
|
-
`)){let
|
|
28
|
-
`)&&(
|
|
29
|
-
`)&&(
|
|
30
|
-
`)&&(
|
|
31
|
-
`)&&(
|
|
32
|
-
`);return
|
|
33
|
-
`?(t=1,
|
|
34
|
-
`?(t=1,f+=1):t+=1;return{column:t,line:f}}prev(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u-1]}rangeBy(u){let t={column:this.source.start.column,line:this.source.start.line},f=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(u.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,d=n.slice(a(n,this.source.start),a(n,this.source.end)).indexOf(u.word);d!==-1&&(t=this.positionInside(d),f=this.positionInside(d+u.word.length))}else u.start?t={column:u.start.column,line:u.start.line}:u.index&&(t=this.positionInside(u.index)),u.end?f={column:u.end.column,line:u.end.line}:typeof u.endIndex=="number"?f=this.positionInside(u.endIndex):u.index&&(f=this.positionInside(u.index+1));return(f.line<t.line||f.line===t.line&&f.column<=t.column)&&(f={column:t.column+1,line:t.line}),{end:f,start:t}}raw(u,t){return new r().raw(this,u,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...u){if(this.parent){let t=this,f=!1;for(let n of u)n===this?f=!0:f?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);f||this.remove()}return this}root(){let u=this;for(;u.parent&&u.parent.type!=="document";)u=u.parent;return u}toJSON(u,t){let f={},n=t==null;t=t||new Map;let i=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let p=this[d];if(Array.isArray(p))f[d]=p.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,t):g);else if(typeof p=="object"&&p.toJSON)f[d]=p.toJSON(null,t);else if(d==="source"){let g=t.get(p.input);g==null&&(g=i,t.set(p.input,i),i++),f[d]={end:p.end,inputId:g,start:p.start}}else f[d]=p}return n&&(f.inputs=[...t.keys()].map(d=>d.toJSON())),f}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(u=o){u.stringify&&(u=u.stringify);let t="";return u(this,f=>{t+=f}),t}warn(u,t,f){let n={node:this};for(let i in f)n[i]=f[i];return u.warn(t,n)}get proxyOf(){return this}}return Ae=h,h.default=h,Ae}var _e,kt;function X(){if(kt)return _e;kt=1;let e=de();class r extends e{constructor(l){super(l),this.type="comment"}}return _e=r,r.default=r,_e}var Pe,It;function me(){if(It)return Pe;It=1;let e=de();class r extends e{constructor(l){l&&typeof l.value!="undefined"&&typeof l.value!="string"&&(l=K(q({},l),{value:String(l.value)})),super(l),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Pe=r,r.default=r,Pe}var ke,Lt;function V(){if(Lt)return ke;Lt=1;let e=X(),r=me(),o=de(),{isClean:l,my:s}=nt(),c,a,h,m;function u(n){return n.map(i=>(i.nodes&&(i.nodes=u(i.nodes)),delete i.source,i))}function t(n){if(n[l]=!1,n.proxyOf.nodes)for(let i of n.proxyOf.nodes)t(i)}class f extends o{append(...i){for(let d of i){let p=this.normalize(d,this.last);for(let g of p)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(i){if(super.cleanRaws(i),this.nodes)for(let d of this.nodes)d.cleanRaws(i)}each(i){if(!this.proxyOf.nodes)return;let d=this.getIterator(),p,g;for(;this.indexes[d]<this.proxyOf.nodes.length&&(p=this.indexes[d],g=i(this.proxyOf.nodes[p],p),g!==!1);)this.indexes[d]+=1;return delete this.indexes[d],g}every(i){return this.nodes.every(i)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let i=this.lastEach;return this.indexes[i]=0,i}getProxyProcessor(){return{get(i,d){return d==="proxyOf"?i:i[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...p)=>i[d](...p.map(g=>typeof g=="function"?(C,S)=>g(C.toProxy(),S):g)):d==="every"||d==="some"?p=>i[d]((g,...C)=>p(g.toProxy(),...C)):d==="root"?()=>i.root().toProxy():d==="nodes"?i.nodes.map(p=>p.toProxy()):d==="first"||d==="last"?i[d].toProxy():i[d]:i[d]},set(i,d,p){return i[d]===p||(i[d]=p,(d==="name"||d==="params"||d==="selector")&&i.markDirty()),!0}}}index(i){return typeof i=="number"?i:(i.proxyOf&&(i=i.proxyOf),this.proxyOf.nodes.indexOf(i))}insertAfter(i,d){let p=this.index(i),g=this.normalize(d,this.proxyOf.nodes[p]).reverse();p=this.index(i);for(let S of g)this.proxyOf.nodes.splice(p+1,0,S);let C;for(let S in this.indexes)C=this.indexes[S],p<C&&(this.indexes[S]=C+g.length);return this.markDirty(),this}insertBefore(i,d){let p=this.index(i),g=p===0?"prepend":!1,C=this.normalize(d,this.proxyOf.nodes[p],g).reverse();p=this.index(i);for(let y of C)this.proxyOf.nodes.splice(p,0,y);let S;for(let y in this.indexes)S=this.indexes[y],p<=S&&(this.indexes[y]=S+C.length);return this.markDirty(),this}normalize(i,d){if(typeof i=="string")i=u(a(i).nodes);else if(typeof i=="undefined")i=[];else if(Array.isArray(i)){i=i.slice(0);for(let g of i)g.parent&&g.parent.removeChild(g,"ignore")}else if(i.type==="root"&&this.type!=="document"){i=i.nodes.slice(0);for(let g of i)g.parent&&g.parent.removeChild(g,"ignore")}else if(i.type)i=[i];else if(i.prop){if(typeof i.value=="undefined")throw new Error("Value field is missed in node creation");typeof i.value!="string"&&(i.value=String(i.value)),i=[new r(i)]}else if(i.selector||i.selectors)i=[new m(i)];else if(i.name)i=[new c(i)];else if(i.text)i=[new e(i)];else throw new Error("Unknown node type in node creation");return i.map(g=>(g[s]||f.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[l]&&t(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&d&&typeof d.raws.before!="undefined"&&(g.raws.before=d.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...i){i=i.reverse();for(let d of i){let p=this.normalize(d,this.first,"prepend").reverse();for(let g of p)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+p.length}return this.markDirty(),this}push(i){return i.parent=this,this.proxyOf.nodes.push(i),this}removeAll(){for(let i of this.proxyOf.nodes)i.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(i){i=this.index(i),this.proxyOf.nodes[i].parent=void 0,this.proxyOf.nodes.splice(i,1);let d;for(let p in this.indexes)d=this.indexes[p],d>=i&&(this.indexes[p]=d-1);return this.markDirty(),this}replaceValues(i,d,p){return p||(p=d,d={}),this.walkDecls(g=>{d.props&&!d.props.includes(g.prop)||d.fast&&!g.value.includes(d.fast)||(g.value=g.value.replace(i,p))}),this.markDirty(),this}some(i){return this.nodes.some(i)}walk(i){return this.each((d,p)=>{let g;try{g=i(d,p)}catch(C){throw d.addToError(C)}return g!==!1&&d.walk&&(g=d.walk(i)),g})}walkAtRules(i,d){return d?i instanceof RegExp?this.walk((p,g)=>{if(p.type==="atrule"&&i.test(p.name))return d(p,g)}):this.walk((p,g)=>{if(p.type==="atrule"&&p.name===i)return d(p,g)}):(d=i,this.walk((p,g)=>{if(p.type==="atrule")return d(p,g)}))}walkComments(i){return this.walk((d,p)=>{if(d.type==="comment")return i(d,p)})}walkDecls(i,d){return d?i instanceof RegExp?this.walk((p,g)=>{if(p.type==="decl"&&i.test(p.prop))return d(p,g)}):this.walk((p,g)=>{if(p.type==="decl"&&p.prop===i)return d(p,g)}):(d=i,this.walk((p,g)=>{if(p.type==="decl")return d(p,g)}))}walkRules(i,d){return d?i instanceof RegExp?this.walk((p,g)=>{if(p.type==="rule"&&i.test(p.selector))return d(p,g)}):this.walk((p,g)=>{if(p.type==="rule"&&p.selector===i)return d(p,g)}):(d=i,this.walk((p,g)=>{if(p.type==="rule")return d(p,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 f.registerParse=n=>{a=n},f.registerRule=n=>{m=n},f.registerAtRule=n=>{c=n},f.registerRoot=n=>{h=n},ke=f,f.default=f,f.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,c.prototype):n.type==="rule"?Object.setPrototypeOf(n,m.prototype):n.type==="decl"?Object.setPrototypeOf(n,r.prototype):n.type==="comment"?Object.setPrototypeOf(n,e.prototype):n.type==="root"&&Object.setPrototypeOf(n,h.prototype),n[s]=!0,n.nodes&&n.nodes.forEach(i=>{f.rebuild(i)})},ke}var Ie,Dt;function ot(){if(Dt)return Ie;Dt=1;let e=V();class r 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 Ie=r,r.default=r,e.registerAtRule(r),Ie}var Le,Tt;function lt(){if(Tt)return Le;Tt=1;let e=V(),r,o;class l extends e{constructor(c){super(q({type:"document"},c)),this.nodes||(this.nodes=[])}toResult(c={}){return new r(new o,this,c).stringify()}}return l.registerLazyResult=s=>{r=s},l.registerProcessor=s=>{o=s},Le=l,l.default=l,Le}var De,Ut;function Li(){if(Ut)return De;Ut=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return De={nanoid:(l=21)=>{let s="",c=l|0;for(;c--;)s+=e[Math.random()*64|0];return s},customAlphabet:(l,s=21)=>(c=s)=>{let a="",h=c|0;for(;h--;)a+=l[Math.random()*l.length|0];return a}},De}var Te,Bt;function Rr(){if(Bt)return Te;Bt=1;let{existsSync:e,readFileSync:r}=z,{dirname:o,join:l}=z,{SourceMapConsumer:s,SourceMapGenerator:c}=z;function a(m){return Buffer?Buffer.from(m,"base64").toString():window.atob(m)}class h{constructor(u,t){if(t.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let f=t.map?t.map.prev:void 0,n=this.loadMap(t.from,f);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=o(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(u){let t=/^data:application\/json;charset=utf-?8;base64,/,f=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/,d=u.match(n)||u.match(i);if(d)return decodeURIComponent(u.substr(d[0].length));let p=u.match(t)||u.match(f);if(p)return a(u.substr(p[0].length));let g=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(u){return typeof u!="object"?!1:typeof u.mappings=="string"||typeof u._mappings=="string"||Array.isArray(u.sections)}loadAnnotation(u){let t=u.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let f=u.lastIndexOf(t.pop()),n=u.indexOf("*/",f);f>-1&&n>-1&&(this.annotation=this.getAnnotationURL(u.substring(f,n)))}loadFile(u){if(this.root=o(u),e(u))return this.mapFile=u,r(u,"utf-8").toString().trim()}loadMap(u,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let f=t(u);if(f){let n=this.loadFile(f);if(!n)throw new Error("Unable to load previous source map: "+f.toString());return n}}else{if(t instanceof s)return c.fromSourceMap(t).toString();if(t instanceof c)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let f=this.annotation;return u&&(f=l(o(u),f)),this.loadFile(f)}}}startWith(u,t){return u?u.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Te=h,h.default=h,Te}var Ue,Ft;function ge(){if(Ft)return Ue;Ft=1;let{nanoid:e}=Li(),{isAbsolute:r,resolve:o}=z,{SourceMapConsumer:l,SourceMapGenerator:s}=z,{fileURLToPath:c,pathToFileURL:a}=z,h=st(),m=Rr(),u=z,t=Symbol("fromOffsetCache"),f=!!(l&&s),n=!!(o&&r);class i{constructor(p,g={}){if(p===null||typeof p=="undefined"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,g.document&&(this.document=g.document.toString()),g.from&&(!n||/^\w+:\/\//.test(g.from)||r(g.from)?this.file=g.from:this.file=o(g.from)),n&&f){let C=new m(this.css,g);if(C.text){this.map=C;let S=C.consumer().file;!this.file&&S&&(this.file=this.mapResolve(S))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(p,g,C,S={}){let y,v,b;if(g&&typeof g=="object"){let x=g,E=C;if(typeof x.offset=="number"){let N=this.fromOffset(x.offset);g=N.line,C=N.col}else g=x.line,C=x.column;if(typeof E.offset=="number"){let N=this.fromOffset(E.offset);v=N.line,y=N.col}else v=E.line,y=E.column}else if(!C){let x=this.fromOffset(g);g=x.line,C=x.col}let w=this.origin(g,C,v,y);return w?b=new h(p,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,S.plugin):b=new h(p,v===void 0?g:{column:C,line:g},v===void 0?C:{column:y,line:v},this.css,this.file,S.plugin),b.input={column:C,endColumn:y,endLine:v,line:g,source:this.css},this.file&&(a&&(b.input.url=a(this.file).toString()),b.input.file=this.file),b}fromOffset(p){let g,C;if(this[t])C=this[t];else{let y=this.css.split(`
|
|
35
|
-
`);C=new Array(
|
|
36
|
-
`," "];return e.split(r,
|
|
26
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function r(u){return u[0].toUpperCase()+u.slice(1)}class l{constructor(s){this.builder=s}atrule(s,f){let c="@"+s.name,h=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?c+=s.raws.afterName:h&&(c+=" "),s.nodes)this.block(s,c+h);else{let g=(s.raws.between||"")+(f?";":"");this.builder(c+h+g,s)}}beforeAfter(s,f){let c;s.type==="decl"?c=this.raw(s,null,"beforeDecl"):s.type==="comment"?c=this.raw(s,null,"beforeComment"):f==="before"?c=this.raw(s,null,"beforeRule"):c=this.raw(s,null,"beforeClose");let h=s.parent,g=0;for(;h&&h.type!=="root";)g+=1,h=h.parent;if(c.includes(`
|
|
27
|
+
`)){let o=this.raw(s,null,"indent");if(o.length)for(let t=0;t<g;t++)c+=o}return c}block(s,f){let c=this.raw(s,"between","beforeOpen");this.builder(f+c+"{",s,"start");let h;s.nodes&&s.nodes.length?(this.body(s),h=this.raw(s,"after")):h=this.raw(s,"after","emptyBody"),h&&this.builder(h),this.builder("}",s,"end")}body(s){let f=s.nodes.length-1;for(;f>0&&s.nodes[f].type==="comment";)f-=1;let c=this.raw(s,"semicolon");for(let h=0;h<s.nodes.length;h++){let g=s.nodes[h],o=this.raw(g,"before");o&&this.builder(o),this.stringify(g,f!==h||c)}}comment(s){let f=this.raw(s,"left","commentLeft"),c=this.raw(s,"right","commentRight");this.builder("/*"+f+s.text+c+"*/",s)}decl(s,f){let c=this.raw(s,"between","colon"),h=s.prop+c+this.rawValue(s,"value");s.important&&(h+=s.raws.important||" !important"),f&&(h+=";"),this.builder(h,s)}document(s){this.body(s)}raw(s,f,c){let h;if(c||(c=f),f&&(h=s.raws[f],typeof h!="undefined"))return h;let g=s.parent;if(c==="before"&&(!g||g.type==="root"&&g.first===s||g&&g.type==="document"))return"";if(!g)return e[c];let o=s.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[c]!="undefined")return o.rawCache[c];if(c==="before"||c==="after")return this.beforeAfter(s,c);{let t="raw"+r(c);this[t]?h=this[t](o,s):o.walk(a=>{if(h=a.raws[f],typeof h!="undefined")return!1})}return typeof h=="undefined"&&(h=e[c]),o.rawCache[c]=h,h}rawBeforeClose(s){let f;return s.walk(c=>{if(c.nodes&&c.nodes.length>0&&typeof c.raws.after!="undefined")return f=c.raws.after,f.includes(`
|
|
28
|
+
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawBeforeComment(s,f){let c;return s.walkComments(h=>{if(typeof h.raws.before!="undefined")return c=h.raws.before,c.includes(`
|
|
29
|
+
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c=="undefined"?c=this.raw(f,null,"beforeDecl"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeDecl(s,f){let c;return s.walkDecls(h=>{if(typeof h.raws.before!="undefined")return c=h.raws.before,c.includes(`
|
|
30
|
+
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c=="undefined"?c=this.raw(f,null,"beforeRule"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeOpen(s){let f;return s.walk(c=>{if(c.type!=="decl"&&(f=c.raws.between,typeof f!="undefined"))return!1}),f}rawBeforeRule(s){let f;return s.walk(c=>{if(c.nodes&&(c.parent!==s||s.first!==c)&&typeof c.raws.before!="undefined")return f=c.raws.before,f.includes(`
|
|
31
|
+
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(s){let f;return s.walkDecls(c=>{if(typeof c.raws.between!="undefined")return f=c.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(s){let f;return s.walk(c=>{if(c.nodes&&c.nodes.length===0&&(f=c.raws.after,typeof f!="undefined"))return!1}),f}rawIndent(s){if(s.raws.indent)return s.raws.indent;let f;return s.walk(c=>{let h=c.parent;if(h&&h!==s&&h.parent&&h.parent===s&&typeof c.raws.before!="undefined"){let g=c.raws.before.split(`
|
|
32
|
+
`);return f=g[g.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(s){let f;return s.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(f=c.raws.semicolon,typeof f!="undefined"))return!1}),f}rawValue(s,f){let c=s[f],h=s.raws[f];return h&&h.value===c?h.raw:c}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,f){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,f)}}return xe=l,l.default=l,xe}var Re,Ot;function he(){if(Ot)return Re;Ot=1;let e=wr();function r(l,u){new e(u).stringify(l)}return Re=r,r.default=r,Re}var oe={},At;function rt(){return At||(At=1,oe.isClean=Symbol("isClean"),oe.my=Symbol("my")),oe}var Ee,Nt;function pe(){if(Nt)return Ee;Nt=1;let e=tt(),r=wr(),l=he(),{isClean:u,my:s}=rt();function f(g,o){let t=new g.constructor;for(let a in g){if(!Object.prototype.hasOwnProperty.call(g,a)||a==="proxyCache")continue;let n=g[a],i=typeof n;a==="parent"&&i==="object"?o&&(t[a]=o):a==="source"?t[a]=n:Array.isArray(n)?t[a]=n.map(d=>f(d,t)):(i==="object"&&n!==null&&(n=f(n)),t[a]=n)}return t}function c(g,o){if(o&&typeof o.offset!="undefined")return o.offset;let t=1,a=1,n=0;for(let i=0;i<g.length;i++){if(a===o.line&&t===o.column){n=i;break}g[i]===`
|
|
33
|
+
`?(t=1,a+=1):t+=1}return n}class h{constructor(o={}){this.raws={},this[u]=!1,this[s]=!0;for(let t in o)if(t==="nodes"){this.nodes=[];for(let a of o[t])typeof a.clone=="function"?this.append(a.clone()):this.append(a)}else this[t]=o[t]}addToError(o){if(o.postcssNode=this,o.stack&&this.source&&/\n\s{4}at /.test(o.stack)){let t=this.source;o.stack=o.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return o}after(o){return this.parent.insertAfter(this,o),this}assign(o={}){for(let t in o)this[t]=o[t];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 t=f(this);for(let a in o)t[a]=o[a];return t}cloneAfter(o={}){let t=this.clone(o);return this.parent.insertAfter(this,t),t}cloneBefore(o={}){let t=this.clone(o);return this.parent.insertBefore(this,t),t}error(o,t={}){if(this.source){let{end:a,start:n}=this.rangeBy(t);return this.source.input.error(o,{column:n.column,line:n.line},{column:a.column,line:a.line},t)}return new e(o)}getProxyProcessor(){return{get(o,t){return t==="proxyOf"?o:t==="root"?()=>o.root().toProxy():o[t]},set(o,t,a){return o[t]===a||(o[t]=a,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&o.markDirty()),!0}}}markClean(){this[u]=!0}markDirty(){if(this[u]){this[u]=!1;let o=this;for(;o=o.parent;)o[u]=!1}}next(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o+1]}positionBy(o){let t=this.source.start;if(o.index)t=this.positionInside(o.index);else if(o.word){let a="document"in this.source.input?this.source.input.document:this.source.input.css,i=a.slice(c(a,this.source.start),c(a,this.source.end)).indexOf(o.word);i!==-1&&(t=this.positionInside(i))}return t}positionInside(o){let t=this.source.start.column,a=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,i=c(n,this.source.start),d=i+o;for(let p=i;p<d;p++)n[p]===`
|
|
34
|
+
`?(t=1,a+=1):t+=1;return{column:t,line:a}}prev(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o-1]}rangeBy(o){let t={column:this.source.start.column,line:this.source.start.line},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(o.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,d=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(o.word);d!==-1&&(t=this.positionInside(d),a=this.positionInside(d+o.word.length))}else o.start?t={column:o.start.column,line:o.start.line}:o.index&&(t=this.positionInside(o.index)),o.end?a={column:o.end.column,line:o.end.line}:typeof o.endIndex=="number"?a=this.positionInside(o.endIndex):o.index&&(a=this.positionInside(o.index+1));return(a.line<t.line||a.line===t.line&&a.column<=t.column)&&(a={column:t.column+1,line:t.line}),{end:a,start:t}}raw(o,t){return new r().raw(this,o,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...o){if(this.parent){let t=this,a=!1;for(let n of o)n===this?a=!0:a?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);a||this.remove()}return this}root(){let o=this;for(;o.parent&&o.parent.type!=="document";)o=o.parent;return o}toJSON(o,t){let a={},n=t==null;t=t||new Map;let i=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let p=this[d];if(Array.isArray(p))a[d]=p.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,t):m);else if(typeof p=="object"&&p.toJSON)a[d]=p.toJSON(null,t);else if(d==="source"){let m=t.get(p.input);m==null&&(m=i,t.set(p.input,i),i++),a[d]={end:p.end,inputId:m,start:p.start}}else a[d]=p}return n&&(a.inputs=[...t.keys()].map(d=>d.toJSON())),a}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(o=l){o.stringify&&(o=o.stringify);let t="";return o(this,a=>{t+=a}),t}warn(o,t,a){let n={node:this};for(let i in a)n[i]=a[i];return o.warn(t,n)}get proxyOf(){return this}}return Ee=h,h.default=h,Ee}var Oe,Mt;function ee(){if(Mt)return Oe;Mt=1;let e=pe();class r extends e{constructor(u){super(u),this.type="comment"}}return Oe=r,r.default=r,Oe}var Ae,_t;function de(){if(_t)return Ae;_t=1;let e=pe();class r extends e{constructor(u){u&&typeof u.value!="undefined"&&typeof u.value!="string"&&(u=K(F({},u),{value:String(u.value)})),super(u),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Ae=r,r.default=r,Ae}var Ne,Pt;function $(){if(Pt)return Ne;Pt=1;let e=ee(),r=de(),l=pe(),{isClean:u,my:s}=rt(),f,c,h,g;function o(n){return n.map(i=>(i.nodes&&(i.nodes=o(i.nodes)),delete i.source,i))}function t(n){if(n[u]=!1,n.proxyOf.nodes)for(let i of n.proxyOf.nodes)t(i)}class a extends l{append(...i){for(let d of i){let p=this.normalize(d,this.last);for(let m of p)this.proxyOf.nodes.push(m)}return this.markDirty(),this}cleanRaws(i){if(super.cleanRaws(i),this.nodes)for(let d of this.nodes)d.cleanRaws(i)}each(i){if(!this.proxyOf.nodes)return;let d=this.getIterator(),p,m;for(;this.indexes[d]<this.proxyOf.nodes.length&&(p=this.indexes[d],m=i(this.proxyOf.nodes[p],p),m!==!1);)this.indexes[d]+=1;return delete this.indexes[d],m}every(i){return this.nodes.every(i)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let i=this.lastEach;return this.indexes[i]=0,i}getProxyProcessor(){return{get(i,d){return d==="proxyOf"?i:i[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...p)=>i[d](...p.map(m=>typeof m=="function"?(C,S)=>m(C.toProxy(),S):m)):d==="every"||d==="some"?p=>i[d]((m,...C)=>p(m.toProxy(),...C)):d==="root"?()=>i.root().toProxy():d==="nodes"?i.nodes.map(p=>p.toProxy()):d==="first"||d==="last"?i[d].toProxy():i[d]:i[d]},set(i,d,p){return i[d]===p||(i[d]=p,(d==="name"||d==="params"||d==="selector")&&i.markDirty()),!0}}}index(i){return typeof i=="number"?i:(i.proxyOf&&(i=i.proxyOf),this.proxyOf.nodes.indexOf(i))}insertAfter(i,d){let p=this.index(i),m=this.normalize(d,this.proxyOf.nodes[p]).reverse();p=this.index(i);for(let S of m)this.proxyOf.nodes.splice(p+1,0,S);let C;for(let S in this.indexes)C=this.indexes[S],p<C&&(this.indexes[S]=C+m.length);return this.markDirty(),this}insertBefore(i,d){let p=this.index(i),m=p===0?"prepend":!1,C=this.normalize(d,this.proxyOf.nodes[p],m).reverse();p=this.index(i);for(let w of C)this.proxyOf.nodes.splice(p,0,w);let S;for(let w in this.indexes)S=this.indexes[w],p<=S&&(this.indexes[w]=S+C.length);return this.markDirty(),this}normalize(i,d){if(typeof i=="string")i=o(c(i).nodes);else if(typeof i=="undefined")i=[];else if(Array.isArray(i)){i=i.slice(0);for(let m of i)m.parent&&m.parent.removeChild(m,"ignore")}else if(i.type==="root"&&this.type!=="document"){i=i.nodes.slice(0);for(let m of i)m.parent&&m.parent.removeChild(m,"ignore")}else if(i.type)i=[i];else if(i.prop){if(typeof i.value=="undefined")throw new Error("Value field is missed in node creation");typeof i.value!="string"&&(i.value=String(i.value)),i=[new r(i)]}else if(i.selector||i.selectors)i=[new g(i)];else if(i.name)i=[new f(i)];else if(i.text)i=[new e(i)];else throw new Error("Unknown node type in node creation");return i.map(m=>(m[s]||a.rebuild(m),m=m.proxyOf,m.parent&&m.parent.removeChild(m),m[u]&&t(m),m.raws||(m.raws={}),typeof m.raws.before=="undefined"&&d&&typeof d.raws.before!="undefined"&&(m.raws.before=d.raws.before.replace(/\S/g,"")),m.parent=this.proxyOf,m))}prepend(...i){i=i.reverse();for(let d of i){let p=this.normalize(d,this.first,"prepend").reverse();for(let m of p)this.proxyOf.nodes.unshift(m);for(let m in this.indexes)this.indexes[m]=this.indexes[m]+p.length}return this.markDirty(),this}push(i){return i.parent=this,this.proxyOf.nodes.push(i),this}removeAll(){for(let i of this.proxyOf.nodes)i.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(i){i=this.index(i),this.proxyOf.nodes[i].parent=void 0,this.proxyOf.nodes.splice(i,1);let d;for(let p in this.indexes)d=this.indexes[p],d>=i&&(this.indexes[p]=d-1);return this.markDirty(),this}replaceValues(i,d,p){return p||(p=d,d={}),this.walkDecls(m=>{d.props&&!d.props.includes(m.prop)||d.fast&&!m.value.includes(d.fast)||(m.value=m.value.replace(i,p))}),this.markDirty(),this}some(i){return this.nodes.some(i)}walk(i){return this.each((d,p)=>{let m;try{m=i(d,p)}catch(C){throw d.addToError(C)}return m!==!1&&d.walk&&(m=d.walk(i)),m})}walkAtRules(i,d){return d?i instanceof RegExp?this.walk((p,m)=>{if(p.type==="atrule"&&i.test(p.name))return d(p,m)}):this.walk((p,m)=>{if(p.type==="atrule"&&p.name===i)return d(p,m)}):(d=i,this.walk((p,m)=>{if(p.type==="atrule")return d(p,m)}))}walkComments(i){return this.walk((d,p)=>{if(d.type==="comment")return i(d,p)})}walkDecls(i,d){return d?i instanceof RegExp?this.walk((p,m)=>{if(p.type==="decl"&&i.test(p.prop))return d(p,m)}):this.walk((p,m)=>{if(p.type==="decl"&&p.prop===i)return d(p,m)}):(d=i,this.walk((p,m)=>{if(p.type==="decl")return d(p,m)}))}walkRules(i,d){return d?i instanceof RegExp?this.walk((p,m)=>{if(p.type==="rule"&&i.test(p.selector))return d(p,m)}):this.walk((p,m)=>{if(p.type==="rule"&&p.selector===i)return d(p,m)}):(d=i,this.walk((p,m)=>{if(p.type==="rule")return d(p,m)}))}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 a.registerParse=n=>{c=n},a.registerRule=n=>{g=n},a.registerAtRule=n=>{f=n},a.registerRoot=n=>{h=n},Ne=a,a.default=a,a.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,f.prototype):n.type==="rule"?Object.setPrototypeOf(n,g.prototype):n.type==="decl"?Object.setPrototypeOf(n,r.prototype):n.type==="comment"?Object.setPrototypeOf(n,e.prototype):n.type==="root"&&Object.setPrototypeOf(n,h.prototype),n[s]=!0,n.nodes&&n.nodes.forEach(i=>{a.rebuild(i)})},Ne}var Me,kt;function it(){if(kt)return Me;kt=1;let e=$();class r extends e{constructor(u){super(u),this.type="atrule"}append(...u){return this.proxyOf.nodes||(this.nodes=[]),super.append(...u)}prepend(...u){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...u)}}return Me=r,r.default=r,e.registerAtRule(r),Me}var _e,It;function st(){if(It)return _e;It=1;let e=$(),r,l;class u extends e{constructor(f){super(F({type:"document"},f)),this.nodes||(this.nodes=[])}toResult(f={}){return new r(new l,this,f).stringify()}}return u.registerLazyResult=s=>{r=s},u.registerProcessor=s=>{l=s},_e=u,u.default=u,_e}var Pe,Lt;function _i(){if(Lt)return Pe;Lt=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Pe={nanoid:(u=21)=>{let s="",f=u|0;for(;f--;)s+=e[Math.random()*64|0];return s},customAlphabet:(u,s=21)=>(f=s)=>{let c="",h=f|0;for(;h--;)c+=u[Math.random()*u.length|0];return c}},Pe}var ke,Dt;function br(){if(Dt)return ke;Dt=1;let{existsSync:e,readFileSync:r}=U,{dirname:l,join:u}=U,{SourceMapConsumer:s,SourceMapGenerator:f}=U;function c(g){return Buffer?Buffer.from(g,"base64").toString():window.atob(g)}class h{constructor(o,t){if(t.map===!1)return;this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");let a=t.map?t.map.prev:void 0,n=this.loadMap(t.from,a);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=l(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(o){let t=/^data:application\/json;charset=utf-?8;base64,/,a=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/,d=o.match(n)||o.match(i);if(d)return decodeURIComponent(o.substr(d[0].length));let p=o.match(t)||o.match(a);if(p)return c(o.substr(p[0].length));let m=o.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(o){return o.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(o){return typeof o!="object"?!1:typeof o.mappings=="string"||typeof o._mappings=="string"||Array.isArray(o.sections)}loadAnnotation(o){let t=o.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let a=o.lastIndexOf(t.pop()),n=o.indexOf("*/",a);a>-1&&n>-1&&(this.annotation=this.getAnnotationURL(o.substring(a,n)))}loadFile(o){if(this.root=l(o),e(o))return this.mapFile=o,r(o,"utf-8").toString().trim()}loadMap(o,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let a=t(o);if(a){let n=this.loadFile(a);if(!n)throw new Error("Unable to load previous source map: "+a.toString());return n}}else{if(t instanceof s)return f.fromSourceMap(t).toString();if(t instanceof f)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let a=this.annotation;return o&&(a=u(l(o),a)),this.loadFile(a)}}}startWith(o,t){return o?o.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ke=h,h.default=h,ke}var Ie,Tt;function me(){if(Tt)return Ie;Tt=1;let{nanoid:e}=_i(),{isAbsolute:r,resolve:l}=U,{SourceMapConsumer:u,SourceMapGenerator:s}=U,{fileURLToPath:f,pathToFileURL:c}=U,h=tt(),g=br(),o=U,t=Symbol("fromOffsetCache"),a=!!(u&&s),n=!!(l&&r);class i{constructor(p,m={}){if(p===null||typeof p=="undefined"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,m.document&&(this.document=m.document.toString()),m.from&&(!n||/^\w+:\/\//.test(m.from)||r(m.from)?this.file=m.from:this.file=l(m.from)),n&&a){let C=new g(this.css,m);if(C.text){this.map=C;let S=C.consumer().file;!this.file&&S&&(this.file=this.mapResolve(S))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(p,m,C,S={}){let w,v,b;if(m&&typeof m=="object"){let x=m,E=C;if(typeof x.offset=="number"){let M=this.fromOffset(x.offset);m=M.line,C=M.col}else m=x.line,C=x.column;if(typeof E.offset=="number"){let M=this.fromOffset(E.offset);v=M.line,w=M.col}else v=E.line,w=E.column}else if(!C){let x=this.fromOffset(m);m=x.line,C=x.col}let y=this.origin(m,C,v,w);return y?b=new h(p,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,S.plugin):b=new h(p,v===void 0?m:{column:C,line:m},v===void 0?C:{column:w,line:v},this.css,this.file,S.plugin),b.input={column:C,endColumn:w,endLine:v,line:m,source:this.css},this.file&&(c&&(b.input.url=c(this.file).toString()),b.input.file=this.file),b}fromOffset(p){let m,C;if(this[t])C=this[t];else{let w=this.css.split(`
|
|
35
|
+
`);C=new Array(w.length);let v=0;for(let b=0,y=w.length;b<y;b++)C[b]=v,v+=w[b].length+1;this[t]=C}m=C[C.length-1];let S=0;if(p>=m)S=C.length-1;else{let w=C.length-2,v;for(;S<w;)if(v=S+(w-S>>1),p<C[v])w=v-1;else if(p>=C[v+1])S=v+1;else{S=v;break}}return{col:p-C[S]+1,line:S+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:l(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,m,C,S){if(!this.map)return!1;let w=this.map.consumer(),v=w.originalPositionFor({column:m,line:p});if(!v.source)return!1;let b;typeof C=="number"&&(b=w.originalPositionFor({column:S,line:C}));let y;r(v.source)?y=c(v.source):y=new URL(v.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let x={column:v.column,endColumn:b&&b.column,endLine:b&&b.line,line:v.line,url:y.toString()};if(y.protocol==="file:")if(f)x.file=f(y);else throw new Error("file: protocol is not available in this PostCSS build");let E=w.sourceContentFor(v.source);return E&&(x.source=E),x}toJSON(){let p={};for(let m of["hasBOM","css","file","id"])this[m]!=null&&(p[m]=this[m]);return this.map&&(p.map=F({},this.map),p.map.consumerCache&&(p.map.consumerCache=void 0)),p}get from(){return this.file||this.id}}return Ie=i,i.default=i,o&&o.registerInput&&o.registerInput(i),Ie}var Le,Ut;function te(){if(Ut)return Le;Ut=1;let e=$(),r,l;class u extends e{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,c,h){let g=super.normalize(f);if(c){if(h==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let o of g)o.raws.before=c.raws.before}return g}removeChild(f,c){let h=this.index(f);return!c&&h===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[h].raws.before),super.removeChild(f)}toResult(f={}){return new r(new l,this,f).stringify()}}return u.registerLazyResult=s=>{r=s},u.registerProcessor=s=>{l=s},Le=u,u.default=u,e.registerRoot(u),Le}var De,Bt;function Sr(){if(Bt)return De;Bt=1;let e={comma(r){return e.split(r,[","],!0)},space(r){let l=[" ",`
|
|
36
|
+
`," "];return e.split(r,l)},split(r,l,u){let s=[],f="",c=!1,h=0,g=!1,o="",t=!1;for(let a of r)t?t=!1:a==="\\"?t=!0:g?a===o&&(g=!1):a==='"'||a==="'"?(g=!0,o=a):a==="("?h+=1:a===")"?h>0&&(h-=1):h===0&&l.includes(a)&&(c=!0),c?(f!==""&&s.push(f.trim()),f="",c=!1):f+=a;return(u||f!=="")&&s.push(f.trim()),s}};return De=e,e.default=e,De}var Te,Ft;function nt(){if(Ft)return Te;Ft=1;let e=$(),r=Sr();class l extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(s){let f=this.selector?this.selector.match(/,\s*/):null,c=f?f[0]:","+this.raw("between","beforeOpen");this.selector=s.join(c)}}return Te=l,l.default=l,e.registerRule(l),Te}var Ue,qt;function Pi(){if(qt)return Ue;qt=1;let e=it(),r=ee(),l=de(),u=me(),s=br(),f=te(),c=nt();function h(g,o){if(Array.isArray(g))return g.map(d=>h(d));let n=g,{inputs:t}=n,a=be(n,["inputs"]);if(t){o=[];for(let d of t){let p=K(F({},d),{__proto__:u.prototype});p.map&&(p.map=K(F({},p.map),{__proto__:s.prototype})),o.push(p)}}if(a.nodes&&(a.nodes=g.nodes.map(d=>h(d,o))),a.source){let i=a.source,{inputId:d}=i,p=be(i,["inputId"]);a.source=p,d!=null&&(a.source.input=o[d])}if(a.type==="root")return new f(a);if(a.type==="decl")return new l(a);if(a.type==="rule")return new c(a);if(a.type==="comment")return new r(a);if(a.type==="atrule")return new e(a);throw new Error("Unknown node type: "+g.type)}return Ue=h,h.default=h,Ue}var Be,zt;function vr(){if(zt)return Be;zt=1;let{dirname:e,relative:r,resolve:l,sep:u}=U,{SourceMapConsumer:s,SourceMapGenerator:f}=U,{pathToFileURL:c}=U,h=me(),g=!!(s&&f),o=!!(e&&l&&r&&u);class t{constructor(n,i,d,p){this.stringify=n,this.mapOpts=d.map||{},this.root=i,this.opts=d,this.css=p,this.originalCSS=p,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let n;this.isInline()?n="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?n=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?n=this.mapOpts.annotation(this.opts.to,this.root):n=this.outputFile()+".map";let i=`
|
|
37
37
|
`;this.css.includes(`\r
|
|
38
38
|
`)&&(i=`\r
|
|
39
|
-
`),this.css+=i+"/*# sourceMappingURL="+n+" */"}applyPrevMaps(){for(let n of this.previous()){let i=this.toUrl(this.path(n.file)),d=n.root||e(n.file),p;this.mapOpts.sourcesContent===!1?(p=new s(n.text),p.sourcesContent&&(p.sourcesContent=null)):p=n.consumer(),this.map.applySourceMap(p,i,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let n;for(let i=this.root.nodes.length-1;i>=0;i--)n=this.root.nodes[i],n.type==="comment"&&n.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(i)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),
|
|
40
|
-
`),i=S.length-g):i+=S.length,y&&v!=="start"){let b=y.parent||{raws:{}};(!(y.type==="decl"||y.type==="atrule"&&!y.nodes)||y!==b.last||b.raws.semicolon)&&(y.source&&y.source.end?(p.source=this.sourcePath(y),p.original.line=y.source.end.line,p.original.column=y.source.end.column-1,p.generated.line=n,p.generated.column=i-2,this.map.addMapping(p)):(p.source=d,p.original.line=1,p.original.column=0,p.generated.line=n,p.generated.column=i-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(n=>n.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let n=this.mapOpts.annotation;return typeof n!="undefined"&&n!==!0?!1:this.previous().length?this.previous().some(i=>i.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(n=>n.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;let i=this.memoizedPaths.get(n);if(i)return i;let d=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=e(o(d,this.mapOpts.annotation)));let p=r(d,n);return this.memoizedPaths.set(n,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(n=>{if(n.source&&n.source.input.map){let i=n.source.input.map;this.previousMaps.includes(i)||this.previousMaps.push(i)}});else{let n=new h(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps}setSourcesContent(){let n={};if(this.root)this.root.walk(i=>{if(i.source){let d=i.source.input.from;if(d&&!n[d]){n[d]=!0;let p=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(p,i.source.input.css)}}});else if(this.css){let i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}}sourcePath(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))}toBase64(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))}toFileUrl(n){let i=this.memoizedFileURLs.get(n);if(i)return i;if(a){let d=a(n).toString();return this.memoizedFileURLs.set(n,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(n){let i=this.memoizedURLs.get(n);if(i)return i;l==="\\"&&(n=n.replace(/\\/g,"/"));let d=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,d),d}}return We=t,We}var je,Vt;function Nr(){if(Vt)return je;Vt=1;const e=39,r=34,o=92,l=47,s=10,c=32,a=12,h=9,m=13,u=91,t=93,f=40,n=41,i=123,d=125,p=59,g=42,C=58,S=64,y=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return je=function(E,N={}){let O=E.css.valueOf(),L=N.ignoreErrors,P,_,W,R,T,D,F,B,j,ht,pt=O.length,M=0,we=[],te=[];function Ir(){return M}function be(G){throw E.error("Unclosed "+G,M)}function Lr(){return te.length===0&&M>=pt}function Dr(G){if(te.length)return te.pop();if(M>=pt)return;let Se=G?G.ignoreUnclosed:!1;switch(P=O.charCodeAt(M),P){case s:case c:case h:case m:case a:{R=M;do R+=1,P=O.charCodeAt(R);while(P===c||P===s||P===h||P===m||P===a);D=["space",O.slice(M,R)],M=R-1;break}case u:case t:case i:case d:case C:case p:case n:{let dt=String.fromCharCode(P);D=[dt,dt,M];break}case f:{if(ht=we.length?we.pop()[1]:"",j=O.charCodeAt(M+1),ht==="url"&&j!==e&&j!==r&&j!==c&&j!==s&&j!==h&&j!==a&&j!==m){R=M;do{if(F=!1,R=O.indexOf(")",R+1),R===-1)if(L||Se){R=M;break}else be("bracket");for(B=R;O.charCodeAt(B-1)===o;)B-=1,F=!F}while(F);D=["brackets",O.slice(M,R+1),M,R],M=R}else R=O.indexOf(")",M+1),_=O.slice(M,R+1),R===-1||b.test(_)?D=["(","(",M]:(D=["brackets",_,M,R],M=R);break}case e:case r:{T=P===e?"'":'"',R=M;do{if(F=!1,R=O.indexOf(T,R+1),R===-1)if(L||Se){R=M+1;break}else be("string");for(B=R;O.charCodeAt(B-1)===o;)B-=1,F=!F}while(F);D=["string",O.slice(M,R+1),M,R],M=R;break}case S:{y.lastIndex=M+1,y.test(O),y.lastIndex===0?R=O.length-1:R=y.lastIndex-2,D=["at-word",O.slice(M,R+1),M,R],M=R;break}case o:{for(R=M,W=!0;O.charCodeAt(R+1)===o;)R+=1,W=!W;if(P=O.charCodeAt(R+1),W&&P!==l&&P!==c&&P!==s&&P!==h&&P!==m&&P!==a&&(R+=1,w.test(O.charAt(R)))){for(;w.test(O.charAt(R+1));)R+=1;O.charCodeAt(R+1)===c&&(R+=1)}D=["word",O.slice(M,R+1),M,R],M=R;break}default:{P===l&&O.charCodeAt(M+1)===g?(R=O.indexOf("*/",M+2)+1,R===0&&(L||Se?R=O.length:be("comment")),D=["comment",O.slice(M,R+1),M,R],M=R):(v.lastIndex=M+1,v.test(O),v.lastIndex===0?R=O.length-1:R=v.lastIndex-2,D=["word",O.slice(M,R+1),M,R],we.push(D),M=R);break}}return M++,D}function Tr(G){te.push(G)}return{back:Tr,endOfFile:Lr,nextToken:Dr,position:Ir}},je}var $e,Gt;function Mr(){if(Gt)return $e;Gt=1;let e=ot(),r=X(),o=me(),l=ee(),s=at(),c=Nr();const a={empty:!0,space:!0};function h(u){for(let t=u.length-1;t>=0;t--){let f=u[t],n=f[3]||f[2];if(n)return n}}class m{constructor(t){this.input=t,this.root=new l,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let f=new e;f.name=t[1].slice(1),f.name===""&&this.unnamedAtrule(f,t),this.init(f,t[2]);let n,i,d,p=!1,g=!1,C=[],S=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?S.push(n==="("?")":"]"):n==="{"&&S.length>0?S.push("}"):n===S[S.length-1]&&S.pop(),S.length===0)if(n===";"){f.source.end=this.getPosition(t[2]),f.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){g=!0;break}else if(n==="}"){if(C.length>0){for(d=C.length-1,i=C[d];i&&i[0]==="space";)i=C[--d];i&&(f.source.end=this.getPosition(i[3]||i[2]),f.source.end.offset++)}this.end(t);break}else C.push(t);else C.push(t);if(this.tokenizer.endOfFile()){p=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(f.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(f,"params",C),p&&(t=C[C.length-1],f.source.end=this.getPosition(t[3]||t[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),g&&(f.nodes=[],this.current=f)}checkMissedSemicolon(t){let f=this.colon(t);if(f===!1)return;let n=0,i;for(let d=f-1;d>=0&&(i=t[d],!(i[0]!=="space"&&(n+=1,n===2)));d--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(t){let f=0,n,i,d;for(let[p,g]of t.entries()){if(i=g,d=i[0],d==="("&&(f+=1),d===")"&&(f-=1),f===0&&d===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return p}n=i}return!1}comment(t){let f=new r;this.init(f,t[2]),f.source.end=this.getPosition(t[3]||t[2]),f.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))f.text="",f.raws.left=n,f.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);f.text=i[2],f.raws.left=i[1],f.raws.right=i[3]}}createTokenizer(){this.tokenizer=c(this.input)}decl(t,f){let n=new o;this.init(n,t[0][2]);let i=t[t.length-1];for(i[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(i[3]||i[2]||h(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let S=t[0][0];if(S===":"||S==="space"||S==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let d;for(;t.length;)if(d=t.shift(),d[0]===":"){n.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),n.raws.between+=d[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let p=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)p.push(t.shift());this.precheckMissedSemicolon(t);for(let S=t.length-1;S>=0;S--){if(d=t[S],d[1].toLowerCase()==="!important"){n.important=!0;let y=this.stringFrom(t,S);y=this.spacesFromEnd(t)+y,y!==" !important"&&(n.raws.important=y);break}else if(d[1].toLowerCase()==="important"){let y=t.slice(0),v="";for(let b=S;b>0;b--){let w=y[b][0];if(v.trim().startsWith("!")&&w!=="space")break;v=y.pop()[1]+v}v.trim().startsWith("!")&&(n.important=!0,n.raws.important=v,t=y)}if(d[0]!=="space"&&d[0]!=="comment")break}t.some(S=>S[0]!=="space"&&S[0]!=="comment")&&(n.raws.between+=p.map(S=>S[1]).join(""),p=[]),this.raw(n,"value",p.concat(t),f),n.value.includes(":")&&!f&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let f=new s;this.init(f,t[2]),f.selector="",f.raws.between="",this.current=f}end(t){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(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}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(t){if(this.spaces+=t[1],this.current.nodes){let f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let f=this.input.fromOffset(t);return{column:f.col,line:f.line,offset:t}}init(t,f){this.current.push(t),t.source={input:this.input,start:this.getPosition(f)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let f=!1,n=null,i=!1,d=null,p=[],g=t[1].startsWith("--"),C=[],S=t;for(;S;){if(n=S[0],C.push(S),n==="("||n==="[")d||(d=S),p.push(n==="("?")":"]");else if(g&&i&&n==="{")d||(d=S),p.push("}");else if(p.length===0)if(n===";")if(i){this.decl(C,g);return}else break;else if(n==="{"){this.rule(C);return}else if(n==="}"){this.tokenizer.back(C.pop()),f=!0;break}else n===":"&&(i=!0);else n===p[p.length-1]&&(p.pop(),p.length===0&&(d=null));S=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),p.length>0&&this.unclosedBracket(d),f&&i){if(!g)for(;C.length&&(S=C[C.length-1][0],!(S!=="space"&&S!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,f,n,i){let d,p,g=n.length,C="",S=!0,y,v;for(let b=0;b<g;b+=1)d=n[b],p=d[0],p==="space"&&b===g-1&&!i?S=!1:p==="comment"?(v=n[b-1]?n[b-1][0]:"empty",y=n[b+1]?n[b+1][0]:"empty",!a[v]&&!a[y]?C.slice(-1)===","?S=!1:C+=d[1]:S=!1):C+=d[1];if(!S){let b=n.reduce((w,x)=>w+x[1],"");t.raws[f]={raw:b,value:C}}t[f]=C}rule(t){t.pop();let f=new s;this.init(f,t[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(f,"selector",t),this.current=f}spacesAndCommentsFromEnd(t){let f,n="";for(;t.length&&(f=t[t.length-1][0],!(f!=="space"&&f!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let f,n="";for(;t.length&&(f=t[0][0],!(f!=="space"&&f!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let f,n="";for(;t.length&&(f=t[t.length-1][0],f==="space");)n=t.pop()[1]+n;return n}stringFrom(t,f){let n="";for(let i=f;i<t.length;i++)n+=t[i][1];return t.splice(f,t.length-f),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}}return $e=m,$e}var Ve,Ht;function ut(){if(Ht)return Ve;Ht=1;let e=V(),r=ge(),o=Mr();function l(s,c){let a=new r(s,c),h=new o(a);try{h.parse()}catch(m){throw m}return h.root}return Ve=l,l.default=l,e.registerParse(l),Ve}var Ge,Jt;function Ar(){if(Jt)return Ge;Jt=1;class e{constructor(o,l={}){if(this.type="warning",this.text=o,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 Ge=e,e.default=e,Ge}var He,Yt;function ft(){if(Yt)return He;Yt=1;let e=Ar();class r{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 He=r,r.default=r,He}var Je,Kt;function _r(){if(Kt)return Je;Kt=1;let e={};return Je=function(o){e[o]||(e[o]=!0,typeof console!="undefined"&&console.warn&&console.warn(o))},Je}var Ye,Qt;function Pr(){if(Qt)return Ye;Qt=1;let e=V(),r=lt(),o=Or(),l=ut(),s=ft(),c=ee(),a=pe(),{isClean:h,my:m}=nt(),u=_r();const t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={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},n={Once:!0,postcssPlugin:!0,prepare:!0},i=0;function d(v){return typeof v=="object"&&typeof v.then=="function"}function p(v){let b=!1,w=t[v.type];return v.type==="decl"?b=v.prop.toLowerCase():v.type==="atrule"&&(b=v.name.toLowerCase()),b&&v.append?[w,w+"-"+b,i,w+"Exit",w+"Exit-"+b]:b?[w,w+"-"+b,w+"Exit",w+"Exit-"+b]:v.append?[w,i,w+"Exit"]:[w,w+"Exit"]}function g(v){let b;return v.type==="document"?b=["Document",i,"DocumentExit"]:v.type==="root"?b=["Root",i,"RootExit"]:b=p(v),{eventIndex:0,events:b,iterator:0,node:v,visitorIndex:0,visitors:[]}}function C(v){return v[h]=!1,v.nodes&&v.nodes.forEach(b=>C(b)),v}let S={};class y{constructor(b,w,x){this.stringified=!1,this.processed=!1;let E;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))E=C(w);else if(w instanceof y||w instanceof s)E=C(w.root),w.map&&(typeof x.map=="undefined"&&(x.map={}),x.map.inline||(x.map.inline=!1),x.map.prev=w.map);else{let N=l;x.syntax&&(N=x.syntax.parse),x.parser&&(N=x.parser),N.parse&&(N=N.parse);try{E=N(w,x)}catch(O){this.processed=!0,this.error=O}E&&!E[m]&&e.rebuild(E)}this.result=new s(b,E,x),this.helpers=K(q({},S),{postcss:S,result:this.result}),this.plugins=this.processor.plugins.map(N=>typeof N=="object"&&N.prepare?q(q({},N),N.prepare(this.result)):N)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,w){let x=this.result.lastPlugin;try{w&&w.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=x.postcssPlugin,b.setMessage()):x.postcssVersion}catch(E){console&&console.error&&console.error(E)}return b}prepareVisitors(){this.listeners={};let b=(w,x,E)=>{this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push([w,E])};for(let w of this.plugins)if(typeof w=="object")for(let x in w){if(!f[x]&&/^[A-Z]/.test(x))throw new Error(`Unknown event ${x} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!n[x])if(typeof w[x]=="object")for(let E in w[x])E==="*"?b(w,x,w[x][E]):b(w,x+"-"+E.toLowerCase(),w[x][E]);else typeof w[x]=="function"&&b(w,x,w[x])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let w=this.plugins[b],x=this.runOnRoot(w);if(d(x))try{await x}catch(E){throw this.handleError(E)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[h];){b[h]=!0;let w=[g(b)];for(;w.length>0;){let x=this.visitTick(w);if(d(x))try{await x}catch(E){let N=w[w.length-1].node;throw this.handleError(E,N)}}}if(this.listeners.OnceExit)for(let[w,x]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(b.type==="document"){let E=b.nodes.map(N=>x(N,this.helpers));await Promise.all(E)}else await x(b,this.helpers)}catch(E){throw this.handleError(E)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(x=>b.Once(x,this.helpers));return d(w[0])?Promise.all(w):w}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,w=a;b.syntax&&(w=b.syntax.stringify),b.stringifier&&(w=b.stringifier),w.stringify&&(w=w.stringify);let E=new o(w,this.result.root,this.result.opts).generate();return this.result.css=E[0],this.result.map=E[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 b of this.plugins){let w=this.runOnRoot(b);if(d(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[h];)b[h]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let w of b.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,w){return this.async().then(b,w)}toString(){return this.css}visitSync(b,w){for(let[x,E]of b){this.result.lastPlugin=x;let N;try{N=E(w,this.helpers)}catch(O){throw this.handleError(O,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(d(N))throw this.getAsyncError()}}visitTick(b){let w=b[b.length-1],{node:x,visitors:E}=w;if(x.type!=="root"&&x.type!=="document"&&!x.parent){b.pop();return}if(E.length>0&&w.visitorIndex<E.length){let[O,L]=E[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===E.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=O;try{return L(x.toProxy(),this.helpers)}catch(P){throw this.handleError(P,x)}}if(w.iterator!==0){let O=w.iterator,L;for(;L=x.nodes[x.indexes[O]];)if(x.indexes[O]+=1,!L[h]){L[h]=!0,b.push(g(L));return}w.iterator=0,delete x.indexes[O]}let N=w.events;for(;w.eventIndex<N.length;){let O=N[w.eventIndex];if(w.eventIndex+=1,O===i){x.nodes&&x.nodes.length&&(x[h]=!0,w.iterator=x.getIterator());return}else if(this.listeners[O]){w.visitors=this.listeners[O];return}}b.pop()}walkSync(b){b[h]=!0;let w=p(b);for(let x of w)if(x===i)b.nodes&&b.each(E=>{E[h]||this.walkSync(E)});else{let E=this.listeners[x];if(E&&this.visitSync(E,b.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 y.registerPostcss=v=>{S=v},Ye=y,y.default=y,c.registerLazyResult(y),r.registerLazyResult(y),Ye}var Ke,Zt;function Ti(){if(Zt)return Ke;Zt=1;let e=Or(),r=ut();const o=ft();let l=pe(),s=_r();class c{constructor(h,m,u){m=m.toString(),this.stringified=!1,this._processor=h,this._css=m,this._opts=u,this._map=void 0;let t,f=l;this.result=new o(this._processor,t,this._opts),this.result.css=m;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let i=new e(f,t,this._opts,m);if(i.isMap()){let[d,p]=i.generate();d&&(this.result.css=d),p&&(this.result.map=p)}else i.clearAnnotation(),this.result.css=i.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(h){return this.async().catch(h)}finally(h){return this.async().then(h,h)}sync(){if(this.error)throw this.error;return this.result}then(h,m){return this.async().then(h,m)}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 h,m=r;try{h=m(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=h,h}get[Symbol.toStringTag](){return"NoWorkResult"}}return Ke=c,c.default=c,Ke}var Qe,Xt;function Ui(){if(Xt)return Qe;Xt=1;let e=lt(),r=Pr(),o=Ti(),l=ee();class s{constructor(a=[]){this.version="8.5.1",this.plugins=this.normalize(a)}normalize(a){let h=[];for(let m of a)if(m.postcss===!0?m=m():m.postcss&&(m=m.postcss),typeof m=="object"&&Array.isArray(m.plugins))h=h.concat(m.plugins);else if(typeof m=="object"&&m.postcssPlugin)h.push(m);else if(typeof m=="function")h.push(m);else if(!(typeof m=="object"&&(m.parse||m.stringify)))throw new Error(m+" is not a PostCSS plugin");return h}process(a,h={}){return!this.plugins.length&&!h.parser&&!h.stringifier&&!h.syntax?new o(this,a,h):new r(this,a,h)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return Qe=s,s.default=s,l.registerProcessor(s),e.registerProcessor(s),Qe}var Ze,er;function kr(){if(er)return Ze;er=1;let e=ot(),r=X(),o=V(),l=st(),s=me(),c=lt(),a=Di(),h=ge(),m=Pr(),u=Er(),t=de(),f=ut(),n=Ui(),i=ft(),d=ee(),p=at(),g=pe(),C=Ar();function S(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new n(y)}return S.plugin=function(v,b){let w=!1;function x(...N){console&&console.warn&&!w&&(w=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
|
|
39
|
+
`),this.css+=i+"/*# sourceMappingURL="+n+" */"}applyPrevMaps(){for(let n of this.previous()){let i=this.toUrl(this.path(n.file)),d=n.root||e(n.file),p;this.mapOpts.sourcesContent===!1?(p=new s(n.text),p.sourcesContent&&(p.sourcesContent=null)):p=n.consumer(),this.map.applySourceMap(p,i,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let n;for(let i=this.root.nodes.length-1;i>=0;i--)n=this.root.nodes[i],n.type==="comment"&&n.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(i)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),o&&g&&this.isMap())return this.generateMap();{let n="";return this.stringify(this.root,i=>{n+=i}),[n]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let n=this.previous()[0].consumer();n.file=this.outputFile(),this.map=f.fromSourceMap(n,{ignoreInvalidMapping:!0})}else this.map=new f({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 f({file:this.outputFile(),ignoreInvalidMapping:!0});let n=1,i=1,d="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},m,C;this.stringify(this.root,(S,w,v)=>{if(this.css+=S,w&&v!=="end"&&(p.generated.line=n,p.generated.column=i-1,w.source&&w.source.start?(p.source=this.sourcePath(w),p.original.line=w.source.start.line,p.original.column=w.source.start.column-1,this.map.addMapping(p)):(p.source=d,p.original.line=1,p.original.column=0,this.map.addMapping(p))),C=S.match(/\n/g),C?(n+=C.length,m=S.lastIndexOf(`
|
|
40
|
+
`),i=S.length-m):i+=S.length,w&&v!=="start"){let b=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==b.last||b.raws.semicolon)&&(w.source&&w.source.end?(p.source=this.sourcePath(w),p.original.line=w.source.end.line,p.original.column=w.source.end.column-1,p.generated.line=n,p.generated.column=i-2,this.map.addMapping(p)):(p.source=d,p.original.line=1,p.original.column=0,p.generated.line=n,p.generated.column=i-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(n=>n.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let n=this.mapOpts.annotation;return typeof n!="undefined"&&n!==!0?!1:this.previous().length?this.previous().some(i=>i.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(n=>n.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;let i=this.memoizedPaths.get(n);if(i)return i;let d=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=e(l(d,this.mapOpts.annotation)));let p=r(d,n);return this.memoizedPaths.set(n,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(n=>{if(n.source&&n.source.input.map){let i=n.source.input.map;this.previousMaps.includes(i)||this.previousMaps.push(i)}});else{let n=new h(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps}setSourcesContent(){let n={};if(this.root)this.root.walk(i=>{if(i.source){let d=i.source.input.from;if(d&&!n[d]){n[d]=!0;let p=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(p,i.source.input.css)}}});else if(this.css){let i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}}sourcePath(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))}toBase64(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))}toFileUrl(n){let i=this.memoizedFileURLs.get(n);if(i)return i;if(c){let d=c(n).toString();return this.memoizedFileURLs.set(n,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(n){let i=this.memoizedURLs.get(n);if(i)return i;u==="\\"&&(n=n.replace(/\\/g,"/"));let d=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,d),d}}return Be=t,Be}var Fe,Wt;function Cr(){if(Wt)return Fe;Wt=1;const e=39,r=34,l=92,u=47,s=10,f=32,c=12,h=9,g=13,o=91,t=93,a=40,n=41,i=123,d=125,p=59,m=42,C=58,S=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Fe=function(E,M={}){let O=E.css.valueOf(),I=M.ignoreErrors,A,j,q,R,B,D,T,V,z,ut,ct=O.length,N=0,ge=[],re=[];function Mr(){return N}function ye(G){throw E.error("Unclosed "+G,N)}function _r(){return re.length===0&&N>=ct}function Pr(G){if(re.length)return re.pop();if(N>=ct)return;let we=G?G.ignoreUnclosed:!1;switch(A=O.charCodeAt(N),A){case s:case f:case h:case g:case c:{R=N;do R+=1,A=O.charCodeAt(R);while(A===f||A===s||A===h||A===g||A===c);D=["space",O.slice(N,R)],N=R-1;break}case o:case t:case i:case d:case C:case p:case n:{let ft=String.fromCharCode(A);D=[ft,ft,N];break}case a:{if(ut=ge.length?ge.pop()[1]:"",z=O.charCodeAt(N+1),ut==="url"&&z!==e&&z!==r&&z!==f&&z!==s&&z!==h&&z!==c&&z!==g){R=N;do{if(T=!1,R=O.indexOf(")",R+1),R===-1)if(I||we){R=N;break}else ye("bracket");for(V=R;O.charCodeAt(V-1)===l;)V-=1,T=!T}while(T);D=["brackets",O.slice(N,R+1),N,R],N=R}else R=O.indexOf(")",N+1),j=O.slice(N,R+1),R===-1||b.test(j)?D=["(","(",N]:(D=["brackets",j,N,R],N=R);break}case e:case r:{B=A===e?"'":'"',R=N;do{if(T=!1,R=O.indexOf(B,R+1),R===-1)if(I||we){R=N+1;break}else ye("string");for(V=R;O.charCodeAt(V-1)===l;)V-=1,T=!T}while(T);D=["string",O.slice(N,R+1),N,R],N=R;break}case S:{w.lastIndex=N+1,w.test(O),w.lastIndex===0?R=O.length-1:R=w.lastIndex-2,D=["at-word",O.slice(N,R+1),N,R],N=R;break}case l:{for(R=N,q=!0;O.charCodeAt(R+1)===l;)R+=1,q=!q;if(A=O.charCodeAt(R+1),q&&A!==u&&A!==f&&A!==s&&A!==h&&A!==g&&A!==c&&(R+=1,y.test(O.charAt(R)))){for(;y.test(O.charAt(R+1));)R+=1;O.charCodeAt(R+1)===f&&(R+=1)}D=["word",O.slice(N,R+1),N,R],N=R;break}default:{A===u&&O.charCodeAt(N+1)===m?(R=O.indexOf("*/",N+2)+1,R===0&&(I||we?R=O.length:ye("comment")),D=["comment",O.slice(N,R+1),N,R],N=R):(v.lastIndex=N+1,v.test(O),v.lastIndex===0?R=O.length-1:R=v.lastIndex-2,D=["word",O.slice(N,R+1),N,R],ge.push(D),N=R);break}}return N++,D}function kr(G){re.push(G)}return{back:kr,endOfFile:_r,nextToken:Pr,position:Mr}},Fe}var qe,jt;function xr(){if(jt)return qe;jt=1;let e=it(),r=ee(),l=de(),u=te(),s=nt(),f=Cr();const c={empty:!0,space:!0};function h(o){for(let t=o.length-1;t>=0;t--){let a=o[t],n=a[3]||a[2];if(n)return n}}class g{constructor(t){this.input=t,this.root=new u,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let a=new e;a.name=t[1].slice(1),a.name===""&&this.unnamedAtrule(a,t),this.init(a,t[2]);let n,i,d,p=!1,m=!1,C=[],S=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?S.push(n==="("?")":"]"):n==="{"&&S.length>0?S.push("}"):n===S[S.length-1]&&S.pop(),S.length===0)if(n===";"){a.source.end=this.getPosition(t[2]),a.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){m=!0;break}else if(n==="}"){if(C.length>0){for(d=C.length-1,i=C[d];i&&i[0]==="space";)i=C[--d];i&&(a.source.end=this.getPosition(i[3]||i[2]),a.source.end.offset++)}this.end(t);break}else C.push(t);else C.push(t);if(this.tokenizer.endOfFile()){p=!0;break}}a.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(a.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(a,"params",C),p&&(t=C[C.length-1],a.source.end=this.getPosition(t[3]||t[2]),a.source.end.offset++,this.spaces=a.raws.between,a.raws.between="")):(a.raws.afterName="",a.params=""),m&&(a.nodes=[],this.current=a)}checkMissedSemicolon(t){let a=this.colon(t);if(a===!1)return;let n=0,i;for(let d=a-1;d>=0&&(i=t[d],!(i[0]!=="space"&&(n+=1,n===2)));d--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(t){let a=0,n,i,d;for(let[p,m]of t.entries()){if(i=m,d=i[0],d==="("&&(a+=1),d===")"&&(a-=1),a===0&&d===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return p}n=i}return!1}comment(t){let a=new r;this.init(a,t[2]),a.source.end=this.getPosition(t[3]||t[2]),a.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))a.text="",a.raws.left=n,a.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);a.text=i[2],a.raws.left=i[1],a.raws.right=i[3]}}createTokenizer(){this.tokenizer=f(this.input)}decl(t,a){let n=new l;this.init(n,t[0][2]);let i=t[t.length-1];for(i[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(i[3]||i[2]||h(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let S=t[0][0];if(S===":"||S==="space"||S==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let d;for(;t.length;)if(d=t.shift(),d[0]===":"){n.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),n.raws.between+=d[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let p=[],m;for(;t.length&&(m=t[0][0],!(m!=="space"&&m!=="comment"));)p.push(t.shift());this.precheckMissedSemicolon(t);for(let S=t.length-1;S>=0;S--){if(d=t[S],d[1].toLowerCase()==="!important"){n.important=!0;let w=this.stringFrom(t,S);w=this.spacesFromEnd(t)+w,w!==" !important"&&(n.raws.important=w);break}else if(d[1].toLowerCase()==="important"){let w=t.slice(0),v="";for(let b=S;b>0;b--){let y=w[b][0];if(v.trim().startsWith("!")&&y!=="space")break;v=w.pop()[1]+v}v.trim().startsWith("!")&&(n.important=!0,n.raws.important=v,t=w)}if(d[0]!=="space"&&d[0]!=="comment")break}t.some(S=>S[0]!=="space"&&S[0]!=="comment")&&(n.raws.between+=p.map(S=>S[1]).join(""),p=[]),this.raw(n,"value",p.concat(t),a),n.value.includes(":")&&!a&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let a=new s;this.init(a,t[2]),a.selector="",a.raws.between="",this.current=a}end(t){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(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}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(t){if(this.spaces+=t[1],this.current.nodes){let a=this.current.nodes[this.current.nodes.length-1];a&&a.type==="rule"&&!a.raws.ownSemicolon&&(a.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let a=this.input.fromOffset(t);return{column:a.col,line:a.line,offset:t}}init(t,a){this.current.push(t),t.source={input:this.input,start:this.getPosition(a)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let a=!1,n=null,i=!1,d=null,p=[],m=t[1].startsWith("--"),C=[],S=t;for(;S;){if(n=S[0],C.push(S),n==="("||n==="[")d||(d=S),p.push(n==="("?")":"]");else if(m&&i&&n==="{")d||(d=S),p.push("}");else if(p.length===0)if(n===";")if(i){this.decl(C,m);return}else break;else if(n==="{"){this.rule(C);return}else if(n==="}"){this.tokenizer.back(C.pop()),a=!0;break}else n===":"&&(i=!0);else n===p[p.length-1]&&(p.pop(),p.length===0&&(d=null));S=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(a=!0),p.length>0&&this.unclosedBracket(d),a&&i){if(!m)for(;C.length&&(S=C[C.length-1][0],!(S!=="space"&&S!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,m)}else this.unknownWord(C)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,a,n,i){let d,p,m=n.length,C="",S=!0,w,v;for(let b=0;b<m;b+=1)d=n[b],p=d[0],p==="space"&&b===m-1&&!i?S=!1:p==="comment"?(v=n[b-1]?n[b-1][0]:"empty",w=n[b+1]?n[b+1][0]:"empty",!c[v]&&!c[w]?C.slice(-1)===","?S=!1:C+=d[1]:S=!1):C+=d[1];if(!S){let b=n.reduce((y,x)=>y+x[1],"");t.raws[a]={raw:b,value:C}}t[a]=C}rule(t){t.pop();let a=new s;this.init(a,t[0][2]),a.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(a,"selector",t),this.current=a}spacesAndCommentsFromEnd(t){let a,n="";for(;t.length&&(a=t[t.length-1][0],!(a!=="space"&&a!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let a,n="";for(;t.length&&(a=t[0][0],!(a!=="space"&&a!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let a,n="";for(;t.length&&(a=t[t.length-1][0],a==="space");)n=t.pop()[1]+n;return n}stringFrom(t,a){let n="";for(let i=a;i<t.length;i++)n+=t[i][1];return t.splice(a,t.length-a),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,a){throw this.input.error("At-rule without name",{offset:a[2]},{offset:a[2]+a[1].length})}}return qe=g,qe}var ze,$t;function ot(){if($t)return ze;$t=1;let e=$(),r=me(),l=xr();function u(s,f){let c=new r(s,f),h=new l(c);try{h.parse()}catch(g){throw g}return h.root}return ze=u,u.default=u,e.registerParse(u),ze}var We,Vt;function Rr(){if(Vt)return We;Vt=1;class e{constructor(l,u={}){if(this.type="warning",this.text=l,u.node&&u.node.source){let s=u.node.rangeBy(u);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in u)this[s]=u[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 We=e,e.default=e,We}var je,Gt;function lt(){if(Gt)return je;Gt=1;let e=Rr();class r{constructor(u,s,f){this.processor=u,this.messages=[],this.root=s,this.opts=f,this.css=void 0,this.map=void 0}toString(){return this.css}warn(u,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let f=new e(u,s);return this.messages.push(f),f}warnings(){return this.messages.filter(u=>u.type==="warning")}get content(){return this.css}}return je=r,r.default=r,je}var $e,Ht;function Er(){if(Ht)return $e;Ht=1;let e={};return $e=function(l){e[l]||(e[l]=!0,typeof console!="undefined"&&console.warn&&console.warn(l))},$e}var Ve,Jt;function Or(){if(Jt)return Ve;Jt=1;let e=$(),r=st(),l=vr(),u=ot(),s=lt(),f=te(),c=he(),{isClean:h,my:g}=rt(),o=Er();const t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},a={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},n={Once:!0,postcssPlugin:!0,prepare:!0},i=0;function d(v){return typeof v=="object"&&typeof v.then=="function"}function p(v){let b=!1,y=t[v.type];return v.type==="decl"?b=v.prop.toLowerCase():v.type==="atrule"&&(b=v.name.toLowerCase()),b&&v.append?[y,y+"-"+b,i,y+"Exit",y+"Exit-"+b]:b?[y,y+"-"+b,y+"Exit",y+"Exit-"+b]:v.append?[y,i,y+"Exit"]:[y,y+"Exit"]}function m(v){let b;return v.type==="document"?b=["Document",i,"DocumentExit"]:v.type==="root"?b=["Root",i,"RootExit"]:b=p(v),{eventIndex:0,events:b,iterator:0,node:v,visitorIndex:0,visitors:[]}}function C(v){return v[h]=!1,v.nodes&&v.nodes.forEach(b=>C(b)),v}let S={};class w{constructor(b,y,x){this.stringified=!1,this.processed=!1;let E;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))E=C(y);else if(y instanceof w||y instanceof s)E=C(y.root),y.map&&(typeof x.map=="undefined"&&(x.map={}),x.map.inline||(x.map.inline=!1),x.map.prev=y.map);else{let M=u;x.syntax&&(M=x.syntax.parse),x.parser&&(M=x.parser),M.parse&&(M=M.parse);try{E=M(y,x)}catch(O){this.processed=!0,this.error=O}E&&!E[g]&&e.rebuild(E)}this.result=new s(b,E,x),this.helpers=K(F({},S),{postcss:S,result:this.result}),this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?F(F({},M),M.prepare(this.result)):M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,y){let x=this.result.lastPlugin;try{y&&y.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=x.postcssPlugin,b.setMessage()):x.postcssVersion}catch(E){console&&console.error&&console.error(E)}return b}prepareVisitors(){this.listeners={};let b=(y,x,E)=>{this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push([y,E])};for(let y of this.plugins)if(typeof y=="object")for(let x in y){if(!a[x]&&/^[A-Z]/.test(x))throw new Error(`Unknown event ${x} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!n[x])if(typeof y[x]=="object")for(let E in y[x])E==="*"?b(y,x,y[x][E]):b(y,x+"-"+E.toLowerCase(),y[x][E]);else typeof y[x]=="function"&&b(y,x,y[x])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let y=this.plugins[b],x=this.runOnRoot(y);if(d(x))try{await x}catch(E){throw this.handleError(E)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[h];){b[h]=!0;let y=[m(b)];for(;y.length>0;){let x=this.visitTick(y);if(d(x))try{await x}catch(E){let M=y[y.length-1].node;throw this.handleError(E,M)}}}if(this.listeners.OnceExit)for(let[y,x]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(b.type==="document"){let E=b.nodes.map(M=>x(M,this.helpers));await Promise.all(E)}else await x(b,this.helpers)}catch(E){throw this.handleError(E)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(x=>b.Once(x,this.helpers));return d(y[0])?Promise.all(y):y}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(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 b=this.result.opts,y=c;b.syntax&&(y=b.syntax.stringify),b.stringifier&&(y=b.stringifier),y.stringify&&(y=y.stringify);let E=new l(y,this.result.root,this.result.opts).generate();return this.result.css=E[0],this.result.map=E[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 b of this.plugins){let y=this.runOnRoot(b);if(d(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[h];)b[h]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let y of b.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,y){return this.async().then(b,y)}toString(){return this.css}visitSync(b,y){for(let[x,E]of b){this.result.lastPlugin=x;let M;try{M=E(y,this.helpers)}catch(O){throw this.handleError(O,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(d(M))throw this.getAsyncError()}}visitTick(b){let y=b[b.length-1],{node:x,visitors:E}=y;if(x.type!=="root"&&x.type!=="document"&&!x.parent){b.pop();return}if(E.length>0&&y.visitorIndex<E.length){let[O,I]=E[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===E.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=O;try{return I(x.toProxy(),this.helpers)}catch(A){throw this.handleError(A,x)}}if(y.iterator!==0){let O=y.iterator,I;for(;I=x.nodes[x.indexes[O]];)if(x.indexes[O]+=1,!I[h]){I[h]=!0,b.push(m(I));return}y.iterator=0,delete x.indexes[O]}let M=y.events;for(;y.eventIndex<M.length;){let O=M[y.eventIndex];if(y.eventIndex+=1,O===i){x.nodes&&x.nodes.length&&(x[h]=!0,y.iterator=x.getIterator());return}else if(this.listeners[O]){y.visitors=this.listeners[O];return}}b.pop()}walkSync(b){b[h]=!0;let y=p(b);for(let x of y)if(x===i)b.nodes&&b.each(E=>{E[h]||this.walkSync(E)});else{let E=this.listeners[x];if(E&&this.visitSync(E,b.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 w.registerPostcss=v=>{S=v},Ve=w,w.default=w,f.registerLazyResult(w),r.registerLazyResult(w),Ve}var Ge,Yt;function ki(){if(Yt)return Ge;Yt=1;let e=vr(),r=ot();const l=lt();let u=he(),s=Er();class f{constructor(h,g,o){g=g.toString(),this.stringified=!1,this._processor=h,this._css=g,this._opts=o,this._map=void 0;let t,a=u;this.result=new l(this._processor,t,this._opts),this.result.css=g;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let i=new e(a,t,this._opts,g);if(i.isMap()){let[d,p]=i.generate();d&&(this.result.css=d),p&&(this.result.map=p)}else i.clearAnnotation(),this.result.css=i.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(h){return this.async().catch(h)}finally(h){return this.async().then(h,h)}sync(){if(this.error)throw this.error;return this.result}then(h,g){return this.async().then(h,g)}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 h,g=r;try{h=g(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=h,h}get[Symbol.toStringTag](){return"NoWorkResult"}}return Ge=f,f.default=f,Ge}var He,Kt;function Ii(){if(Kt)return He;Kt=1;let e=st(),r=Or(),l=ki(),u=te();class s{constructor(c=[]){this.version="8.5.1",this.plugins=this.normalize(c)}normalize(c){let h=[];for(let g of c)if(g.postcss===!0?g=g():g.postcss&&(g=g.postcss),typeof g=="object"&&Array.isArray(g.plugins))h=h.concat(g.plugins);else if(typeof g=="object"&&g.postcssPlugin)h.push(g);else if(typeof g=="function")h.push(g);else if(!(typeof g=="object"&&(g.parse||g.stringify)))throw new Error(g+" is not a PostCSS plugin");return h}process(c,h={}){return!this.plugins.length&&!h.parser&&!h.stringifier&&!h.syntax?new l(this,c,h):new r(this,c,h)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return He=s,s.default=s,u.registerProcessor(s),e.registerProcessor(s),He}var Je,Qt;function Ar(){if(Qt)return Je;Qt=1;let e=it(),r=ee(),l=$(),u=tt(),s=de(),f=st(),c=Pi(),h=me(),g=Or(),o=Sr(),t=pe(),a=ot(),n=Ii(),i=lt(),d=te(),p=nt(),m=he(),C=Rr();function S(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new n(w)}return S.plugin=function(v,b){let y=!1;function x(...M){console&&console.warn&&!y&&(y=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
|
|
41
41
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(v+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
42
|
-
https://www.w3ctech.com/topic/2226`));let O=b(...N);return O.postcssPlugin=v,O.postcssVersion=new n().version,O}let E;return Object.defineProperty(x,"postcss",{get(){return E||(E=x()),E}}),x.process=function(N,O,L){return S([x(L)]).process(N,O)},x},S.stringify=g,S.parse=f,S.fromJSON=a,S.list=u,S.comment=y=>new r(y),S.atRule=y=>new e(y),S.decl=y=>new s(y),S.rule=y=>new p(y),S.root=y=>new d(y),S.document=y=>new c(y),S.CssSyntaxError=l,S.Declaration=s,S.Container=o,S.Processor=n,S.Document=c,S.Comment=r,S.Warning=C,S.AtRule=e,S.Result=i,S.Input=h,S.Rule=p,S.Root=d,S.Node=t,m.registerPostcss(S),Ze=S,S.default=S,Ze}var Xe,tr;function Bi(){if(tr)return Xe;tr=1;let e=X(),r=Mr(),o=Nr();class l extends r{checkMissedSemicolon(){}comment(c){let a=new e;this.init(a,c[2]);let h=this.input.fromOffset(c[3])||this.input.fromOffset(this.input.css.length-1);a.source.end={column:h.col,line:h.line,offset:c[3]+1};let m=c[1].slice(2);if(m.slice(-2)==="*/"&&(m=m.slice(0,-2)),/^\s*$/.test(m))a.text="",a.raws.left=m,a.raws.right="";else{let u=m.match(/^(\s*)([^]*\S)(\s*)$/);a.text=u[2],a.raws.left=u[1],a.raws.right=u[3]}}createTokenizer(){this.tokenizer=o(this.input,{ignoreErrors:!0})}decl(c){c.length>1&&c.some(a=>a[0]==="word")&&super.decl(c)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(c){let a=this.colon(c);if(a===!1)return;let h,m;for(h=a-1;h>=0&&c[h][0]!=="word";h--);if(h===0||h<0)return;for(m=h-1;m>=0;m--)if(c[m][0]!=="space"){m+=1;break}let u=c.slice(h),t=c.slice(m,h);c.splice(m,c.length-m),this.spaces=t.map(f=>f[1]).join(""),this.decl(u)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(c){this.spaces+=c.map(a=>a[1]).join("")}unnamedAtrule(c){c.name=""}}return Xe=l,Xe}var et,rr;function Fi(){if(rr)return et;rr=1;let{Input:e}=kr(),r=Bi();return et=function(l,s){let c=new e(l,s),a=new r(c);return a.parse(),a.root},et}var zi=Fi();const qi=vr(zi);var Wi=kr();const I=vr(Wi);I.stringify;I.fromJSON;I.plugin;I.parse;I.list;I.document;I.comment;I.atRule;I.rule;I.decl;I.root;I.CssSyntaxError;I.Declaration;I.Container;I.Processor;I.Document;I.Comment;I.Warning;I.AtRule;I.Result;I.Input;I.Rule;I.Root;I.Node;const ir={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function ji(e){let r=ir[e.tagName]?ir[e.tagName]:e.tagName;return r==="link"&&e.attributes._cssText&&(r="style"),r}function ye(e,r){const o=r==null?void 0:r.stylesWithHoverClass.get(e);if(o)return o;let l=e;try{l=I([Mi,Ai]).process(e,{parser:qi}).css}catch(s){console.warn("Failed to adapt css for replay",s)}return r==null||r.stylesWithHoverClass.set(e,l),l}function $i(){return{stylesWithHoverClass:new Map}}function Vi(e,r,o,l){const s=[];for(const a of e.childNodes)a.type===A.Text&&s.push(a);const c=r.split("/* rr_split */");for(;c.length>1&&c.length>s.length;)c.splice(-2,2,c.slice(-2).join(""));for(let a=0;a<s.length;a++){const h=s[a],m=c[a];h&&m&&(h.textContent=o?ye(m,l):m)}}function Gi(e,r,o,l){const{doc:s,hackCss:c,cache:a}=l;e.childNodes.length?Vi(e,o,c,a):(c&&(o=ye(o,a)),r.appendChild(s.createTextNode(o)))}function Hi(e,r){var o;const{doc:l,hackCss:s,cache:c}=r;switch(e.type){case A.Document:return l.implementation.createDocument(null,"",null);case A.DocumentType:return l.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case A.Element:{const a=ji(e);let h;e.isSVG?h=l.createElementNS("http://www.w3.org/2000/svg",a):(e.isCustom&&((o=l.defaultView)!=null&&o.customElements)&&!l.defaultView.customElements.get(e.tagName)&&l.defaultView.customElements.define(e.tagName,class extends l.defaultView.HTMLElement{}),h=l.createElement(a));const m={};for(const u in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,u))continue;let t=e.attributes[u];if(!(a==="option"&&u==="selected"&&t===!1)&&t!==null){if(t===!0&&(t=""),u.startsWith("rr_")){m[u]=t;continue}if(typeof t=="string"){if(a==="style"&&u==="_cssText"){Gi(e,h,t,r);continue}else if(a==="textarea"&&u==="value"){h.appendChild(l.createTextNode(t)),e.childNodes=[];continue}}try{if(e.isSVG&&u==="xlink:href")h.setAttributeNS("http://www.w3.org/1999/xlink",u,t.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")h.setAttribute("_"+u,t.toString());else if(a==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){h.setAttribute("csp-content",t.toString());continue}else a==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||a==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&he(e.attributes.href)==="js"||(a==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?h.setAttribute("rrweb-original-srcset",e.attributes.srcset):h.setAttribute(u,t.toString()))}catch(f){}}}for(const u in m){const t=m[u];if(a==="canvas"&&u==="rr_dataURL"){const f=l.createElement("img");f.onload=()=>{const n=h.getContext("2d");n&&n.drawImage(f,0,0,f.width,f.height)},f.src=t.toString(),h.RRNodeType&&(h.rr_dataURL=t.toString())}else if(a==="img"&&u==="rr_dataURL"){const f=h;f.currentSrc.startsWith("data:")||(f.setAttribute("rrweb-original-src",e.attributes.src),f.src=t.toString())}if(u==="rr_width")h.style.setProperty("width",t.toString());else if(u==="rr_height")h.style.setProperty("height",t.toString());else if(u==="rr_mediaCurrentTime"&&typeof t=="number")h.currentTime=t;else if(u==="rr_mediaState")switch(t){case"played":h.play().catch(f=>console.warn("media playback error",f));break;case"paused":h.pause();break}else u==="rr_mediaPlaybackRate"&&typeof t=="number"?h.playbackRate=t:u==="rr_mediaMuted"&&typeof t=="boolean"?h.muted=t:u==="rr_mediaLoop"&&typeof t=="boolean"?h.loop=t:u==="rr_mediaVolume"&&typeof t=="number"?h.volume=t:u==="rr_open_mode"&&h.setAttribute("rr_open_mode",t)}if(e.isShadowHost)if(!h.shadowRoot)h.attachShadow({mode:"open"});else for(;h.shadowRoot.firstChild;)h.shadowRoot.removeChild(h.shadowRoot.firstChild);return h}case A.Text:return e.isStyle&&s?l.createTextNode(ye(e.textContent,c)):l.createTextNode(e.textContent);case A.CDATA:return l.createCDATASection(e.textContent);case A.Comment:return l.createComment(e.textContent);default:return null}}function ct(e,r){const{doc:o,mirror:l,skipChild:s=!1,hackCss:c=!0,afterAppend:a,cache:h}=r;if(l.has(e.id)){const u=l.getNode(e.id),t=l.getMeta(u);if(pr(t,e))return l.getNode(e.id)}let m=Hi(e,{doc:o,hackCss:c,cache:h});if(!m)return null;if(e.rootId&&l.getNode(e.rootId)!==o&&l.replace(e.rootId,o),e.type===A.Document&&(o.close(),o.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==A.DocumentType&&(e.childNodes[0].type===A.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?o.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):o.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),m=o),l.add(m,e),(e.type===A.Document||e.type===A.Element)&&!s)for(const u of e.childNodes){const t=ct(u,{doc:o,mirror:l,skipChild:!1,hackCss:c,afterAppend:a,cache:h});if(!t){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&fe(m)&&m.shadowRoot)m.shadowRoot.appendChild(t);else if(e.type===A.Document&&u.type==A.Element){const f=t;let n=null;f.childNodes.forEach(i=>{i.nodeName==="BODY"&&(n=i)}),n?(f.removeChild(n),m.appendChild(t),f.appendChild(n)):m.appendChild(t)}else m.appendChild(t);a&&a(t,u.id)}return m}function Ji(e,r){function o(l){r(l)}for(const l of e.getIds())e.has(l)&&o(e.getNode(l))}function Yi(e,r){const o=r.getMeta(e);if((o==null?void 0:o.type)!==A.Element)return;const l=e;for(const s in o.attributes){if(!(Object.prototype.hasOwnProperty.call(o.attributes,s)&&s.startsWith("rr_")))continue;const c=o.attributes[s];s==="rr_scrollLeft"&&(l.scrollLeft=c),s==="rr_scrollTop"&&(l.scrollTop=c)}}function Ki(e,r){const{doc:o,onVisit:l,hackCss:s=!0,afterAppend:c,cache:a,mirror:h=new ce}=r,m=ct(e,{doc:o,mirror:h,skipChild:!1,hackCss:s,afterAppend:c,cache:a});return Ji(h,u=>{l&&l(u),Yi(u,h)}),m}exports.IGNORED_NODE=tt;exports.Mirror=ce;exports.absolutifyURLs=Q;exports.adaptCssForReplay=ye;exports.buildNodeWithSN=ct;exports.classMatchesRegex=ue;exports.cleanupSnapshot=Oi;exports.createCache=$i;exports.createMirror=ii;exports.escapeImportStatement=or;exports.extractFileExtension=he;exports.fixSafariColons=ar;exports.genId=wr;exports.getInputType=dr;exports.ignoreAttribute=Sr;exports.is2DCanvasBlank=hr;exports.isCSSImportRule=ur;exports.isCSSStyleRule=fr;exports.isElement=fe;exports.isNativeShadowDom=oe;exports.isNodeMetaEqual=pr;exports.isShadowRoot=nr;exports.markCssSplits=gr;exports.maskInputValue=cr;exports.needMaskingText=Cr;exports.normalizeCssString=le;exports.rebuild=Ki;exports.serializeNodeWithId=Y;exports.snapshot=Ri;exports.splitCssText=mr;exports.stringifyRule=lr;exports.stringifyStylesheet=ae;exports.toLowerCase=Z;exports.transformAttribute=br;exports.visitSnapshot=Ei;
|
|
42
|
+
https://www.w3ctech.com/topic/2226`));let O=b(...M);return O.postcssPlugin=v,O.postcssVersion=new n().version,O}let E;return Object.defineProperty(x,"postcss",{get(){return E||(E=x()),E}}),x.process=function(M,O,I){return S([x(I)]).process(M,O)},x},S.stringify=m,S.parse=a,S.fromJSON=c,S.list=o,S.comment=w=>new r(w),S.atRule=w=>new e(w),S.decl=w=>new s(w),S.rule=w=>new p(w),S.root=w=>new d(w),S.document=w=>new f(w),S.CssSyntaxError=u,S.Declaration=s,S.Container=l,S.Processor=n,S.Document=f,S.Comment=r,S.Warning=C,S.AtRule=e,S.Result=i,S.Input=h,S.Rule=p,S.Root=d,S.Node=t,g.registerPostcss(S),Je=S,S.default=S,Je}var Ye,Xt;function Li(){if(Xt)return Ye;Xt=1;let e=ee(),r=xr(),l=Cr();class u extends r{checkMissedSemicolon(){}comment(f){let c=new e;this.init(c,f[2]);let h=this.input.fromOffset(f[3])||this.input.fromOffset(this.input.css.length-1);c.source.end={column:h.col,line:h.line,offset:f[3]+1};let g=f[1].slice(2);if(g.slice(-2)==="*/"&&(g=g.slice(0,-2)),/^\s*$/.test(g))c.text="",c.raws.left=g,c.raws.right="";else{let o=g.match(/^(\s*)([^]*\S)(\s*)$/);c.text=o[2],c.raws.left=o[1],c.raws.right=o[3]}}createTokenizer(){this.tokenizer=l(this.input,{ignoreErrors:!0})}decl(f){f.length>1&&f.some(c=>c[0]==="word")&&super.decl(f)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(f){let c=this.colon(f);if(c===!1)return;let h,g;for(h=c-1;h>=0&&f[h][0]!=="word";h--);if(h===0||h<0)return;for(g=h-1;g>=0;g--)if(f[g][0]!=="space"){g+=1;break}let o=f.slice(h),t=f.slice(g,h);f.splice(g,f.length-g),this.spaces=t.map(a=>a[1]).join(""),this.decl(o)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(f){this.spaces+=f.map(c=>c[1]).join("")}unnamedAtrule(f){f.name=""}}return Ye=u,Ye}var Ke,Zt;function Di(){if(Zt)return Ke;Zt=1;let{Input:e}=Ar(),r=Li();return Ke=function(u,s){let f=new e(u,s),c=new r(f);return c.parse(),c.root},Ke}var Ti=Di();const Ui=yr(Ti);var Nr=(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))(Nr||{}),Bi=Ar();const k=yr(Bi);k.stringify;k.fromJSON;k.plugin;k.parse;k.list;k.document;k.comment;k.atRule;k.rule;k.decl;k.root;k.CssSyntaxError;k.Declaration;k.Container;k.Processor;k.Document;k.Comment;k.Warning;k.AtRule;k.Result;k.Input;k.Rule;k.Root;k.Node;const er={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function Fi(e){let r=er[e.tagName]?er[e.tagName]:e.tagName;return r==="link"&&e.attributes._cssText&&(r="style"),r}function Xe(e,r){const l=r==null?void 0:r.stylesWithHoverClass.get(e);if(l)return l;let u=e;try{u=k([Ri,Ei]).process(e,{parser:Ui}).css}catch(s){console.warn("Failed to adapt css for replay",s)}return r==null||r.stylesWithHoverClass.set(e,u),u}function qi(){return{stylesWithHoverClass:new Map}}function zi(e,r){var l;const{doc:u,hackCss:s,cache:f}=r;switch(e.type){case _.Document:return u.implementation.createDocument(null,"",null);case _.DocumentType:return u.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case _.Element:{const c=Fi(e);let h;e.isSVG?h=u.createElementNS("http://www.w3.org/2000/svg",c):(e.isCustom&&((l=u.defaultView)!=null&&l.customElements)&&!u.defaultView.customElements.get(e.tagName)&&u.defaultView.customElements.define(e.tagName,class extends u.defaultView.HTMLElement{}),h=u.createElement(c));const g={};for(const o in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,o))continue;let t=e.attributes[o];if(c==="option"&&o==="selected"&&t===!1||t===null)continue;if(t===!0&&(t=""),o.startsWith("rr_")){g[o]=t;continue}const a=c==="textarea"&&o==="value",n=c==="style"&&o==="_cssText";if(n&&s&&typeof t=="string"&&(t=Xe(t,f)),(a||n)&&typeof t=="string"){h.appendChild(u.createTextNode(t)),e.childNodes=[];continue}try{if(e.isSVG&&o==="xlink:href")h.setAttributeNS("http://www.w3.org/1999/xlink",o,t.toString());else if(o==="onload"||o==="onclick"||o.substring(0,7)==="onmouse")h.setAttribute("_"+o,t.toString());else if(c==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&o==="content"){h.setAttribute("csp-content",t.toString());continue}else c==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||c==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&fe(e.attributes.href)==="js"||(c==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?h.setAttribute("rrweb-original-srcset",e.attributes.srcset):h.setAttribute(o,t.toString()))}catch(i){}}for(const o in g){const t=g[o];if(c==="canvas"&&o==="rr_dataURL"){const a=u.createElement("img");a.onload=()=>{const n=h.getContext("2d");n&&n.drawImage(a,0,0,a.width,a.height)},a.src=t.toString(),h.RRNodeType&&(h.rr_dataURL=t.toString())}else if(c==="img"&&o==="rr_dataURL"){const a=h;a.currentSrc.startsWith("data:")||(a.setAttribute("rrweb-original-src",e.attributes.src),a.src=t.toString())}if(o==="rr_width")h.style.setProperty("width",t.toString());else if(o==="rr_height")h.style.setProperty("height",t.toString());else if(o==="rr_mediaCurrentTime"&&typeof t=="number")h.currentTime=t;else if(o==="rr_mediaState")switch(t){case"played":h.play().catch(a=>console.warn("media playback error",a));break;case"paused":h.pause();break}else o==="rr_mediaPlaybackRate"&&typeof t=="number"?h.playbackRate=t:o==="rr_mediaMuted"&&typeof t=="boolean"?h.muted=t:o==="rr_mediaLoop"&&typeof t=="boolean"?h.loop=t:o==="rr_mediaVolume"&&typeof t=="number"?h.volume=t:o==="rr_open_mode"&&h.setAttribute("rr_open_mode",t)}if(e.isShadowHost)if(!h.shadowRoot)h.attachShadow({mode:"open"});else for(;h.shadowRoot.firstChild;)h.shadowRoot.removeChild(h.shadowRoot.firstChild);return h}case _.Text:return u.createTextNode(e.isStyle&&s?Xe(e.textContent,f):e.textContent);case _.CDATA:return u.createCDATASection(e.textContent);case _.Comment:return u.createComment(e.textContent);default:return null}}function at(e,r){const{doc:l,mirror:u,skipChild:s=!1,hackCss:f=!0,afterAppend:c,cache:h}=r;if(u.has(e.id)){const o=u.getNode(e.id),t=u.getMeta(o);if(cr(t,e))return u.getNode(e.id)}let g=zi(e,{doc:l,hackCss:f,cache:h});if(!g)return null;if(e.rootId&&u.getNode(e.rootId)!==l&&u.replace(e.rootId,l),e.type===_.Document&&(l.close(),l.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==_.DocumentType&&(e.childNodes[0].type===_.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?l.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):l.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),g=l),u.add(g,e),(e.type===_.Document||e.type===_.Element)&&!s)for(const o of e.childNodes){const t=at(o,{doc:l,mirror:u,skipChild:!1,hackCss:f,afterAppend:c,cache:h});if(!t){console.warn("Failed to rebuild",o);continue}if(o.isShadow&&ue(g)&&g.shadowRoot)g.shadowRoot.appendChild(t);else if(e.type===_.Document&&o.type==_.Element){const a=t;let n=null;a.childNodes.forEach(i=>{i.nodeName==="BODY"&&(n=i)}),n?(a.removeChild(n),g.appendChild(t),a.appendChild(n)):g.appendChild(t)}else g.appendChild(t);c&&c(t,o.id)}return g}function Wi(e,r){function l(u){r(u)}for(const u of e.getIds())e.has(u)&&l(e.getNode(u))}function ji(e,r){const l=r.getMeta(e);if((l==null?void 0:l.type)!==_.Element)return;const u=e;for(const s in l.attributes){if(!(Object.prototype.hasOwnProperty.call(l.attributes,s)&&s.startsWith("rr_")))continue;const f=l.attributes[s];s==="rr_scrollLeft"&&(u.scrollLeft=f),s==="rr_scrollTop"&&(u.scrollTop=f)}}function $i(e,r){const{doc:l,onVisit:u,hackCss:s=!0,afterAppend:f,cache:c,mirror:h=new ce}=r,g=at(e,{doc:l,mirror:h,skipChild:!1,hackCss:s,afterAppend:f,cache:c});return Wi(h,o=>{u&&u(o),ji(o,h)}),g}exports.IGNORED_NODE=Qe;exports.Mirror=ce;exports.NodeType=Nr;exports.absolutifyURLs=X;exports.adaptCssForReplay=Xe;exports.buildNodeWithSN=at;exports.classMatchesRegex=ae;exports.cleanupSnapshot=Ci;exports.createCache=qi;exports.createMirror=Zr;exports.escapeImportStatement=ir;exports.extractFileExtension=fe;exports.fixSafariColons=nr;exports.genId=pr;exports.getInputType=fr;exports.ignoreAttribute=mr;exports.is2DCanvasBlank=ur;exports.isCSSImportRule=or;exports.isCSSStyleRule=lr;exports.isElement=ue;exports.isNativeShadowDom=le;exports.isNodeMetaEqual=cr;exports.isShadowRoot=rr;exports.maskInputValue=ar;exports.needMaskingText=gr;exports.rebuild=$i;exports.serializeNodeWithId=Y;exports.snapshot=Si;exports.stringifyRule=sr;exports.stringifyStylesheet=Q;exports.toLowerCase=Z;exports.transformAttribute=dr;exports.visitSnapshot=vi;
|
|
43
43
|
if (typeof module.exports == "object" && typeof exports == "object") {
|
|
44
44
|
var __cp = (to, from, except, desc) => {
|
|
45
45
|
if ((from && typeof from === "object") || typeof from === "function") {
|