@betterbugs/record 2.0.0-alpha.20 → 2.0.0-alpha.21

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