repoburg 1.3.263 → 1.3.265

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,56 +1,56 @@
1
- "use strict";(()=>{var Wl=Object.defineProperty,zl=(e,t,r)=>t in e?Wl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t,r)=>zl(e,typeof t!="symbol"?t+"":t,r),ji,ql=Object.defineProperty,Vl=(e,t,r)=>t in e?ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hi=(e,t,r)=>Vl(e,typeof t!="symbol"?t+"":t,r),ee=(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))(ee||{}),Gi={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Yi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Nt={},po={},jl=()=>!!globalThis.Zone;function Zn(e){if(Nt[e])return Nt[e];let t=globalThis[e],r=t.prototype,i=e in Gi?Gi[e]:void 0,n=!!(i&&i.every(h=>{var a,p;return!!((p=(a=Object.getOwnPropertyDescriptor(r,h))==null?void 0:a.get)!=null&&p.toString().includes("[native code]"))})),l=e in Yi?Yi[e]:void 0,c=!!(l&&l.every(h=>{var a;return typeof r[h]=="function"&&((a=r[h])==null?void 0:a.toString().includes("[native code]"))}));if(n&&c&&!jl())return Nt[e]=t.prototype,t.prototype;try{let h=document.createElement("iframe");h.style.display="none",document.body.appendChild(h);let a=h.contentWindow;if(!a)return t.prototype;let p=a[e].prototype;if(!p)return h.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(h.classList.add("rr-block"),h.setAttribute("__rrwebUntaintedMutationObserver",""),po[e]=()=>h.remove()):h.remove(),Nt[e]=p}catch{return r}}var _r={};function ce(e,t,r){var i,n;let l=(i=_r[e])==null?void 0:i[r];if(l)return l.call(t);let c=Zn(e),h=(n=Object.getOwnPropertyDescriptor(c,r))==null?void 0:n.get;return h?((_r[e]||(_r[e]={}))[r]=h,h.call(t)):t[r]}var Lr={};function mo(e,t,r){let i=`${e}.${String(r)}`;if(Lr[i])return Lr[i].bind(t);let l=Zn(e)[r];return typeof l!="function"?t[r]:(Lr[i]=l,l.bind(t))}function Hl(e){return ce("Node",e,"ownerDocument")}function Gl(e){return ce("Node",e,"childNodes")}function Yl(e){return ce("Node",e,"parentNode")}function Xl(e){return ce("Node",e,"parentElement")}function Jl(e){return ce("Node",e,"textContent")}function Kl(e){return ce("Node",e,"firstChild")}function Ql(e){return ce("Node",e,"lastChild")}function Zl(e){return ce("Node",e,"nextSibling")}function eu(e){return ce("Node",e,"previousSibling")}function tu(e,t){return mo("Node",e,"contains")(t)}function ru(e){return mo("Node",e,"getRootNode")()}function nu(e){return!e||!("host"in e)?null:ce("ShadowRoot",e,"host")}function iu(e){return e.styleSheets}function su(e){return!e||!("shadowRoot"in e)?null:ce("Element",e,"shadowRoot")}function ou(e,t){return ce("Element",e,"querySelector")(t)}function au(e,t){return ce("Element",e,"querySelectorAll")(t)}function lu(){return[Zn("MutationObserver").constructor,po.MutationObserver??(()=>{})]}var go=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(go=()=>new Date().getTime());function uu(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}var ne={ownerDocument:Hl,childNodes:Gl,parentNode:Yl,parentElement:Xl,textContent:Jl,firstChild:Kl,lastChild:Ql,nextSibling:Zl,previousSibling:eu,contains:tu,getRootNode:ru,host:nu,styleSheets:iu,shadowRoot:su,querySelector:ou,querySelectorAll:au,nowTimestamp:go,mutationObserverCtor:lu,patch:uu};function yo(e){return e.nodeType===e.ELEMENT_NODE}function ct(e){let t=e&&"host"in e&&"mode"in e&&ne.host(e)||null;return!!(t&&"shadowRoot"in t&&ne.shadowRoot(t)===e)}function ft(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function cu(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 fu(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Wn(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let i=Array.from(t,n=>wo(n,r)).join("");return cu(i)}catch{return null}}function wo(e,t){if(du(e)){let r;try{r=Wn(e.styleSheet)||fu(e)}catch{r=e.cssText}return e.styleSheet.href?zt(r,e.styleSheet.href):r}else{let r=e.cssText;return pu(e)&&e.selectorText.includes(":")&&(r=hu(r)),t?zt(r,t):r}}function hu(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function du(e){return"styleSheet"in e}function pu(e){return"selectorText"in e}var Bt=class{constructor(){Hi(this,"idNodeMap",new Map),Hi(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){let i=this.getNode(t);if(i){let n=this.nodeMetaMap.get(i);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function mu(){return new Bt}function $t({element:e,maskInputOptions:t,tagName:r,type:i,value:n,maskInputFn:l}){let c=n||"",h=i&&ke(i);return(t[r.toLowerCase()]||h&&t[h])&&(l?c=l(c,e):c="*".repeat(c.length)),c}function ke(e){return e.toLowerCase()}var Xi="__rrweb_original__";function gu(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let i=0;i<e.width;i+=r)for(let n=0;n<e.height;n+=r){let l=t.getImageData,c=Xi in l?l[Xi]:l;if(new Uint32Array(c.call(t,i,n,Math.min(r,e.width-i),Math.min(r,e.height-n)).data.buffer).some(a=>a!==0))return!1}return!0}function Wt(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ke(t):null}function bo(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let i=/\.([0-9a-z]+)(?:$)/i,n=r.pathname.match(i);return n?.[1]??null}function yu(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var wu=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,bu=/^(?:[a-z+]+:)?\/\//i,vu=/^www\..*/i,Su=/^(data:)([^,]*),(.*)/i;function zt(e,t){return(e||"").replace(wu,(r,i,n,l,c,h)=>{let a=n||c||h,p=i||l||"";if(!a)return r;if(bu.test(a)||vu.test(a))return`url(${p}${a}${p})`;if(Su.test(a))return`url(${p}${a}${p})`;if(a[0]==="/")return`url(${p}${yu(t)+a}${p})`;let o=a.split("#")[0],d=a.substring(o.length),u=t.split("#")[0].split("/"),s=o.split("/");u.pop();for(let m of s)m!=="."&&(m===".."?u.pop():u.push(m));return`url(${p}${u.join("/")}${d}${p})`})}var vo="(?:/\\*[^*]*\\*/)|[\\s;]",Cu=new RegExp(`${vo}|\\b(0)px?`,"g"),Eu=new RegExp(vo,"g");function Ot(e,t=!1){return t?e.replace(Eu,""):e.replace(Cu,"$1")}function xu(e,t,r=!1){let i=Array.from(t.childNodes),n=[],l=0;if(i.length>1&&e&&typeof e=="string"){let c=Ot(e,r),h=c.length/e.length;for(let a=1;a<i.length;a++)if(i[a].textContent&&typeof i[a].textContent=="string"){let p=Ot(i[a].textContent,r),o=100,d=3;for(;d<p.length&&(p[d].match(/[a-zA-Z0-9]/)||p.indexOf(p.substring(0,d),1)!==-1);d++);for(;d<p.length;d++){let u=p.substring(0,d),s=c.split(u),m=-1;if(s.length===2)m=s[0].length;else if(s.length>2&&s[0]===""&&i[a-1].textContent!=="")m=c.indexOf(u,1);else if(s.length===1){if(u=u.substring(0,u.length-1),s=c.split(u),s.length<=1)return n.push(e),n;d=o+1}else d===p.length-1&&(m=c.indexOf(u));if(s.length>=2&&d>o){let f=i[a-1].textContent;if(f&&typeof f=="string"){let g=Ot(f).length;m=c.indexOf(u,g)}m===-1&&(m=s[0].length)}if(m!==-1){let f=Math.floor(m/h);for(;f>0&&f<e.length;){if(l+=1,l>50*i.length)return n.push(e),n;let g=Ot(e.substring(0,f),r);if(g.length===m){n.push(e.substring(0,f)),e=e.substring(f),c=c.substring(m);break}else g.length<m?f+=Math.max(1,Math.floor((m-g.length)/h)):f-=Math.max(1,Math.floor((g.length-m)*h))}break}}}}return n.push(e),n}function Ru(e,t){return xu(e,t).join("/* rr_split */")}var Tu=1,Mu=new RegExp("[^a-z0-9-_:]"),qt=-2;function So(){return Tu++}function Nu(e){if(e instanceof HTMLFormElement)return"form";let t=ke(e.tagName);return Mu.test(t)?"div":t}var Ge,Ji,Ou=/^[^ \t\n\r\u000c]+/,Iu=/^[, \t\n\r\u000c]+/;function ku(e,t){if(t.trim()==="")return t;let r=0;function i(l){let c,h=l.exec(t.substring(r));return h?(c=h[0],r+=c.length,c):""}let n=[];for(;i(Iu),!(r>=t.length);){let l=i(Ou);if(l.slice(-1)===",")l=Je(e,l.substring(0,l.length-1)),n.push(l);else{let c="";l=Je(e,l);let h=!1;for(;;){let a=t.charAt(r);if(a===""){n.push((l+c).trim());break}else if(h)a===")"&&(h=!1);else if(a===","){r+=1,n.push((l+c).trim());break}else a==="("&&(h=!0);c+=a,r+=1}}}return n.join(", ")}var Ki=new WeakMap;function Je(e,t){return!t||t.trim()===""?t:ei(e,t)}function Du(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function ei(e,t){let r=Ki.get(e);if(r||(r=e.createElement("a"),Ki.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Co(e,t,r,i){return i&&(r==="src"||r==="href"&&!(t==="use"&&i[0]==="#")||r==="xlink:href"&&i[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?Je(e,i):r==="srcset"?ku(e,i):r==="style"?zt(i,ei(e)):t==="object"&&r==="data"?Je(e,i):i)}function Eo(e,t,r){return["video","audio"].includes(e)&&ke(t)==="autoplay"}function Au(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}if(r)return e.matches(r)}catch{}return!1}function Vt(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Vt(ne.parentNode(e),t,r):!1;for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}return r?Vt(ne.parentNode(e),t,r):!1}function xo(e,t,r,i){let n;if(yo(e)){if(n=e,!ne.childNodes(n).length)return!1}else{if(ne.parentElement(e)===null)return!1;n=ne.parentElement(e)}try{if(typeof t=="string"){if(i){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(Vt(n,t,i))return!0;if(r){if(i){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch{}return!1}function _u(e,t,r){let i=e.contentWindow;if(!i)return;let n=!1,l;try{l=i.document.readyState}catch{return}if(l!=="complete"){let h=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(h),n=!0,t()});return}let c="about:blank";if(i.location.href!==c||e.src===c||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Lu(e,t,r){let i=!1,n;try{n=e.sheet}catch{return}if(n)return;let l=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(l),i=!0,t()})}function Pu(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:l,needsMask:c,inlineStylesheet:h,maskInputOptions:a={},maskTextFn:p,maskInputFn:o,dataURLOptions:d={},inlineImages:u,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:f=!1,cssCaptured:g=!1}=t,C=Fu(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ee.Document,childNodes:[],compatMode:e.compatMode}:{type:ee.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ee.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return Bu(e,{doc:r,blockClass:n,blockSelector:l,inlineStylesheet:h,maskInputOptions:a,maskInputFn:o,dataURLOptions:d,inlineImages:u,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:f,rootId:C});case e.TEXT_NODE:return Uu(e,{doc:r,needsMask:c,maskTextFn:p,rootId:C,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:ee.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:ee.Comment,textContent:ne.textContent(e)||"",rootId:C};default:return!1}}function Fu(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function Uu(e,t){let{needsMask:r,maskTextFn:i,rootId:n,cssCaptured:l}=t,c=ne.parentNode(e),h=c&&c.tagName,a="",p=h==="STYLE"?!0:void 0,o=h==="SCRIPT"?!0:void 0;return o?a="SCRIPT_PLACEHOLDER":l||(a=ne.textContent(e),p&&a&&(a=zt(a,ei(t.doc)))),!p&&!o&&a&&r&&(a=i?i(a,ne.parentElement(e)):a.replace(/[\S]/g,"*")),{type:ee.Text,textContent:a||"",rootId:n}}function Bu(e,t){let{doc:r,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:c={},maskInputFn:h,dataURLOptions:a={},inlineImages:p,recordCanvas:o,keepIframeSrcFn:d,newlyAddedElement:u=!1,rootId:s}=t,m=Au(e,i,n),f=Nu(e),g={},C=e.attributes.length;for(let v=0;v<C;v++){let E=e.attributes[v];Eo(f,E.name,E.value)||(g[E.name]=Co(r,f,ke(E.name),E.value))}if(f==="link"&&l){let v=Array.from(r.styleSheets).find(b=>b.href===e.href),E=null;v&&(E=Wn(v)),E&&(delete g.rel,delete g.href,g._cssText=E)}if(f==="style"&&e.sheet){let v=Wn(e.sheet);v&&(e.childNodes.length>1&&(v=Ru(v,e)),g._cssText=v)}if(["input","textarea","select"].includes(f)){let v=e.value,E=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&v?g.value=$t({element:e,type:Wt(e),tagName:f,value:v,maskInputOptions:c,maskInputFn:h}):E&&(g.checked=E)}if(f==="option"&&(e.selected&&!c.select?g.selected=!0:delete g.selected),f==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),f==="canvas"&&o){if(e.__context==="2d")gu(e)||(g.rr_dataURL=e.toDataURL(a.type,a.quality));else if(!("__context"in e)){let v=e.toDataURL(a.type,a.quality),E=r.createElement("canvas");E.width=e.width,E.height=e.height;let b=E.toDataURL(a.type,a.quality);v!==b&&(g.rr_dataURL=v)}}if(f==="img"&&p){Ge||(Ge=r.createElement("canvas"),Ji=Ge.getContext("2d"));let v=e,E=v.currentSrc||v.getAttribute("src")||"<unknown-src>",b=v.crossOrigin,y=()=>{v.removeEventListener("load",y);try{Ge.width=v.naturalWidth,Ge.height=v.naturalHeight,Ji.drawImage(v,0,0),g.rr_dataURL=Ge.toDataURL(a.type,a.quality)}catch(S){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${E}! Error: ${S}`)}v.crossOrigin==="anonymous"&&(b?g.crossOrigin=b:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y)}if(["audio","video"].includes(f)){let v=g;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(u||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:v,height:E}=e.getBoundingClientRect();g={class:g.class,rr_width:`${v}px`,rr_height:`${E}px`}}f==="iframe"&&!d(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let w;try{customElements.get(f)&&(w=!0)}catch{}return{type:ee.Element,tagName:f,attributes:g,childNodes:[],isSVG:Du(e)||void 0,needBlock:m,rootId:s,isCustom:w}}function q(e){return e==null?"":e.toLowerCase()}function Ro(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 $u(e,t){if(t.comment&&e.type===ee.Comment)return!0;if(e.type===ee.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"&&bo(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){let{doc:r,mirror:i,blockClass:n,blockSelector:l,maskTextClass:c,maskTextSelector:h,skipChild:a=!1,inlineStylesheet:p=!0,maskInputOptions:o={},maskTextFn:d,maskInputFn:u,slimDOMOptions:s,dataURLOptions:m={},inlineImages:f=!1,recordCanvas:g=!1,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:v=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:S=!1,cssCaptured:x=!1}=t,{needsMask:M}=t,{preserveWhiteSpace:T=!0}=t;M||(M=xo(e,c,h,M===void 0));let k=Pu(e,{doc:r,mirror:i,blockClass:n,blockSelector:l,needsMask:M,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:u,dataURLOptions:m,inlineImages:f,recordCanvas:g,keepIframeSrcFn:y,newlyAddedElement:S,cssCaptured:x});if(!k)return console.warn(e,"not serialized"),null;let I;i.hasNode(e)?I=i.getId(e):$u(k,s)||!T&&k.type===ee.Text&&!k.textContent.replace(/^\s+|\s+$/gm,"").length?I=qt:I=So();let R=Object.assign(k,{id:I});if(i.add(e,R),I===qt)return null;C&&C(e);let te=!a;if(R.type===ee.Element){te=te&&!R.needBlock,delete R.needBlock;let F=ne.shadowRoot(e);F&&ft(F)&&(R.isShadowHost=!0)}if((R.type===ee.Document||R.type===ee.Element)&&te){s.headWhitespace&&R.type===ee.Element&&R.tagName==="head"&&(T=!1);let F={doc:r,mirror:i,blockClass:n,blockSelector:l,needsMask:M,maskTextClass:c,maskTextSelector:h,skipChild:a,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:u,slimDOMOptions:s,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:y,cssCaptured:!1};if(!(R.type===ee.Element&&R.tagName==="textarea"&&R.attributes.value!==void 0)){R.type===ee.Element&&R.attributes._cssText!==void 0&&typeof R.attributes._cssText=="string"&&(F.cssCaptured=!0);for(let j of Array.from(ne.childNodes(e))){let K=Ke(j,F);K&&R.childNodes.push(K)}}let L=null;if(yo(e)&&(L=ne.shadowRoot(e)))for(let j of Array.from(ne.childNodes(L))){let K=Ke(j,F);K&&(ft(L)&&(K.isShadow=!0),R.childNodes.push(K))}}let re=ne.parentNode(e);return re&&ct(re)&&ft(re)&&(R.isShadow=!0),R.type===ee.Element&&R.tagName==="iframe"&&_u(e,()=>{let F=e.contentDocument;if(F&&w){let L=Ke(F,{doc:F,mirror:i,blockClass:n,blockSelector:l,needsMask:M,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:u,slimDOMOptions:s,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:y});L&&w(e,L)}},v),R.type===ee.Element&&R.tagName==="link"&&typeof R.attributes.rel=="string"&&(R.attributes.rel==="stylesheet"||R.attributes.rel==="preload"&&typeof R.attributes.href=="string"&&bo(R.attributes.href)==="css")&&Lu(e,()=>{if(E){let F=Ke(e,{doc:r,mirror:i,blockClass:n,blockSelector:l,needsMask:M,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:u,slimDOMOptions:s,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:y});F&&E(e,F)}},b),R}function Wu(e,t){let{mirror:r=new Bt,blockClass:i="rr-block",blockSelector:n=null,maskTextClass:l="rr-mask",maskTextSelector:c=null,inlineStylesheet:h=!0,inlineImages:a=!1,recordCanvas:p=!1,maskAllInputs:o=!1,maskTextFn:d,maskInputFn:u,slimDOM:s=!1,dataURLOptions:m,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:b=()=>!1}=t,y=o===!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}:o===!1?{password:!0}:o,S=Ro(s);return Ke(e,{doc:e,mirror:r,blockClass:i,blockSelector:n,maskTextClass:l,maskTextSelector:c,skipChild:!1,inlineStylesheet:h,maskInputOptions:y,maskTextFn:d,maskInputFn:u,slimDOMOptions:S,dataURLOptions:m,inlineImages:a,recordCanvas:p,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:b,newlyAddedElement:!1})}var zu=/(max|min)-device-(width|height)/,nh=new RegExp(zu.source,"g");function qu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vu(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?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(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var It={exports:{}},Qi;function ju(){if(Qi)return It.exports;Qi=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 It.exports=t(),It.exports.createColors=t,It.exports}var Hu={},Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Hu},Symbol.toStringTag,{value:"Module"})),we=Vu(Gu),Pr,Zi;function ti(){if(Zi)return Pr;Zi=1;let e=ju(),t=we;class r extends Error{constructor(n,l,c,h,a,p){super(n),this.name="CssSyntaxError",this.reason=n,a&&(this.file=a),h&&(this.source=h),p&&(this.plugin=p),typeof l<"u"&&typeof c<"u"&&(typeof l=="number"?(this.line=l,this.column=c):(this.line=l.line,this.column=l.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let l=this.source;n==null&&(n=e.isColorSupported),t&&n&&(l=t(l));let c=l.split(/\r?\n/),h=Math.max(this.line-3,0),a=Math.min(this.line+2,c.length),p=String(a).length,o,d;if(n){let{bold:u,gray:s,red:m}=e.createColors(!0);o=f=>u(m(f)),d=f=>s(f)}else o=d=u=>u;return c.slice(h,a).map((u,s)=>{let m=h+1+s,f=" "+(" "+m).slice(-p)+" | ";if(m===this.line){let g=d(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+d(f)+u+`
2
- `+g+o("^")}return" "+d(f)+u}).join(`
1
+ "use strict";(()=>{var Jl=Object.defineProperty,Kl=(e,t,r)=>t in e?Jl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t,r)=>Kl(e,typeof t!="symbol"?t+"":t,r),Gi,Ql=Object.defineProperty,Zl=(e,t,r)=>t in e?Ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yi=(e,t,r)=>Zl(e,typeof t!="symbol"?t+"":t,r),ee=(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))(ee||{}),Xi={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ji={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ot={},go={},eu=()=>!!globalThis.Zone;function ti(e){if(Ot[e])return Ot[e];let t=globalThis[e],r=t.prototype,i=e in Xi?Xi[e]:void 0,n=!!(i&&i.every(f=>{var l,p;return!!((p=(l=Object.getOwnPropertyDescriptor(r,f))==null?void 0:l.get)!=null&&p.toString().includes("[native code]"))})),a=e in Ji?Ji[e]:void 0,u=!!(a&&a.every(f=>{var l;return typeof r[f]=="function"&&((l=r[f])==null?void 0:l.toString().includes("[native code]"))}));if(n&&u&&!eu())return Ot[e]=t.prototype,t.prototype;try{let f=document.createElement("iframe");f.style.display="none",document.body.appendChild(f);let l=f.contentWindow;if(!l)return t.prototype;let p=l[e].prototype;if(!p)return f.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(f.classList.add("rr-block"),f.setAttribute("__rrwebUntaintedMutationObserver",""),go[e]=()=>f.remove()):f.remove(),Ot[e]=p}catch{return r}}var Pr={};function ce(e,t,r){var i,n;let a=(i=Pr[e])==null?void 0:i[r];if(a)return a.call(t);let u=ti(e),f=(n=Object.getOwnPropertyDescriptor(u,r))==null?void 0:n.get;return f?((Pr[e]||(Pr[e]={}))[r]=f,f.call(t)):t[r]}var Fr={};function yo(e,t,r){let i=`${e}.${String(r)}`;if(Fr[i])return Fr[i].bind(t);let a=ti(e)[r];return typeof a!="function"?t[r]:(Fr[i]=a,a.bind(t))}function tu(e){return ce("Node",e,"ownerDocument")}function ru(e){return ce("Node",e,"childNodes")}function nu(e){return ce("Node",e,"parentNode")}function iu(e){return ce("Node",e,"parentElement")}function su(e){return ce("Node",e,"textContent")}function ou(e){return ce("Node",e,"firstChild")}function au(e){return ce("Node",e,"lastChild")}function lu(e){return ce("Node",e,"nextSibling")}function uu(e){return ce("Node",e,"previousSibling")}function cu(e,t){return yo("Node",e,"contains")(t)}function fu(e){return yo("Node",e,"getRootNode")()}function hu(e){return!e||!("host"in e)?null:ce("ShadowRoot",e,"host")}function du(e){return e.styleSheets}function pu(e){return!e||!("shadowRoot"in e)?null:ce("Element",e,"shadowRoot")}function mu(e,t){return ce("Element",e,"querySelector")(t)}function gu(e,t){return ce("Element",e,"querySelectorAll")(t)}function yu(){return[ti("MutationObserver").constructor,go.MutationObserver??(()=>{})]}var wo=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(wo=()=>new Date().getTime());function wu(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}var ne={ownerDocument:tu,childNodes:ru,parentNode:nu,parentElement:iu,textContent:su,firstChild:ou,lastChild:au,nextSibling:lu,previousSibling:uu,contains:cu,getRootNode:fu,host:hu,styleSheets:du,shadowRoot:pu,querySelector:mu,querySelectorAll:gu,nowTimestamp:wo,mutationObserverCtor:yu,patch:wu};function bo(e){return e.nodeType===e.ELEMENT_NODE}function ct(e){let t=e&&"host"in e&&"mode"in e&&ne.host(e)||null;return!!(t&&"shadowRoot"in t&&ne.shadowRoot(t)===e)}function ft(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function bu(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 vu(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function qn(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let i=Array.from(t,n=>vo(n,r)).join("");return bu(i)}catch{return null}}function vo(e,t){if(Cu(e)){let r;try{r=qn(e.styleSheet)||vu(e)}catch{r=e.cssText}return e.styleSheet.href?qt(r,e.styleSheet.href):r}else{let r=e.cssText;return Eu(e)&&e.selectorText.includes(":")&&(r=Su(r)),t?qt(r,t):r}}function Su(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Cu(e){return"styleSheet"in e}function Eu(e){return"selectorText"in e}var $t=class{constructor(){Yi(this,"idNodeMap",new Map),Yi(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){let i=this.getNode(t);if(i){let n=this.nodeMetaMap.get(i);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function xu(){return new $t}function Wt({element:e,maskInputOptions:t,tagName:r,type:i,value:n,maskInputFn:a}){let u=n||"",f=i&&ke(i);return(t[r.toLowerCase()]||f&&t[f])&&(a?u=a(u,e):u="*".repeat(u.length)),u}function ke(e){return e.toLowerCase()}var Ki="__rrweb_original__";function Ru(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let i=0;i<e.width;i+=r)for(let n=0;n<e.height;n+=r){let a=t.getImageData,u=Ki in a?a[Ki]:a;if(new Uint32Array(u.call(t,i,n,Math.min(r,e.width-i),Math.min(r,e.height-n)).data.buffer).some(l=>l!==0))return!1}return!0}function zt(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ke(t):null}function So(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let i=/\.([0-9a-z]+)(?:$)/i,n=r.pathname.match(i);return n?.[1]??null}function Tu(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var Mu=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Nu=/^(?:[a-z+]+:)?\/\//i,Ou=/^www\..*/i,Iu=/^(data:)([^,]*),(.*)/i;function qt(e,t){return(e||"").replace(Mu,(r,i,n,a,u,f)=>{let l=n||u||f,p=i||a||"";if(!l)return r;if(Nu.test(l)||Ou.test(l))return`url(${p}${l}${p})`;if(Iu.test(l))return`url(${p}${l}${p})`;if(l[0]==="/")return`url(${p}${Tu(t)+l}${p})`;let o=l.split("#")[0],d=l.substring(o.length),c=t.split("#")[0].split("/"),s=o.split("/");c.pop();for(let m of s)m!=="."&&(m===".."?c.pop():c.push(m));return`url(${p}${c.join("/")}${d}${p})`})}var Co="(?:/\\*[^*]*\\*/)|[\\s;]",ku=new RegExp(`${Co}|\\b(0)px?`,"g"),Au=new RegExp(Co,"g");function It(e,t=!1){return t?e.replace(Au,""):e.replace(ku,"$1")}function Du(e,t,r=!1){let i=Array.from(t.childNodes),n=[],a=0;if(i.length>1&&e&&typeof e=="string"){let u=It(e,r),f=u.length/e.length;for(let l=1;l<i.length;l++)if(i[l].textContent&&typeof i[l].textContent=="string"){let p=It(i[l].textContent,r),o=100,d=3;for(;d<p.length&&(p[d].match(/[a-zA-Z0-9]/)||p.indexOf(p.substring(0,d),1)!==-1);d++);for(;d<p.length;d++){let c=p.substring(0,d),s=u.split(c),m=-1;if(s.length===2)m=s[0].length;else if(s.length>2&&s[0]===""&&i[l-1].textContent!=="")m=u.indexOf(c,1);else if(s.length===1){if(c=c.substring(0,c.length-1),s=u.split(c),s.length<=1)return n.push(e),n;d=o+1}else d===p.length-1&&(m=u.indexOf(c));if(s.length>=2&&d>o){let h=i[l-1].textContent;if(h&&typeof h=="string"){let g=It(h).length;m=u.indexOf(c,g)}m===-1&&(m=s[0].length)}if(m!==-1){let h=Math.floor(m/f);for(;h>0&&h<e.length;){if(a+=1,a>50*i.length)return n.push(e),n;let g=It(e.substring(0,h),r);if(g.length===m){n.push(e.substring(0,h)),e=e.substring(h),u=u.substring(m);break}else g.length<m?h+=Math.max(1,Math.floor((m-g.length)/f)):h-=Math.max(1,Math.floor((g.length-m)*f))}break}}}}return n.push(e),n}function _u(e,t){return Du(e,t).join("/* rr_split */")}var Lu=1,Pu=new RegExp("[^a-z0-9-_:]"),Vt=-2;function Eo(){return Lu++}function Fu(e){if(e instanceof HTMLFormElement)return"form";let t=ke(e.tagName);return Pu.test(t)?"div":t}var Ge,Qi,Uu=/^[^ \t\n\r\u000c]+/,Bu=/^[, \t\n\r\u000c]+/;function $u(e,t){if(t.trim()==="")return t;let r=0;function i(a){let u,f=a.exec(t.substring(r));return f?(u=f[0],r+=u.length,u):""}let n=[];for(;i(Bu),!(r>=t.length);){let a=i(Uu);if(a.slice(-1)===",")a=Je(e,a.substring(0,a.length-1)),n.push(a);else{let u="";a=Je(e,a);let f=!1;for(;;){let l=t.charAt(r);if(l===""){n.push((a+u).trim());break}else if(f)l===")"&&(f=!1);else if(l===","){r+=1,n.push((a+u).trim());break}else l==="("&&(f=!0);u+=l,r+=1}}}return n.join(", ")}var Zi=new WeakMap;function Je(e,t){return!t||t.trim()===""?t:ri(e,t)}function Wu(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function ri(e,t){let r=Zi.get(e);if(r||(r=e.createElement("a"),Zi.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function xo(e,t,r,i){return i&&(r==="src"||r==="href"&&!(t==="use"&&i[0]==="#")||r==="xlink:href"&&i[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?Je(e,i):r==="srcset"?$u(e,i):r==="style"?qt(i,ri(e)):t==="object"&&r==="data"?Je(e,i):i)}function Ro(e,t,r){return["video","audio"].includes(e)&&ke(t)==="autoplay"}function zu(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}if(r)return e.matches(r)}catch{}return!1}function jt(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?jt(ne.parentNode(e),t,r):!1;for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}return r?jt(ne.parentNode(e),t,r):!1}function To(e,t,r,i){let n;if(bo(e)){if(n=e,!ne.childNodes(n).length)return!1}else{if(ne.parentElement(e)===null)return!1;n=ne.parentElement(e)}try{if(typeof t=="string"){if(i){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(jt(n,t,i))return!0;if(r){if(i){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch{}return!1}function qu(e,t,r){let i=e.contentWindow;if(!i)return;let n=!1,a;try{a=i.document.readyState}catch{return}if(a!=="complete"){let f=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(f),n=!0,t()});return}let u="about:blank";if(i.location.href!==u||e.src===u||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Vu(e,t,r){let i=!1,n;try{n=e.sheet}catch{return}if(n)return;let a=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}function ju(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:u,inlineStylesheet:f,maskInputOptions:l={},maskTextFn:p,maskInputFn:o,dataURLOptions:d={},inlineImages:c,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:h=!1,cssCaptured:g=!1}=t,C=Hu(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ee.Document,childNodes:[],compatMode:e.compatMode}:{type:ee.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ee.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return Yu(e,{doc:r,blockClass:n,blockSelector:a,inlineStylesheet:f,maskInputOptions:l,maskInputFn:o,dataURLOptions:d,inlineImages:c,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:h,rootId:C});case e.TEXT_NODE:return Gu(e,{doc:r,needsMask:u,maskTextFn:p,rootId:C,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:ee.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:ee.Comment,textContent:ne.textContent(e)||"",rootId:C};default:return!1}}function Hu(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function Gu(e,t){let{needsMask:r,maskTextFn:i,rootId:n,cssCaptured:a}=t,u=ne.parentNode(e),f=u&&u.tagName,l="",p=f==="STYLE"?!0:void 0,o=f==="SCRIPT"?!0:void 0;return o?l="SCRIPT_PLACEHOLDER":a||(l=ne.textContent(e),p&&l&&(l=qt(l,ri(t.doc)))),!p&&!o&&l&&r&&(l=i?i(l,ne.parentElement(e)):l.replace(/[\S]/g,"*")),{type:ee.Text,textContent:l||"",rootId:n}}function Yu(e,t){let{doc:r,blockClass:i,blockSelector:n,inlineStylesheet:a,maskInputOptions:u={},maskInputFn:f,dataURLOptions:l={},inlineImages:p,recordCanvas:o,keepIframeSrcFn:d,newlyAddedElement:c=!1,rootId:s}=t,m=zu(e,i,n),h=Fu(e),g={},C=e.attributes.length;for(let v=0;v<C;v++){let E=e.attributes[v];Ro(h,E.name,E.value)||(g[E.name]=xo(r,h,ke(E.name),E.value))}if(h==="link"&&a){let v=Array.from(r.styleSheets).find(b=>b.href===e.href),E=null;v&&(E=qn(v)),E&&(delete g.rel,delete g.href,g._cssText=E)}if(h==="style"&&e.sheet){let v=qn(e.sheet);v&&(e.childNodes.length>1&&(v=_u(v,e)),g._cssText=v)}if(["input","textarea","select"].includes(h)){let v=e.value,E=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&v?g.value=Wt({element:e,type:zt(e),tagName:h,value:v,maskInputOptions:u,maskInputFn:f}):E&&(g.checked=E)}if(h==="option"&&(e.selected&&!u.select?g.selected=!0:delete g.selected),h==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),h==="canvas"&&o){if(e.__context==="2d")Ru(e)||(g.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){let v=e.toDataURL(l.type,l.quality),E=r.createElement("canvas");E.width=e.width,E.height=e.height;let b=E.toDataURL(l.type,l.quality);v!==b&&(g.rr_dataURL=v)}}if(h==="img"&&p){Ge||(Ge=r.createElement("canvas"),Qi=Ge.getContext("2d"));let v=e,E=v.currentSrc||v.getAttribute("src")||"<unknown-src>",b=v.crossOrigin,y=()=>{v.removeEventListener("load",y);try{Ge.width=v.naturalWidth,Ge.height=v.naturalHeight,Qi.drawImage(v,0,0),g.rr_dataURL=Ge.toDataURL(l.type,l.quality)}catch(S){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${E}! Error: ${S}`)}v.crossOrigin==="anonymous"&&(b?g.crossOrigin=b:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y)}if(["audio","video"].includes(h)){let v=g;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(c||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:v,height:E}=e.getBoundingClientRect();g={class:g.class,rr_width:`${v}px`,rr_height:`${E}px`}}h==="iframe"&&!d(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let w;try{customElements.get(h)&&(w=!0)}catch{}return{type:ee.Element,tagName:h,attributes:g,childNodes:[],isSVG:Wu(e)||void 0,needBlock:m,rootId:s,isCustom:w}}function q(e){return e==null?"":e.toLowerCase()}function Mo(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 Xu(e,t){if(t.comment&&e.type===ee.Comment)return!0;if(e.type===ee.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"&&So(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){let{doc:r,mirror:i,blockClass:n,blockSelector:a,maskTextClass:u,maskTextSelector:f,skipChild:l=!1,inlineStylesheet:p=!0,maskInputOptions:o={},maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m={},inlineImages:h=!1,recordCanvas:g=!1,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:v=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:S=!1,cssCaptured:x=!1}=t,{needsMask:M}=t,{preserveWhiteSpace:T=!0}=t;M||(M=To(e,u,f,M===void 0));let k=ju(e,{doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:M,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,dataURLOptions:m,inlineImages:h,recordCanvas:g,keepIframeSrcFn:y,newlyAddedElement:S,cssCaptured:x});if(!k)return console.warn(e,"not serialized"),null;let I;i.hasNode(e)?I=i.getId(e):Xu(k,s)||!T&&k.type===ee.Text&&!k.textContent.replace(/^\s+|\s+$/gm,"").length?I=Vt:I=Eo();let R=Object.assign(k,{id:I});if(i.add(e,R),I===Vt)return null;C&&C(e);let te=!l;if(R.type===ee.Element){te=te&&!R.needBlock,delete R.needBlock;let U=ne.shadowRoot(e);U&&ft(U)&&(R.isShadowHost=!0)}if((R.type===ee.Document||R.type===ee.Element)&&te){s.headWhitespace&&R.type===ee.Element&&R.tagName==="head"&&(T=!1);let U={doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:M,maskTextClass:u,maskTextSelector:f,skipChild:l,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:y,cssCaptured:!1};if(!(R.type===ee.Element&&R.tagName==="textarea"&&R.attributes.value!==void 0)){R.type===ee.Element&&R.attributes._cssText!==void 0&&typeof R.attributes._cssText=="string"&&(U.cssCaptured=!0);for(let j of Array.from(ne.childNodes(e))){let K=Ke(j,U);K&&R.childNodes.push(K)}}let P=null;if(bo(e)&&(P=ne.shadowRoot(e)))for(let j of Array.from(ne.childNodes(P))){let K=Ke(j,U);K&&(ft(P)&&(K.isShadow=!0),R.childNodes.push(K))}}let re=ne.parentNode(e);return re&&ct(re)&&ft(re)&&(R.isShadow=!0),R.type===ee.Element&&R.tagName==="iframe"&&qu(e,()=>{let U=e.contentDocument;if(U&&w){let P=Ke(U,{doc:U,mirror:i,blockClass:n,blockSelector:a,needsMask:M,maskTextClass:u,maskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:y});P&&w(e,P)}},v),R.type===ee.Element&&R.tagName==="link"&&typeof R.attributes.rel=="string"&&(R.attributes.rel==="stylesheet"||R.attributes.rel==="preload"&&typeof R.attributes.href=="string"&&So(R.attributes.href)==="css")&&Vu(e,()=>{if(E){let U=Ke(e,{doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:M,maskTextClass:u,maskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:y});U&&E(e,U)}},b),R}function Ju(e,t){let{mirror:r=new $t,blockClass:i="rr-block",blockSelector:n=null,maskTextClass:a="rr-mask",maskTextSelector:u=null,inlineStylesheet:f=!0,inlineImages:l=!1,recordCanvas:p=!1,maskAllInputs:o=!1,maskTextFn:d,maskInputFn:c,slimDOM:s=!1,dataURLOptions:m,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:b=()=>!1}=t,y=o===!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}:o===!1?{password:!0}:o,S=Mo(s);return Ke(e,{doc:e,mirror:r,blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:y,maskTextFn:d,maskInputFn:c,slimDOMOptions:S,dataURLOptions:m,inlineImages:l,recordCanvas:p,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:b,newlyAddedElement:!1})}var Ku=/(max|min)-device-(width|height)/,wh=new RegExp(Ku.source,"g");function Qu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zu(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?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(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var kt={exports:{}},es;function ec(){if(es)return kt.exports;es=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 kt.exports=t(),kt.exports.createColors=t,kt.exports}var tc={},rc=Object.freeze(Object.defineProperty({__proto__:null,default:tc},Symbol.toStringTag,{value:"Module"})),ve=Zu(rc),Ur,ts;function ni(){if(ts)return Ur;ts=1;let e=ec(),t=ve;class r extends Error{constructor(n,a,u,f,l,p){super(n),this.name="CssSyntaxError",this.reason=n,l&&(this.file=l),f&&(this.source=f),p&&(this.plugin=p),typeof a<"u"&&typeof u<"u"&&(typeof a=="number"?(this.line=a,this.column=u):(this.line=a.line,this.column=a.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let a=this.source;n==null&&(n=e.isColorSupported),t&&n&&(a=t(a));let u=a.split(/\r?\n/),f=Math.max(this.line-3,0),l=Math.min(this.line+2,u.length),p=String(l).length,o,d;if(n){let{bold:c,gray:s,red:m}=e.createColors(!0);o=h=>c(m(h)),d=h=>s(h)}else o=d=c=>c;return u.slice(f,l).map((c,s)=>{let m=f+1+s,h=" "+(" "+m).slice(-p)+" | ";if(m===this.line){let g=d(h.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+d(h)+c+`
2
+ `+g+o("^")}return" "+d(h)+c}).join(`
3
3
  `)}toString(){let n=this.showSourceCode();return n&&(n=`
4
4
 
5
5
  `+n+`
6
- `),this.name+": "+this.message+n}}return Pr=r,r.default=r,Pr}var kt={},es;function ri(){return es||(es=1,kt.isClean=Symbol("isClean"),kt.my=Symbol("my")),kt}var Fr,ts;function To(){if(ts)return Fr;ts=1;let e={after:`
6
+ `),this.name+": "+this.message+n}}return Ur=r,r.default=r,Ur}var At={},rs;function ii(){return rs||(rs=1,At.isClean=Symbol("isClean"),At.my=Symbol("my")),At}var Br,ns;function No(){if(ns)return Br;ns=1;let e={after:`
7
7
  `,beforeClose:`
8
8
  `,beforeComment:`
9
9
  `,beforeDecl:`
10
10
  `,beforeOpen:" ",beforeRule:`
11
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(n){this.builder=n}atrule(n,l){let c="@"+n.name,h=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?c+=n.raws.afterName:h&&(c+=" "),n.nodes)this.block(n,c+h);else{let a=(n.raws.between||"")+(l?";":"");this.builder(c+h+a,n)}}beforeAfter(n,l){let c;n.type==="decl"?c=this.raw(n,null,"beforeDecl"):n.type==="comment"?c=this.raw(n,null,"beforeComment"):l==="before"?c=this.raw(n,null,"beforeRule"):c=this.raw(n,null,"beforeClose");let h=n.parent,a=0;for(;h&&h.type!=="root";)a+=1,h=h.parent;if(c.includes(`
12
- `)){let p=this.raw(n,null,"indent");if(p.length)for(let o=0;o<a;o++)c+=p}return c}block(n,l){let c=this.raw(n,"between","beforeOpen");this.builder(l+c+"{",n,"start");let h;n.nodes&&n.nodes.length?(this.body(n),h=this.raw(n,"after")):h=this.raw(n,"after","emptyBody"),h&&this.builder(h),this.builder("}",n,"end")}body(n){let l=n.nodes.length-1;for(;l>0&&n.nodes[l].type==="comment";)l-=1;let c=this.raw(n,"semicolon");for(let h=0;h<n.nodes.length;h++){let a=n.nodes[h],p=this.raw(a,"before");p&&this.builder(p),this.stringify(a,l!==h||c)}}comment(n){let l=this.raw(n,"left","commentLeft"),c=this.raw(n,"right","commentRight");this.builder("/*"+l+n.text+c+"*/",n)}decl(n,l){let c=this.raw(n,"between","colon"),h=n.prop+c+this.rawValue(n,"value");n.important&&(h+=n.raws.important||" !important"),l&&(h+=";"),this.builder(h,n)}document(n){this.body(n)}raw(n,l,c){let h;if(c||(c=l),l&&(h=n.raws[l],typeof h<"u"))return h;let a=n.parent;if(c==="before"&&(!a||a.type==="root"&&a.first===n||a&&a.type==="document"))return"";if(!a)return e[c];let p=n.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[c]<"u")return p.rawCache[c];if(c==="before"||c==="after")return this.beforeAfter(n,c);{let o="raw"+t(c);this[o]?h=this[o](p,n):p.walk(d=>{if(h=d.raws[l],typeof h<"u")return!1})}return typeof h>"u"&&(h=e[c]),p.rawCache[c]=h,h}rawBeforeClose(n){let l;return n.walk(c=>{if(c.nodes&&c.nodes.length>0&&typeof c.raws.after<"u")return l=c.raws.after,l.includes(`
13
- `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawBeforeComment(n,l){let c;return n.walkComments(h=>{if(typeof h.raws.before<"u")return c=h.raws.before,c.includes(`
14
- `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c>"u"?c=this.raw(l,null,"beforeDecl"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeDecl(n,l){let c;return n.walkDecls(h=>{if(typeof h.raws.before<"u")return c=h.raws.before,c.includes(`
15
- `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c>"u"?c=this.raw(l,null,"beforeRule"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeOpen(n){let l;return n.walk(c=>{if(c.type!=="decl"&&(l=c.raws.between,typeof l<"u"))return!1}),l}rawBeforeRule(n){let l;return n.walk(c=>{if(c.nodes&&(c.parent!==n||n.first!==c)&&typeof c.raws.before<"u")return l=c.raws.before,l.includes(`
16
- `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawColon(n){let l;return n.walkDecls(c=>{if(typeof c.raws.between<"u")return l=c.raws.between.replace(/[^\s:]/g,""),!1}),l}rawEmptyBody(n){let l;return n.walk(c=>{if(c.nodes&&c.nodes.length===0&&(l=c.raws.after,typeof l<"u"))return!1}),l}rawIndent(n){if(n.raws.indent)return n.raws.indent;let l;return n.walk(c=>{let h=c.parent;if(h&&h!==n&&h.parent&&h.parent===n&&typeof c.raws.before<"u"){let a=c.raws.before.split(`
17
- `);return l=a[a.length-1],l=l.replace(/\S/g,""),!1}}),l}rawSemicolon(n){let l;return n.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(l=c.raws.semicolon,typeof l<"u"))return!1}),l}rawValue(n,l){let c=n[l],h=n.raws[l];return h&&h.value===c?h.raw:c}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,l){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,l)}}return Fr=r,r.default=r,Fr}var Ur,rs;function Yt(){if(rs)return Ur;rs=1;let e=To();function t(r,i){new e(i).stringify(r)}return Ur=t,t.default=t,Ur}var Br,ns;function Xt(){if(ns)return Br;ns=1;let{isClean:e,my:t}=ri(),r=ti(),i=To(),n=Yt();function l(h,a){let p=new h.constructor;for(let o in h){if(!Object.prototype.hasOwnProperty.call(h,o)||o==="proxyCache")continue;let d=h[o],u=typeof d;o==="parent"&&u==="object"?a&&(p[o]=a):o==="source"?p[o]=d:Array.isArray(d)?p[o]=d.map(s=>l(s,p)):(u==="object"&&d!==null&&(d=l(d)),p[o]=d)}return p}class c{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in a)if(p==="nodes"){this.nodes=[];for(let o of a[p])typeof o.clone=="function"?this.append(o.clone()):this.append(o)}else this[p]=a[p]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let p=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let p in a)this[p]=a[p];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let p=l(this);for(let o in a)p[o]=a[o];return p}cloneAfter(a={}){let p=this.clone(a);return this.parent.insertAfter(this,p),p}cloneBefore(a={}){let p=this.clone(a);return this.parent.insertBefore(this,p),p}error(a,p={}){if(this.source){let{end:o,start:d}=this.rangeBy(p);return this.source.input.error(a,{column:d.column,line:d.line},{column:o.column,line:o.line},p)}return new r(a)}getProxyProcessor(){return{get(a,p){return p==="proxyOf"?a:p==="root"?()=>a.root().toProxy():a[p]},set(a,p,o){return a[p]===o||(a[p]=o,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,p){let o=this.source.start;if(a.index)o=this.positionInside(a.index,p);else if(a.word){p=this.toString();let d=p.indexOf(a.word);d!==-1&&(o=this.positionInside(d,p))}return o}positionInside(a,p){let o=p||this.toString(),d=this.source.start.column,u=this.source.start.line;for(let s=0;s<a;s++)o[s]===`
18
- `?(d=1,u+=1):d+=1;return{column:d,line:u}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let p={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(a.word){let d=this.toString(),u=d.indexOf(a.word);u!==-1&&(p=this.positionInside(u,d),o=this.positionInside(u+a.word.length,d))}else a.start?p={column:a.start.column,line:a.start.line}:a.index&&(p=this.positionInside(a.index)),a.end?o={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?o=this.positionInside(a.endIndex):a.index&&(o=this.positionInside(a.index+1));return(o.line<p.line||o.line===p.line&&o.column<=p.column)&&(o={column:p.column+1,line:p.line}),{end:o,start:p}}raw(a,p){return new i().raw(this,a,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let p=this,o=!1;for(let d of a)d===this?o=!0:o?(this.parent.insertAfter(p,d),p=d):this.parent.insertBefore(p,d);o||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,p){let o={},d=p==null;p=p||new Map;let u=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let m=this[s];if(Array.isArray(m))o[s]=m.map(f=>typeof f=="object"&&f.toJSON?f.toJSON(null,p):f);else if(typeof m=="object"&&m.toJSON)o[s]=m.toJSON(null,p);else if(s==="source"){let f=p.get(m.input);f==null&&(f=u,p.set(m.input,u),u++),o[s]={end:m.end,inputId:f,start:m.start}}else o[s]=m}return d&&(o.inputs=[...p.keys()].map(s=>s.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=n){a.stringify&&(a=a.stringify);let p="";return a(this,o=>{p+=o}),p}warn(a,p,o){let d={node:this};for(let u in o)d[u]=o[u];return a.warn(p,d)}get proxyOf(){return this}}return Br=c,c.default=c,Br}var $r,is;function Jt(){if(is)return $r;is=1;let e=Xt();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return $r=t,t.default=t,$r}var Wr,ss;function Yu(){if(ss)return Wr;ss=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Wr={nanoid:(i=21)=>{let n="",l=i;for(;l--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(l=n)=>{let c="",h=l;for(;h--;)c+=i[Math.random()*i.length|0];return c}},Wr}var zr,os;function Mo(){if(os)return zr;os=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=we,{existsSync:r,readFileSync:i}=we,{dirname:n,join:l}=we;function c(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class h{constructor(p,o){if(o.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let d=o.map?o.map.prev:void 0,u=this.loadMap(o.from,d);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=n(this.mapFile)),u&&(this.text=u)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let o=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,u=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(u.test(p)||s.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(o.test(p)||d.test(p))return c(p.substr(RegExp.lastMatch.length));let m=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let o=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!o)return;let d=p.lastIndexOf(o.pop()),u=p.indexOf("*/",d);d>-1&&u>-1&&(this.annotation=this.getAnnotationURL(p.substring(d,u)))}loadFile(p){if(this.root=n(p),r(p))return this.mapFile=p,i(p,"utf-8").toString().trim()}loadMap(p,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let d=o(p);if(d){let u=this.loadFile(d);if(!u)throw new Error("Unable to load previous source map: "+d.toString());return u}}else{if(o instanceof e)return t.fromSourceMap(o).toString();if(o instanceof t)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return p&&(d=l(n(p),d)),this.loadFile(d)}}}startWith(p,o){return p?p.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return zr=h,h.default=h,zr}var qr,as;function Kt(){if(as)return qr;as=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=we,{fileURLToPath:r,pathToFileURL:i}=we,{isAbsolute:n,resolve:l}=we,{nanoid:c}=Yu(),h=we,a=ti(),p=Mo(),o=Symbol("fromOffsetCache"),d=!!(e&&t),u=!!(l&&n);class s{constructor(f,g={}){if(f===null||typeof f>"u"||typeof f=="object"&&!f.toString)throw new Error(`PostCSS received ${f} instead of CSS string`);if(this.css=f.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!u||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=l(g.from)),u&&d){let C=new p(this.css,g);if(C.text){this.map=C;let w=C.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}error(f,g,C,w={}){let v,E,b;if(g&&typeof g=="object"){let S=g,x=C;if(typeof S.offset=="number"){let M=this.fromOffset(S.offset);g=M.line,C=M.col}else g=S.line,C=S.column;if(typeof x.offset=="number"){let M=this.fromOffset(x.offset);E=M.line,b=M.col}else E=x.line,b=x.column}else if(!C){let S=this.fromOffset(g);g=S.line,C=S.col}let y=this.origin(g,C,E,b);return y?v=new a(f,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,w.plugin):v=new a(f,E===void 0?g:{column:C,line:g},E===void 0?C:{column:b,line:E},this.css,this.file,w.plugin),v.input={column:C,endColumn:b,endLine:E,line:g,source:this.css},this.file&&(i&&(v.input.url=i(this.file).toString()),v.input.file=this.file),v}fromOffset(f){let g,C;if(this[o])C=this[o];else{let v=this.css.split(`
19
- `);C=new Array(v.length);let E=0;for(let b=0,y=v.length;b<y;b++)C[b]=E,E+=v[b].length+1;this[o]=C}g=C[C.length-1];let w=0;if(f>=g)w=C.length-1;else{let v=C.length-2,E;for(;w<v;)if(E=w+(v-w>>1),f<C[E])v=E-1;else if(f>=C[E+1])w=E+1;else{w=E;break}}return{col:f-C[w]+1,line:w+1}}mapResolve(f){return/^\w+:\/\//.test(f)?f:l(this.map.consumer().sourceRoot||this.map.root||".",f)}origin(f,g,C,w){if(!this.map)return!1;let v=this.map.consumer(),E=v.originalPositionFor({column:g,line:f});if(!E.source)return!1;let b;typeof C=="number"&&(b=v.originalPositionFor({column:w,line:C}));let y;n(E.source)?y=i(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:b&&b.column,endLine:b&&b.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)S.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=v.sourceContentFor(E.source);return x&&(S.source=x),S}toJSON(){let f={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(f[g]=this[g]);return this.map&&(f.map={...this.map},f.map.consumerCache&&(f.map.consumerCache=void 0)),f}get from(){return this.file||this.id}}return qr=s,s.default=s,h&&h.registerInput&&h.registerInput(s),qr}var Vr,ls;function No(){if(ls)return Vr;ls=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=we,{dirname:r,relative:i,resolve:n,sep:l}=we,{pathToFileURL:c}=we,h=Kt(),a=!!(e&&t),p=!!(r&&n&&i&&l);class o{constructor(u,s,m,f){this.stringify=u,this.mapOpts=m.map||{},this.root=s,this.opts=m,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let u;this.isInline()?u="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?u=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?u=this.mapOpts.annotation(this.opts.to,this.root):u=this.outputFile()+".map";let s=`
11
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(n){this.builder=n}atrule(n,a){let u="@"+n.name,f=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?u+=n.raws.afterName:f&&(u+=" "),n.nodes)this.block(n,u+f);else{let l=(n.raws.between||"")+(a?";":"");this.builder(u+f+l,n)}}beforeAfter(n,a){let u;n.type==="decl"?u=this.raw(n,null,"beforeDecl"):n.type==="comment"?u=this.raw(n,null,"beforeComment"):a==="before"?u=this.raw(n,null,"beforeRule"):u=this.raw(n,null,"beforeClose");let f=n.parent,l=0;for(;f&&f.type!=="root";)l+=1,f=f.parent;if(u.includes(`
12
+ `)){let p=this.raw(n,null,"indent");if(p.length)for(let o=0;o<l;o++)u+=p}return u}block(n,a){let u=this.raw(n,"between","beforeOpen");this.builder(a+u+"{",n,"start");let f;n.nodes&&n.nodes.length?(this.body(n),f=this.raw(n,"after")):f=this.raw(n,"after","emptyBody"),f&&this.builder(f),this.builder("}",n,"end")}body(n){let a=n.nodes.length-1;for(;a>0&&n.nodes[a].type==="comment";)a-=1;let u=this.raw(n,"semicolon");for(let f=0;f<n.nodes.length;f++){let l=n.nodes[f],p=this.raw(l,"before");p&&this.builder(p),this.stringify(l,a!==f||u)}}comment(n){let a=this.raw(n,"left","commentLeft"),u=this.raw(n,"right","commentRight");this.builder("/*"+a+n.text+u+"*/",n)}decl(n,a){let u=this.raw(n,"between","colon"),f=n.prop+u+this.rawValue(n,"value");n.important&&(f+=n.raws.important||" !important"),a&&(f+=";"),this.builder(f,n)}document(n){this.body(n)}raw(n,a,u){let f;if(u||(u=a),a&&(f=n.raws[a],typeof f<"u"))return f;let l=n.parent;if(u==="before"&&(!l||l.type==="root"&&l.first===n||l&&l.type==="document"))return"";if(!l)return e[u];let p=n.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[u]<"u")return p.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(n,u);{let o="raw"+t(u);this[o]?f=this[o](p,n):p.walk(d=>{if(f=d.raws[a],typeof f<"u")return!1})}return typeof f>"u"&&(f=e[u]),p.rawCache[u]=f,f}rawBeforeClose(n){let a;return n.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return a=u.raws.after,a.includes(`
13
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(n,a){let u;return n.walkComments(f=>{if(typeof f.raws.before<"u")return u=f.raws.before,u.includes(`
14
+ `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(a,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(n,a){let u;return n.walkDecls(f=>{if(typeof f.raws.before<"u")return u=f.raws.before,u.includes(`
15
+ `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(a,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(n){let a;return n.walk(u=>{if(u.type!=="decl"&&(a=u.raws.between,typeof a<"u"))return!1}),a}rawBeforeRule(n){let a;return n.walk(u=>{if(u.nodes&&(u.parent!==n||n.first!==u)&&typeof u.raws.before<"u")return a=u.raws.before,a.includes(`
16
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(n){let a;return n.walkDecls(u=>{if(typeof u.raws.between<"u")return a=u.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(n){let a;return n.walk(u=>{if(u.nodes&&u.nodes.length===0&&(a=u.raws.after,typeof a<"u"))return!1}),a}rawIndent(n){if(n.raws.indent)return n.raws.indent;let a;return n.walk(u=>{let f=u.parent;if(f&&f!==n&&f.parent&&f.parent===n&&typeof u.raws.before<"u"){let l=u.raws.before.split(`
17
+ `);return a=l[l.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(n){let a;return n.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(a=u.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(n,a){let u=n[a],f=n.raws[a];return f&&f.value===u?f.raw:u}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,a){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,a)}}return Br=r,r.default=r,Br}var $r,is;function Xt(){if(is)return $r;is=1;let e=No();function t(r,i){new e(i).stringify(r)}return $r=t,t.default=t,$r}var Wr,ss;function Jt(){if(ss)return Wr;ss=1;let{isClean:e,my:t}=ii(),r=ni(),i=No(),n=Xt();function a(f,l){let p=new f.constructor;for(let o in f){if(!Object.prototype.hasOwnProperty.call(f,o)||o==="proxyCache")continue;let d=f[o],c=typeof d;o==="parent"&&c==="object"?l&&(p[o]=l):o==="source"?p[o]=d:Array.isArray(d)?p[o]=d.map(s=>a(s,p)):(c==="object"&&d!==null&&(d=a(d)),p[o]=d)}return p}class u{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in l)if(p==="nodes"){this.nodes=[];for(let o of l[p])typeof o.clone=="function"?this.append(o.clone()):this.append(o)}else this[p]=l[p]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let p=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let p in l)this[p]=l[p];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let p=a(this);for(let o in l)p[o]=l[o];return p}cloneAfter(l={}){let p=this.clone(l);return this.parent.insertAfter(this,p),p}cloneBefore(l={}){let p=this.clone(l);return this.parent.insertBefore(this,p),p}error(l,p={}){if(this.source){let{end:o,start:d}=this.rangeBy(p);return this.source.input.error(l,{column:d.column,line:d.line},{column:o.column,line:o.line},p)}return new r(l)}getProxyProcessor(){return{get(l,p){return p==="proxyOf"?l:p==="root"?()=>l.root().toProxy():l[p]},set(l,p,o){return l[p]===o||(l[p]=o,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,p){let o=this.source.start;if(l.index)o=this.positionInside(l.index,p);else if(l.word){p=this.toString();let d=p.indexOf(l.word);d!==-1&&(o=this.positionInside(d,p))}return o}positionInside(l,p){let o=p||this.toString(),d=this.source.start.column,c=this.source.start.line;for(let s=0;s<l;s++)o[s]===`
18
+ `?(d=1,c+=1):d+=1;return{column:d,line:c}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let p={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(l.word){let d=this.toString(),c=d.indexOf(l.word);c!==-1&&(p=this.positionInside(c,d),o=this.positionInside(c+l.word.length,d))}else l.start?p={column:l.start.column,line:l.start.line}:l.index&&(p=this.positionInside(l.index)),l.end?o={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?o=this.positionInside(l.endIndex):l.index&&(o=this.positionInside(l.index+1));return(o.line<p.line||o.line===p.line&&o.column<=p.column)&&(o={column:p.column+1,line:p.line}),{end:o,start:p}}raw(l,p){return new i().raw(this,l,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let p=this,o=!1;for(let d of l)d===this?o=!0:o?(this.parent.insertAfter(p,d),p=d):this.parent.insertBefore(p,d);o||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,p){let o={},d=p==null;p=p||new Map;let c=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let m=this[s];if(Array.isArray(m))o[s]=m.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,p):h);else if(typeof m=="object"&&m.toJSON)o[s]=m.toJSON(null,p);else if(s==="source"){let h=p.get(m.input);h==null&&(h=c,p.set(m.input,c),c++),o[s]={end:m.end,inputId:h,start:m.start}}else o[s]=m}return d&&(o.inputs=[...p.keys()].map(s=>s.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=n){l.stringify&&(l=l.stringify);let p="";return l(this,o=>{p+=o}),p}warn(l,p,o){let d={node:this};for(let c in o)d[c]=o[c];return l.warn(p,d)}get proxyOf(){return this}}return Wr=u,u.default=u,Wr}var zr,os;function Kt(){if(os)return zr;os=1;let e=Jt();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return zr=t,t.default=t,zr}var qr,as;function nc(){if(as)return qr;as=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return qr={nanoid:(i=21)=>{let n="",a=i;for(;a--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(a=n)=>{let u="",f=a;for(;f--;)u+=i[Math.random()*i.length|0];return u}},qr}var Vr,ls;function Oo(){if(ls)return Vr;ls=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{existsSync:r,readFileSync:i}=ve,{dirname:n,join:a}=ve;function u(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class f{constructor(p,o){if(o.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let d=o.map?o.map.prev:void 0,c=this.loadMap(o.from,d);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=n(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let o=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(c.test(p)||s.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(o.test(p)||d.test(p))return u(p.substr(RegExp.lastMatch.length));let m=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let o=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!o)return;let d=p.lastIndexOf(o.pop()),c=p.indexOf("*/",d);d>-1&&c>-1&&(this.annotation=this.getAnnotationURL(p.substring(d,c)))}loadFile(p){if(this.root=n(p),r(p))return this.mapFile=p,i(p,"utf-8").toString().trim()}loadMap(p,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let d=o(p);if(d){let c=this.loadFile(d);if(!c)throw new Error("Unable to load previous source map: "+d.toString());return c}}else{if(o instanceof e)return t.fromSourceMap(o).toString();if(o instanceof t)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return p&&(d=a(n(p),d)),this.loadFile(d)}}}startWith(p,o){return p?p.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Vr=f,f.default=f,Vr}var jr,us;function Qt(){if(us)return jr;us=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{fileURLToPath:r,pathToFileURL:i}=ve,{isAbsolute:n,resolve:a}=ve,{nanoid:u}=nc(),f=ve,l=ni(),p=Oo(),o=Symbol("fromOffsetCache"),d=!!(e&&t),c=!!(a&&n);class s{constructor(h,g={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!c||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=a(g.from)),c&&d){let C=new p(this.css,g);if(C.text){this.map=C;let w=C.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(h,g,C,w={}){let v,E,b;if(g&&typeof g=="object"){let S=g,x=C;if(typeof S.offset=="number"){let M=this.fromOffset(S.offset);g=M.line,C=M.col}else g=S.line,C=S.column;if(typeof x.offset=="number"){let M=this.fromOffset(x.offset);E=M.line,b=M.col}else E=x.line,b=x.column}else if(!C){let S=this.fromOffset(g);g=S.line,C=S.col}let y=this.origin(g,C,E,b);return y?v=new l(h,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,w.plugin):v=new l(h,E===void 0?g:{column:C,line:g},E===void 0?C:{column:b,line:E},this.css,this.file,w.plugin),v.input={column:C,endColumn:b,endLine:E,line:g,source:this.css},this.file&&(i&&(v.input.url=i(this.file).toString()),v.input.file=this.file),v}fromOffset(h){let g,C;if(this[o])C=this[o];else{let v=this.css.split(`
19
+ `);C=new Array(v.length);let E=0;for(let b=0,y=v.length;b<y;b++)C[b]=E,E+=v[b].length+1;this[o]=C}g=C[C.length-1];let w=0;if(h>=g)w=C.length-1;else{let v=C.length-2,E;for(;w<v;)if(E=w+(v-w>>1),h<C[E])v=E-1;else if(h>=C[E+1])w=E+1;else{w=E;break}}return{col:h-C[w]+1,line:w+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:a(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,g,C,w){if(!this.map)return!1;let v=this.map.consumer(),E=v.originalPositionFor({column:g,line:h});if(!E.source)return!1;let b;typeof C=="number"&&(b=v.originalPositionFor({column:w,line:C}));let y;n(E.source)?y=i(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:b&&b.column,endLine:b&&b.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)S.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=v.sourceContentFor(E.source);return x&&(S.source=x),S}toJSON(){let h={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(h[g]=this[g]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return jr=s,s.default=s,f&&f.registerInput&&f.registerInput(s),jr}var Hr,cs;function Io(){if(cs)return Hr;cs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{dirname:r,relative:i,resolve:n,sep:a}=ve,{pathToFileURL:u}=ve,f=Qt(),l=!!(e&&t),p=!!(r&&n&&i&&a);class o{constructor(c,s,m,h){this.stringify=c,this.mapOpts=m.map||{},this.root=s,this.opts=m,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let s=`
20
20
  `;this.css.includes(`\r
21
21
  `)&&(s=`\r
22
- `),this.css+=s+"/*# sourceMappingURL="+u+" */"}applyPrevMaps(){for(let u of this.previous()){let s=this.toUrl(this.path(u.file)),m=u.root||r(u.file),f;this.mapOpts.sourcesContent===!1?(f=new e(u.text),f.sourcesContent&&(f.sourcesContent=null)):f=u.consumer(),this.map.applySourceMap(f,s,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let u;for(let s=this.root.nodes.length-1;s>=0;s--)u=this.root.nodes[s],u.type==="comment"&&u.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&a&&this.isMap())return this.generateMap();{let u="";return this.stringify(this.root,s=>{u+=s}),[u]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let u=this.previous()[0].consumer();u.file=this.outputFile(),this.map=t.fromSourceMap(u,{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 u=1,s=1,m="<no source>",f={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(w,v,E)=>{if(this.css+=w,v&&E!=="end"&&(f.generated.line=u,f.generated.column=s-1,v.source&&v.source.start?(f.source=this.sourcePath(v),f.original.line=v.source.start.line,f.original.column=v.source.start.column-1,this.map.addMapping(f)):(f.source=m,f.original.line=1,f.original.column=0,this.map.addMapping(f))),g=w.match(/\n/g),g?(u+=g.length,C=w.lastIndexOf(`
23
- `),s=w.length-C):s+=w.length,v&&E!=="start"){let b=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==b.last||b.raws.semicolon)&&(v.source&&v.source.end?(f.source=this.sourcePath(v),f.original.line=v.source.end.line,f.original.column=v.source.end.column-1,f.generated.line=u,f.generated.column=s-2,this.map.addMapping(f)):(f.source=m,f.original.line=1,f.original.column=0,f.generated.line=u,f.generated.column=s-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(u=>u.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let u=this.mapOpts.annotation;return typeof u<"u"&&u!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(u=>u.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(u){if(this.mapOpts.absolute||u.charCodeAt(0)===60||/^\w+:\/\//.test(u))return u;let s=this.memoizedPaths.get(u);if(s)return s;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let f=i(m,u);return this.memoizedPaths.set(u,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(u=>{if(u.source&&u.source.input.map){let s=u.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let u=new h(this.originalCSS,this.opts);u.map&&this.previousMaps.push(u.map)}return this.previousMaps}setSourcesContent(){let u={};if(this.root)this.root.walk(s=>{if(s.source){let m=s.source.input.from;if(m&&!u[m]){u[m]=!0;let f=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(f,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(u){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(u.source.input.from):this.toUrl(this.path(u.source.input.from))}toBase64(u){return Buffer?Buffer.from(u).toString("base64"):window.btoa(unescape(encodeURIComponent(u)))}toFileUrl(u){let s=this.memoizedFileURLs.get(u);if(s)return s;if(c){let m=c(u).toString();return this.memoizedFileURLs.set(u,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(u){let s=this.memoizedURLs.get(u);if(s)return s;l==="\\"&&(u=u.replace(/\\/g,"/"));let m=encodeURI(u).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(u,m),m}}return Vr=o,Vr}var jr,us;function Qt(){if(us)return jr;us=1;let e=Xt();class t extends e{constructor(i){super(i),this.type="comment"}}return jr=t,t.default=t,jr}var Hr,cs;function Ue(){if(cs)return Hr;cs=1;let{isClean:e,my:t}=ri(),r=Jt(),i=Qt(),n=Xt(),l,c,h,a;function p(u){return u.map(s=>(s.nodes&&(s.nodes=p(s.nodes)),delete s.source,s))}function o(u){if(u[e]=!1,u.proxyOf.nodes)for(let s of u.proxyOf.nodes)o(s)}class d extends n{append(...s){for(let m of s){let f=this.normalize(m,this.last);for(let g of f)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let m of this.nodes)m.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let m=this.getIterator(),f,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(f=this.indexes[m],g=s(this.proxyOf.nodes[f],f),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,m){return m==="proxyOf"?s:s[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...f)=>s[m](...f.map(g=>typeof g=="function"?(C,w)=>g(C.toProxy(),w):g)):m==="every"||m==="some"?f=>s[m]((g,...C)=>f(g.toProxy(),...C)):m==="root"?()=>s.root().toProxy():m==="nodes"?s.nodes.map(f=>f.toProxy()):m==="first"||m==="last"?s[m].toProxy():s[m]:s[m]},set(s,m,f){return s[m]===f||(s[m]=f,(m==="name"||m==="params"||m==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,m){let f=this.index(s),g=this.normalize(m,this.proxyOf.nodes[f]).reverse();f=this.index(s);for(let w of g)this.proxyOf.nodes.splice(f+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],f<C&&(this.indexes[w]=C+g.length);return this.markDirty(),this}insertBefore(s,m){let f=this.index(s),g=f===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[f],g).reverse();f=this.index(s);for(let v of C)this.proxyOf.nodes.splice(f,0,v);let w;for(let v in this.indexes)w=this.indexes[v],f<=w&&(this.indexes[v]=w+C.length);return this.markDirty(),this}normalize(s,m){if(typeof s=="string")s=p(l(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector)s=[new c(s)];else if(s.name)s=[new h(s)];else if(s.text)s=[new i(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&o(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...s){s=s.reverse();for(let m of s){let f=this.normalize(m,this.first,"prepend").reverse();for(let g of f)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+f.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let m;for(let f in this.indexes)m=this.indexes[f],m>=s&&(this.indexes[f]=m-1);return this.markDirty(),this}replaceValues(s,m,f){return f||(f=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(s,f))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((m,f)=>{let g;try{g=s(m,f)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(s)),g})}walkAtRules(s,m){return m?s instanceof RegExp?this.walk((f,g)=>{if(f.type==="atrule"&&s.test(f.name))return m(f,g)}):this.walk((f,g)=>{if(f.type==="atrule"&&f.name===s)return m(f,g)}):(m=s,this.walk((f,g)=>{if(f.type==="atrule")return m(f,g)}))}walkComments(s){return this.walk((m,f)=>{if(m.type==="comment")return s(m,f)})}walkDecls(s,m){return m?s instanceof RegExp?this.walk((f,g)=>{if(f.type==="decl"&&s.test(f.prop))return m(f,g)}):this.walk((f,g)=>{if(f.type==="decl"&&f.prop===s)return m(f,g)}):(m=s,this.walk((f,g)=>{if(f.type==="decl")return m(f,g)}))}walkRules(s,m){return m?s instanceof RegExp?this.walk((f,g)=>{if(f.type==="rule"&&s.test(f.selector))return m(f,g)}):this.walk((f,g)=>{if(f.type==="rule"&&f.selector===s)return m(f,g)}):(m=s,this.walk((f,g)=>{if(f.type==="rule")return m(f,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 d.registerParse=u=>{l=u},d.registerRule=u=>{c=u},d.registerAtRule=u=>{h=u},d.registerRoot=u=>{a=u},Hr=d,d.default=d,d.rebuild=u=>{u.type==="atrule"?Object.setPrototypeOf(u,h.prototype):u.type==="rule"?Object.setPrototypeOf(u,c.prototype):u.type==="decl"?Object.setPrototypeOf(u,r.prototype):u.type==="comment"?Object.setPrototypeOf(u,i.prototype):u.type==="root"&&Object.setPrototypeOf(u,a.prototype),u[t]=!0,u.nodes&&u.nodes.forEach(s=>{d.rebuild(s)})},Hr}var Gr,fs;function ni(){if(fs)return Gr;fs=1;let e=Ue(),t,r;class i extends e{constructor(l){super({type:"document",...l}),this.nodes||(this.nodes=[])}toResult(l={}){return new t(new r,this,l).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},Gr=i,i.default=i,Gr}var Yr,hs;function Oo(){if(hs)return Yr;hs=1;let e={};return Yr=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Yr}var Xr,ds;function Io(){if(ds)return Xr;ds=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[n]}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 Xr=e,e.default=e,Xr}var Jr,ps;function ii(){if(ps)return Jr;ps=1;let e=Io();class t{constructor(i,n,l){this.processor=i,this.messages=[],this.root=n,this.opts=l,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let l=new e(i,n);return this.messages.push(l),l}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return Jr=t,t.default=t,Jr}var Kr,ms;function Xu(){if(ms)return Kr;ms=1;let e=39,t=34,r=92,i=47,n=10,l=32,c=12,h=9,a=13,p=91,o=93,d=40,u=41,s=123,m=125,f=59,g=42,C=58,w=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Kr=function(x,M={}){let T=x.css.valueOf(),k=M.ignoreErrors,I,R,te,re,F,L,j,K,$,B,le=T.length,N=0,Se=[],he=[];function lt(){return N}function ie(D){throw x.error("Unclosed "+D,N)}function ge(){return he.length===0&&N>=le}function Pe(D){if(he.length)return he.pop();if(N>=le)return;let Z=D?D.ignoreUnclosed:!1;switch(I=T.charCodeAt(N),I){case n:case l:case h:case a:case c:{R=N;do R+=1,I=T.charCodeAt(R);while(I===l||I===n||I===h||I===a||I===c);B=["space",T.slice(N,R)],N=R-1;break}case p:case o:case s:case m:case C:case f:case u:{let W=String.fromCharCode(I);B=[W,W,N];break}case d:{if(K=Se.length?Se.pop()[1]:"",$=T.charCodeAt(N+1),K==="url"&&$!==e&&$!==t&&$!==l&&$!==n&&$!==h&&$!==c&&$!==a){R=N;do{if(L=!1,R=T.indexOf(")",R+1),R===-1)if(k||Z){R=N;break}else ie("bracket");for(j=R;T.charCodeAt(j-1)===r;)j-=1,L=!L}while(L);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),re=T.slice(N,R+1),R===-1||b.test(re)?B=["(","(",N]:(B=["brackets",re,N,R],N=R);break}case e:case t:{te=I===e?"'":'"',R=N;do{if(L=!1,R=T.indexOf(te,R+1),R===-1)if(k||Z){R=N+1;break}else ie("string");for(j=R;T.charCodeAt(j-1)===r;)j-=1,L=!L}while(L);B=["string",T.slice(N,R+1),N,R],N=R;break}case w:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,F=!0;T.charCodeAt(R+1)===r;)R+=1,F=!F;if(I=T.charCodeAt(R+1),F&&I!==i&&I!==l&&I!==n&&I!==h&&I!==a&&I!==c&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===l&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{I===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(k||Z?R=T.length:ie("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(E.lastIndex=N+1,E.test(T),E.lastIndex===0?R=T.length-1:R=E.lastIndex-2,B=["word",T.slice(N,R+1),N,R],Se.push(B),N=R);break}}return N++,B}function Oe(D){he.push(D)}return{back:Oe,endOfFile:ge,nextToken:Pe,position:lt}},Kr}var Qr,gs;function si(){if(gs)return Qr;gs=1;let e=Ue();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return Qr=t,t.default=t,e.registerAtRule(t),Qr}var Zr,ys;function mt(){if(ys)return Zr;ys=1;let e=Ue(),t,r;class i extends e{constructor(l){super(l),this.type="root",this.nodes||(this.nodes=[])}normalize(l,c,h){let a=super.normalize(l);if(c){if(h==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let p of a)p.raws.before=c.raws.before}return a}removeChild(l,c){let h=this.index(l);return!c&&h===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[h].raws.before),super.removeChild(l)}toResult(l={}){return new t(new r,this,l).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},Zr=i,i.default=i,e.registerRoot(i),Zr}var en,ws;function ko(){if(ws)return en;ws=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
24
- `," "];return e.split(t,r)},split(t,r,i){let n=[],l="",c=!1,h=0,a=!1,p="",o=!1;for(let d of t)o?o=!1:d==="\\"?o=!0:a?d===p&&(a=!1):d==='"'||d==="'"?(a=!0,p=d):d==="("?h+=1:d===")"?h>0&&(h-=1):h===0&&r.includes(d)&&(c=!0),c?(l!==""&&n.push(l.trim()),l="",c=!1):l+=d;return(i||l!=="")&&n.push(l.trim()),n}};return en=e,e.default=e,en}var tn,bs;function oi(){if(bs)return tn;bs=1;let e=Ue(),t=ko();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let l=this.selector?this.selector.match(/,\s*/):null,c=l?l[0]:","+this.raw("between","beforeOpen");this.selector=n.join(c)}}return tn=r,r.default=r,e.registerRule(r),tn}var rn,vs;function Ju(){if(vs)return rn;vs=1;let e=Jt(),t=Xu(),r=Qt(),i=si(),n=mt(),l=oi(),c={empty:!0,space:!0};function h(p){for(let o=p.length-1;o>=0;o--){let d=p[o],u=d[3]||d[2];if(u)return u}}class a{constructor(o){this.input=o,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let d=new i;d.name=o[1].slice(1),d.name===""&&this.unnamedAtrule(d,o),this.init(d,o[2]);let u,s,m,f=!1,g=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),u=o[0],u==="("||u==="["?w.push(u==="("?")":"]"):u==="{"&&w.length>0?w.push("}"):u===w[w.length-1]&&w.pop(),w.length===0)if(u===";"){d.source.end=this.getPosition(o[2]),d.source.end.offset++,this.semicolon=!0;break}else if(u==="{"){g=!0;break}else if(u==="}"){if(C.length>0){for(m=C.length-1,s=C[m];s&&s[0]==="space";)s=C[--m];s&&(d.source.end=this.getPosition(s[3]||s[2]),d.source.end.offset++)}this.end(o);break}else C.push(o);else C.push(o);if(this.tokenizer.endOfFile()){f=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(d.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(d,"params",C),f&&(o=C[C.length-1],d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(o){let d=this.colon(o);if(d===!1)return;let u=0,s;for(let m=d-1;m>=0&&(s=o[m],!(s[0]!=="space"&&(u+=1,u===2)));m--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(o){let d=0,u,s,m;for(let[f,g]of o.entries()){if(u=g,s=u[0],s==="("&&(d+=1),s===")"&&(d-=1),d===0&&s===":")if(!m)this.doubleColon(u);else{if(m[0]==="word"&&m[1]==="progid")continue;return f}m=u}return!1}comment(o){let d=new r;this.init(d,o[2]),d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++;let u=o[1].slice(2,-2);if(/^\s*$/.test(u))d.text="",d.raws.left=u,d.raws.right="";else{let s=u.match(/^(\s*)([^]*\S)(\s*)$/);d.text=s[2],d.raws.left=s[1],d.raws.right=s[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(o,d){let u=new e;this.init(u,o[0][2]);let s=o[o.length-1];for(s[0]===";"&&(this.semicolon=!0,o.pop()),u.source.end=this.getPosition(s[3]||s[2]||h(o)),u.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),u.raws.before+=o.shift()[1];for(u.source.start=this.getPosition(o[0][2]),u.prop="";o.length;){let w=o[0][0];if(w===":"||w==="space"||w==="comment")break;u.prop+=o.shift()[1]}u.raws.between="";let m;for(;o.length;)if(m=o.shift(),m[0]===":"){u.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),u.raws.between+=m[1];(u.prop[0]==="_"||u.prop[0]==="*")&&(u.raws.before+=u.prop[0],u.prop=u.prop.slice(1));let f=[],g;for(;o.length&&(g=o[0][0],!(g!=="space"&&g!=="comment"));)f.push(o.shift());this.precheckMissedSemicolon(o);for(let w=o.length-1;w>=0;w--){if(m=o[w],m[1].toLowerCase()==="!important"){u.important=!0;let v=this.stringFrom(o,w);v=this.spacesFromEnd(o)+v,v!==" !important"&&(u.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=o.slice(0),E="";for(let b=w;b>0;b--){let y=v[b][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(u.important=!0,u.raws.important=E,o=v)}if(m[0]!=="space"&&m[0]!=="comment")break}o.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(u.raws.between+=f.map(w=>w[1]).join(""),f=[]),this.raw(u,"value",f.concat(o),d),u.value.includes(":")&&!d&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let d=new l;this.init(d,o[2]),d.selector="",d.raws.between="",this.current=d}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(o){let d=this.input.fromOffset(o);return{column:d.col,line:d.line,offset:o}}init(o,d){this.current.push(o),o.source={input:this.input,start:this.getPosition(d)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let d=!1,u=null,s=!1,m=null,f=[],g=o[1].startsWith("--"),C=[],w=o;for(;w;){if(u=w[0],C.push(w),u==="("||u==="[")m||(m=w),f.push(u==="("?")":"]");else if(g&&s&&u==="{")m||(m=w),f.push("}");else if(f.length===0)if(u===";")if(s){this.decl(C,g);return}else break;else if(u==="{"){this.rule(C);return}else if(u==="}"){this.tokenizer.back(C.pop()),d=!0;break}else u===":"&&(s=!0);else u===f[f.length-1]&&(f.pop(),f.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),f.length>0&&this.unclosedBracket(m),d&&s){if(!g)for(;C.length&&(w=C[C.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,d,u,s){let m,f,g=u.length,C="",w=!0,v,E;for(let b=0;b<g;b+=1)m=u[b],f=m[0],f==="space"&&b===g-1&&!s?w=!1:f==="comment"?(E=u[b-1]?u[b-1][0]:"empty",v=u[b+1]?u[b+1][0]:"empty",!c[E]&&!c[v]?C.slice(-1)===","?w=!1:C+=m[1]:w=!1):C+=m[1];if(!w){let b=u.reduce((y,S)=>y+S[1],"");o.raws[d]={raw:b,value:C}}o[d]=C}rule(o){o.pop();let d=new l;this.init(d,o[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(d,"selector",o),this.current=d}spacesAndCommentsFromEnd(o){let d,u="";for(;o.length&&(d=o[o.length-1][0],!(d!=="space"&&d!=="comment"));)u=o.pop()[1]+u;return u}spacesAndCommentsFromStart(o){let d,u="";for(;o.length&&(d=o[0][0],!(d!=="space"&&d!=="comment"));)u+=o.shift()[1];return u}spacesFromEnd(o){let d,u="";for(;o.length&&(d=o[o.length-1][0],d==="space");)u=o.pop()[1]+u;return u}stringFrom(o,d){let u="";for(let s=d;s<o.length;s++)u+=o[s][1];return o.splice(d,o.length-d),u}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return rn=a,rn}var nn,Ss;function ai(){if(Ss)return nn;Ss=1;let e=Ue(),t=Ju(),r=Kt();function i(n,l){let c=new r(n,l),h=new t(c);try{h.parse()}catch(a){throw a}return h.root}return nn=i,i.default=i,e.registerParse(i),nn}var sn,Cs;function Do(){if(Cs)return sn;Cs=1;let{isClean:e,my:t}=ri(),r=No(),i=Yt(),n=Ue(),l=ni(),c=Oo(),h=ii(),a=ai(),p=mt(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={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},u={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function f(E){let b=!1,y=o[E.type];return E.type==="decl"?b=E.prop.toLowerCase():E.type==="atrule"&&(b=E.name.toLowerCase()),b&&E.append?[y,y+"-"+b,s,y+"Exit",y+"Exit-"+b]:b?[y,y+"-"+b,y+"Exit",y+"Exit-"+b]:E.append?[y,s,y+"Exit"]:[y,y+"Exit"]}function g(E){let b;return E.type==="document"?b=["Document",s,"DocumentExit"]:E.type==="root"?b=["Root",s,"RootExit"]:b=f(E),{eventIndex:0,events:b,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(b=>C(b)),E}let w={};class v{constructor(b,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=C(y);else if(y instanceof v||y instanceof h)x=C(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=a;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new h(b,x,S),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,y){let S=this.result.lastPlugin;try{y&&y.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=S.postcssPlugin,b.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return b}prepareVisitors(){this.listeners={};let b=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!d[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?b(y,S,y[S][x]):b(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&b(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let y=this.plugins[b],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let y=[g(b)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(b.type==="document"){let x=b.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(b,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>b.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,y=i;b.syntax&&(y=b.syntax.stringify),b.stringifier&&(y=b.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let b of this.plugins){let y=this.runOnRoot(b);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let y of b.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,y){return this.async().then(b,y)}toString(){return this.css}visitSync(b,y){for(let[S,x]of b){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(b){let y=b[b.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){b.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,k]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return k(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(y.iterator!==0){let T=y.iterator,k;for(;k=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!k[e]){k[e]=!0,b.push(g(k));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===s){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}b.pop()}walkSync(b){b[e]=!0;let y=f(b);for(let S of y)if(S===s)b.nodes&&b.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,b.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=E=>{w=E},sn=v,v.default=v,p.registerLazyResult(v),l.registerLazyResult(v),sn}var on,Es;function Ku(){if(Es)return on;Es=1;let e=No(),t=Yt(),r=Oo(),i=ai(),n=ii();class l{constructor(h,a,p){a=a.toString(),this.stringified=!1,this._processor=h,this._css=a,this._opts=p,this._map=void 0;let o,d=t;this.result=new n(this._processor,o,this._opts),this.result.css=a;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let s=new e(d,o,this._opts,a);if(s.isMap()){let[m,f]=s.generate();m&&(this.result.css=m),f&&(this.result.map=f)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(h){return this.async().catch(h)}finally(h){return this.async().then(h,h)}sync(){if(this.error)throw this.error;return this.result}then(h,a){return this.async().then(h,a)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let h,a=i;try{h=a(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=h,h}get[Symbol.toStringTag](){return"NoWorkResult"}}return on=l,l.default=l,on}var an,xs;function Qu(){if(xs)return an;xs=1;let e=Ku(),t=Do(),r=ni(),i=mt();class n{constructor(c=[]){this.version="8.4.38",this.plugins=this.normalize(c)}normalize(c){let h=[];for(let a of c)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))h=h.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)h.push(a);else if(typeof a=="function")h.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return h}process(c,h={}){return!this.plugins.length&&!h.parser&&!h.stringifier&&!h.syntax?new e(this,c,h):new t(this,c,h)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return an=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),an}var ln,Rs;function Zu(){if(Rs)return ln;Rs=1;let e=Jt(),t=Mo(),r=Qt(),i=si(),n=Kt(),l=mt(),c=oi();function h(a,p){if(Array.isArray(a))return a.map(u=>h(u));let{inputs:o,...d}=a;if(o){p=[];for(let u of o){let s={...u,__proto__:n.prototype};s.map&&(s.map={...s.map,__proto__:t.prototype}),p.push(s)}}if(d.nodes&&(d.nodes=a.nodes.map(u=>h(u,p))),d.source){let{inputId:u,...s}=d.source;d.source=s,u!=null&&(d.source.input=p[u])}if(d.type==="root")return new l(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new c(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+a.type)}return ln=h,h.default=h,ln}var un,Ts;function ec(){if(Ts)return un;Ts=1;let e=ti(),t=Jt(),r=Do(),i=Ue(),n=Qu(),l=Yt(),c=Zu(),h=ni(),a=Io(),p=Qt(),o=si(),d=ii(),u=Kt(),s=ai(),m=ko(),f=oi(),g=mt(),C=Xt();function w(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return w.plugin=function(E,b){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
22
+ `),this.css+=s+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let s=this.toUrl(this.path(c.file)),m=c.root||r(c.file),h;this.mapOpts.sourcesContent===!1?(h=new e(c.text),h.sourcesContent&&(h.sourcesContent=null)):h=c.consumer(),this.map.applySourceMap(h,s,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let s=this.root.nodes.length-1;s>=0;s--)c=this.root.nodes[s],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&l&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,s=>{c+=s}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{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 c=1,s=1,m="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(w,v,E)=>{if(this.css+=w,v&&E!=="end"&&(h.generated.line=c,h.generated.column=s-1,v.source&&v.source.start?(h.source=this.sourcePath(v),h.original.line=v.source.start.line,h.original.column=v.source.start.column-1,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,this.map.addMapping(h))),g=w.match(/\n/g),g?(c+=g.length,C=w.lastIndexOf(`
23
+ `),s=w.length-C):s+=w.length,v&&E!=="start"){let b=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==b.last||b.raws.semicolon)&&(v.source&&v.source.end?(h.source=this.sourcePath(v),h.original.line=v.source.end.line,h.original.column=v.source.end.column-1,h.generated.line=c,h.generated.column=s-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=c,h.generated.column=s-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let s=this.memoizedPaths.get(c);if(s)return s;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let h=i(m,c);return this.memoizedPaths.set(c,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let s=c.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let c=new f(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(s=>{if(s.source){let m=s.source.input.from;if(m&&!c[m]){c[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let s=this.memoizedFileURLs.get(c);if(s)return s;if(u){let m=u(c).toString();return this.memoizedFileURLs.set(c,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let s=this.memoizedURLs.get(c);if(s)return s;a==="\\"&&(c=c.replace(/\\/g,"/"));let m=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,m),m}}return Hr=o,Hr}var Gr,fs;function Zt(){if(fs)return Gr;fs=1;let e=Jt();class t extends e{constructor(i){super(i),this.type="comment"}}return Gr=t,t.default=t,Gr}var Yr,hs;function Ue(){if(hs)return Yr;hs=1;let{isClean:e,my:t}=ii(),r=Kt(),i=Zt(),n=Jt(),a,u,f,l;function p(c){return c.map(s=>(s.nodes&&(s.nodes=p(s.nodes)),delete s.source,s))}function o(c){if(c[e]=!1,c.proxyOf.nodes)for(let s of c.proxyOf.nodes)o(s)}class d extends n{append(...s){for(let m of s){let h=this.normalize(m,this.last);for(let g of h)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let m of this.nodes)m.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let m=this.getIterator(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=s(this.proxyOf.nodes[h],h),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,m){return m==="proxyOf"?s:s[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...h)=>s[m](...h.map(g=>typeof g=="function"?(C,w)=>g(C.toProxy(),w):g)):m==="every"||m==="some"?h=>s[m]((g,...C)=>h(g.toProxy(),...C)):m==="root"?()=>s.root().toProxy():m==="nodes"?s.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?s[m].toProxy():s[m]:s[m]},set(s,m,h){return s[m]===h||(s[m]=h,(m==="name"||m==="params"||m==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,m){let h=this.index(s),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(s);for(let w of g)this.proxyOf.nodes.splice(h+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],h<C&&(this.indexes[w]=C+g.length);return this.markDirty(),this}insertBefore(s,m){let h=this.index(s),g=h===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(s);for(let v of C)this.proxyOf.nodes.splice(h,0,v);let w;for(let v in this.indexes)w=this.indexes[v],h<=w&&(this.indexes[v]=w+C.length);return this.markDirty(),this}normalize(s,m){if(typeof s=="string")s=p(a(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector)s=[new u(s)];else if(s.name)s=[new f(s)];else if(s.text)s=[new i(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&o(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...s){s=s.reverse();for(let m of s){let h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let m;for(let h in this.indexes)m=this.indexes[h],m>=s&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(s,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(s,h))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((m,h)=>{let g;try{g=s(m,h)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(s)),g})}walkAtRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="atrule"&&s.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(s){return this.walk((m,h)=>{if(m.type==="comment")return s(m,h)})}walkDecls(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&s.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&s.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="rule")return m(h,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 d.registerParse=c=>{a=c},d.registerRule=c=>{u=c},d.registerAtRule=c=>{f=c},d.registerRoot=c=>{l=c},Yr=d,d.default=d,d.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,f.prototype):c.type==="rule"?Object.setPrototypeOf(c,u.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,i.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(s=>{d.rebuild(s)})},Yr}var Xr,ds;function si(){if(ds)return Xr;ds=1;let e=Ue(),t,r;class i extends e{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},Xr=i,i.default=i,Xr}var Jr,ps;function ko(){if(ps)return Jr;ps=1;let e={};return Jr=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Jr}var Kr,ms;function Ao(){if(ms)return Kr;ms=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[n]}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 Kr=e,e.default=e,Kr}var Qr,gs;function oi(){if(gs)return Qr;gs=1;let e=Ao();class t{constructor(i,n,a){this.processor=i,this.messages=[],this.root=n,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let a=new e(i,n);return this.messages.push(a),a}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return Qr=t,t.default=t,Qr}var Zr,ys;function ic(){if(ys)return Zr;ys=1;let e=39,t=34,r=92,i=47,n=10,a=32,u=12,f=9,l=13,p=91,o=93,d=40,c=41,s=123,m=125,h=59,g=42,C=58,w=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Zr=function(x,M={}){let T=x.css.valueOf(),k=M.ignoreErrors,I,R,te,re,U,P,j,K,$,B,le=T.length,N=0,Ee=[],pe=[];function lt(){return N}function ie(A){throw x.error("Unclosed "+A,N)}function we(){return pe.length===0&&N>=le}function Pe(A){if(pe.length)return pe.pop();if(N>=le)return;let Z=A?A.ignoreUnclosed:!1;switch(I=T.charCodeAt(N),I){case n:case a:case f:case l:case u:{R=N;do R+=1,I=T.charCodeAt(R);while(I===a||I===n||I===f||I===l||I===u);B=["space",T.slice(N,R)],N=R-1;break}case p:case o:case s:case m:case C:case h:case c:{let W=String.fromCharCode(I);B=[W,W,N];break}case d:{if(K=Ee.length?Ee.pop()[1]:"",$=T.charCodeAt(N+1),K==="url"&&$!==e&&$!==t&&$!==a&&$!==n&&$!==f&&$!==u&&$!==l){R=N;do{if(P=!1,R=T.indexOf(")",R+1),R===-1)if(k||Z){R=N;break}else ie("bracket");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),re=T.slice(N,R+1),R===-1||b.test(re)?B=["(","(",N]:(B=["brackets",re,N,R],N=R);break}case e:case t:{te=I===e?"'":'"',R=N;do{if(P=!1,R=T.indexOf(te,R+1),R===-1)if(k||Z){R=N+1;break}else ie("string");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["string",T.slice(N,R+1),N,R],N=R;break}case w:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,U=!0;T.charCodeAt(R+1)===r;)R+=1,U=!U;if(I=T.charCodeAt(R+1),U&&I!==i&&I!==a&&I!==n&&I!==f&&I!==l&&I!==u&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===a&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{I===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(k||Z?R=T.length:ie("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(E.lastIndex=N+1,E.test(T),E.lastIndex===0?R=T.length-1:R=E.lastIndex-2,B=["word",T.slice(N,R+1),N,R],Ee.push(B),N=R);break}}return N++,B}function Oe(A){pe.push(A)}return{back:Oe,endOfFile:we,nextToken:Pe,position:lt}},Zr}var en,ws;function ai(){if(ws)return en;ws=1;let e=Ue();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return en=t,t.default=t,e.registerAtRule(t),en}var tn,bs;function mt(){if(bs)return tn;bs=1;let e=Ue(),t,r;class i extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,u,f){let l=super.normalize(a);if(u){if(f==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of l)p.raws.before=u.raws.before}return l}removeChild(a,u){let f=this.index(a);return!u&&f===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[f].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},tn=i,i.default=i,e.registerRoot(i),tn}var rn,vs;function Do(){if(vs)return rn;vs=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
24
+ `," "];return e.split(t,r)},split(t,r,i){let n=[],a="",u=!1,f=0,l=!1,p="",o=!1;for(let d of t)o?o=!1:d==="\\"?o=!0:l?d===p&&(l=!1):d==='"'||d==="'"?(l=!0,p=d):d==="("?f+=1:d===")"?f>0&&(f-=1):f===0&&r.includes(d)&&(u=!0),u?(a!==""&&n.push(a.trim()),a="",u=!1):a+=d;return(i||a!=="")&&n.push(a.trim()),n}};return rn=e,e.default=e,rn}var nn,Ss;function li(){if(Ss)return nn;Ss=1;let e=Ue(),t=Do();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let a=this.selector?this.selector.match(/,\s*/):null,u=a?a[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return nn=r,r.default=r,e.registerRule(r),nn}var sn,Cs;function sc(){if(Cs)return sn;Cs=1;let e=Kt(),t=ic(),r=Zt(),i=ai(),n=mt(),a=li(),u={empty:!0,space:!0};function f(p){for(let o=p.length-1;o>=0;o--){let d=p[o],c=d[3]||d[2];if(c)return c}}class l{constructor(o){this.input=o,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let d=new i;d.name=o[1].slice(1),d.name===""&&this.unnamedAtrule(d,o),this.init(d,o[2]);let c,s,m,h=!1,g=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),c=o[0],c==="("||c==="["?w.push(c==="("?")":"]"):c==="{"&&w.length>0?w.push("}"):c===w[w.length-1]&&w.pop(),w.length===0)if(c===";"){d.source.end=this.getPosition(o[2]),d.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(C.length>0){for(m=C.length-1,s=C[m];s&&s[0]==="space";)s=C[--m];s&&(d.source.end=this.getPosition(s[3]||s[2]),d.source.end.offset++)}this.end(o);break}else C.push(o);else C.push(o);if(this.tokenizer.endOfFile()){h=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(d.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(d,"params",C),h&&(o=C[C.length-1],d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(o){let d=this.colon(o);if(d===!1)return;let c=0,s;for(let m=d-1;m>=0&&(s=o[m],!(s[0]!=="space"&&(c+=1,c===2)));m--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(o){let d=0,c,s,m;for(let[h,g]of o.entries()){if(c=g,s=c[0],s==="("&&(d+=1),s===")"&&(d-=1),d===0&&s===":")if(!m)this.doubleColon(c);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=c}return!1}comment(o){let d=new r;this.init(d,o[2]),d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++;let c=o[1].slice(2,-2);if(/^\s*$/.test(c))d.text="",d.raws.left=c,d.raws.right="";else{let s=c.match(/^(\s*)([^]*\S)(\s*)$/);d.text=s[2],d.raws.left=s[1],d.raws.right=s[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(o,d){let c=new e;this.init(c,o[0][2]);let s=o[o.length-1];for(s[0]===";"&&(this.semicolon=!0,o.pop()),c.source.end=this.getPosition(s[3]||s[2]||f(o)),c.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),c.raws.before+=o.shift()[1];for(c.source.start=this.getPosition(o[0][2]),c.prop="";o.length;){let w=o[0][0];if(w===":"||w==="space"||w==="comment")break;c.prop+=o.shift()[1]}c.raws.between="";let m;for(;o.length;)if(m=o.shift(),m[0]===":"){c.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),c.raws.between+=m[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let h=[],g;for(;o.length&&(g=o[0][0],!(g!=="space"&&g!=="comment"));)h.push(o.shift());this.precheckMissedSemicolon(o);for(let w=o.length-1;w>=0;w--){if(m=o[w],m[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(o,w);v=this.spacesFromEnd(o)+v,v!==" !important"&&(c.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=o.slice(0),E="";for(let b=w;b>0;b--){let y=v[b][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=E,o=v)}if(m[0]!=="space"&&m[0]!=="comment")break}o.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(c.raws.between+=h.map(w=>w[1]).join(""),h=[]),this.raw(c,"value",h.concat(o),d),c.value.includes(":")&&!d&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let d=new a;this.init(d,o[2]),d.selector="",d.raws.between="",this.current=d}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(o){let d=this.input.fromOffset(o);return{column:d.col,line:d.line,offset:o}}init(o,d){this.current.push(o),o.source={input:this.input,start:this.getPosition(d)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let d=!1,c=null,s=!1,m=null,h=[],g=o[1].startsWith("--"),C=[],w=o;for(;w;){if(c=w[0],C.push(w),c==="("||c==="[")m||(m=w),h.push(c==="("?")":"]");else if(g&&s&&c==="{")m||(m=w),h.push("}");else if(h.length===0)if(c===";")if(s){this.decl(C,g);return}else break;else if(c==="{"){this.rule(C);return}else if(c==="}"){this.tokenizer.back(C.pop()),d=!0;break}else c===":"&&(s=!0);else c===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),h.length>0&&this.unclosedBracket(m),d&&s){if(!g)for(;C.length&&(w=C[C.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,d,c,s){let m,h,g=c.length,C="",w=!0,v,E;for(let b=0;b<g;b+=1)m=c[b],h=m[0],h==="space"&&b===g-1&&!s?w=!1:h==="comment"?(E=c[b-1]?c[b-1][0]:"empty",v=c[b+1]?c[b+1][0]:"empty",!u[E]&&!u[v]?C.slice(-1)===","?w=!1:C+=m[1]:w=!1):C+=m[1];if(!w){let b=c.reduce((y,S)=>y+S[1],"");o.raws[d]={raw:b,value:C}}o[d]=C}rule(o){o.pop();let d=new a;this.init(d,o[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(d,"selector",o),this.current=d}spacesAndCommentsFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],!(d!=="space"&&d!=="comment"));)c=o.pop()[1]+c;return c}spacesAndCommentsFromStart(o){let d,c="";for(;o.length&&(d=o[0][0],!(d!=="space"&&d!=="comment"));)c+=o.shift()[1];return c}spacesFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],d==="space");)c=o.pop()[1]+c;return c}stringFrom(o,d){let c="";for(let s=d;s<o.length;s++)c+=o[s][1];return o.splice(d,o.length-d),c}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return sn=l,sn}var on,Es;function ui(){if(Es)return on;Es=1;let e=Ue(),t=sc(),r=Qt();function i(n,a){let u=new r(n,a),f=new t(u);try{f.parse()}catch(l){throw l}return f.root}return on=i,i.default=i,e.registerParse(i),on}var an,xs;function _o(){if(xs)return an;xs=1;let{isClean:e,my:t}=ii(),r=Io(),i=Xt(),n=Ue(),a=si(),u=ko(),f=oi(),l=ui(),p=mt(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={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},c={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function h(E){let b=!1,y=o[E.type];return E.type==="decl"?b=E.prop.toLowerCase():E.type==="atrule"&&(b=E.name.toLowerCase()),b&&E.append?[y,y+"-"+b,s,y+"Exit",y+"Exit-"+b]:b?[y,y+"-"+b,y+"Exit",y+"Exit-"+b]:E.append?[y,s,y+"Exit"]:[y,y+"Exit"]}function g(E){let b;return E.type==="document"?b=["Document",s,"DocumentExit"]:E.type==="root"?b=["Root",s,"RootExit"]:b=h(E),{eventIndex:0,events:b,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(b=>C(b)),E}let w={};class v{constructor(b,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=C(y);else if(y instanceof v||y instanceof f)x=C(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=l;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new f(b,x,S),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,y){let S=this.result.lastPlugin;try{y&&y.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=S.postcssPlugin,b.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return b}prepareVisitors(){this.listeners={};let b=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!d[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?b(y,S,y[S][x]):b(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&b(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let y=this.plugins[b],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let y=[g(b)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(b.type==="document"){let x=b.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(b,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>b.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,y=i;b.syntax&&(y=b.syntax.stringify),b.stringifier&&(y=b.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let b of this.plugins){let y=this.runOnRoot(b);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let y of b.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,y){return this.async().then(b,y)}toString(){return this.css}visitSync(b,y){for(let[S,x]of b){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(b){let y=b[b.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){b.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,k]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return k(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(y.iterator!==0){let T=y.iterator,k;for(;k=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!k[e]){k[e]=!0,b.push(g(k));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===s){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}b.pop()}walkSync(b){b[e]=!0;let y=h(b);for(let S of y)if(S===s)b.nodes&&b.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,b.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=E=>{w=E},an=v,v.default=v,p.registerLazyResult(v),a.registerLazyResult(v),an}var ln,Rs;function oc(){if(Rs)return ln;Rs=1;let e=Io(),t=Xt(),r=ko(),i=ui(),n=oi();class a{constructor(f,l,p){l=l.toString(),this.stringified=!1,this._processor=f,this._css=l,this._opts=p,this._map=void 0;let o,d=t;this.result=new n(this._processor,o,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let s=new e(d,o,this._opts,l);if(s.isMap()){let[m,h]=s.generate();m&&(this.result.css=m),h&&(this.result.map=h)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(f){return this.async().catch(f)}finally(f){return this.async().then(f,f)}sync(){if(this.error)throw this.error;return this.result}then(f,l){return this.async().then(f,l)}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 f,l=i;try{f=l(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=f,f}get[Symbol.toStringTag](){return"NoWorkResult"}}return ln=a,a.default=a,ln}var un,Ts;function ac(){if(Ts)return un;Ts=1;let e=oc(),t=_o(),r=si(),i=mt();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let f=[];for(let l of u)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))f=f.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)f.push(l);else if(typeof l=="function")f.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return f}process(u,f={}){return!this.plugins.length&&!f.parser&&!f.stringifier&&!f.syntax?new e(this,u,f):new t(this,u,f)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return un=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),un}var cn,Ms;function lc(){if(Ms)return cn;Ms=1;let e=Kt(),t=Oo(),r=Zt(),i=ai(),n=Qt(),a=mt(),u=li();function f(l,p){if(Array.isArray(l))return l.map(c=>f(c));let{inputs:o,...d}=l;if(o){p=[];for(let c of o){let s={...c,__proto__:n.prototype};s.map&&(s.map={...s.map,__proto__:t.prototype}),p.push(s)}}if(d.nodes&&(d.nodes=l.nodes.map(c=>f(c,p))),d.source){let{inputId:c,...s}=d.source;d.source=s,c!=null&&(d.source.input=p[c])}if(d.type==="root")return new a(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new u(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+l.type)}return cn=f,f.default=f,cn}var fn,Ns;function uc(){if(Ns)return fn;Ns=1;let e=ni(),t=Kt(),r=_o(),i=Ue(),n=ac(),a=Xt(),u=lc(),f=si(),l=Ao(),p=Zt(),o=ai(),d=oi(),c=Qt(),s=ui(),m=Do(),h=li(),g=mt(),C=Jt();function w(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return w.plugin=function(E,b){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
25
25
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(E+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
26
- https://www.w3ctech.com/topic/2226`));let T=b(...M);return T.postcssPlugin=E,T.postcssVersion=new n().version,T}let x;return Object.defineProperty(S,"postcss",{get(){return x||(x=S()),x}}),S.process=function(M,T,k){return w([S(k)]).process(M,T)},S},w.stringify=l,w.parse=s,w.fromJSON=c,w.list=m,w.comment=v=>new p(v),w.atRule=v=>new o(v),w.decl=v=>new t(v),w.rule=v=>new f(v),w.root=v=>new g(v),w.document=v=>new h(v),w.CssSyntaxError=e,w.Declaration=t,w.Container=i,w.Processor=n,w.Document=h,w.Comment=p,w.Warning=a,w.AtRule=o,w.Result=d,w.Input=u,w.Rule=f,w.Root=g,w.Node=C,r.registerPostcss(w),un=w,w.default=w,un}var tc=ec(),H=qu(tc);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;var rc=Object.defineProperty,nc=(e,t,r)=>t in e?rc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,de=(e,t,r)=>nc(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();function ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function sc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?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(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var Dt={exports:{}},Ms;function oc(){if(Ms)return Dt.exports;Ms=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 Dt.exports=t(),Dt.exports.createColors=t,Dt.exports}var ac={},lc=Object.freeze(Object.defineProperty({__proto__:null,default:ac},Symbol.toStringTag,{value:"Module"})),be=sc(lc),cn,Ns;function li(){if(Ns)return cn;Ns=1;let e=oc(),t=be;class r extends Error{constructor(n,l,c,h,a,p){super(n),this.name="CssSyntaxError",this.reason=n,a&&(this.file=a),h&&(this.source=h),p&&(this.plugin=p),typeof l<"u"&&typeof c<"u"&&(typeof l=="number"?(this.line=l,this.column=c):(this.line=l.line,this.column=l.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let l=this.source;n==null&&(n=e.isColorSupported),t&&n&&(l=t(l));let c=l.split(/\r?\n/),h=Math.max(this.line-3,0),a=Math.min(this.line+2,c.length),p=String(a).length,o,d;if(n){let{bold:u,gray:s,red:m}=e.createColors(!0);o=f=>u(m(f)),d=f=>s(f)}else o=d=u=>u;return c.slice(h,a).map((u,s)=>{let m=h+1+s,f=" "+(" "+m).slice(-p)+" | ";if(m===this.line){let g=d(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+d(f)+u+`
27
- `+g+o("^")}return" "+d(f)+u}).join(`
26
+ https://www.w3ctech.com/topic/2226`));let T=b(...M);return T.postcssPlugin=E,T.postcssVersion=new n().version,T}let x;return Object.defineProperty(S,"postcss",{get(){return x||(x=S()),x}}),S.process=function(M,T,k){return w([S(k)]).process(M,T)},S},w.stringify=a,w.parse=s,w.fromJSON=u,w.list=m,w.comment=v=>new p(v),w.atRule=v=>new o(v),w.decl=v=>new t(v),w.rule=v=>new h(v),w.root=v=>new g(v),w.document=v=>new f(v),w.CssSyntaxError=e,w.Declaration=t,w.Container=i,w.Processor=n,w.Document=f,w.Comment=p,w.Warning=l,w.AtRule=o,w.Result=d,w.Input=c,w.Rule=h,w.Root=g,w.Node=C,r.registerPostcss(w),fn=w,w.default=w,fn}var cc=uc(),H=Qu(cc);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;var fc=Object.defineProperty,hc=(e,t,r)=>t in e?fc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,me=(e,t,r)=>hc(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();function dc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?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(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var Dt={exports:{}},Os;function mc(){if(Os)return Dt.exports;Os=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 Dt.exports=t(),Dt.exports.createColors=t,Dt.exports}var gc={},yc=Object.freeze(Object.defineProperty({__proto__:null,default:gc},Symbol.toStringTag,{value:"Module"})),Se=pc(yc),hn,Is;function ci(){if(Is)return hn;Is=1;let e=mc(),t=Se;class r extends Error{constructor(n,a,u,f,l,p){super(n),this.name="CssSyntaxError",this.reason=n,l&&(this.file=l),f&&(this.source=f),p&&(this.plugin=p),typeof a<"u"&&typeof u<"u"&&(typeof a=="number"?(this.line=a,this.column=u):(this.line=a.line,this.column=a.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let a=this.source;n==null&&(n=e.isColorSupported),t&&n&&(a=t(a));let u=a.split(/\r?\n/),f=Math.max(this.line-3,0),l=Math.min(this.line+2,u.length),p=String(l).length,o,d;if(n){let{bold:c,gray:s,red:m}=e.createColors(!0);o=h=>c(m(h)),d=h=>s(h)}else o=d=c=>c;return u.slice(f,l).map((c,s)=>{let m=f+1+s,h=" "+(" "+m).slice(-p)+" | ";if(m===this.line){let g=d(h.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+d(h)+c+`
27
+ `+g+o("^")}return" "+d(h)+c}).join(`
28
28
  `)}toString(){let n=this.showSourceCode();return n&&(n=`
29
29
 
30
30
  `+n+`
31
- `),this.name+": "+this.message+n}}return cn=r,r.default=r,cn}var At={},Os;function ui(){return Os||(Os=1,At.isClean=Symbol("isClean"),At.my=Symbol("my")),At}var fn,Is;function Ao(){if(Is)return fn;Is=1;let e={after:`
31
+ `),this.name+": "+this.message+n}}return hn=r,r.default=r,hn}var _t={},ks;function fi(){return ks||(ks=1,_t.isClean=Symbol("isClean"),_t.my=Symbol("my")),_t}var dn,As;function Lo(){if(As)return dn;As=1;let e={after:`
32
32
  `,beforeClose:`
33
33
  `,beforeComment:`
34
34
  `,beforeDecl:`
35
35
  `,beforeOpen:" ",beforeRule:`
36
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(n){this.builder=n}atrule(n,l){let c="@"+n.name,h=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?c+=n.raws.afterName:h&&(c+=" "),n.nodes)this.block(n,c+h);else{let a=(n.raws.between||"")+(l?";":"");this.builder(c+h+a,n)}}beforeAfter(n,l){let c;n.type==="decl"?c=this.raw(n,null,"beforeDecl"):n.type==="comment"?c=this.raw(n,null,"beforeComment"):l==="before"?c=this.raw(n,null,"beforeRule"):c=this.raw(n,null,"beforeClose");let h=n.parent,a=0;for(;h&&h.type!=="root";)a+=1,h=h.parent;if(c.includes(`
37
- `)){let p=this.raw(n,null,"indent");if(p.length)for(let o=0;o<a;o++)c+=p}return c}block(n,l){let c=this.raw(n,"between","beforeOpen");this.builder(l+c+"{",n,"start");let h;n.nodes&&n.nodes.length?(this.body(n),h=this.raw(n,"after")):h=this.raw(n,"after","emptyBody"),h&&this.builder(h),this.builder("}",n,"end")}body(n){let l=n.nodes.length-1;for(;l>0&&n.nodes[l].type==="comment";)l-=1;let c=this.raw(n,"semicolon");for(let h=0;h<n.nodes.length;h++){let a=n.nodes[h],p=this.raw(a,"before");p&&this.builder(p),this.stringify(a,l!==h||c)}}comment(n){let l=this.raw(n,"left","commentLeft"),c=this.raw(n,"right","commentRight");this.builder("/*"+l+n.text+c+"*/",n)}decl(n,l){let c=this.raw(n,"between","colon"),h=n.prop+c+this.rawValue(n,"value");n.important&&(h+=n.raws.important||" !important"),l&&(h+=";"),this.builder(h,n)}document(n){this.body(n)}raw(n,l,c){let h;if(c||(c=l),l&&(h=n.raws[l],typeof h<"u"))return h;let a=n.parent;if(c==="before"&&(!a||a.type==="root"&&a.first===n||a&&a.type==="document"))return"";if(!a)return e[c];let p=n.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[c]<"u")return p.rawCache[c];if(c==="before"||c==="after")return this.beforeAfter(n,c);{let o="raw"+t(c);this[o]?h=this[o](p,n):p.walk(d=>{if(h=d.raws[l],typeof h<"u")return!1})}return typeof h>"u"&&(h=e[c]),p.rawCache[c]=h,h}rawBeforeClose(n){let l;return n.walk(c=>{if(c.nodes&&c.nodes.length>0&&typeof c.raws.after<"u")return l=c.raws.after,l.includes(`
38
- `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawBeforeComment(n,l){let c;return n.walkComments(h=>{if(typeof h.raws.before<"u")return c=h.raws.before,c.includes(`
39
- `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c>"u"?c=this.raw(l,null,"beforeDecl"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeDecl(n,l){let c;return n.walkDecls(h=>{if(typeof h.raws.before<"u")return c=h.raws.before,c.includes(`
40
- `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c>"u"?c=this.raw(l,null,"beforeRule"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeOpen(n){let l;return n.walk(c=>{if(c.type!=="decl"&&(l=c.raws.between,typeof l<"u"))return!1}),l}rawBeforeRule(n){let l;return n.walk(c=>{if(c.nodes&&(c.parent!==n||n.first!==c)&&typeof c.raws.before<"u")return l=c.raws.before,l.includes(`
41
- `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawColon(n){let l;return n.walkDecls(c=>{if(typeof c.raws.between<"u")return l=c.raws.between.replace(/[^\s:]/g,""),!1}),l}rawEmptyBody(n){let l;return n.walk(c=>{if(c.nodes&&c.nodes.length===0&&(l=c.raws.after,typeof l<"u"))return!1}),l}rawIndent(n){if(n.raws.indent)return n.raws.indent;let l;return n.walk(c=>{let h=c.parent;if(h&&h!==n&&h.parent&&h.parent===n&&typeof c.raws.before<"u"){let a=c.raws.before.split(`
42
- `);return l=a[a.length-1],l=l.replace(/\S/g,""),!1}}),l}rawSemicolon(n){let l;return n.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(l=c.raws.semicolon,typeof l<"u"))return!1}),l}rawValue(n,l){let c=n[l],h=n.raws[l];return h&&h.value===c?h.raw:c}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,l){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,l)}}return fn=r,r.default=r,fn}var hn,ks;function Zt(){if(ks)return hn;ks=1;let e=Ao();function t(r,i){new e(i).stringify(r)}return hn=t,t.default=t,hn}var dn,Ds;function er(){if(Ds)return dn;Ds=1;let{isClean:e,my:t}=ui(),r=li(),i=Ao(),n=Zt();function l(h,a){let p=new h.constructor;for(let o in h){if(!Object.prototype.hasOwnProperty.call(h,o)||o==="proxyCache")continue;let d=h[o],u=typeof d;o==="parent"&&u==="object"?a&&(p[o]=a):o==="source"?p[o]=d:Array.isArray(d)?p[o]=d.map(s=>l(s,p)):(u==="object"&&d!==null&&(d=l(d)),p[o]=d)}return p}class c{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in a)if(p==="nodes"){this.nodes=[];for(let o of a[p])typeof o.clone=="function"?this.append(o.clone()):this.append(o)}else this[p]=a[p]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let p=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let p in a)this[p]=a[p];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let p=l(this);for(let o in a)p[o]=a[o];return p}cloneAfter(a={}){let p=this.clone(a);return this.parent.insertAfter(this,p),p}cloneBefore(a={}){let p=this.clone(a);return this.parent.insertBefore(this,p),p}error(a,p={}){if(this.source){let{end:o,start:d}=this.rangeBy(p);return this.source.input.error(a,{column:d.column,line:d.line},{column:o.column,line:o.line},p)}return new r(a)}getProxyProcessor(){return{get(a,p){return p==="proxyOf"?a:p==="root"?()=>a.root().toProxy():a[p]},set(a,p,o){return a[p]===o||(a[p]=o,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,p){let o=this.source.start;if(a.index)o=this.positionInside(a.index,p);else if(a.word){p=this.toString();let d=p.indexOf(a.word);d!==-1&&(o=this.positionInside(d,p))}return o}positionInside(a,p){let o=p||this.toString(),d=this.source.start.column,u=this.source.start.line;for(let s=0;s<a;s++)o[s]===`
43
- `?(d=1,u+=1):d+=1;return{column:d,line:u}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let p={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(a.word){let d=this.toString(),u=d.indexOf(a.word);u!==-1&&(p=this.positionInside(u,d),o=this.positionInside(u+a.word.length,d))}else a.start?p={column:a.start.column,line:a.start.line}:a.index&&(p=this.positionInside(a.index)),a.end?o={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?o=this.positionInside(a.endIndex):a.index&&(o=this.positionInside(a.index+1));return(o.line<p.line||o.line===p.line&&o.column<=p.column)&&(o={column:p.column+1,line:p.line}),{end:o,start:p}}raw(a,p){return new i().raw(this,a,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let p=this,o=!1;for(let d of a)d===this?o=!0:o?(this.parent.insertAfter(p,d),p=d):this.parent.insertBefore(p,d);o||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,p){let o={},d=p==null;p=p||new Map;let u=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let m=this[s];if(Array.isArray(m))o[s]=m.map(f=>typeof f=="object"&&f.toJSON?f.toJSON(null,p):f);else if(typeof m=="object"&&m.toJSON)o[s]=m.toJSON(null,p);else if(s==="source"){let f=p.get(m.input);f==null&&(f=u,p.set(m.input,u),u++),o[s]={end:m.end,inputId:f,start:m.start}}else o[s]=m}return d&&(o.inputs=[...p.keys()].map(s=>s.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=n){a.stringify&&(a=a.stringify);let p="";return a(this,o=>{p+=o}),p}warn(a,p,o){let d={node:this};for(let u in o)d[u]=o[u];return a.warn(p,d)}get proxyOf(){return this}}return dn=c,c.default=c,dn}var pn,As;function tr(){if(As)return pn;As=1;let e=er();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return pn=t,t.default=t,pn}var mn,_s;function uc(){if(_s)return mn;_s=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return mn={nanoid:(i=21)=>{let n="",l=i;for(;l--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(l=n)=>{let c="",h=l;for(;h--;)c+=i[Math.random()*i.length|0];return c}},mn}var gn,Ls;function _o(){if(Ls)return gn;Ls=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=be,{existsSync:r,readFileSync:i}=be,{dirname:n,join:l}=be;function c(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class h{constructor(p,o){if(o.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let d=o.map?o.map.prev:void 0,u=this.loadMap(o.from,d);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=n(this.mapFile)),u&&(this.text=u)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let o=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,u=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(u.test(p)||s.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(o.test(p)||d.test(p))return c(p.substr(RegExp.lastMatch.length));let m=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let o=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!o)return;let d=p.lastIndexOf(o.pop()),u=p.indexOf("*/",d);d>-1&&u>-1&&(this.annotation=this.getAnnotationURL(p.substring(d,u)))}loadFile(p){if(this.root=n(p),r(p))return this.mapFile=p,i(p,"utf-8").toString().trim()}loadMap(p,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let d=o(p);if(d){let u=this.loadFile(d);if(!u)throw new Error("Unable to load previous source map: "+d.toString());return u}}else{if(o instanceof e)return t.fromSourceMap(o).toString();if(o instanceof t)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return p&&(d=l(n(p),d)),this.loadFile(d)}}}startWith(p,o){return p?p.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return gn=h,h.default=h,gn}var yn,Ps;function rr(){if(Ps)return yn;Ps=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=be,{fileURLToPath:r,pathToFileURL:i}=be,{isAbsolute:n,resolve:l}=be,{nanoid:c}=uc(),h=be,a=li(),p=_o(),o=Symbol("fromOffsetCache"),d=!!(e&&t),u=!!(l&&n);class s{constructor(f,g={}){if(f===null||typeof f>"u"||typeof f=="object"&&!f.toString)throw new Error(`PostCSS received ${f} instead of CSS string`);if(this.css=f.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!u||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=l(g.from)),u&&d){let C=new p(this.css,g);if(C.text){this.map=C;let w=C.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}error(f,g,C,w={}){let v,E,b;if(g&&typeof g=="object"){let S=g,x=C;if(typeof S.offset=="number"){let M=this.fromOffset(S.offset);g=M.line,C=M.col}else g=S.line,C=S.column;if(typeof x.offset=="number"){let M=this.fromOffset(x.offset);E=M.line,b=M.col}else E=x.line,b=x.column}else if(!C){let S=this.fromOffset(g);g=S.line,C=S.col}let y=this.origin(g,C,E,b);return y?v=new a(f,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,w.plugin):v=new a(f,E===void 0?g:{column:C,line:g},E===void 0?C:{column:b,line:E},this.css,this.file,w.plugin),v.input={column:C,endColumn:b,endLine:E,line:g,source:this.css},this.file&&(i&&(v.input.url=i(this.file).toString()),v.input.file=this.file),v}fromOffset(f){let g,C;if(this[o])C=this[o];else{let v=this.css.split(`
44
- `);C=new Array(v.length);let E=0;for(let b=0,y=v.length;b<y;b++)C[b]=E,E+=v[b].length+1;this[o]=C}g=C[C.length-1];let w=0;if(f>=g)w=C.length-1;else{let v=C.length-2,E;for(;w<v;)if(E=w+(v-w>>1),f<C[E])v=E-1;else if(f>=C[E+1])w=E+1;else{w=E;break}}return{col:f-C[w]+1,line:w+1}}mapResolve(f){return/^\w+:\/\//.test(f)?f:l(this.map.consumer().sourceRoot||this.map.root||".",f)}origin(f,g,C,w){if(!this.map)return!1;let v=this.map.consumer(),E=v.originalPositionFor({column:g,line:f});if(!E.source)return!1;let b;typeof C=="number"&&(b=v.originalPositionFor({column:w,line:C}));let y;n(E.source)?y=i(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:b&&b.column,endLine:b&&b.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)S.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=v.sourceContentFor(E.source);return x&&(S.source=x),S}toJSON(){let f={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(f[g]=this[g]);return this.map&&(f.map={...this.map},f.map.consumerCache&&(f.map.consumerCache=void 0)),f}get from(){return this.file||this.id}}return yn=s,s.default=s,h&&h.registerInput&&h.registerInput(s),yn}var wn,Fs;function Lo(){if(Fs)return wn;Fs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=be,{dirname:r,relative:i,resolve:n,sep:l}=be,{pathToFileURL:c}=be,h=rr(),a=!!(e&&t),p=!!(r&&n&&i&&l);class o{constructor(u,s,m,f){this.stringify=u,this.mapOpts=m.map||{},this.root=s,this.opts=m,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let u;this.isInline()?u="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?u=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?u=this.mapOpts.annotation(this.opts.to,this.root):u=this.outputFile()+".map";let s=`
36
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(n){this.builder=n}atrule(n,a){let u="@"+n.name,f=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?u+=n.raws.afterName:f&&(u+=" "),n.nodes)this.block(n,u+f);else{let l=(n.raws.between||"")+(a?";":"");this.builder(u+f+l,n)}}beforeAfter(n,a){let u;n.type==="decl"?u=this.raw(n,null,"beforeDecl"):n.type==="comment"?u=this.raw(n,null,"beforeComment"):a==="before"?u=this.raw(n,null,"beforeRule"):u=this.raw(n,null,"beforeClose");let f=n.parent,l=0;for(;f&&f.type!=="root";)l+=1,f=f.parent;if(u.includes(`
37
+ `)){let p=this.raw(n,null,"indent");if(p.length)for(let o=0;o<l;o++)u+=p}return u}block(n,a){let u=this.raw(n,"between","beforeOpen");this.builder(a+u+"{",n,"start");let f;n.nodes&&n.nodes.length?(this.body(n),f=this.raw(n,"after")):f=this.raw(n,"after","emptyBody"),f&&this.builder(f),this.builder("}",n,"end")}body(n){let a=n.nodes.length-1;for(;a>0&&n.nodes[a].type==="comment";)a-=1;let u=this.raw(n,"semicolon");for(let f=0;f<n.nodes.length;f++){let l=n.nodes[f],p=this.raw(l,"before");p&&this.builder(p),this.stringify(l,a!==f||u)}}comment(n){let a=this.raw(n,"left","commentLeft"),u=this.raw(n,"right","commentRight");this.builder("/*"+a+n.text+u+"*/",n)}decl(n,a){let u=this.raw(n,"between","colon"),f=n.prop+u+this.rawValue(n,"value");n.important&&(f+=n.raws.important||" !important"),a&&(f+=";"),this.builder(f,n)}document(n){this.body(n)}raw(n,a,u){let f;if(u||(u=a),a&&(f=n.raws[a],typeof f<"u"))return f;let l=n.parent;if(u==="before"&&(!l||l.type==="root"&&l.first===n||l&&l.type==="document"))return"";if(!l)return e[u];let p=n.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[u]<"u")return p.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(n,u);{let o="raw"+t(u);this[o]?f=this[o](p,n):p.walk(d=>{if(f=d.raws[a],typeof f<"u")return!1})}return typeof f>"u"&&(f=e[u]),p.rawCache[u]=f,f}rawBeforeClose(n){let a;return n.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return a=u.raws.after,a.includes(`
38
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(n,a){let u;return n.walkComments(f=>{if(typeof f.raws.before<"u")return u=f.raws.before,u.includes(`
39
+ `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(a,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(n,a){let u;return n.walkDecls(f=>{if(typeof f.raws.before<"u")return u=f.raws.before,u.includes(`
40
+ `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(a,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(n){let a;return n.walk(u=>{if(u.type!=="decl"&&(a=u.raws.between,typeof a<"u"))return!1}),a}rawBeforeRule(n){let a;return n.walk(u=>{if(u.nodes&&(u.parent!==n||n.first!==u)&&typeof u.raws.before<"u")return a=u.raws.before,a.includes(`
41
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(n){let a;return n.walkDecls(u=>{if(typeof u.raws.between<"u")return a=u.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(n){let a;return n.walk(u=>{if(u.nodes&&u.nodes.length===0&&(a=u.raws.after,typeof a<"u"))return!1}),a}rawIndent(n){if(n.raws.indent)return n.raws.indent;let a;return n.walk(u=>{let f=u.parent;if(f&&f!==n&&f.parent&&f.parent===n&&typeof u.raws.before<"u"){let l=u.raws.before.split(`
42
+ `);return a=l[l.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(n){let a;return n.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(a=u.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(n,a){let u=n[a],f=n.raws[a];return f&&f.value===u?f.raw:u}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,a){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,a)}}return dn=r,r.default=r,dn}var pn,Ds;function er(){if(Ds)return pn;Ds=1;let e=Lo();function t(r,i){new e(i).stringify(r)}return pn=t,t.default=t,pn}var mn,_s;function tr(){if(_s)return mn;_s=1;let{isClean:e,my:t}=fi(),r=ci(),i=Lo(),n=er();function a(f,l){let p=new f.constructor;for(let o in f){if(!Object.prototype.hasOwnProperty.call(f,o)||o==="proxyCache")continue;let d=f[o],c=typeof d;o==="parent"&&c==="object"?l&&(p[o]=l):o==="source"?p[o]=d:Array.isArray(d)?p[o]=d.map(s=>a(s,p)):(c==="object"&&d!==null&&(d=a(d)),p[o]=d)}return p}class u{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in l)if(p==="nodes"){this.nodes=[];for(let o of l[p])typeof o.clone=="function"?this.append(o.clone()):this.append(o)}else this[p]=l[p]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let p=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let p in l)this[p]=l[p];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let p=a(this);for(let o in l)p[o]=l[o];return p}cloneAfter(l={}){let p=this.clone(l);return this.parent.insertAfter(this,p),p}cloneBefore(l={}){let p=this.clone(l);return this.parent.insertBefore(this,p),p}error(l,p={}){if(this.source){let{end:o,start:d}=this.rangeBy(p);return this.source.input.error(l,{column:d.column,line:d.line},{column:o.column,line:o.line},p)}return new r(l)}getProxyProcessor(){return{get(l,p){return p==="proxyOf"?l:p==="root"?()=>l.root().toProxy():l[p]},set(l,p,o){return l[p]===o||(l[p]=o,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,p){let o=this.source.start;if(l.index)o=this.positionInside(l.index,p);else if(l.word){p=this.toString();let d=p.indexOf(l.word);d!==-1&&(o=this.positionInside(d,p))}return o}positionInside(l,p){let o=p||this.toString(),d=this.source.start.column,c=this.source.start.line;for(let s=0;s<l;s++)o[s]===`
43
+ `?(d=1,c+=1):d+=1;return{column:d,line:c}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let p={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(l.word){let d=this.toString(),c=d.indexOf(l.word);c!==-1&&(p=this.positionInside(c,d),o=this.positionInside(c+l.word.length,d))}else l.start?p={column:l.start.column,line:l.start.line}:l.index&&(p=this.positionInside(l.index)),l.end?o={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?o=this.positionInside(l.endIndex):l.index&&(o=this.positionInside(l.index+1));return(o.line<p.line||o.line===p.line&&o.column<=p.column)&&(o={column:p.column+1,line:p.line}),{end:o,start:p}}raw(l,p){return new i().raw(this,l,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let p=this,o=!1;for(let d of l)d===this?o=!0:o?(this.parent.insertAfter(p,d),p=d):this.parent.insertBefore(p,d);o||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,p){let o={},d=p==null;p=p||new Map;let c=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let m=this[s];if(Array.isArray(m))o[s]=m.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,p):h);else if(typeof m=="object"&&m.toJSON)o[s]=m.toJSON(null,p);else if(s==="source"){let h=p.get(m.input);h==null&&(h=c,p.set(m.input,c),c++),o[s]={end:m.end,inputId:h,start:m.start}}else o[s]=m}return d&&(o.inputs=[...p.keys()].map(s=>s.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=n){l.stringify&&(l=l.stringify);let p="";return l(this,o=>{p+=o}),p}warn(l,p,o){let d={node:this};for(let c in o)d[c]=o[c];return l.warn(p,d)}get proxyOf(){return this}}return mn=u,u.default=u,mn}var gn,Ls;function rr(){if(Ls)return gn;Ls=1;let e=tr();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return gn=t,t.default=t,gn}var yn,Ps;function wc(){if(Ps)return yn;Ps=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return yn={nanoid:(i=21)=>{let n="",a=i;for(;a--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(a=n)=>{let u="",f=a;for(;f--;)u+=i[Math.random()*i.length|0];return u}},yn}var wn,Fs;function Po(){if(Fs)return wn;Fs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{existsSync:r,readFileSync:i}=Se,{dirname:n,join:a}=Se;function u(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class f{constructor(p,o){if(o.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let d=o.map?o.map.prev:void 0,c=this.loadMap(o.from,d);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=n(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let o=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(c.test(p)||s.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(o.test(p)||d.test(p))return u(p.substr(RegExp.lastMatch.length));let m=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let o=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!o)return;let d=p.lastIndexOf(o.pop()),c=p.indexOf("*/",d);d>-1&&c>-1&&(this.annotation=this.getAnnotationURL(p.substring(d,c)))}loadFile(p){if(this.root=n(p),r(p))return this.mapFile=p,i(p,"utf-8").toString().trim()}loadMap(p,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let d=o(p);if(d){let c=this.loadFile(d);if(!c)throw new Error("Unable to load previous source map: "+d.toString());return c}}else{if(o instanceof e)return t.fromSourceMap(o).toString();if(o instanceof t)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return p&&(d=a(n(p),d)),this.loadFile(d)}}}startWith(p,o){return p?p.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return wn=f,f.default=f,wn}var bn,Us;function nr(){if(Us)return bn;Us=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{fileURLToPath:r,pathToFileURL:i}=Se,{isAbsolute:n,resolve:a}=Se,{nanoid:u}=wc(),f=Se,l=ci(),p=Po(),o=Symbol("fromOffsetCache"),d=!!(e&&t),c=!!(a&&n);class s{constructor(h,g={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!c||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=a(g.from)),c&&d){let C=new p(this.css,g);if(C.text){this.map=C;let w=C.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(h,g,C,w={}){let v,E,b;if(g&&typeof g=="object"){let S=g,x=C;if(typeof S.offset=="number"){let M=this.fromOffset(S.offset);g=M.line,C=M.col}else g=S.line,C=S.column;if(typeof x.offset=="number"){let M=this.fromOffset(x.offset);E=M.line,b=M.col}else E=x.line,b=x.column}else if(!C){let S=this.fromOffset(g);g=S.line,C=S.col}let y=this.origin(g,C,E,b);return y?v=new l(h,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,w.plugin):v=new l(h,E===void 0?g:{column:C,line:g},E===void 0?C:{column:b,line:E},this.css,this.file,w.plugin),v.input={column:C,endColumn:b,endLine:E,line:g,source:this.css},this.file&&(i&&(v.input.url=i(this.file).toString()),v.input.file=this.file),v}fromOffset(h){let g,C;if(this[o])C=this[o];else{let v=this.css.split(`
44
+ `);C=new Array(v.length);let E=0;for(let b=0,y=v.length;b<y;b++)C[b]=E,E+=v[b].length+1;this[o]=C}g=C[C.length-1];let w=0;if(h>=g)w=C.length-1;else{let v=C.length-2,E;for(;w<v;)if(E=w+(v-w>>1),h<C[E])v=E-1;else if(h>=C[E+1])w=E+1;else{w=E;break}}return{col:h-C[w]+1,line:w+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:a(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,g,C,w){if(!this.map)return!1;let v=this.map.consumer(),E=v.originalPositionFor({column:g,line:h});if(!E.source)return!1;let b;typeof C=="number"&&(b=v.originalPositionFor({column:w,line:C}));let y;n(E.source)?y=i(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:b&&b.column,endLine:b&&b.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)S.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=v.sourceContentFor(E.source);return x&&(S.source=x),S}toJSON(){let h={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(h[g]=this[g]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return bn=s,s.default=s,f&&f.registerInput&&f.registerInput(s),bn}var vn,Bs;function Fo(){if(Bs)return vn;Bs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{dirname:r,relative:i,resolve:n,sep:a}=Se,{pathToFileURL:u}=Se,f=nr(),l=!!(e&&t),p=!!(r&&n&&i&&a);class o{constructor(c,s,m,h){this.stringify=c,this.mapOpts=m.map||{},this.root=s,this.opts=m,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let s=`
45
45
  `;this.css.includes(`\r
46
46
  `)&&(s=`\r
47
- `),this.css+=s+"/*# sourceMappingURL="+u+" */"}applyPrevMaps(){for(let u of this.previous()){let s=this.toUrl(this.path(u.file)),m=u.root||r(u.file),f;this.mapOpts.sourcesContent===!1?(f=new e(u.text),f.sourcesContent&&(f.sourcesContent=null)):f=u.consumer(),this.map.applySourceMap(f,s,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let u;for(let s=this.root.nodes.length-1;s>=0;s--)u=this.root.nodes[s],u.type==="comment"&&u.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&a&&this.isMap())return this.generateMap();{let u="";return this.stringify(this.root,s=>{u+=s}),[u]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let u=this.previous()[0].consumer();u.file=this.outputFile(),this.map=t.fromSourceMap(u,{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 u=1,s=1,m="<no source>",f={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(w,v,E)=>{if(this.css+=w,v&&E!=="end"&&(f.generated.line=u,f.generated.column=s-1,v.source&&v.source.start?(f.source=this.sourcePath(v),f.original.line=v.source.start.line,f.original.column=v.source.start.column-1,this.map.addMapping(f)):(f.source=m,f.original.line=1,f.original.column=0,this.map.addMapping(f))),g=w.match(/\n/g),g?(u+=g.length,C=w.lastIndexOf(`
48
- `),s=w.length-C):s+=w.length,v&&E!=="start"){let b=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==b.last||b.raws.semicolon)&&(v.source&&v.source.end?(f.source=this.sourcePath(v),f.original.line=v.source.end.line,f.original.column=v.source.end.column-1,f.generated.line=u,f.generated.column=s-2,this.map.addMapping(f)):(f.source=m,f.original.line=1,f.original.column=0,f.generated.line=u,f.generated.column=s-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(u=>u.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let u=this.mapOpts.annotation;return typeof u<"u"&&u!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(u=>u.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(u){if(this.mapOpts.absolute||u.charCodeAt(0)===60||/^\w+:\/\//.test(u))return u;let s=this.memoizedPaths.get(u);if(s)return s;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let f=i(m,u);return this.memoizedPaths.set(u,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(u=>{if(u.source&&u.source.input.map){let s=u.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let u=new h(this.originalCSS,this.opts);u.map&&this.previousMaps.push(u.map)}return this.previousMaps}setSourcesContent(){let u={};if(this.root)this.root.walk(s=>{if(s.source){let m=s.source.input.from;if(m&&!u[m]){u[m]=!0;let f=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(f,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(u){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(u.source.input.from):this.toUrl(this.path(u.source.input.from))}toBase64(u){return Buffer?Buffer.from(u).toString("base64"):window.btoa(unescape(encodeURIComponent(u)))}toFileUrl(u){let s=this.memoizedFileURLs.get(u);if(s)return s;if(c){let m=c(u).toString();return this.memoizedFileURLs.set(u,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(u){let s=this.memoizedURLs.get(u);if(s)return s;l==="\\"&&(u=u.replace(/\\/g,"/"));let m=encodeURI(u).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(u,m),m}}return wn=o,wn}var bn,Us;function nr(){if(Us)return bn;Us=1;let e=er();class t extends e{constructor(i){super(i),this.type="comment"}}return bn=t,t.default=t,bn}var vn,Bs;function Be(){if(Bs)return vn;Bs=1;let{isClean:e,my:t}=ui(),r=tr(),i=nr(),n=er(),l,c,h,a;function p(u){return u.map(s=>(s.nodes&&(s.nodes=p(s.nodes)),delete s.source,s))}function o(u){if(u[e]=!1,u.proxyOf.nodes)for(let s of u.proxyOf.nodes)o(s)}class d extends n{append(...s){for(let m of s){let f=this.normalize(m,this.last);for(let g of f)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let m of this.nodes)m.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let m=this.getIterator(),f,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(f=this.indexes[m],g=s(this.proxyOf.nodes[f],f),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,m){return m==="proxyOf"?s:s[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...f)=>s[m](...f.map(g=>typeof g=="function"?(C,w)=>g(C.toProxy(),w):g)):m==="every"||m==="some"?f=>s[m]((g,...C)=>f(g.toProxy(),...C)):m==="root"?()=>s.root().toProxy():m==="nodes"?s.nodes.map(f=>f.toProxy()):m==="first"||m==="last"?s[m].toProxy():s[m]:s[m]},set(s,m,f){return s[m]===f||(s[m]=f,(m==="name"||m==="params"||m==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,m){let f=this.index(s),g=this.normalize(m,this.proxyOf.nodes[f]).reverse();f=this.index(s);for(let w of g)this.proxyOf.nodes.splice(f+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],f<C&&(this.indexes[w]=C+g.length);return this.markDirty(),this}insertBefore(s,m){let f=this.index(s),g=f===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[f],g).reverse();f=this.index(s);for(let v of C)this.proxyOf.nodes.splice(f,0,v);let w;for(let v in this.indexes)w=this.indexes[v],f<=w&&(this.indexes[v]=w+C.length);return this.markDirty(),this}normalize(s,m){if(typeof s=="string")s=p(l(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector)s=[new c(s)];else if(s.name)s=[new h(s)];else if(s.text)s=[new i(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&o(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...s){s=s.reverse();for(let m of s){let f=this.normalize(m,this.first,"prepend").reverse();for(let g of f)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+f.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let m;for(let f in this.indexes)m=this.indexes[f],m>=s&&(this.indexes[f]=m-1);return this.markDirty(),this}replaceValues(s,m,f){return f||(f=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(s,f))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((m,f)=>{let g;try{g=s(m,f)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(s)),g})}walkAtRules(s,m){return m?s instanceof RegExp?this.walk((f,g)=>{if(f.type==="atrule"&&s.test(f.name))return m(f,g)}):this.walk((f,g)=>{if(f.type==="atrule"&&f.name===s)return m(f,g)}):(m=s,this.walk((f,g)=>{if(f.type==="atrule")return m(f,g)}))}walkComments(s){return this.walk((m,f)=>{if(m.type==="comment")return s(m,f)})}walkDecls(s,m){return m?s instanceof RegExp?this.walk((f,g)=>{if(f.type==="decl"&&s.test(f.prop))return m(f,g)}):this.walk((f,g)=>{if(f.type==="decl"&&f.prop===s)return m(f,g)}):(m=s,this.walk((f,g)=>{if(f.type==="decl")return m(f,g)}))}walkRules(s,m){return m?s instanceof RegExp?this.walk((f,g)=>{if(f.type==="rule"&&s.test(f.selector))return m(f,g)}):this.walk((f,g)=>{if(f.type==="rule"&&f.selector===s)return m(f,g)}):(m=s,this.walk((f,g)=>{if(f.type==="rule")return m(f,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 d.registerParse=u=>{l=u},d.registerRule=u=>{c=u},d.registerAtRule=u=>{h=u},d.registerRoot=u=>{a=u},vn=d,d.default=d,d.rebuild=u=>{u.type==="atrule"?Object.setPrototypeOf(u,h.prototype):u.type==="rule"?Object.setPrototypeOf(u,c.prototype):u.type==="decl"?Object.setPrototypeOf(u,r.prototype):u.type==="comment"?Object.setPrototypeOf(u,i.prototype):u.type==="root"&&Object.setPrototypeOf(u,a.prototype),u[t]=!0,u.nodes&&u.nodes.forEach(s=>{d.rebuild(s)})},vn}var Sn,$s;function ci(){if($s)return Sn;$s=1;let e=Be(),t,r;class i extends e{constructor(l){super({type:"document",...l}),this.nodes||(this.nodes=[])}toResult(l={}){return new t(new r,this,l).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},Sn=i,i.default=i,Sn}var Cn,Ws;function Po(){if(Ws)return Cn;Ws=1;let e={};return Cn=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Cn}var En,zs;function Fo(){if(zs)return En;zs=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[n]}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 En=e,e.default=e,En}var xn,qs;function fi(){if(qs)return xn;qs=1;let e=Fo();class t{constructor(i,n,l){this.processor=i,this.messages=[],this.root=n,this.opts=l,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let l=new e(i,n);return this.messages.push(l),l}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return xn=t,t.default=t,xn}var Rn,Vs;function cc(){if(Vs)return Rn;Vs=1;let e=39,t=34,r=92,i=47,n=10,l=32,c=12,h=9,a=13,p=91,o=93,d=40,u=41,s=123,m=125,f=59,g=42,C=58,w=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Rn=function(x,M={}){let T=x.css.valueOf(),k=M.ignoreErrors,I,R,te,re,F,L,j,K,$,B,le=T.length,N=0,Se=[],he=[];function lt(){return N}function ie(D){throw x.error("Unclosed "+D,N)}function ge(){return he.length===0&&N>=le}function Pe(D){if(he.length)return he.pop();if(N>=le)return;let Z=D?D.ignoreUnclosed:!1;switch(I=T.charCodeAt(N),I){case n:case l:case h:case a:case c:{R=N;do R+=1,I=T.charCodeAt(R);while(I===l||I===n||I===h||I===a||I===c);B=["space",T.slice(N,R)],N=R-1;break}case p:case o:case s:case m:case C:case f:case u:{let W=String.fromCharCode(I);B=[W,W,N];break}case d:{if(K=Se.length?Se.pop()[1]:"",$=T.charCodeAt(N+1),K==="url"&&$!==e&&$!==t&&$!==l&&$!==n&&$!==h&&$!==c&&$!==a){R=N;do{if(L=!1,R=T.indexOf(")",R+1),R===-1)if(k||Z){R=N;break}else ie("bracket");for(j=R;T.charCodeAt(j-1)===r;)j-=1,L=!L}while(L);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),re=T.slice(N,R+1),R===-1||b.test(re)?B=["(","(",N]:(B=["brackets",re,N,R],N=R);break}case e:case t:{te=I===e?"'":'"',R=N;do{if(L=!1,R=T.indexOf(te,R+1),R===-1)if(k||Z){R=N+1;break}else ie("string");for(j=R;T.charCodeAt(j-1)===r;)j-=1,L=!L}while(L);B=["string",T.slice(N,R+1),N,R],N=R;break}case w:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,F=!0;T.charCodeAt(R+1)===r;)R+=1,F=!F;if(I=T.charCodeAt(R+1),F&&I!==i&&I!==l&&I!==n&&I!==h&&I!==a&&I!==c&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===l&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{I===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(k||Z?R=T.length:ie("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(E.lastIndex=N+1,E.test(T),E.lastIndex===0?R=T.length-1:R=E.lastIndex-2,B=["word",T.slice(N,R+1),N,R],Se.push(B),N=R);break}}return N++,B}function Oe(D){he.push(D)}return{back:Oe,endOfFile:ge,nextToken:Pe,position:lt}},Rn}var Tn,js;function hi(){if(js)return Tn;js=1;let e=Be();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return Tn=t,t.default=t,e.registerAtRule(t),Tn}var Mn,Hs;function gt(){if(Hs)return Mn;Hs=1;let e=Be(),t,r;class i extends e{constructor(l){super(l),this.type="root",this.nodes||(this.nodes=[])}normalize(l,c,h){let a=super.normalize(l);if(c){if(h==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let p of a)p.raws.before=c.raws.before}return a}removeChild(l,c){let h=this.index(l);return!c&&h===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[h].raws.before),super.removeChild(l)}toResult(l={}){return new t(new r,this,l).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},Mn=i,i.default=i,e.registerRoot(i),Mn}var Nn,Gs;function Uo(){if(Gs)return Nn;Gs=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
49
- `," "];return e.split(t,r)},split(t,r,i){let n=[],l="",c=!1,h=0,a=!1,p="",o=!1;for(let d of t)o?o=!1:d==="\\"?o=!0:a?d===p&&(a=!1):d==='"'||d==="'"?(a=!0,p=d):d==="("?h+=1:d===")"?h>0&&(h-=1):h===0&&r.includes(d)&&(c=!0),c?(l!==""&&n.push(l.trim()),l="",c=!1):l+=d;return(i||l!=="")&&n.push(l.trim()),n}};return Nn=e,e.default=e,Nn}var On,Ys;function di(){if(Ys)return On;Ys=1;let e=Be(),t=Uo();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let l=this.selector?this.selector.match(/,\s*/):null,c=l?l[0]:","+this.raw("between","beforeOpen");this.selector=n.join(c)}}return On=r,r.default=r,e.registerRule(r),On}var In,Xs;function fc(){if(Xs)return In;Xs=1;let e=tr(),t=cc(),r=nr(),i=hi(),n=gt(),l=di(),c={empty:!0,space:!0};function h(p){for(let o=p.length-1;o>=0;o--){let d=p[o],u=d[3]||d[2];if(u)return u}}class a{constructor(o){this.input=o,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let d=new i;d.name=o[1].slice(1),d.name===""&&this.unnamedAtrule(d,o),this.init(d,o[2]);let u,s,m,f=!1,g=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),u=o[0],u==="("||u==="["?w.push(u==="("?")":"]"):u==="{"&&w.length>0?w.push("}"):u===w[w.length-1]&&w.pop(),w.length===0)if(u===";"){d.source.end=this.getPosition(o[2]),d.source.end.offset++,this.semicolon=!0;break}else if(u==="{"){g=!0;break}else if(u==="}"){if(C.length>0){for(m=C.length-1,s=C[m];s&&s[0]==="space";)s=C[--m];s&&(d.source.end=this.getPosition(s[3]||s[2]),d.source.end.offset++)}this.end(o);break}else C.push(o);else C.push(o);if(this.tokenizer.endOfFile()){f=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(d.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(d,"params",C),f&&(o=C[C.length-1],d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(o){let d=this.colon(o);if(d===!1)return;let u=0,s;for(let m=d-1;m>=0&&(s=o[m],!(s[0]!=="space"&&(u+=1,u===2)));m--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(o){let d=0,u,s,m;for(let[f,g]of o.entries()){if(u=g,s=u[0],s==="("&&(d+=1),s===")"&&(d-=1),d===0&&s===":")if(!m)this.doubleColon(u);else{if(m[0]==="word"&&m[1]==="progid")continue;return f}m=u}return!1}comment(o){let d=new r;this.init(d,o[2]),d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++;let u=o[1].slice(2,-2);if(/^\s*$/.test(u))d.text="",d.raws.left=u,d.raws.right="";else{let s=u.match(/^(\s*)([^]*\S)(\s*)$/);d.text=s[2],d.raws.left=s[1],d.raws.right=s[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(o,d){let u=new e;this.init(u,o[0][2]);let s=o[o.length-1];for(s[0]===";"&&(this.semicolon=!0,o.pop()),u.source.end=this.getPosition(s[3]||s[2]||h(o)),u.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),u.raws.before+=o.shift()[1];for(u.source.start=this.getPosition(o[0][2]),u.prop="";o.length;){let w=o[0][0];if(w===":"||w==="space"||w==="comment")break;u.prop+=o.shift()[1]}u.raws.between="";let m;for(;o.length;)if(m=o.shift(),m[0]===":"){u.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),u.raws.between+=m[1];(u.prop[0]==="_"||u.prop[0]==="*")&&(u.raws.before+=u.prop[0],u.prop=u.prop.slice(1));let f=[],g;for(;o.length&&(g=o[0][0],!(g!=="space"&&g!=="comment"));)f.push(o.shift());this.precheckMissedSemicolon(o);for(let w=o.length-1;w>=0;w--){if(m=o[w],m[1].toLowerCase()==="!important"){u.important=!0;let v=this.stringFrom(o,w);v=this.spacesFromEnd(o)+v,v!==" !important"&&(u.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=o.slice(0),E="";for(let b=w;b>0;b--){let y=v[b][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(u.important=!0,u.raws.important=E,o=v)}if(m[0]!=="space"&&m[0]!=="comment")break}o.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(u.raws.between+=f.map(w=>w[1]).join(""),f=[]),this.raw(u,"value",f.concat(o),d),u.value.includes(":")&&!d&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let d=new l;this.init(d,o[2]),d.selector="",d.raws.between="",this.current=d}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(o){let d=this.input.fromOffset(o);return{column:d.col,line:d.line,offset:o}}init(o,d){this.current.push(o),o.source={input:this.input,start:this.getPosition(d)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let d=!1,u=null,s=!1,m=null,f=[],g=o[1].startsWith("--"),C=[],w=o;for(;w;){if(u=w[0],C.push(w),u==="("||u==="[")m||(m=w),f.push(u==="("?")":"]");else if(g&&s&&u==="{")m||(m=w),f.push("}");else if(f.length===0)if(u===";")if(s){this.decl(C,g);return}else break;else if(u==="{"){this.rule(C);return}else if(u==="}"){this.tokenizer.back(C.pop()),d=!0;break}else u===":"&&(s=!0);else u===f[f.length-1]&&(f.pop(),f.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),f.length>0&&this.unclosedBracket(m),d&&s){if(!g)for(;C.length&&(w=C[C.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,d,u,s){let m,f,g=u.length,C="",w=!0,v,E;for(let b=0;b<g;b+=1)m=u[b],f=m[0],f==="space"&&b===g-1&&!s?w=!1:f==="comment"?(E=u[b-1]?u[b-1][0]:"empty",v=u[b+1]?u[b+1][0]:"empty",!c[E]&&!c[v]?C.slice(-1)===","?w=!1:C+=m[1]:w=!1):C+=m[1];if(!w){let b=u.reduce((y,S)=>y+S[1],"");o.raws[d]={raw:b,value:C}}o[d]=C}rule(o){o.pop();let d=new l;this.init(d,o[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(d,"selector",o),this.current=d}spacesAndCommentsFromEnd(o){let d,u="";for(;o.length&&(d=o[o.length-1][0],!(d!=="space"&&d!=="comment"));)u=o.pop()[1]+u;return u}spacesAndCommentsFromStart(o){let d,u="";for(;o.length&&(d=o[0][0],!(d!=="space"&&d!=="comment"));)u+=o.shift()[1];return u}spacesFromEnd(o){let d,u="";for(;o.length&&(d=o[o.length-1][0],d==="space");)u=o.pop()[1]+u;return u}stringFrom(o,d){let u="";for(let s=d;s<o.length;s++)u+=o[s][1];return o.splice(d,o.length-d),u}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return In=a,In}var kn,Js;function pi(){if(Js)return kn;Js=1;let e=Be(),t=fc(),r=rr();function i(n,l){let c=new r(n,l),h=new t(c);try{h.parse()}catch(a){throw a}return h.root}return kn=i,i.default=i,e.registerParse(i),kn}var Dn,Ks;function Bo(){if(Ks)return Dn;Ks=1;let{isClean:e,my:t}=ui(),r=Lo(),i=Zt(),n=Be(),l=ci(),c=Po(),h=fi(),a=pi(),p=gt(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={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},u={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function f(E){let b=!1,y=o[E.type];return E.type==="decl"?b=E.prop.toLowerCase():E.type==="atrule"&&(b=E.name.toLowerCase()),b&&E.append?[y,y+"-"+b,s,y+"Exit",y+"Exit-"+b]:b?[y,y+"-"+b,y+"Exit",y+"Exit-"+b]:E.append?[y,s,y+"Exit"]:[y,y+"Exit"]}function g(E){let b;return E.type==="document"?b=["Document",s,"DocumentExit"]:E.type==="root"?b=["Root",s,"RootExit"]:b=f(E),{eventIndex:0,events:b,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(b=>C(b)),E}let w={};class v{constructor(b,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=C(y);else if(y instanceof v||y instanceof h)x=C(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=a;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new h(b,x,S),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,y){let S=this.result.lastPlugin;try{y&&y.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=S.postcssPlugin,b.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return b}prepareVisitors(){this.listeners={};let b=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!d[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?b(y,S,y[S][x]):b(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&b(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let y=this.plugins[b],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let y=[g(b)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(b.type==="document"){let x=b.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(b,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>b.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,y=i;b.syntax&&(y=b.syntax.stringify),b.stringifier&&(y=b.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let b of this.plugins){let y=this.runOnRoot(b);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let y of b.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,y){return this.async().then(b,y)}toString(){return this.css}visitSync(b,y){for(let[S,x]of b){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(b){let y=b[b.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){b.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,k]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return k(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(y.iterator!==0){let T=y.iterator,k;for(;k=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!k[e]){k[e]=!0,b.push(g(k));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===s){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}b.pop()}walkSync(b){b[e]=!0;let y=f(b);for(let S of y)if(S===s)b.nodes&&b.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,b.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=E=>{w=E},Dn=v,v.default=v,p.registerLazyResult(v),l.registerLazyResult(v),Dn}var An,Qs;function hc(){if(Qs)return An;Qs=1;let e=Lo(),t=Zt(),r=Po(),i=pi(),n=fi();class l{constructor(h,a,p){a=a.toString(),this.stringified=!1,this._processor=h,this._css=a,this._opts=p,this._map=void 0;let o,d=t;this.result=new n(this._processor,o,this._opts),this.result.css=a;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let s=new e(d,o,this._opts,a);if(s.isMap()){let[m,f]=s.generate();m&&(this.result.css=m),f&&(this.result.map=f)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(h){return this.async().catch(h)}finally(h){return this.async().then(h,h)}sync(){if(this.error)throw this.error;return this.result}then(h,a){return this.async().then(h,a)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let h,a=i;try{h=a(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=h,h}get[Symbol.toStringTag](){return"NoWorkResult"}}return An=l,l.default=l,An}var _n,Zs;function dc(){if(Zs)return _n;Zs=1;let e=hc(),t=Bo(),r=ci(),i=gt();class n{constructor(c=[]){this.version="8.4.38",this.plugins=this.normalize(c)}normalize(c){let h=[];for(let a of c)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))h=h.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)h.push(a);else if(typeof a=="function")h.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return h}process(c,h={}){return!this.plugins.length&&!h.parser&&!h.stringifier&&!h.syntax?new e(this,c,h):new t(this,c,h)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return _n=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),_n}var Ln,eo;function pc(){if(eo)return Ln;eo=1;let e=tr(),t=_o(),r=nr(),i=hi(),n=rr(),l=gt(),c=di();function h(a,p){if(Array.isArray(a))return a.map(u=>h(u));let{inputs:o,...d}=a;if(o){p=[];for(let u of o){let s={...u,__proto__:n.prototype};s.map&&(s.map={...s.map,__proto__:t.prototype}),p.push(s)}}if(d.nodes&&(d.nodes=a.nodes.map(u=>h(u,p))),d.source){let{inputId:u,...s}=d.source;d.source=s,u!=null&&(d.source.input=p[u])}if(d.type==="root")return new l(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new c(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+a.type)}return Ln=h,h.default=h,Ln}var Pn,to;function mc(){if(to)return Pn;to=1;let e=li(),t=tr(),r=Bo(),i=Be(),n=dc(),l=Zt(),c=pc(),h=ci(),a=Fo(),p=nr(),o=hi(),d=fi(),u=rr(),s=pi(),m=Uo(),f=di(),g=gt(),C=er();function w(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return w.plugin=function(E,b){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
47
+ `),this.css+=s+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let s=this.toUrl(this.path(c.file)),m=c.root||r(c.file),h;this.mapOpts.sourcesContent===!1?(h=new e(c.text),h.sourcesContent&&(h.sourcesContent=null)):h=c.consumer(),this.map.applySourceMap(h,s,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let s=this.root.nodes.length-1;s>=0;s--)c=this.root.nodes[s],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&l&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,s=>{c+=s}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{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 c=1,s=1,m="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(w,v,E)=>{if(this.css+=w,v&&E!=="end"&&(h.generated.line=c,h.generated.column=s-1,v.source&&v.source.start?(h.source=this.sourcePath(v),h.original.line=v.source.start.line,h.original.column=v.source.start.column-1,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,this.map.addMapping(h))),g=w.match(/\n/g),g?(c+=g.length,C=w.lastIndexOf(`
48
+ `),s=w.length-C):s+=w.length,v&&E!=="start"){let b=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==b.last||b.raws.semicolon)&&(v.source&&v.source.end?(h.source=this.sourcePath(v),h.original.line=v.source.end.line,h.original.column=v.source.end.column-1,h.generated.line=c,h.generated.column=s-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=c,h.generated.column=s-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let s=this.memoizedPaths.get(c);if(s)return s;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let h=i(m,c);return this.memoizedPaths.set(c,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let s=c.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let c=new f(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(s=>{if(s.source){let m=s.source.input.from;if(m&&!c[m]){c[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let s=this.memoizedFileURLs.get(c);if(s)return s;if(u){let m=u(c).toString();return this.memoizedFileURLs.set(c,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let s=this.memoizedURLs.get(c);if(s)return s;a==="\\"&&(c=c.replace(/\\/g,"/"));let m=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,m),m}}return vn=o,vn}var Sn,$s;function ir(){if($s)return Sn;$s=1;let e=tr();class t extends e{constructor(i){super(i),this.type="comment"}}return Sn=t,t.default=t,Sn}var Cn,Ws;function Be(){if(Ws)return Cn;Ws=1;let{isClean:e,my:t}=fi(),r=rr(),i=ir(),n=tr(),a,u,f,l;function p(c){return c.map(s=>(s.nodes&&(s.nodes=p(s.nodes)),delete s.source,s))}function o(c){if(c[e]=!1,c.proxyOf.nodes)for(let s of c.proxyOf.nodes)o(s)}class d extends n{append(...s){for(let m of s){let h=this.normalize(m,this.last);for(let g of h)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let m of this.nodes)m.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let m=this.getIterator(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=s(this.proxyOf.nodes[h],h),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,m){return m==="proxyOf"?s:s[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...h)=>s[m](...h.map(g=>typeof g=="function"?(C,w)=>g(C.toProxy(),w):g)):m==="every"||m==="some"?h=>s[m]((g,...C)=>h(g.toProxy(),...C)):m==="root"?()=>s.root().toProxy():m==="nodes"?s.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?s[m].toProxy():s[m]:s[m]},set(s,m,h){return s[m]===h||(s[m]=h,(m==="name"||m==="params"||m==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,m){let h=this.index(s),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(s);for(let w of g)this.proxyOf.nodes.splice(h+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],h<C&&(this.indexes[w]=C+g.length);return this.markDirty(),this}insertBefore(s,m){let h=this.index(s),g=h===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(s);for(let v of C)this.proxyOf.nodes.splice(h,0,v);let w;for(let v in this.indexes)w=this.indexes[v],h<=w&&(this.indexes[v]=w+C.length);return this.markDirty(),this}normalize(s,m){if(typeof s=="string")s=p(a(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector)s=[new u(s)];else if(s.name)s=[new f(s)];else if(s.text)s=[new i(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&o(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...s){s=s.reverse();for(let m of s){let h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let m;for(let h in this.indexes)m=this.indexes[h],m>=s&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(s,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(s,h))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((m,h)=>{let g;try{g=s(m,h)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(s)),g})}walkAtRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="atrule"&&s.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(s){return this.walk((m,h)=>{if(m.type==="comment")return s(m,h)})}walkDecls(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&s.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&s.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="rule")return m(h,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 d.registerParse=c=>{a=c},d.registerRule=c=>{u=c},d.registerAtRule=c=>{f=c},d.registerRoot=c=>{l=c},Cn=d,d.default=d,d.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,f.prototype):c.type==="rule"?Object.setPrototypeOf(c,u.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,i.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(s=>{d.rebuild(s)})},Cn}var En,zs;function hi(){if(zs)return En;zs=1;let e=Be(),t,r;class i extends e{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},En=i,i.default=i,En}var xn,qs;function Uo(){if(qs)return xn;qs=1;let e={};return xn=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},xn}var Rn,Vs;function Bo(){if(Vs)return Rn;Vs=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[n]}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 Rn=e,e.default=e,Rn}var Tn,js;function di(){if(js)return Tn;js=1;let e=Bo();class t{constructor(i,n,a){this.processor=i,this.messages=[],this.root=n,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let a=new e(i,n);return this.messages.push(a),a}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return Tn=t,t.default=t,Tn}var Mn,Hs;function bc(){if(Hs)return Mn;Hs=1;let e=39,t=34,r=92,i=47,n=10,a=32,u=12,f=9,l=13,p=91,o=93,d=40,c=41,s=123,m=125,h=59,g=42,C=58,w=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Mn=function(x,M={}){let T=x.css.valueOf(),k=M.ignoreErrors,I,R,te,re,U,P,j,K,$,B,le=T.length,N=0,Ee=[],pe=[];function lt(){return N}function ie(A){throw x.error("Unclosed "+A,N)}function we(){return pe.length===0&&N>=le}function Pe(A){if(pe.length)return pe.pop();if(N>=le)return;let Z=A?A.ignoreUnclosed:!1;switch(I=T.charCodeAt(N),I){case n:case a:case f:case l:case u:{R=N;do R+=1,I=T.charCodeAt(R);while(I===a||I===n||I===f||I===l||I===u);B=["space",T.slice(N,R)],N=R-1;break}case p:case o:case s:case m:case C:case h:case c:{let W=String.fromCharCode(I);B=[W,W,N];break}case d:{if(K=Ee.length?Ee.pop()[1]:"",$=T.charCodeAt(N+1),K==="url"&&$!==e&&$!==t&&$!==a&&$!==n&&$!==f&&$!==u&&$!==l){R=N;do{if(P=!1,R=T.indexOf(")",R+1),R===-1)if(k||Z){R=N;break}else ie("bracket");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),re=T.slice(N,R+1),R===-1||b.test(re)?B=["(","(",N]:(B=["brackets",re,N,R],N=R);break}case e:case t:{te=I===e?"'":'"',R=N;do{if(P=!1,R=T.indexOf(te,R+1),R===-1)if(k||Z){R=N+1;break}else ie("string");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["string",T.slice(N,R+1),N,R],N=R;break}case w:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,U=!0;T.charCodeAt(R+1)===r;)R+=1,U=!U;if(I=T.charCodeAt(R+1),U&&I!==i&&I!==a&&I!==n&&I!==f&&I!==l&&I!==u&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===a&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{I===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(k||Z?R=T.length:ie("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(E.lastIndex=N+1,E.test(T),E.lastIndex===0?R=T.length-1:R=E.lastIndex-2,B=["word",T.slice(N,R+1),N,R],Ee.push(B),N=R);break}}return N++,B}function Oe(A){pe.push(A)}return{back:Oe,endOfFile:we,nextToken:Pe,position:lt}},Mn}var Nn,Gs;function pi(){if(Gs)return Nn;Gs=1;let e=Be();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return Nn=t,t.default=t,e.registerAtRule(t),Nn}var On,Ys;function gt(){if(Ys)return On;Ys=1;let e=Be(),t,r;class i extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,u,f){let l=super.normalize(a);if(u){if(f==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of l)p.raws.before=u.raws.before}return l}removeChild(a,u){let f=this.index(a);return!u&&f===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[f].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},On=i,i.default=i,e.registerRoot(i),On}var In,Xs;function $o(){if(Xs)return In;Xs=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
49
+ `," "];return e.split(t,r)},split(t,r,i){let n=[],a="",u=!1,f=0,l=!1,p="",o=!1;for(let d of t)o?o=!1:d==="\\"?o=!0:l?d===p&&(l=!1):d==='"'||d==="'"?(l=!0,p=d):d==="("?f+=1:d===")"?f>0&&(f-=1):f===0&&r.includes(d)&&(u=!0),u?(a!==""&&n.push(a.trim()),a="",u=!1):a+=d;return(i||a!=="")&&n.push(a.trim()),n}};return In=e,e.default=e,In}var kn,Js;function mi(){if(Js)return kn;Js=1;let e=Be(),t=$o();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let a=this.selector?this.selector.match(/,\s*/):null,u=a?a[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return kn=r,r.default=r,e.registerRule(r),kn}var An,Ks;function vc(){if(Ks)return An;Ks=1;let e=rr(),t=bc(),r=ir(),i=pi(),n=gt(),a=mi(),u={empty:!0,space:!0};function f(p){for(let o=p.length-1;o>=0;o--){let d=p[o],c=d[3]||d[2];if(c)return c}}class l{constructor(o){this.input=o,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let d=new i;d.name=o[1].slice(1),d.name===""&&this.unnamedAtrule(d,o),this.init(d,o[2]);let c,s,m,h=!1,g=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),c=o[0],c==="("||c==="["?w.push(c==="("?")":"]"):c==="{"&&w.length>0?w.push("}"):c===w[w.length-1]&&w.pop(),w.length===0)if(c===";"){d.source.end=this.getPosition(o[2]),d.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(C.length>0){for(m=C.length-1,s=C[m];s&&s[0]==="space";)s=C[--m];s&&(d.source.end=this.getPosition(s[3]||s[2]),d.source.end.offset++)}this.end(o);break}else C.push(o);else C.push(o);if(this.tokenizer.endOfFile()){h=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(d.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(d,"params",C),h&&(o=C[C.length-1],d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(o){let d=this.colon(o);if(d===!1)return;let c=0,s;for(let m=d-1;m>=0&&(s=o[m],!(s[0]!=="space"&&(c+=1,c===2)));m--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(o){let d=0,c,s,m;for(let[h,g]of o.entries()){if(c=g,s=c[0],s==="("&&(d+=1),s===")"&&(d-=1),d===0&&s===":")if(!m)this.doubleColon(c);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=c}return!1}comment(o){let d=new r;this.init(d,o[2]),d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++;let c=o[1].slice(2,-2);if(/^\s*$/.test(c))d.text="",d.raws.left=c,d.raws.right="";else{let s=c.match(/^(\s*)([^]*\S)(\s*)$/);d.text=s[2],d.raws.left=s[1],d.raws.right=s[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(o,d){let c=new e;this.init(c,o[0][2]);let s=o[o.length-1];for(s[0]===";"&&(this.semicolon=!0,o.pop()),c.source.end=this.getPosition(s[3]||s[2]||f(o)),c.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),c.raws.before+=o.shift()[1];for(c.source.start=this.getPosition(o[0][2]),c.prop="";o.length;){let w=o[0][0];if(w===":"||w==="space"||w==="comment")break;c.prop+=o.shift()[1]}c.raws.between="";let m;for(;o.length;)if(m=o.shift(),m[0]===":"){c.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),c.raws.between+=m[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let h=[],g;for(;o.length&&(g=o[0][0],!(g!=="space"&&g!=="comment"));)h.push(o.shift());this.precheckMissedSemicolon(o);for(let w=o.length-1;w>=0;w--){if(m=o[w],m[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(o,w);v=this.spacesFromEnd(o)+v,v!==" !important"&&(c.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=o.slice(0),E="";for(let b=w;b>0;b--){let y=v[b][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=E,o=v)}if(m[0]!=="space"&&m[0]!=="comment")break}o.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(c.raws.between+=h.map(w=>w[1]).join(""),h=[]),this.raw(c,"value",h.concat(o),d),c.value.includes(":")&&!d&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let d=new a;this.init(d,o[2]),d.selector="",d.raws.between="",this.current=d}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(o){let d=this.input.fromOffset(o);return{column:d.col,line:d.line,offset:o}}init(o,d){this.current.push(o),o.source={input:this.input,start:this.getPosition(d)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let d=!1,c=null,s=!1,m=null,h=[],g=o[1].startsWith("--"),C=[],w=o;for(;w;){if(c=w[0],C.push(w),c==="("||c==="[")m||(m=w),h.push(c==="("?")":"]");else if(g&&s&&c==="{")m||(m=w),h.push("}");else if(h.length===0)if(c===";")if(s){this.decl(C,g);return}else break;else if(c==="{"){this.rule(C);return}else if(c==="}"){this.tokenizer.back(C.pop()),d=!0;break}else c===":"&&(s=!0);else c===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),h.length>0&&this.unclosedBracket(m),d&&s){if(!g)for(;C.length&&(w=C[C.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,d,c,s){let m,h,g=c.length,C="",w=!0,v,E;for(let b=0;b<g;b+=1)m=c[b],h=m[0],h==="space"&&b===g-1&&!s?w=!1:h==="comment"?(E=c[b-1]?c[b-1][0]:"empty",v=c[b+1]?c[b+1][0]:"empty",!u[E]&&!u[v]?C.slice(-1)===","?w=!1:C+=m[1]:w=!1):C+=m[1];if(!w){let b=c.reduce((y,S)=>y+S[1],"");o.raws[d]={raw:b,value:C}}o[d]=C}rule(o){o.pop();let d=new a;this.init(d,o[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(d,"selector",o),this.current=d}spacesAndCommentsFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],!(d!=="space"&&d!=="comment"));)c=o.pop()[1]+c;return c}spacesAndCommentsFromStart(o){let d,c="";for(;o.length&&(d=o[0][0],!(d!=="space"&&d!=="comment"));)c+=o.shift()[1];return c}spacesFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],d==="space");)c=o.pop()[1]+c;return c}stringFrom(o,d){let c="";for(let s=d;s<o.length;s++)c+=o[s][1];return o.splice(d,o.length-d),c}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return An=l,An}var Dn,Qs;function gi(){if(Qs)return Dn;Qs=1;let e=Be(),t=vc(),r=nr();function i(n,a){let u=new r(n,a),f=new t(u);try{f.parse()}catch(l){throw l}return f.root}return Dn=i,i.default=i,e.registerParse(i),Dn}var _n,Zs;function Wo(){if(Zs)return _n;Zs=1;let{isClean:e,my:t}=fi(),r=Fo(),i=er(),n=Be(),a=hi(),u=Uo(),f=di(),l=gi(),p=gt(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={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},c={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function h(E){let b=!1,y=o[E.type];return E.type==="decl"?b=E.prop.toLowerCase():E.type==="atrule"&&(b=E.name.toLowerCase()),b&&E.append?[y,y+"-"+b,s,y+"Exit",y+"Exit-"+b]:b?[y,y+"-"+b,y+"Exit",y+"Exit-"+b]:E.append?[y,s,y+"Exit"]:[y,y+"Exit"]}function g(E){let b;return E.type==="document"?b=["Document",s,"DocumentExit"]:E.type==="root"?b=["Root",s,"RootExit"]:b=h(E),{eventIndex:0,events:b,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(b=>C(b)),E}let w={};class v{constructor(b,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=C(y);else if(y instanceof v||y instanceof f)x=C(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=l;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new f(b,x,S),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,y){let S=this.result.lastPlugin;try{y&&y.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=S.postcssPlugin,b.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return b}prepareVisitors(){this.listeners={};let b=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!d[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?b(y,S,y[S][x]):b(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&b(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let y=this.plugins[b],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let y=[g(b)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(b.type==="document"){let x=b.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(b,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>b.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,y=i;b.syntax&&(y=b.syntax.stringify),b.stringifier&&(y=b.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let b of this.plugins){let y=this.runOnRoot(b);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let y of b.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,y){return this.async().then(b,y)}toString(){return this.css}visitSync(b,y){for(let[S,x]of b){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(b){let y=b[b.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){b.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,k]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return k(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(y.iterator!==0){let T=y.iterator,k;for(;k=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!k[e]){k[e]=!0,b.push(g(k));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===s){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}b.pop()}walkSync(b){b[e]=!0;let y=h(b);for(let S of y)if(S===s)b.nodes&&b.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,b.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=E=>{w=E},_n=v,v.default=v,p.registerLazyResult(v),a.registerLazyResult(v),_n}var Ln,eo;function Sc(){if(eo)return Ln;eo=1;let e=Fo(),t=er(),r=Uo(),i=gi(),n=di();class a{constructor(f,l,p){l=l.toString(),this.stringified=!1,this._processor=f,this._css=l,this._opts=p,this._map=void 0;let o,d=t;this.result=new n(this._processor,o,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let s=new e(d,o,this._opts,l);if(s.isMap()){let[m,h]=s.generate();m&&(this.result.css=m),h&&(this.result.map=h)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(f){return this.async().catch(f)}finally(f){return this.async().then(f,f)}sync(){if(this.error)throw this.error;return this.result}then(f,l){return this.async().then(f,l)}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 f,l=i;try{f=l(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=f,f}get[Symbol.toStringTag](){return"NoWorkResult"}}return Ln=a,a.default=a,Ln}var Pn,to;function Cc(){if(to)return Pn;to=1;let e=Sc(),t=Wo(),r=hi(),i=gt();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let f=[];for(let l of u)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))f=f.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)f.push(l);else if(typeof l=="function")f.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return f}process(u,f={}){return!this.plugins.length&&!f.parser&&!f.stringifier&&!f.syntax?new e(this,u,f):new t(this,u,f)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return Pn=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),Pn}var Fn,ro;function Ec(){if(ro)return Fn;ro=1;let e=rr(),t=Po(),r=ir(),i=pi(),n=nr(),a=gt(),u=mi();function f(l,p){if(Array.isArray(l))return l.map(c=>f(c));let{inputs:o,...d}=l;if(o){p=[];for(let c of o){let s={...c,__proto__:n.prototype};s.map&&(s.map={...s.map,__proto__:t.prototype}),p.push(s)}}if(d.nodes&&(d.nodes=l.nodes.map(c=>f(c,p))),d.source){let{inputId:c,...s}=d.source;d.source=s,c!=null&&(d.source.input=p[c])}if(d.type==="root")return new a(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new u(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+l.type)}return Fn=f,f.default=f,Fn}var Un,no;function xc(){if(no)return Un;no=1;let e=ci(),t=rr(),r=Wo(),i=Be(),n=Cc(),a=er(),u=Ec(),f=hi(),l=Bo(),p=ir(),o=pi(),d=di(),c=nr(),s=gi(),m=$o(),h=mi(),g=gt(),C=tr();function w(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return w.plugin=function(E,b){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
50
50
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(E+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
51
- https://www.w3ctech.com/topic/2226`));let T=b(...M);return T.postcssPlugin=E,T.postcssVersion=new n().version,T}let x;return Object.defineProperty(S,"postcss",{get(){return x||(x=S()),x}}),S.process=function(M,T,k){return w([S(k)]).process(M,T)},S},w.stringify=l,w.parse=s,w.fromJSON=c,w.list=m,w.comment=v=>new p(v),w.atRule=v=>new o(v),w.decl=v=>new t(v),w.rule=v=>new f(v),w.root=v=>new g(v),w.document=v=>new h(v),w.CssSyntaxError=e,w.Declaration=t,w.Container=i,w.Processor=n,w.Document=h,w.Comment=p,w.Warning=a,w.AtRule=o,w.Result=d,w.Input=u,w.Rule=f,w.Root=g,w.Node=C,r.registerPostcss(w),Pn=w,w.default=w,Pn}var gc=mc(),G=ic(gc);G.stringify;G.fromJSON;G.plugin;G.parse;G.list;G.document;G.comment;G.atRule;G.rule;G.decl;G.root;G.CssSyntaxError;G.Declaration;G.Container;G.Processor;G.Document;G.Comment;G.Warning;G.AtRule;G.Result;G.Input;G.Rule;G.Root;G.Node;var zn=class e{constructor(...t){de(this,"parentElement",null),de(this,"parentNode",null),de(this,"ownerDocument"),de(this,"firstChild",null),de(this,"lastChild",null),de(this,"previousSibling",null),de(this,"nextSibling",null),de(this,"ELEMENT_NODE",1),de(this,"TEXT_NODE",3),de(this,"nodeType"),de(this,"nodeName"),de(this,"RRNodeType")}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};var ro={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},no={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},_t={},$o={},yc=()=>!!globalThis.Zone;function mi(e){if(_t[e])return _t[e];let t=globalThis[e],r=t.prototype,i=e in ro?ro[e]:void 0,n=!!(i&&i.every(h=>{var a,p;return!!((p=(a=Object.getOwnPropertyDescriptor(r,h))==null?void 0:a.get)!=null&&p.toString().includes("[native code]"))})),l=e in no?no[e]:void 0,c=!!(l&&l.every(h=>{var a;return typeof r[h]=="function"&&((a=r[h])==null?void 0:a.toString().includes("[native code]"))}));if(n&&c&&!yc())return _t[e]=t.prototype,t.prototype;try{let h=document.createElement("iframe");h.style.display="none",document.body.appendChild(h);let a=h.contentWindow;if(!a)return t.prototype;let p=a[e].prototype;if(!p)return h.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(h.classList.add("rr-block"),h.setAttribute("__rrwebUntaintedMutationObserver",""),$o[e]=()=>h.remove()):h.remove(),_t[e]=p}catch{return r}}var Fn={};function fe(e,t,r){var i,n;let l=(i=Fn[e])==null?void 0:i[r];if(l)return l.call(t);let c=mi(e),h=(n=Object.getOwnPropertyDescriptor(c,r))==null?void 0:n.get;return h?((Fn[e]||(Fn[e]={}))[r]=h,h.call(t)):t[r]}var Un={};function Wo(e,t,r){let i=`${e}.${String(r)}`;if(Un[i])return Un[i].bind(t);let l=mi(e)[r];return typeof l!="function"?t[r]:(Un[i]=l,l.bind(t))}function wc(e){return fe("Node",e,"ownerDocument")}function bc(e){return fe("Node",e,"childNodes")}function vc(e){return fe("Node",e,"parentNode")}function Sc(e){return fe("Node",e,"parentElement")}function Cc(e){return fe("Node",e,"textContent")}function Ec(e){return fe("Node",e,"firstChild")}function xc(e){return fe("Node",e,"lastChild")}function Rc(e){return fe("Node",e,"nextSibling")}function Tc(e){return fe("Node",e,"previousSibling")}function Mc(e,t){return Wo("Node",e,"contains")(t)}function Nc(e){return Wo("Node",e,"getRootNode")()}function Oc(e){return!e||!("host"in e)?null:fe("ShadowRoot",e,"host")}function Ic(e){return e.styleSheets}function kc(e){return!e||!("shadowRoot"in e)?null:fe("Element",e,"shadowRoot")}function Dc(e,t){return fe("Element",e,"querySelector")(t)}function Ac(e,t){return fe("Element",e,"querySelectorAll")(t)}function zo(){return[mi("MutationObserver").constructor,$o.MutationObserver??(()=>{})]}var dt=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(dt=()=>new Date().getTime());function $e(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}var A={ownerDocument:wc,childNodes:bc,parentNode:vc,parentElement:Sc,textContent:Cc,firstChild:Ec,lastChild:xc,nextSibling:Rc,previousSibling:Tc,contains:Mc,getRootNode:Nc,host:Oc,styleSheets:Ic,shadowRoot:kc,querySelector:Dc,querySelectorAll:Ac,nowTimestamp:dt,mutationObserverCtor:zo,patch:$e};function se(e,t,r=document){let i={capture:!0,passive:!0};return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}var Ye=`Please stop import mirror directly. Instead of that,\r
51
+ https://www.w3ctech.com/topic/2226`));let T=b(...M);return T.postcssPlugin=E,T.postcssVersion=new n().version,T}let x;return Object.defineProperty(S,"postcss",{get(){return x||(x=S()),x}}),S.process=function(M,T,k){return w([S(k)]).process(M,T)},S},w.stringify=a,w.parse=s,w.fromJSON=u,w.list=m,w.comment=v=>new p(v),w.atRule=v=>new o(v),w.decl=v=>new t(v),w.rule=v=>new h(v),w.root=v=>new g(v),w.document=v=>new f(v),w.CssSyntaxError=e,w.Declaration=t,w.Container=i,w.Processor=n,w.Document=f,w.Comment=p,w.Warning=l,w.AtRule=o,w.Result=d,w.Input=c,w.Rule=h,w.Root=g,w.Node=C,r.registerPostcss(w),Un=w,w.default=w,Un}var Rc=xc(),G=dc(Rc);G.stringify;G.fromJSON;G.plugin;G.parse;G.list;G.document;G.comment;G.atRule;G.rule;G.decl;G.root;G.CssSyntaxError;G.Declaration;G.Container;G.Processor;G.Document;G.Comment;G.Warning;G.AtRule;G.Result;G.Input;G.Rule;G.Root;G.Node;var Vn=class e{constructor(...t){me(this,"parentElement",null),me(this,"parentNode",null),me(this,"ownerDocument"),me(this,"firstChild",null),me(this,"lastChild",null),me(this,"previousSibling",null),me(this,"nextSibling",null),me(this,"ELEMENT_NODE",1),me(this,"TEXT_NODE",3),me(this,"nodeType"),me(this,"nodeName"),me(this,"RRNodeType")}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};var io={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},so={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Lt={},zo={},Tc=()=>!!globalThis.Zone;function yi(e){if(Lt[e])return Lt[e];let t=globalThis[e],r=t.prototype,i=e in io?io[e]:void 0,n=!!(i&&i.every(f=>{var l,p;return!!((p=(l=Object.getOwnPropertyDescriptor(r,f))==null?void 0:l.get)!=null&&p.toString().includes("[native code]"))})),a=e in so?so[e]:void 0,u=!!(a&&a.every(f=>{var l;return typeof r[f]=="function"&&((l=r[f])==null?void 0:l.toString().includes("[native code]"))}));if(n&&u&&!Tc())return Lt[e]=t.prototype,t.prototype;try{let f=document.createElement("iframe");f.style.display="none",document.body.appendChild(f);let l=f.contentWindow;if(!l)return t.prototype;let p=l[e].prototype;if(!p)return f.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(f.classList.add("rr-block"),f.setAttribute("__rrwebUntaintedMutationObserver",""),zo[e]=()=>f.remove()):f.remove(),Lt[e]=p}catch{return r}}var Bn={};function fe(e,t,r){var i,n;let a=(i=Bn[e])==null?void 0:i[r];if(a)return a.call(t);let u=yi(e),f=(n=Object.getOwnPropertyDescriptor(u,r))==null?void 0:n.get;return f?((Bn[e]||(Bn[e]={}))[r]=f,f.call(t)):t[r]}var $n={};function qo(e,t,r){let i=`${e}.${String(r)}`;if($n[i])return $n[i].bind(t);let a=yi(e)[r];return typeof a!="function"?t[r]:($n[i]=a,a.bind(t))}function Mc(e){return fe("Node",e,"ownerDocument")}function Nc(e){return fe("Node",e,"childNodes")}function Oc(e){return fe("Node",e,"parentNode")}function Ic(e){return fe("Node",e,"parentElement")}function kc(e){return fe("Node",e,"textContent")}function Ac(e){return fe("Node",e,"firstChild")}function Dc(e){return fe("Node",e,"lastChild")}function _c(e){return fe("Node",e,"nextSibling")}function Lc(e){return fe("Node",e,"previousSibling")}function Pc(e,t){return qo("Node",e,"contains")(t)}function Fc(e){return qo("Node",e,"getRootNode")()}function Uc(e){return!e||!("host"in e)?null:fe("ShadowRoot",e,"host")}function Bc(e){return e.styleSheets}function $c(e){return!e||!("shadowRoot"in e)?null:fe("Element",e,"shadowRoot")}function Wc(e,t){return fe("Element",e,"querySelector")(t)}function zc(e,t){return fe("Element",e,"querySelectorAll")(t)}function Vo(){return[yi("MutationObserver").constructor,zo.MutationObserver??(()=>{})]}var dt=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(dt=()=>new Date().getTime());function $e(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}var D={ownerDocument:Mc,childNodes:Nc,parentNode:Oc,parentElement:Ic,textContent:kc,firstChild:Ac,lastChild:Dc,nextSibling:_c,previousSibling:Lc,contains:Pc,getRootNode:Fc,host:Uc,styleSheets:Bc,shadowRoot:$c,querySelector:Wc,querySelectorAll:zc,nowTimestamp:dt,mutationObserverCtor:Vo,patch:$e};function se(e,t,r=document){let i={capture:!0,passive:!0};return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}var Ye=`Please stop import mirror directly. Instead of that,\r
52
52
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
53
- or you can use record.mirror to access the mirror instance during recording.`,io={map:{},getId(){return console.error(Ye),-1},getNode(){return console.error(Ye),null},removeNodeFromMap(){console.error(Ye)},has(){return console.error(Ye),!1},reset(){console.error(Ye)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(io=new Proxy(io,{get(e,t,r){return t==="map"&&console.error(Ye),Reflect.get(e,t,r)}}));function pt(e,t,r={}){let i=null,n=0;return function(...l){let c=Date.now();!n&&r.leading===!1&&(n=c);let h=t-(c-n),a=this;h<=0||h>t?(i&&(clearTimeout(i),i=null),n=c,e.apply(a,l)):!i&&r.trailing!==!1&&(i=setTimeout(()=>{n=r.leading===!1?0:Date.now(),i=null,e.apply(a,l)},h))}}function ir(e,t,r,i,n=window){let l=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,i?r:{set(c){setTimeout(()=>{r.set.call(this,c)},0),l&&l.set&&l.set.call(this,c)}}),()=>ir(e,t,l||{},!0)}function qo(e){var t,r,i,n;let l=e.document;return{left:l.scrollingElement?l.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:l.documentElement.scrollLeft||l?.body&&((t=A.parentElement(l.body))==null?void 0:t.scrollLeft)||((r=l?.body)==null?void 0:r.scrollLeft)||0,top:l.scrollingElement?l.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:l?.documentElement.scrollTop||l?.body&&((i=A.parentElement(l.body))==null?void 0:i.scrollTop)||((n=l?.body)==null?void 0:n.scrollTop)||0}}function Vo(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function jo(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ho(e){return e?e.nodeType===e.ELEMENT_NODE?e:A.parentElement(e):null}function oe(e,t,r,i){if(!e)return!1;let n=Ho(e);if(!n)return!1;try{if(typeof t=="string"){if(n.classList.contains(t)||i&&n.closest("."+t)!==null)return!0}else if(Vt(n,t,i))return!0}catch{}return!!(r&&(n.matches(r)||i&&n.closest(r)!==null))}function _c(e,t){return t.getId(e)!==-1}function Bn(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===qt}function Go(e,t){if(ct(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let i=A.parentNode(e);return i&&i.nodeType===e.DOCUMENT_NODE?!1:i?Go(i,t):!0}function qn(e){return!!e.changedTouches}function Lc(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 Yo(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Xo(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Vn(e){return e?e instanceof zn&&"shadowRoot"in e?!!e.shadowRoot:!!A.shadowRoot(e):!1}var jn=class{constructor(){O(this,"id",1),O(this,"styleIDMap",new WeakMap),O(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}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 Jo(e){var t;let r=null;return"getRootNode"in e&&((t=A.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&A.host(A.getRootNode(e))&&(r=A.host(A.getRootNode(e))),r}function Pc(e){let t=e,r;for(;r=Jo(t);)t=r;return t}function Fc(e){let t=A.ownerDocument(e);if(!t)return!1;let r=Pc(e);return A.contains(t,r)}function Ko(e){let t=A.ownerDocument(e);return t?A.contains(t,e)||Fc(e):!1}var U=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(U||{}),_=(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))(_||{}),ae=(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))(ae||{}),Te=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Te||{}),Ze=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ze||{}),Xe=(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))(Xe||{});var Qo=(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))(Qo||{}),so=(e,t)=>`${e}@${t}`,Hn=class{constructor(){O(this,"frozen",!1),O(this,"locked",!1),O(this,"texts",[]),O(this,"attributes",[]),O(this,"attributeMap",new WeakMap),O(this,"removes",[]),O(this,"mapRemoves",[]),O(this,"movedMap",{}),O(this,"addedSet",new Set),O(this,"movedSet",new Set),O(this,"droppedSet",new Set),O(this,"removesSubTreeCache",new Set),O(this,"mutationCb"),O(this,"blockClass"),O(this,"blockSelector"),O(this,"maskTextClass"),O(this,"maskTextSelector"),O(this,"inlineStylesheet"),O(this,"maskInputOptions"),O(this,"maskTextFn"),O(this,"maskInputFn"),O(this,"keepIframeSrcFn"),O(this,"recordCanvas"),O(this,"inlineImages"),O(this,"slimDOMOptions"),O(this,"dataURLOptions"),O(this,"doc"),O(this,"mirror"),O(this,"iframeManager"),O(this,"stylesheetManager"),O(this,"shadowDomManager"),O(this,"canvasManager"),O(this,"processedNodeManager"),O(this,"unattachedDoc"),O(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),O(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set;for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let u of this.movedSet){let s=A.parentNode(u);this.removesSubTreeCache.has(s)&&!this.movedSet.has(s)||this.addedSet.add(u)}let i=null,n=null,l=-1,c=null,h=!1,a=new Set,p=this.addedSet.values(),o=p.next();for(;this.addedSet.size;){if(i!==null&&this.addedSet.has(A.previousSibling(i)))c=i,i=A.previousSibling(i);else{for(this.addedSet.has(o.value)||(o=p.next()),i=o.value;;){if(n=A.parentNode(i),this.addedSet.has(n)){i=n;continue}break}if(a.has(n))n=null;else if(n){if(Ko(n)?(h=oo(this.droppedSet,n)||this.removesSubTreeCache.has(n),h&&oo(this.movedSet,i)&&(h=!1)):h=!0,this.addedSet.has(A.lastChild(n)))i=A.lastChild(n),c=null;else for(;;){if(c=A.nextSibling(i),this.addedSet.has(c)){i=c;continue}break}if(l=ct(n)?this.mirror.getId(Jo(i)):this.mirror.getId(n),l===-1&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let f=A.host(n);l=this.mirror.getId(f)}}}if(this.addedSet.delete(i),!n||l===-1){a.add(i);continue}else if(h){this.droppedSet.add(i);continue}let u=!1;if(i.nodeType===Node.TEXT_NODE){let f=n.tagName;if(f==="TEXTAREA")continue;f==="STYLE"&&r.has(l)&&(u=!0)}let s=c?this.mirror.getId(c):null;for(;s===qt;)c=c&&A.nextSibling(c),s=c&&this.mirror.getId(c);if(s===-1){console.warn("Couldn't record new node. Couldn't find mirror id for nextSibling:",c),i=null;continue}let m=Ke(i,{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:f=>{Yo(f,this.mirror)&&this.iframeManager.addIframe(f),Xo(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),Vn(i)&&this.shadowDomManager.addShadowRoot(A.shadowRoot(i),this.doc)},onIframeLoad:(f,g)=>{this.iframeManager.attachIframe(f,g),this.shadowDomManager.observeAttachShadow(f)},onStylesheetLoad:(f,g)=>{this.stylesheetManager.attachLinkElement(f,g)},cssCaptured:u});m&&(t.push({parentId:l,nextId:s,node:m}),r.add(m.id))}let d={texts:this.texts.map(u=>{let s=u.node,m=A.parentNode(s);return m&&m.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(m),{id:this.mirror.getId(s),value:u.value}}).filter(u=>!r.has(u.id)).filter(u=>this.mirror.has(u.id)),attributes:this.attributes.map(u=>{let{attributes:s}=u;if(typeof s.style=="string"){let m=JSON.stringify(u.styleDiff),f=JSON.stringify(u._unchangedStyles);m.length<s.style.length&&(m+f).split("var(").length===s.style.split("var(").length&&(s.style=u.styleDiff)}return{id:this.mirror.getId(u.node),attributes:s}}).filter(u=>!r.has(u.id)).filter(u=>this.mirror.has(u.id)),removes:this.removes,adds:t};!d.texts.length&&!d.attributes.length&&!d.removes.length&&!d.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(d))}),O(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let i=Array.from(A.childNodes(t),n=>A.textContent(n)||"").join("");r.attributes.value=$t({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:Wt(t),value:i,maskInputFn:this.maskInputFn})}),O(this,"processMutation",t=>{if(!Bn(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=A.textContent(t.target);!oe(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:xo(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,Ho(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,i=ke(r.tagName),n=t.attributeName,l=t.target.getAttribute(n);if(n==="value"){let h=Wt(r);l=$t({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:h,value:l,maskInputFn:this.maskInputFn})}if(oe(t.target,this.blockClass,this.blockSelector,!1)||l===t.oldValue)return;let c=this.attributeMap.get(t.target);if(i==="iframe"&&n==="src"&&!this.keepIframeSrcFn(l))if(!r.contentDocument)n="rr_src";else return;if(c||(c={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(c),this.attributeMap.set(t.target,c)),n==="type"&&i==="input"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Eo(i,n))if(c.attributes[n]=Co(this.doc,i,ke(n),l),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let h=this.unattachedDoc.createElement("span");t.oldValue&&h.setAttribute("style",t.oldValue);for(let a of Array.from(r.style)){let p=r.style.getPropertyValue(a),o=r.style.getPropertyPriority(a);p!==h.style.getPropertyValue(a)||o!==h.style.getPropertyPriority(a)?o===""?c.styleDiff[a]=p:c.styleDiff[a]=[p,o]:c._unchangedStyles[a]=[p,o]}for(let a of Array.from(h.style))r.style.getPropertyValue(a)===""&&(c.styleDiff[a]=!1)}else n==="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(oe(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let i=this.mirror.getId(r),n=ct(t.target)?this.mirror.getId(A.host(t.target)):this.mirror.getId(t.target);oe(t.target,this.blockClass,this.blockSelector,!1)||Bn(r,this.mirror,this.slimDOMOptions)||!_c(r,this.mirror)||(this.addedSet.has(r)?(Gn(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&i===-1||Go(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[so(i,n)]?Gn(this.movedSet,r):(this.removes.push({parentId:n,id:i,isShadow:ct(t.target)&&ft(t.target)?!0:void 0}),Uc(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),O(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Bn(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let i=null;r&&this.mirror.hasNode(r)&&(i=this.mirror.getId(r)),i&&i!==-1&&(this.movedMap[so(this.mirror.getId(t),i)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);oe(t,this.blockClass,this.blockSelector,!1)||(A.childNodes(t).forEach(i=>this.genAdds(i)),Vn(t)&&A.childNodes(A.shadowRoot(t)).forEach(i=>{this.processedNodeManager.add(i,this),this.genAdds(i,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 Gn(e,t){e.delete(t),A.childNodes(t).forEach(r=>Gn(e,r))}function Uc(e,t){let r=[e];for(;r.length;){let i=r.pop();t.has(i)||(t.add(i),A.childNodes(i).forEach(n=>r.push(n)))}}function oo(e,t){return e.size===0?!1:Zo(e,t)}function Zo(e,t){if(e.has(t))return!0;let r=A.parentNode(t);return r?Zo(e,r):!1}var ht;function Bc(e){ht=e}function $c(){ht=void 0}var P=e=>ht?(...r)=>{try{return e(...r)}catch(i){if(ht&&ht(i)===!0)return;throw i}}:e,Fe=[];function yt(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function ea(e,t){let r=new Hn;Fe.push(r),r.init(e);let[i,n]=zo(),l=new i(P(r.processMutations.bind(r)));return l.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[l,n]}function Wc({mousemoveCb:e,sampling:t,doc:r,mirror:i}){if(t.mousemove===!1)return()=>{};let n=typeof t.mousemove=="number"?t.mousemove:50,l=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,c=[],h,a=pt(P(d=>{let u=Date.now()-h;e(c.map(s=>(s.timeOffset-=u,s)),d),c=[],h=null}),l),p=P(pt(P(d=>{let u=yt(d),{clientX:s,clientY:m}=qn(d)?d.changedTouches[0]:d;h||(h=dt()),c.push({x:s,y:m,id:i.getId(u),timeOffset:dt()-h}),a(typeof DragEvent<"u"&&d instanceof DragEvent?_.Drag:d instanceof MouseEvent?_.MouseMove:_.TouchMove)}),n,{trailing:!1})),o=[se("mousemove",p,r),se("touchmove",p,r),se("drag",p,r)];return P(()=>{o.forEach(d=>d())})}function zc({mouseInteractionCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:l}){if(l.mouseInteraction===!1)return()=>{};let c=l.mouseInteraction===!0||l.mouseInteraction===void 0?{}:l.mouseInteraction,h=[],a=null,p=o=>d=>{let u=yt(d);if(oe(u,i,n,!0))return;let s=null,m=o;if("pointerType"in d){switch(d.pointerType){case"mouse":s=Te.Mouse;break;case"touch":s=Te.Touch;break;case"pen":s=Te.Pen;break}s===Te.Touch?ae[o]===ae.MouseDown?m="TouchStart":ae[o]===ae.MouseUp&&(m="TouchEnd"):Te.Pen}else qn(d)&&(s=Te.Touch);s!==null?(a=s,(m.startsWith("Touch")&&s===Te.Touch||m.startsWith("Mouse")&&s===Te.Mouse)&&(s=null)):ae[o]===ae.Click&&(s=a,a=null);let f=qn(d)?d.changedTouches[0]:d;if(!f)return;let g=r.getId(u),{clientX:C,clientY:w}=f;P(e)({type:ae[m],id:g,x:C,y:w,...s!==null&&{pointerType:s}})};return Object.keys(ae).filter(o=>Number.isNaN(Number(o))&&!o.endsWith("_Departed")&&c[o]!==!1).forEach(o=>{let d=ke(o),u=p(o);if(window.PointerEvent)switch(ae[o]){case ae.MouseDown:case ae.MouseUp:d=d.replace("mouse","pointer");break;case ae.TouchStart:case ae.TouchEnd:return}h.push(se(d,u,t))}),P(()=>{h.forEach(o=>o())})}function ta({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:l}){let c=P(pt(P(h=>{let a=yt(h);if(!a||oe(a,i,n,!0))return;let p=r.getId(a);if(a===t&&t.defaultView){let o=qo(t.defaultView);e({id:p,x:o.left,y:o.top})}else e({id:p,x:a.scrollLeft,y:a.scrollTop})}),l.scroll||100));return se("scroll",c,t)}function qc({viewportResizeCb:e},{win:t}){let r=-1,i=-1,n=P(pt(P(()=>{let l=Vo(),c=jo();(r!==l||i!==c)&&(e({width:Number(c),height:Number(l)}),r=l,i=c)}),200));return se("resize",n,t)}var Vc=["INPUT","TEXTAREA","SELECT"],ao=new WeakMap;function jc({inputCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,ignoreClass:l,ignoreSelector:c,maskInputOptions:h,maskInputFn:a,sampling:p,userTriggeredOnInput:o}){function d(w){let v=yt(w),E=w.isTrusted,b=v&&v.tagName;if(v&&b==="OPTION"&&(v=A.parentElement(v)),!v||!b||Vc.indexOf(b)<0||oe(v,i,n,!0)||v.classList.contains(l)||c&&v.matches(c))return;let y=v.value,S=!1,x=Wt(v)||"";x==="radio"||x==="checkbox"?S=v.checked:(h[b.toLowerCase()]||h[x])&&(y=$t({element:v,maskInputOptions:h,tagName:b,type:x,value:y,maskInputFn:a})),u(v,o?{text:y,isChecked:S,userTriggered:E}:{text:y,isChecked:S});let M=v.name;x==="radio"&&M&&S&&t.querySelectorAll(`input[type="radio"][name="${M}"]`).forEach(T=>{if(T!==v){let k=T.value;u(T,o?{text:k,isChecked:!S,userTriggered:!1}:{text:k,isChecked:!S})}})}function u(w,v){let E=ao.get(w);if(!E||E.text!==v.text||E.isChecked!==v.isChecked){ao.set(w,v);let b=r.getId(w);P(e)({...v,id:b})}}let m=(p.input==="last"?["change"]:["input","change"]).map(w=>se(w,P(d),t)),f=t.defaultView;if(!f)return()=>{m.forEach(w=>w())};let g=f.Object.getOwnPropertyDescriptor(f.HTMLInputElement.prototype,"value"),C=[[f.HTMLInputElement.prototype,"value"],[f.HTMLInputElement.prototype,"checked"],[f.HTMLSelectElement.prototype,"value"],[f.HTMLTextAreaElement.prototype,"value"],[f.HTMLSelectElement.prototype,"selectedIndex"],[f.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...C.map(w=>ir(w[0],w[1],{set(){P(d)({target:this,isTrusted:!1})}},!1,f))),P(()=>{m.forEach(w=>w())})}function jt(e){let t=[];function r(i,n){if(Lt("CSSGroupingRule")&&i.parentRule instanceof CSSGroupingRule||Lt("CSSMediaRule")&&i.parentRule instanceof CSSMediaRule||Lt("CSSSupportsRule")&&i.parentRule instanceof CSSSupportsRule||Lt("CSSConditionRule")&&i.parentRule instanceof CSSConditionRule){let c=Array.from(i.parentRule.cssRules).indexOf(i);return n.unshift(c),r(i.parentRule,n)}else if(i.parentStyleSheet){let c=Array.from(i.parentStyleSheet.cssRules).indexOf(i);n.unshift(c)}return n}return r(e,t)}function Ie(e,t,r){let i,n;return e?(e.ownerNode?i=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:i}):{}}function Hc({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};let n=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:P((o,d,u)=>{let[s,m]=u,{id:f,styleId:g}=Ie(d,t,r.styleMirror);return(f&&f!==-1||g&&g!==-1)&&e({id:f,styleId:g,adds:[{rule:s,index:m}]}),o.apply(d,u)})}),i.CSSStyleSheet.prototype.addRule=function(o,d,u=this.cssRules.length){let s=`${o} { ${d} }`;return i.CSSStyleSheet.prototype.insertRule.apply(this,[s,u])};let l=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(l,{apply:P((o,d,u)=>{let[s]=u,{id:m,styleId:f}=Ie(d,t,r.styleMirror);return(m&&m!==-1||f&&f!==-1)&&e({id:m,styleId:f,removes:[{index:s}]}),o.apply(d,u)})}),i.CSSStyleSheet.prototype.removeRule=function(o){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[o])};let c;i.CSSStyleSheet.prototype.replace&&(c=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:P((o,d,u)=>{let[s]=u,{id:m,styleId:f}=Ie(d,t,r.styleMirror);return(m&&m!==-1||f&&f!==-1)&&e({id:m,styleId:f,replace:s}),o.apply(d,u)})}));let h;i.CSSStyleSheet.prototype.replaceSync&&(h=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(h,{apply:P((o,d,u)=>{let[s]=u,{id:m,styleId:f}=Ie(d,t,r.styleMirror);return(m&&m!==-1||f&&f!==-1)&&e({id:m,styleId:f,replaceSync:s}),o.apply(d,u)})}));let a={};Pt("CSSGroupingRule")?a.CSSGroupingRule=i.CSSGroupingRule:(Pt("CSSMediaRule")&&(a.CSSMediaRule=i.CSSMediaRule),Pt("CSSConditionRule")&&(a.CSSConditionRule=i.CSSConditionRule),Pt("CSSSupportsRule")&&(a.CSSSupportsRule=i.CSSSupportsRule));let p={};return Object.entries(a).forEach(([o,d])=>{p[o]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(p[o].insertRule,{apply:P((u,s,m)=>{let[f,g]=m,{id:C,styleId:w}=Ie(s.parentStyleSheet,t,r.styleMirror);return(C&&C!==-1||w&&w!==-1)&&e({id:C,styleId:w,adds:[{rule:f,index:[...jt(s),g||0]}]}),u.apply(s,m)})}),d.prototype.deleteRule=new Proxy(p[o].deleteRule,{apply:P((u,s,m)=>{let[f]=m,{id:g,styleId:C}=Ie(s.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||C&&C!==-1)&&e({id:g,styleId:C,removes:[{index:[...jt(s),f]}]}),u.apply(s,m)})})}),P(()=>{i.CSSStyleSheet.prototype.insertRule=n,i.CSSStyleSheet.prototype.deleteRule=l,c&&(i.CSSStyleSheet.prototype.replace=c),h&&(i.CSSStyleSheet.prototype.replaceSync=h),Object.entries(a).forEach(([o,d])=>{d.prototype.insertRule=p[o].insertRule,d.prototype.deleteRule=p[o].deleteRule})})}function ra({mirror:e,stylesheetManager:t},r){var i,n,l;let c=null;r.nodeName==="#document"?c=e.getId(r):c=e.getId(A.host(r));let h=r.nodeName==="#document"?(i=r.defaultView)==null?void 0:i.Document:(l=(n=r.ownerDocument)==null?void 0:n.defaultView)==null?void 0:l.ShadowRoot,a=h?.prototype?Object.getOwnPropertyDescriptor(h?.prototype,"adoptedStyleSheets"):void 0;return c===null||c===-1||!h||!a?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var p;return(p=a.get)==null?void 0:p.call(this)},set(p){var o;let d=(o=a.set)==null?void 0:o.call(this,p);if(c!==null&&c!==-1)try{t.adoptStyleSheets(p,c)}catch{}return d}}),P(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function Gc({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:i},{win:n}){let l=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(l,{apply:P((h,a,p)=>{var o;let[d,u,s]=p;if(r.has(d))return l.apply(a,[d,u,s]);let{id:m,styleId:f}=Ie((o=a.parentRule)==null?void 0:o.parentStyleSheet,t,i.styleMirror);return(m&&m!==-1||f&&f!==-1)&&e({id:m,styleId:f,set:{property:d,value:u,priority:s},index:jt(a.parentRule)}),h.apply(a,p)})});let c=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:P((h,a,p)=>{var o;let[d]=p;if(r.has(d))return c.apply(a,[d]);let{id:u,styleId:s}=Ie((o=a.parentRule)==null?void 0:o.parentStyleSheet,t,i.styleMirror);return(u&&u!==-1||s&&s!==-1)&&e({id:u,styleId:s,remove:{property:d},index:jt(a.parentRule)}),h.apply(a,p)})}),P(()=>{n.CSSStyleDeclaration.prototype.setProperty=l,n.CSSStyleDeclaration.prototype.removeProperty=c})}function Yc({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:n,doc:l}){let c=P(a=>pt(P(p=>{let o=yt(p);if(!o||oe(o,t,r,!0))return;let{currentTime:d,volume:u,muted:s,playbackRate:m,loop:f}=o;e({type:a,id:i.getId(o),currentTime:d,volume:u,muted:s,playbackRate:m,loop:f})}),n.media||500)),h=[se("play",c(Xe.Play),l),se("pause",c(Xe.Pause),l),se("seeked",c(Xe.Seeked),l),se("volumechange",c(Xe.VolumeChange),l),se("ratechange",c(Xe.RateChange),l)];return P(()=>{h.forEach(a=>a())})}function Xc({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let i=[],n=new WeakMap,l=r.FontFace;r.FontFace=function(a,p,o){let d=new l(a,p,o);return n.set(d,{family:a,buffer:typeof p!="string",descriptors:o,fontSource:typeof p=="string"?p:JSON.stringify(Array.from(new Uint8Array(p)))}),d};let c=$e(t.fonts,"add",function(h){return function(a){return setTimeout(P(()=>{let p=n.get(a);p&&(e(p),n.delete(a))}),0),h.apply(this,[a])}});return i.push(()=>{r.FontFace=l}),i.push(c),P(()=>{i.forEach(h=>h())})}function Jc(e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,selectionCb:l}=e,c=!0,h=P(()=>{let a=t.getSelection();if(!a||c&&a?.isCollapsed)return;c=a.isCollapsed||!1;let p=[],o=a.rangeCount||0;for(let d=0;d<o;d++){let u=a.getRangeAt(d),{startContainer:s,startOffset:m,endContainer:f,endOffset:g}=u;oe(s,i,n,!0)||oe(f,i,n,!0)||p.push({start:r.getId(s),startOffset:m,end:r.getId(f),endOffset:g})}l({ranges:p})});return h(),se("selectionchange",h)}function Kc({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:$e(r.customElements,"define",function(n){return function(l,c,h){try{t({define:{name:l}})}catch{console.warn(`Custom element callback failed for ${l}`)}return n.apply(this,[l,c,h])}})}function Qc(e,t){let{mutationCb:r,mousemoveCb:i,mouseInteractionCb:n,scrollCb:l,viewportResizeCb:c,inputCb:h,mediaInteractionCb:a,styleSheetRuleCb:p,styleDeclarationCb:o,canvasMutationCb:d,fontCb:u,selectionCb:s,customElementCb:m}=e;e.mutationCb=(...f)=>{t.mutation&&t.mutation(...f),r(...f)},e.mousemoveCb=(...f)=>{t.mousemove&&t.mousemove(...f),i(...f)},e.mouseInteractionCb=(...f)=>{t.mouseInteraction&&t.mouseInteraction(...f),n(...f)},e.scrollCb=(...f)=>{t.scroll&&t.scroll(...f),l(...f)},e.viewportResizeCb=(...f)=>{t.viewportResize&&t.viewportResize(...f),c(...f)},e.inputCb=(...f)=>{t.input&&t.input(...f),h(...f)},e.mediaInteractionCb=(...f)=>{t.mediaInteaction&&t.mediaInteaction(...f),a(...f)},e.styleSheetRuleCb=(...f)=>{t.styleSheetRule&&t.styleSheetRule(...f),p(...f)},e.styleDeclarationCb=(...f)=>{t.styleDeclaration&&t.styleDeclaration(...f),o(...f)},e.canvasMutationCb=(...f)=>{t.canvasMutation&&t.canvasMutation(...f),d(...f)},e.fontCb=(...f)=>{t.font&&t.font(...f),u(...f)},e.selectionCb=(...f)=>{t.selection&&t.selection(...f),s(...f)},e.customElementCb=(...f)=>{t.customElement&&t.customElement(...f),m(...f)}}function Zc(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};Qc(e,t);let i,n=()=>{};e.recordDOM&&([i,n]=ea(e,e.doc));let l=Wc(e),c=zc(e),h=ta(e),a=qc(e,{win:r}),p=jc(e),o=Yc(e),d=()=>{},u=()=>{},s=()=>{},m=()=>{};e.recordDOM&&(d=Hc(e,{win:r}),u=ra(e,e.doc),s=Gc(e,{win:r}),e.collectFonts&&(m=Xc(e)));let f=Jc(e),g=Kc(e),C=[];for(let w of e.plugins)C.push(w.observer(w.callback,r,w.options));return P(()=>{Fe.forEach(w=>w.reset()),i?.disconnect(),n(),l(),c(),h(),a(),p(),o(),d(),u(),s(),m(),f(),g(),C.forEach(w=>w())})}function Lt(e){return typeof window[e]<"u"}function Pt(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Ht=class{constructor(t){O(this,"iframeIdToRemoteIdMap",new WeakMap),O(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,i,n){let l=i||this.getIdToRemoteIdMap(t),c=n||this.getRemoteIdToIdMap(t),h=l.get(r);return h||(h=this.generateIdFn(),l.set(r,h),c.set(h,r)),h}getIds(t,r){let i=this.getIdToRemoteIdMap(t),n=this.getRemoteIdToIdMap(t);return r.map(l=>this.getId(t,l,i,n))}getRemoteId(t,r,i){let n=i||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let l=n.get(r);return l||-1}getRemoteIds(t,r){let i=this.getRemoteIdToIdMap(t);return r.map(n=>this.getRemoteId(t,n,i))}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}},Yn=class{constructor(t){O(this,"iframes",new WeakMap),O(this,"crossOriginIframeMap",new WeakMap),O(this,"crossOriginIframeMirror",new Ht(So)),O(this,"crossOriginIframeStyleMirror"),O(this,"crossOriginIframeRootIdMap",new WeakMap),O(this,"mirror"),O(this,"mutationCb"),O(this,"wrappedEmit"),O(this,"loadListener"),O(this,"stylesheetManager"),O(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ht(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 i,n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=t.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(n=this.loadListener)==null||n.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let n=this.crossOriginIframeMap.get(t.source);if(!n)return;let l=this.transformCrossOriginEvent(n,r.data.event);l&&this.wrappedEmit(l,r.data.isCheckout)}transformCrossOriginEvent(t,r){var i;switch(r.type){case U.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:U.IncrementalSnapshot,data:{source:_.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case U.Meta:case U.Load:case U.DomContentLoaded:return!1;case U.Plugin:return r;case U.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case U.IncrementalSnapshot:switch(r.data.source){case _.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);let l=this.crossOriginIframeRootIdMap.get(t);l&&this.patchRootIdOnNode(n.node,l)}),r.data.removes.forEach(n=>{this.replaceIds(n,t,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,t,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case _.Drag:case _.TouchMove:case _.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case _.ViewportResize:return!1;case _.MediaInteraction:case _.MouseInteraction:case _.Scroll:case _.CanvasMutation:case _.Input:return this.replaceIds(r.data,t,["id"]),r;case _.StyleSheetRule:case _.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case _.Font:return r;case _.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"])}),r;case _.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(i=r.data.styles)==null||i.forEach(n=>{this.replaceStyleIds(n,t,["styleId"])}),r}}return!1}replace(t,r,i,n){for(let l of n)!Array.isArray(r[l])&&typeof r[l]!="number"||(Array.isArray(r[l])?r[l]=t.getIds(i,r[l]):r[l]=t.getId(i,r[l]));return r}replaceIds(t,r,i){return this.replace(this.crossOriginIframeMirror,t,r,i)}replaceStyleIds(t,r,i){return this.replace(this.crossOriginIframeStyleMirror,t,r,i)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(i=>{this.replaceIdOnNode(i,r)})}patchRootIdOnNode(t,r){t.type!==Qo.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(i=>{this.patchRootIdOnNode(i,r)})}},Xn=class{constructor(t){O(this,"shadowDoms",new WeakSet),O(this,"mutationCb"),O(this,"scrollCb"),O(this,"bypassOptions"),O(this,"mirror"),O(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(!ft(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[i]=ea({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>i.disconnect()),this.restoreHandlers.push(ta({...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(A.host(t))),this.restoreHandlers.push(ra({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let i=this;this.restoreHandlers.push($e(t.prototype,"attachShadow",function(n){return function(l){let c=n.call(this,l),h=A.shadowRoot(this);return h&&Ko(this)&&i.addShadowRoot(h,r),c}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ef=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(ut=0;ut<Qe.length;ut++)ef[Qe.charCodeAt(ut)]=ut;var ut,tf=function(e){var t=new Uint8Array(e),r,i=t.length,n="";for(r=0;r<i;r+=3)n+=Qe[t[r]>>2],n+=Qe[(t[r]&3)<<4|t[r+1]>>4],n+=Qe[(t[r+1]&15)<<2|t[r+2]>>6],n+=Qe[t[r+2]&63];return i%3===2?n=n.substring(0,n.length-1)+"=":i%3===1&&(n=n.substring(0,n.length-2)+"=="),n};var lo=new Map;function rf(e,t){let r=lo.get(e);return r||(r=new Map,lo.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var na=(e,t,r)=>{if(!e||!(sa(e,t)||typeof e=="object"))return;let i=e.constructor.name,n=rf(r,i),l=n.indexOf(e);return l===-1&&(l=n.length,n.push(e)),l};function Ft(e,t,r){if(e instanceof Array)return e.map(i=>Ft(i,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let i=e.constructor.name,n=tf(e);return{rr_type:i,base64:n}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ft(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let i=e.constructor.name,{src:n}=e;return{rr_type:i,src:n}}else if(e instanceof HTMLCanvasElement){let i="HTMLImageElement",n=e.toDataURL();return{rr_type:i,src:n}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ft(e.data,t,r),e.width,e.height]};if(sa(e,t)||typeof e=="object"){let i=e.constructor.name,n=na(e,t,r);return{rr_type:i,index:n}}}}return e}var ia=(e,t,r)=>e.map(i=>Ft(i,t,r)),sa=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function").find(n=>e instanceof t[n]);function nf(e,t,r,i){let n=[],l=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let c of l)try{if(typeof t.CanvasRenderingContext2D.prototype[c]!="function")continue;let h=$e(t.CanvasRenderingContext2D.prototype,c,function(a){return function(...p){return oe(this.canvas,r,i,!0)||setTimeout(()=>{let o=ia(p,t,this);e(this.canvas,{type:Ze["2D"],property:c,args:o})},0),a.apply(this,p)}});n.push(h)}catch{let h=ir(t.CanvasRenderingContext2D.prototype,c,{set(a){e(this.canvas,{type:Ze["2D"],property:c,args:[a],setter:!0})}});n.push(h)}return()=>{n.forEach(c=>c())}}function sf(e){return e==="experimental-webgl"?"webgl":e}function uo(e,t,r,i){let n=[];try{let l=$e(e.HTMLCanvasElement.prototype,"getContext",function(c){return function(h,...a){if(!oe(this,t,r,!0)){let p=sf(h);if("__context"in this||(this.__context=p),i&&["webgl","webgl2"].includes(p))if(a[0]&&typeof a[0]=="object"){let o=a[0];o.preserveDrawingBuffer||(o.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return c.apply(this,[h,...a])}});n.push(l)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(l=>l())}}function co(e,t,r,i,n,l){let c=[],h=Object.getOwnPropertyNames(e);for(let a of h)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof e[a]!="function")continue;let p=$e(e,a,function(o){return function(...d){let u=o.apply(this,d);if(na(u,l,this),"tagName"in this.canvas&&!oe(this.canvas,i,n,!0)){let s=ia(d,l,this),m={type:t,property:a,args:s};r(this.canvas,m)}return u}});c.push(p)}catch{let p=ir(e,a,{set(o){r(this.canvas,{type:t,property:a,args:[o],setter:!0})}});c.push(p)}return c}function of(e,t,r,i){let n=[];return typeof t.WebGLRenderingContext<"u"&&n.push(...co(t.WebGLRenderingContext.prototype,Ze.WebGL,e,r,i,t)),typeof t.WebGL2RenderingContext<"u"&&n.push(...co(t.WebGL2RenderingContext.prototype,Ze.WebGL2,e,r,i,t)),()=>{n.forEach(l=>l())}}var oa=`(function() {
53
+ or you can use record.mirror to access the mirror instance during recording.`,oo={map:{},getId(){return console.error(Ye),-1},getNode(){return console.error(Ye),null},removeNodeFromMap(){console.error(Ye)},has(){return console.error(Ye),!1},reset(){console.error(Ye)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(oo=new Proxy(oo,{get(e,t,r){return t==="map"&&console.error(Ye),Reflect.get(e,t,r)}}));function pt(e,t,r={}){let i=null,n=0;return function(...a){let u=Date.now();!n&&r.leading===!1&&(n=u);let f=t-(u-n),l=this;f<=0||f>t?(i&&(clearTimeout(i),i=null),n=u,e.apply(l,a)):!i&&r.trailing!==!1&&(i=setTimeout(()=>{n=r.leading===!1?0:Date.now(),i=null,e.apply(l,a)},f))}}function sr(e,t,r,i,n=window){let a=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,i?r:{set(u){setTimeout(()=>{r.set.call(this,u)},0),a&&a.set&&a.set.call(this,u)}}),()=>sr(e,t,a||{},!0)}function jo(e){var t,r,i,n;let a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:a.documentElement.scrollLeft||a?.body&&((t=D.parentElement(a.body))==null?void 0:t.scrollLeft)||((r=a?.body)==null?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:a?.documentElement.scrollTop||a?.body&&((i=D.parentElement(a.body))==null?void 0:i.scrollTop)||((n=a?.body)==null?void 0:n.scrollTop)||0}}function Ho(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Go(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Yo(e){return e?e.nodeType===e.ELEMENT_NODE?e:D.parentElement(e):null}function oe(e,t,r,i){if(!e)return!1;let n=Yo(e);if(!n)return!1;try{if(typeof t=="string"){if(n.classList.contains(t)||i&&n.closest("."+t)!==null)return!0}else if(jt(n,t,i))return!0}catch{}return!!(r&&(n.matches(r)||i&&n.closest(r)!==null))}function qc(e,t){return t.getId(e)!==-1}function Wn(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===Vt}function Xo(e,t){if(ct(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let i=D.parentNode(e);return i&&i.nodeType===e.DOCUMENT_NODE?!1:i?Xo(i,t):!0}function jn(e){return!!e.changedTouches}function Vc(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 Jo(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Ko(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Hn(e){return e?e instanceof Vn&&"shadowRoot"in e?!!e.shadowRoot:!!D.shadowRoot(e):!1}var Gn=class{constructor(){O(this,"id",1),O(this,"styleIDMap",new WeakMap),O(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}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 Qo(e){var t;let r=null;return"getRootNode"in e&&((t=D.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&D.host(D.getRootNode(e))&&(r=D.host(D.getRootNode(e))),r}function jc(e){let t=e,r;for(;r=Qo(t);)t=r;return t}function Hc(e){let t=D.ownerDocument(e);if(!t)return!1;let r=jc(e);return D.contains(t,r)}function Zo(e){let t=D.ownerDocument(e);return t?D.contains(t,e)||Hc(e):!1}var _=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(_||{}),L=(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))(L||{}),ae=(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))(ae||{}),Me=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Me||{}),Ze=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ze||{}),Xe=(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))(Xe||{});var ea=(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))(ea||{}),ao=(e,t)=>`${e}@${t}`,Yn=class{constructor(){O(this,"frozen",!1),O(this,"locked",!1),O(this,"texts",[]),O(this,"attributes",[]),O(this,"attributeMap",new WeakMap),O(this,"removes",[]),O(this,"mapRemoves",[]),O(this,"movedMap",{}),O(this,"addedSet",new Set),O(this,"movedSet",new Set),O(this,"droppedSet",new Set),O(this,"removesSubTreeCache",new Set),O(this,"mutationCb"),O(this,"blockClass"),O(this,"blockSelector"),O(this,"maskTextClass"),O(this,"maskTextSelector"),O(this,"inlineStylesheet"),O(this,"maskInputOptions"),O(this,"maskTextFn"),O(this,"maskInputFn"),O(this,"keepIframeSrcFn"),O(this,"recordCanvas"),O(this,"inlineImages"),O(this,"slimDOMOptions"),O(this,"dataURLOptions"),O(this,"doc"),O(this,"mirror"),O(this,"iframeManager"),O(this,"stylesheetManager"),O(this,"shadowDomManager"),O(this,"canvasManager"),O(this,"processedNodeManager"),O(this,"unattachedDoc"),O(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),O(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set;for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let c of this.movedSet){let s=D.parentNode(c);this.removesSubTreeCache.has(s)&&!this.movedSet.has(s)||this.addedSet.add(c)}let i=null,n=null,a=-1,u=null,f=!1,l=new Set,p=this.addedSet.values(),o=p.next();for(;this.addedSet.size;){if(i!==null&&this.addedSet.has(D.previousSibling(i)))u=i,i=D.previousSibling(i);else{for(this.addedSet.has(o.value)||(o=p.next()),i=o.value;;){if(n=D.parentNode(i),this.addedSet.has(n)){i=n;continue}break}if(l.has(n))n=null;else if(n){if(Zo(n)?(f=lo(this.droppedSet,n)||this.removesSubTreeCache.has(n),f&&lo(this.movedSet,i)&&(f=!1)):f=!0,this.addedSet.has(D.lastChild(n)))i=D.lastChild(n),u=null;else for(;;){if(u=D.nextSibling(i),this.addedSet.has(u)){i=u;continue}break}if(a=ct(n)?this.mirror.getId(Qo(i)):this.mirror.getId(n),a===-1&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let h=D.host(n);a=this.mirror.getId(h)}}}if(this.addedSet.delete(i),!n||a===-1){l.add(i);continue}else if(f){this.droppedSet.add(i);continue}let c=!1;if(i.nodeType===Node.TEXT_NODE){let h=n.tagName;if(h==="TEXTAREA")continue;h==="STYLE"&&r.has(a)&&(c=!0)}let s=u?this.mirror.getId(u):null;for(;s===Vt;)u=u&&D.nextSibling(u),s=u&&this.mirror.getId(u);if(s===-1){console.warn("Couldn't record new node. Couldn't find mirror id for nextSibling:",u),i=null;continue}let m=Ke(i,{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:h=>{Jo(h,this.mirror)&&this.iframeManager.addIframe(h),Ko(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),Hn(i)&&this.shadowDomManager.addShadowRoot(D.shadowRoot(i),this.doc)},onIframeLoad:(h,g)=>{this.iframeManager.attachIframe(h,g),this.shadowDomManager.observeAttachShadow(h)},onStylesheetLoad:(h,g)=>{this.stylesheetManager.attachLinkElement(h,g)},cssCaptured:c});m&&(t.push({parentId:a,nextId:s,node:m}),r.add(m.id))}let d={texts:this.texts.map(c=>{let s=c.node,m=D.parentNode(s);return m&&m.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(m),{id:this.mirror.getId(s),value:c.value}}).filter(c=>!r.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{let{attributes:s}=c;if(typeof s.style=="string"){let m=JSON.stringify(c.styleDiff),h=JSON.stringify(c._unchangedStyles);m.length<s.style.length&&(m+h).split("var(").length===s.style.split("var(").length&&(s.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:s}}).filter(c=>!r.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!d.texts.length&&!d.attributes.length&&!d.removes.length&&!d.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(d))}),O(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let i=Array.from(D.childNodes(t),n=>D.textContent(n)||"").join("");r.attributes.value=Wt({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:zt(t),value:i,maskInputFn:this.maskInputFn})}),O(this,"processMutation",t=>{if(!Wn(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=D.textContent(t.target);!oe(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:To(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,Yo(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,i=ke(r.tagName),n=t.attributeName,a=t.target.getAttribute(n);if(n==="value"){let f=zt(r);a=Wt({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:f,value:a,maskInputFn:this.maskInputFn})}if(oe(t.target,this.blockClass,this.blockSelector,!1)||a===t.oldValue)return;let u=this.attributeMap.get(t.target);if(i==="iframe"&&n==="src"&&!this.keepIframeSrcFn(a))if(!r.contentDocument)n="rr_src";else return;if(u||(u={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(u),this.attributeMap.set(t.target,u)),n==="type"&&i==="input"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Ro(i,n))if(u.attributes[n]=xo(this.doc,i,ke(n),a),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let f=this.unattachedDoc.createElement("span");t.oldValue&&f.setAttribute("style",t.oldValue);for(let l of Array.from(r.style)){let p=r.style.getPropertyValue(l),o=r.style.getPropertyPriority(l);p!==f.style.getPropertyValue(l)||o!==f.style.getPropertyPriority(l)?o===""?u.styleDiff[l]=p:u.styleDiff[l]=[p,o]:u._unchangedStyles[l]=[p,o]}for(let l of Array.from(f.style))r.style.getPropertyValue(l)===""&&(u.styleDiff[l]=!1)}else n==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?u.attributes.rr_open_mode="modal":u.attributes.rr_open_mode="non-modal");break}case"childList":{if(oe(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let i=this.mirror.getId(r),n=ct(t.target)?this.mirror.getId(D.host(t.target)):this.mirror.getId(t.target);oe(t.target,this.blockClass,this.blockSelector,!1)||Wn(r,this.mirror,this.slimDOMOptions)||!qc(r,this.mirror)||(this.addedSet.has(r)?(Xn(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&i===-1||Xo(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[ao(i,n)]?Xn(this.movedSet,r):(this.removes.push({parentId:n,id:i,isShadow:ct(t.target)&&ft(t.target)?!0:void 0}),Gc(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),O(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Wn(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let i=null;r&&this.mirror.hasNode(r)&&(i=this.mirror.getId(r)),i&&i!==-1&&(this.movedMap[ao(this.mirror.getId(t),i)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);oe(t,this.blockClass,this.blockSelector,!1)||(D.childNodes(t).forEach(i=>this.genAdds(i)),Hn(t)&&D.childNodes(D.shadowRoot(t)).forEach(i=>{this.processedNodeManager.add(i,this),this.genAdds(i,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 Xn(e,t){e.delete(t),D.childNodes(t).forEach(r=>Xn(e,r))}function Gc(e,t){let r=[e];for(;r.length;){let i=r.pop();t.has(i)||(t.add(i),D.childNodes(i).forEach(n=>r.push(n)))}}function lo(e,t){return e.size===0?!1:ta(e,t)}function ta(e,t){if(e.has(t))return!0;let r=D.parentNode(t);return r?ta(e,r):!1}var ht;function Yc(e){ht=e}function Xc(){ht=void 0}var F=e=>ht?(...r)=>{try{return e(...r)}catch(i){if(ht&&ht(i)===!0)return;throw i}}:e,Fe=[];function yt(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function ra(e,t){let r=new Yn;Fe.push(r),r.init(e);let[i,n]=Vo(),a=new i(F(r.processMutations.bind(r)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[a,n]}function Jc({mousemoveCb:e,sampling:t,doc:r,mirror:i}){if(t.mousemove===!1)return()=>{};let n=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,u=[],f,l=pt(F(d=>{let c=Date.now()-f;e(u.map(s=>(s.timeOffset-=c,s)),d),u=[],f=null}),a),p=F(pt(F(d=>{let c=yt(d),{clientX:s,clientY:m}=jn(d)?d.changedTouches[0]:d;f||(f=dt()),u.push({x:s,y:m,id:i.getId(c),timeOffset:dt()-f}),l(typeof DragEvent<"u"&&d instanceof DragEvent?L.Drag:d instanceof MouseEvent?L.MouseMove:L.TouchMove)}),n,{trailing:!1})),o=[se("mousemove",p,r),se("touchmove",p,r),se("drag",p,r)];return F(()=>{o.forEach(d=>d())})}function Kc({mouseInteractionCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:a}){if(a.mouseInteraction===!1)return()=>{};let u=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,f=[],l=null,p=o=>d=>{let c=yt(d);if(oe(c,i,n,!0))return;let s=null,m=o;if("pointerType"in d){switch(d.pointerType){case"mouse":s=Me.Mouse;break;case"touch":s=Me.Touch;break;case"pen":s=Me.Pen;break}s===Me.Touch?ae[o]===ae.MouseDown?m="TouchStart":ae[o]===ae.MouseUp&&(m="TouchEnd"):Me.Pen}else jn(d)&&(s=Me.Touch);s!==null?(l=s,(m.startsWith("Touch")&&s===Me.Touch||m.startsWith("Mouse")&&s===Me.Mouse)&&(s=null)):ae[o]===ae.Click&&(s=l,l=null);let h=jn(d)?d.changedTouches[0]:d;if(!h)return;let g=r.getId(c),{clientX:C,clientY:w}=h;F(e)({type:ae[m],id:g,x:C,y:w,...s!==null&&{pointerType:s}})};return Object.keys(ae).filter(o=>Number.isNaN(Number(o))&&!o.endsWith("_Departed")&&u[o]!==!1).forEach(o=>{let d=ke(o),c=p(o);if(window.PointerEvent)switch(ae[o]){case ae.MouseDown:case ae.MouseUp:d=d.replace("mouse","pointer");break;case ae.TouchStart:case ae.TouchEnd:return}f.push(se(d,c,t))}),F(()=>{f.forEach(o=>o())})}function na({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:a}){let u=F(pt(F(f=>{let l=yt(f);if(!l||oe(l,i,n,!0))return;let p=r.getId(l);if(l===t&&t.defaultView){let o=jo(t.defaultView);e({id:p,x:o.left,y:o.top})}else e({id:p,x:l.scrollLeft,y:l.scrollTop})}),a.scroll||100));return se("scroll",u,t)}function Qc({viewportResizeCb:e},{win:t}){let r=-1,i=-1,n=F(pt(F(()=>{let a=Ho(),u=Go();(r!==a||i!==u)&&(e({width:Number(u),height:Number(a)}),r=a,i=u)}),200));return se("resize",n,t)}var Zc=["INPUT","TEXTAREA","SELECT"],uo=new WeakMap;function ef({inputCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,ignoreClass:a,ignoreSelector:u,maskInputOptions:f,maskInputFn:l,sampling:p,userTriggeredOnInput:o}){function d(w){let v=yt(w),E=w.isTrusted,b=v&&v.tagName;if(v&&b==="OPTION"&&(v=D.parentElement(v)),!v||!b||Zc.indexOf(b)<0||oe(v,i,n,!0)||v.classList.contains(a)||u&&v.matches(u))return;let y=v.value,S=!1,x=zt(v)||"";x==="radio"||x==="checkbox"?S=v.checked:(f[b.toLowerCase()]||f[x])&&(y=Wt({element:v,maskInputOptions:f,tagName:b,type:x,value:y,maskInputFn:l})),c(v,o?{text:y,isChecked:S,userTriggered:E}:{text:y,isChecked:S});let M=v.name;x==="radio"&&M&&S&&t.querySelectorAll(`input[type="radio"][name="${M}"]`).forEach(T=>{if(T!==v){let k=T.value;c(T,o?{text:k,isChecked:!S,userTriggered:!1}:{text:k,isChecked:!S})}})}function c(w,v){let E=uo.get(w);if(!E||E.text!==v.text||E.isChecked!==v.isChecked){uo.set(w,v);let b=r.getId(w);F(e)({...v,id:b})}}let m=(p.input==="last"?["change"]:["input","change"]).map(w=>se(w,F(d),t)),h=t.defaultView;if(!h)return()=>{m.forEach(w=>w())};let g=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),C=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...C.map(w=>sr(w[0],w[1],{set(){F(d)({target:this,isTrusted:!1})}},!1,h))),F(()=>{m.forEach(w=>w())})}function Ht(e){let t=[];function r(i,n){if(Pt("CSSGroupingRule")&&i.parentRule instanceof CSSGroupingRule||Pt("CSSMediaRule")&&i.parentRule instanceof CSSMediaRule||Pt("CSSSupportsRule")&&i.parentRule instanceof CSSSupportsRule||Pt("CSSConditionRule")&&i.parentRule instanceof CSSConditionRule){let u=Array.from(i.parentRule.cssRules).indexOf(i);return n.unshift(u),r(i.parentRule,n)}else if(i.parentStyleSheet){let u=Array.from(i.parentStyleSheet.cssRules).indexOf(i);n.unshift(u)}return n}return r(e,t)}function Ie(e,t,r){let i,n;return e?(e.ownerNode?i=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:i}):{}}function tf({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};let n=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:F((o,d,c)=>{let[s,m]=c,{id:h,styleId:g}=Ie(d,t,r.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,adds:[{rule:s,index:m}]}),o.apply(d,c)})}),i.CSSStyleSheet.prototype.addRule=function(o,d,c=this.cssRules.length){let s=`${o} { ${d} }`;return i.CSSStyleSheet.prototype.insertRule.apply(this,[s,c])};let a=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:F((o,d,c)=>{let[s]=c,{id:m,styleId:h}=Ie(d,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,removes:[{index:s}]}),o.apply(d,c)})}),i.CSSStyleSheet.prototype.removeRule=function(o){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[o])};let u;i.CSSStyleSheet.prototype.replace&&(u=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:F((o,d,c)=>{let[s]=c,{id:m,styleId:h}=Ie(d,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replace:s}),o.apply(d,c)})}));let f;i.CSSStyleSheet.prototype.replaceSync&&(f=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(f,{apply:F((o,d,c)=>{let[s]=c,{id:m,styleId:h}=Ie(d,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replaceSync:s}),o.apply(d,c)})}));let l={};Ft("CSSGroupingRule")?l.CSSGroupingRule=i.CSSGroupingRule:(Ft("CSSMediaRule")&&(l.CSSMediaRule=i.CSSMediaRule),Ft("CSSConditionRule")&&(l.CSSConditionRule=i.CSSConditionRule),Ft("CSSSupportsRule")&&(l.CSSSupportsRule=i.CSSSupportsRule));let p={};return Object.entries(l).forEach(([o,d])=>{p[o]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(p[o].insertRule,{apply:F((c,s,m)=>{let[h,g]=m,{id:C,styleId:w}=Ie(s.parentStyleSheet,t,r.styleMirror);return(C&&C!==-1||w&&w!==-1)&&e({id:C,styleId:w,adds:[{rule:h,index:[...Ht(s),g||0]}]}),c.apply(s,m)})}),d.prototype.deleteRule=new Proxy(p[o].deleteRule,{apply:F((c,s,m)=>{let[h]=m,{id:g,styleId:C}=Ie(s.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||C&&C!==-1)&&e({id:g,styleId:C,removes:[{index:[...Ht(s),h]}]}),c.apply(s,m)})})}),F(()=>{i.CSSStyleSheet.prototype.insertRule=n,i.CSSStyleSheet.prototype.deleteRule=a,u&&(i.CSSStyleSheet.prototype.replace=u),f&&(i.CSSStyleSheet.prototype.replaceSync=f),Object.entries(l).forEach(([o,d])=>{d.prototype.insertRule=p[o].insertRule,d.prototype.deleteRule=p[o].deleteRule})})}function ia({mirror:e,stylesheetManager:t},r){var i,n,a;let u=null;r.nodeName==="#document"?u=e.getId(r):u=e.getId(D.host(r));let f=r.nodeName==="#document"?(i=r.defaultView)==null?void 0:i.Document:(a=(n=r.ownerDocument)==null?void 0:n.defaultView)==null?void 0:a.ShadowRoot,l=f?.prototype?Object.getOwnPropertyDescriptor(f?.prototype,"adoptedStyleSheets"):void 0;return u===null||u===-1||!f||!l?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var p;return(p=l.get)==null?void 0:p.call(this)},set(p){var o;let d=(o=l.set)==null?void 0:o.call(this,p);if(u!==null&&u!==-1)try{t.adoptStyleSheets(p,u)}catch{}return d}}),F(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function rf({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:i},{win:n}){let a=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:F((f,l,p)=>{var o;let[d,c,s]=p;if(r.has(d))return a.apply(l,[d,c,s]);let{id:m,styleId:h}=Ie((o=l.parentRule)==null?void 0:o.parentStyleSheet,t,i.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,set:{property:d,value:c,priority:s},index:Ht(l.parentRule)}),f.apply(l,p)})});let u=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:F((f,l,p)=>{var o;let[d]=p;if(r.has(d))return u.apply(l,[d]);let{id:c,styleId:s}=Ie((o=l.parentRule)==null?void 0:o.parentStyleSheet,t,i.styleMirror);return(c&&c!==-1||s&&s!==-1)&&e({id:c,styleId:s,remove:{property:d},index:Ht(l.parentRule)}),f.apply(l,p)})}),F(()=>{n.CSSStyleDeclaration.prototype.setProperty=a,n.CSSStyleDeclaration.prototype.removeProperty=u})}function nf({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:n,doc:a}){let u=F(l=>pt(F(p=>{let o=yt(p);if(!o||oe(o,t,r,!0))return;let{currentTime:d,volume:c,muted:s,playbackRate:m,loop:h}=o;e({type:l,id:i.getId(o),currentTime:d,volume:c,muted:s,playbackRate:m,loop:h})}),n.media||500)),f=[se("play",u(Xe.Play),a),se("pause",u(Xe.Pause),a),se("seeked",u(Xe.Seeked),a),se("volumechange",u(Xe.VolumeChange),a),se("ratechange",u(Xe.RateChange),a)];return F(()=>{f.forEach(l=>l())})}function sf({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let i=[],n=new WeakMap,a=r.FontFace;r.FontFace=function(l,p,o){let d=new a(l,p,o);return n.set(d,{family:l,buffer:typeof p!="string",descriptors:o,fontSource:typeof p=="string"?p:JSON.stringify(Array.from(new Uint8Array(p)))}),d};let u=$e(t.fonts,"add",function(f){return function(l){return setTimeout(F(()=>{let p=n.get(l);p&&(e(p),n.delete(l))}),0),f.apply(this,[l])}});return i.push(()=>{r.FontFace=a}),i.push(u),F(()=>{i.forEach(f=>f())})}function of(e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,selectionCb:a}=e,u=!0,f=F(()=>{let l=t.getSelection();if(!l||u&&l?.isCollapsed)return;u=l.isCollapsed||!1;let p=[],o=l.rangeCount||0;for(let d=0;d<o;d++){let c=l.getRangeAt(d),{startContainer:s,startOffset:m,endContainer:h,endOffset:g}=c;oe(s,i,n,!0)||oe(h,i,n,!0)||p.push({start:r.getId(s),startOffset:m,end:r.getId(h),endOffset:g})}a({ranges:p})});return f(),se("selectionchange",f)}function af({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:$e(r.customElements,"define",function(n){return function(a,u,f){try{t({define:{name:a}})}catch{console.warn(`Custom element callback failed for ${a}`)}return n.apply(this,[a,u,f])}})}function lf(e,t){let{mutationCb:r,mousemoveCb:i,mouseInteractionCb:n,scrollCb:a,viewportResizeCb:u,inputCb:f,mediaInteractionCb:l,styleSheetRuleCb:p,styleDeclarationCb:o,canvasMutationCb:d,fontCb:c,selectionCb:s,customElementCb:m}=e;e.mutationCb=(...h)=>{t.mutation&&t.mutation(...h),r(...h)},e.mousemoveCb=(...h)=>{t.mousemove&&t.mousemove(...h),i(...h)},e.mouseInteractionCb=(...h)=>{t.mouseInteraction&&t.mouseInteraction(...h),n(...h)},e.scrollCb=(...h)=>{t.scroll&&t.scroll(...h),a(...h)},e.viewportResizeCb=(...h)=>{t.viewportResize&&t.viewportResize(...h),u(...h)},e.inputCb=(...h)=>{t.input&&t.input(...h),f(...h)},e.mediaInteractionCb=(...h)=>{t.mediaInteaction&&t.mediaInteaction(...h),l(...h)},e.styleSheetRuleCb=(...h)=>{t.styleSheetRule&&t.styleSheetRule(...h),p(...h)},e.styleDeclarationCb=(...h)=>{t.styleDeclaration&&t.styleDeclaration(...h),o(...h)},e.canvasMutationCb=(...h)=>{t.canvasMutation&&t.canvasMutation(...h),d(...h)},e.fontCb=(...h)=>{t.font&&t.font(...h),c(...h)},e.selectionCb=(...h)=>{t.selection&&t.selection(...h),s(...h)},e.customElementCb=(...h)=>{t.customElement&&t.customElement(...h),m(...h)}}function uf(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};lf(e,t);let i,n=()=>{};e.recordDOM&&([i,n]=ra(e,e.doc));let a=Jc(e),u=Kc(e),f=na(e),l=Qc(e,{win:r}),p=ef(e),o=nf(e),d=()=>{},c=()=>{},s=()=>{},m=()=>{};e.recordDOM&&(d=tf(e,{win:r}),c=ia(e,e.doc),s=rf(e,{win:r}),e.collectFonts&&(m=sf(e)));let h=of(e),g=af(e),C=[];for(let w of e.plugins)C.push(w.observer(w.callback,r,w.options));return F(()=>{Fe.forEach(w=>w.reset()),i?.disconnect(),n(),a(),u(),f(),l(),p(),o(),d(),c(),s(),m(),h(),g(),C.forEach(w=>w())})}function Pt(e){return typeof window[e]<"u"}function Ft(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Gt=class{constructor(t){O(this,"iframeIdToRemoteIdMap",new WeakMap),O(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,i,n){let a=i||this.getIdToRemoteIdMap(t),u=n||this.getRemoteIdToIdMap(t),f=a.get(r);return f||(f=this.generateIdFn(),a.set(r,f),u.set(f,r)),f}getIds(t,r){let i=this.getIdToRemoteIdMap(t),n=this.getRemoteIdToIdMap(t);return r.map(a=>this.getId(t,a,i,n))}getRemoteId(t,r,i){let n=i||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let a=n.get(r);return a||-1}getRemoteIds(t,r){let i=this.getRemoteIdToIdMap(t);return r.map(n=>this.getRemoteId(t,n,i))}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}},Jn=class{constructor(t){O(this,"iframes",new WeakMap),O(this,"crossOriginIframeMap",new WeakMap),O(this,"crossOriginIframeMirror",new Gt(Eo)),O(this,"crossOriginIframeStyleMirror"),O(this,"crossOriginIframeRootIdMap",new WeakMap),O(this,"mirror"),O(this,"mutationCb"),O(this,"wrappedEmit"),O(this,"loadListener"),O(this,"stylesheetManager"),O(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Gt(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 i,n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=t.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(n=this.loadListener)==null||n.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let n=this.crossOriginIframeMap.get(t.source);if(!n)return;let a=this.transformCrossOriginEvent(n,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}transformCrossOriginEvent(t,r){var i;switch(r.type){case _.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:_.IncrementalSnapshot,data:{source:L.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case _.Meta:case _.Load:case _.DomContentLoaded:return!1;case _.Plugin:return r;case _.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case _.IncrementalSnapshot:switch(r.data.source){case L.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);let a=this.crossOriginIframeRootIdMap.get(t);a&&this.patchRootIdOnNode(n.node,a)}),r.data.removes.forEach(n=>{this.replaceIds(n,t,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,t,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case L.Drag:case L.TouchMove:case L.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case L.ViewportResize:return!1;case L.MediaInteraction:case L.MouseInteraction:case L.Scroll:case L.CanvasMutation:case L.Input:return this.replaceIds(r.data,t,["id"]),r;case L.StyleSheetRule:case L.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case L.Font:return r;case L.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"])}),r;case L.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(i=r.data.styles)==null||i.forEach(n=>{this.replaceStyleIds(n,t,["styleId"])}),r}}return!1}replace(t,r,i,n){for(let a of n)!Array.isArray(r[a])&&typeof r[a]!="number"||(Array.isArray(r[a])?r[a]=t.getIds(i,r[a]):r[a]=t.getId(i,r[a]));return r}replaceIds(t,r,i){return this.replace(this.crossOriginIframeMirror,t,r,i)}replaceStyleIds(t,r,i){return this.replace(this.crossOriginIframeStyleMirror,t,r,i)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(i=>{this.replaceIdOnNode(i,r)})}patchRootIdOnNode(t,r){t.type!==ea.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(i=>{this.patchRootIdOnNode(i,r)})}},Kn=class{constructor(t){O(this,"shadowDoms",new WeakSet),O(this,"mutationCb"),O(this,"scrollCb"),O(this,"bypassOptions"),O(this,"mirror"),O(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(!ft(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[i]=ra({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>i.disconnect()),this.restoreHandlers.push(na({...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(D.host(t))),this.restoreHandlers.push(ia({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let i=this;this.restoreHandlers.push($e(t.prototype,"attachShadow",function(n){return function(a){let u=n.call(this,a),f=D.shadowRoot(this);return f&&Zo(this)&&i.addShadowRoot(f,r),u}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(ut=0;ut<Qe.length;ut++)cf[Qe.charCodeAt(ut)]=ut;var ut,ff=function(e){var t=new Uint8Array(e),r,i=t.length,n="";for(r=0;r<i;r+=3)n+=Qe[t[r]>>2],n+=Qe[(t[r]&3)<<4|t[r+1]>>4],n+=Qe[(t[r+1]&15)<<2|t[r+2]>>6],n+=Qe[t[r+2]&63];return i%3===2?n=n.substring(0,n.length-1)+"=":i%3===1&&(n=n.substring(0,n.length-2)+"=="),n};var co=new Map;function hf(e,t){let r=co.get(e);return r||(r=new Map,co.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var sa=(e,t,r)=>{if(!e||!(aa(e,t)||typeof e=="object"))return;let i=e.constructor.name,n=hf(r,i),a=n.indexOf(e);return a===-1&&(a=n.length,n.push(e)),a};function Ut(e,t,r){if(e instanceof Array)return e.map(i=>Ut(i,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let i=e.constructor.name,n=ff(e);return{rr_type:i,base64:n}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ut(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let i=e.constructor.name,{src:n}=e;return{rr_type:i,src:n}}else if(e instanceof HTMLCanvasElement){let i="HTMLImageElement",n=e.toDataURL();return{rr_type:i,src:n}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ut(e.data,t,r),e.width,e.height]};if(aa(e,t)||typeof e=="object"){let i=e.constructor.name,n=sa(e,t,r);return{rr_type:i,index:n}}}}return e}var oa=(e,t,r)=>e.map(i=>Ut(i,t,r)),aa=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function").find(n=>e instanceof t[n]);function df(e,t,r,i){let n=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let u of a)try{if(typeof t.CanvasRenderingContext2D.prototype[u]!="function")continue;let f=$e(t.CanvasRenderingContext2D.prototype,u,function(l){return function(...p){return oe(this.canvas,r,i,!0)||setTimeout(()=>{let o=oa(p,t,this);e(this.canvas,{type:Ze["2D"],property:u,args:o})},0),l.apply(this,p)}});n.push(f)}catch{let f=sr(t.CanvasRenderingContext2D.prototype,u,{set(l){e(this.canvas,{type:Ze["2D"],property:u,args:[l],setter:!0})}});n.push(f)}return()=>{n.forEach(u=>u())}}function pf(e){return e==="experimental-webgl"?"webgl":e}function fo(e,t,r,i){let n=[];try{let a=$e(e.HTMLCanvasElement.prototype,"getContext",function(u){return function(f,...l){if(!oe(this,t,r,!0)){let p=pf(f);if("__context"in this||(this.__context=p),i&&["webgl","webgl2"].includes(p))if(l[0]&&typeof l[0]=="object"){let o=l[0];o.preserveDrawingBuffer||(o.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return u.apply(this,[f,...l])}});n.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(a=>a())}}function ho(e,t,r,i,n,a){let u=[],f=Object.getOwnPropertyNames(e);for(let l of f)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof e[l]!="function")continue;let p=$e(e,l,function(o){return function(...d){let c=o.apply(this,d);if(sa(c,a,this),"tagName"in this.canvas&&!oe(this.canvas,i,n,!0)){let s=oa(d,a,this),m={type:t,property:l,args:s};r(this.canvas,m)}return c}});u.push(p)}catch{let p=sr(e,l,{set(o){r(this.canvas,{type:t,property:l,args:[o],setter:!0})}});u.push(p)}return u}function mf(e,t,r,i){let n=[];return typeof t.WebGLRenderingContext<"u"&&n.push(...ho(t.WebGLRenderingContext.prototype,Ze.WebGL,e,r,i,t)),typeof t.WebGL2RenderingContext<"u"&&n.push(...ho(t.WebGL2RenderingContext.prototype,Ze.WebGL2,e,r,i,t)),()=>{n.forEach(a=>a())}}var la=`(function() {
54
54
  "use strict";
55
55
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
56
56
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
@@ -125,9 +125,9 @@ or you can use record.mirror to access the mirror instance during recording.`,io
125
125
  };
126
126
  })();
127
127
  //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
128
- `,fo=typeof self<"u"&&self.Blob&&new Blob([oa],{type:"text/javascript;charset=utf-8"});function af(e){let t;try{if(t=fo&&(self.URL||self.webkitURL).createObjectURL(fo),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(oa),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var Jn=class{constructor(t){O(this,"pendingCanvasMutations",new Map),O(this,"rafStamps",{latestId:0,invokeId:null}),O(this,"mirror"),O(this,"mutationCb"),O(this,"resetObservers"),O(this,"frozen",!1),O(this,"locked",!1),O(this,"processMutation",(a,p)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(p)});let{sampling:r="all",win:i,blockClass:n,blockSelector:l,recordCanvas:c,dataURLOptions:h}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&r==="all"&&this.initCanvasMutationObserver(i,n,l),c&&typeof r=="number"&&this.initCanvasFPSObserver(r,i,n,l,{dataURLOptions:h})}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,i,n,l){let c=uo(r,i,n,!0),h=new Map,a=new af;a.onmessage=m=>{let{id:f}=m.data;if(h.set(f,!1),!("base64"in m.data))return;let{base64:g,type:C,width:w,height:v}=m.data;this.mutationCb({id:f,type:Ze["2D"],commands:[{property:"clearRect",args:[0,0,w,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:C}]},0,0]}]})};let p=1e3/t,o=0,d,u=()=>{let m=[];return r.document.querySelectorAll("canvas").forEach(f=>{oe(f,i,n,!0)||m.push(f)}),m},s=m=>{if(o&&m-o<p){d=requestAnimationFrame(s);return}o=m,u().forEach(async f=>{var g;let C=this.mirror.getId(f);if(h.get(C)||f.width===0||f.height===0)return;if(h.set(C,!0),["webgl","webgl2"].includes(f.__context)){let v=f.getContext(f.__context);((g=v?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}let w=await createImageBitmap(f);a.postMessage({id:C,bitmap:w,width:f.width,height:f.height,dataURLOptions:l.dataURLOptions},[w])}),d=requestAnimationFrame(s)};d=requestAnimationFrame(s),this.resetObservers=()=>{c(),cancelAnimationFrame(d)}}initCanvasMutationObserver(t,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=uo(t,r,i,!1),l=nf(this.processMutation.bind(this),t,r,i),c=of(this.processMutation.bind(this),t,r,i);this.resetObservers=()=>{n(),l(),c()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let i=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,i)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let i=this.pendingCanvasMutations.get(t);if(!i||r===-1)return;let n=i.map(c=>{let{type:h,...a}=c;return a}),{type:l}=i[0];this.mutationCb({id:r,type:l,commands:n}),this.pendingCanvasMutations.delete(t)}},Kn=class{constructor(t){O(this,"trackedLinkElements",new WeakSet),O(this,"mutationCb"),O(this,"adoptedStyleSheetCb"),O(this,"styleMirror",new jn),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let i={id:r,styleIds:[]},n=[];for(let l of t){let c;this.styleMirror.has(l)?c=this.styleMirror.getId(l):(c=this.styleMirror.add(l),n.push({styleId:c,rules:Array.from(l.rules||CSSRule,(h,a)=>({rule:wo(h,l.href),index:a}))})),i.styleIds.push(c)}n.length>0&&(i.styles=n),this.adoptedStyleSheetCb(i)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},Qn=class{constructor(){O(this,"nodeMap",new WeakMap),O(this,"active",!1)}inOtherBuffer(t,r){let i=this.nodeMap.get(t);return i&&Array.from(i).some(n=>n!==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(){}},X,Ut,$n,Gt=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((ji=e.contentWindow)==null?void 0:ji.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var ye=mu();function Ce(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:n="rr-block",blockSelector:l=null,ignoreClass:c="rr-ignore",ignoreSelector:h=null,maskTextClass:a="rr-mask",maskTextSelector:p=null,inlineStylesheet:o=!0,maskAllInputs:d,maskInputOptions:u,slimDOMOptions:s,maskInputFn:m,maskTextFn:f,hooks:g,packFn:C,sampling:w={},dataURLOptions:v={},mousemoveWait:E,recordDOM:b=!0,recordCanvas:y=!1,recordCrossOriginIframes:S=!1,recordAfter:x=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:T=!1,inlineImages:k=!1,plugins:I,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:te=new Set([]),errorHandler:re}=e;Bc(re);let F=S?window.parent===window:!0,L=!1;if(!F)try{window.parent.document&&(L=!1)}catch{L=!0}if(F&&!t)throw new Error("emit function is required");if(!F&&!L)return()=>{};E!==void 0&&w.mousemove===void 0&&(w.mousemove=E),ye.reset();let j=d===!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}:u!==void 0?u:{password:!0},K=Ro(s);Lc();let $,B=0,le=D=>{for(let Z of I||[])Z.eventProcessor&&(D=Z.eventProcessor(D));return C&&!L&&(D=C(D)),D};X=(D,Z)=>{var W;let Y=D;if(Y.timestamp=dt(),(W=Fe[0])!=null&&W.isFrozen()&&Y.type!==U.FullSnapshot&&!(Y.type===U.IncrementalSnapshot&&Y.data.source===_.Mutation)&&Fe.forEach(ue=>ue.unfreeze()),F)t?.(le(Y),Z);else if(L){let ue={type:"rrweb",event:le(Y),origin:window.location.origin,isCheckout:Z};window.parent.postMessage(ue,"*")}if(Y.type===U.FullSnapshot)$=Y,B=0;else if(Y.type===U.IncrementalSnapshot){if(Y.data.source===_.Mutation&&Y.data.isAttachIframe)return;B++;let ue=i&&B>=i,z=r&&Y.timestamp-$.timestamp>r;(ue||z)&&Ut(!0)}};let N=D=>{X({type:U.IncrementalSnapshot,data:{source:_.Mutation,...D}})},Se=D=>X({type:U.IncrementalSnapshot,data:{source:_.Scroll,...D}}),he=D=>X({type:U.IncrementalSnapshot,data:{source:_.CanvasMutation,...D}}),lt=D=>X({type:U.IncrementalSnapshot,data:{source:_.AdoptedStyleSheet,...D}}),ie=new Kn({mutationCb:N,adoptedStyleSheetCb:lt}),ge=new Yn({mirror:ye,mutationCb:N,stylesheetManager:ie,recordCrossOriginIframes:S,wrappedEmit:X});for(let D of I||[])D.getMirror&&D.getMirror({nodeMirror:ye,crossOriginIframeMirror:ge.crossOriginIframeMirror,crossOriginIframeStyleMirror:ge.crossOriginIframeStyleMirror});let Pe=new Qn;$n=new Jn({recordCanvas:y,mutationCb:he,win:window,blockClass:n,blockSelector:l,mirror:ye,sampling:w.canvas,dataURLOptions:v});let Oe=new Xn({mutationCb:N,scrollCb:Se,bypassOptions:{blockClass:n,blockSelector:l,maskTextClass:a,maskTextSelector:p,inlineStylesheet:o,maskInputOptions:j,dataURLOptions:v,maskTextFn:f,maskInputFn:m,recordCanvas:y,inlineImages:k,sampling:w,slimDOMOptions:K,iframeManager:ge,stylesheetManager:ie,canvasManager:$n,keepIframeSrcFn:R,processedNodeManager:Pe},mirror:ye});Ut=(D=!1)=>{if(!b)return;X({type:U.Meta,data:{href:window.location.href,width:jo(),height:Vo()}},D),ie.reset(),Oe.init(),Fe.forEach(W=>W.lock());let Z=Wu(document,{mirror:ye,blockClass:n,blockSelector:l,maskTextClass:a,maskTextSelector:p,inlineStylesheet:o,maskAllInputs:j,maskTextFn:f,maskInputFn:m,slimDOM:K,dataURLOptions:v,recordCanvas:y,inlineImages:k,onSerialize:W=>{Yo(W,ye)&&ge.addIframe(W),Xo(W,ye)&&ie.trackLinkElement(W),Vn(W)&&Oe.addShadowRoot(A.shadowRoot(W),document)},onIframeLoad:(W,Y)=>{ge.attachIframe(W,Y),Oe.observeAttachShadow(W)},onStylesheetLoad:(W,Y)=>{ie.attachLinkElement(W,Y)},keepIframeSrcFn:R});if(!Z)return console.warn("Failed to snapshot the document");X({type:U.FullSnapshot,data:{node:Z,initialOffset:qo(window)}},D),Fe.forEach(W=>W.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ie.adoptStyleSheets(document.adoptedStyleSheets,ye.getId(document))};try{let D=[],Z=Y=>{var ue;return P(Zc)({mutationCb:N,mousemoveCb:(z,Ar)=>X({type:U.IncrementalSnapshot,data:{source:Ar,positions:z}}),mouseInteractionCb:z=>X({type:U.IncrementalSnapshot,data:{source:_.MouseInteraction,...z}}),scrollCb:Se,viewportResizeCb:z=>X({type:U.IncrementalSnapshot,data:{source:_.ViewportResize,...z}}),inputCb:z=>X({type:U.IncrementalSnapshot,data:{source:_.Input,...z}}),mediaInteractionCb:z=>X({type:U.IncrementalSnapshot,data:{source:_.MediaInteraction,...z}}),styleSheetRuleCb:z=>X({type:U.IncrementalSnapshot,data:{source:_.StyleSheetRule,...z}}),styleDeclarationCb:z=>X({type:U.IncrementalSnapshot,data:{source:_.StyleDeclaration,...z}}),canvasMutationCb:he,fontCb:z=>X({type:U.IncrementalSnapshot,data:{source:_.Font,...z}}),selectionCb:z=>{X({type:U.IncrementalSnapshot,data:{source:_.Selection,...z}})},customElementCb:z=>{X({type:U.IncrementalSnapshot,data:{source:_.CustomElement,...z}})},blockClass:n,ignoreClass:c,ignoreSelector:h,maskTextClass:a,maskTextSelector:p,maskInputOptions:j,inlineStylesheet:o,sampling:w,recordDOM:b,recordCanvas:y,inlineImages:k,userTriggeredOnInput:M,collectFonts:T,doc:Y,maskInputFn:m,maskTextFn:f,keepIframeSrcFn:R,blockSelector:l,slimDOMOptions:K,dataURLOptions:v,mirror:ye,iframeManager:ge,stylesheetManager:ie,shadowDomManager:Oe,processedNodeManager:Pe,canvasManager:$n,ignoreCSSAttributes:te,plugins:((ue=I?.filter(z=>z.observer))==null?void 0:ue.map(z=>({observer:z.observer,options:z.options,callback:Ar=>X({type:U.Plugin,data:{plugin:z.name,payload:Ar}})})))||[]},g)};ge.addLoadListener(Y=>{try{D.push(Z(Y.contentDocument))}catch(ue){console.warn(ue)}});let W=()=>{Ut(),D.push(Z(document)),Gt=!0};return["interactive","complete"].includes(document.readyState)?W():(D.push(se("DOMContentLoaded",()=>{X({type:U.DomContentLoaded,data:{}}),x==="DOMContentLoaded"&&W()})),D.push(se("load",()=>{X({type:U.Load,data:{}}),x==="load"&&W()},window))),()=>{D.forEach(Y=>{try{Y()}catch(ue){String(ue).toLowerCase().includes("cross-origin")||console.warn(ue)}}),Pe.destroy(),Gt=!1,$c()}}catch(D){console.warn(D)}}Ce.addCustomEvent=(e,t)=>{if(!Gt)throw new Error("please add custom event after start recording");X({type:U.Custom,data:{tag:e,payload:t}})};Ce.freezePage=()=>{Fe.forEach(e=>e.freeze())};Ce.takeFullSnapshot=e=>{if(!Gt)throw new Error("please take full snapshot after start recording");Ut(e)};Ce.mirror=ye;var ho;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ho||(ho={}));var ih=5*1e3;var{addCustomEvent:sh}=Ce,{freezePage:oh}=Ce,{takeFullSnapshot:ah}=Ce;var Me={data:"__tabtape:data",flush:"__tabtape:flush",hello:"__tabtape:hello",control:"__tabtape:control",info:"__tabtape:info",infoReply:"__tabtape:info-reply"},aa="tabtape.state";function We(){try{return window[Symbol.for(aa)]}catch{return}}function ua(e){let t="",r=!1,i=null,n=h=>{try{e.emit(h)}catch{}};function l(h,a,p){let o=e.title(),d,u=()=>{},s=!1,m=()=>{s||(s=!0,i===m&&(i=null),u(),e.clearTimer(d),e.clearTimer(f),n({kind:h,url:a,title:e.title(),ts:p}))};i=m;let f=e.setTimer(m,2e3);try{u=e.watchTitle(()=>{s||e.title()===o||(e.clearTimer(d),d=e.setTimer(m,100))})}catch{}}let c=()=>i?.();return{reset(h){c(),t="",r=h},view(h,a=e.now()){let p=h==="push"||h==="replace"||h==="pop"||h==="hash";if(p&&r)return;p||(r=!1);let o=e.url();if(!(p&&o===t)){if(h==="replace"&&la(o)===la(t)){t=o;return}t=o,c(),p?l(h,o,a):n({kind:h,url:o,title:e.title(),ts:a})}},flush:c}}function la(e){let t=e.search(/[?#]/);return t<0?e:e.slice(0,t)}var ve=JSON.stringify,yi=JSON.parse,lf=Object.prototype.toString,ze="********",uf=/passw(or)?d|^pwd$|^pass$/i,sr=/json|text\/|xml|javascript|ecmascript|graphql|x-www-form-urlencoded|csv|yaml/i,V=(e,t)=>e.length>t?e.slice(0,t-1)+"\u2026":e,J=e=>Math.round(e*10)/10;function De(e){return uf.test(e)}function Ae(e){try{return new URL(e,location.href).href}catch{return e}}function fa(e){let t=e,r="";for(let i of["currentSrc","src","href"]){let n=t[i];if(typeof n=="string"&&n){r=n;break}}if(!r){let i=e.getAttribute("src")||e.getAttribute("href");i&&(r=Ae(i))}return r?V(Q(r),1e3):""}function or(e){let t=new URLSearchParams(e),r=!1;for(let i of new Set(t.keys()))De(i)&&(t.set(i,ze),r=!0);return r?t.toString():e}function Q(e){let t=e.indexOf("?");if(t<0)return e;let r=e.indexOf("#",t),i=e.slice(t+1,r<0?void 0:r),n=or(i);return n===i?e:e.slice(0,t+1)+n+(r<0?"":e.slice(r))}function gi(e){let t=!1;if(Array.isArray(e))for(let r of e)t=gi(r)||t;else if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];De(i)&&(typeof n=="string"||typeof n=="number")?(r[i]=ze,t=!0):t=gi(n)||t}}return t}var cf=/^[\w.%[\]-]+=[^&]*(&[\w.%[\]-]+=[^&]*)*$/,ff=/multipart\/form-data/i,hf=/^--[^\r\n]{1,200}\r?\ncontent-disposition:\s*form-data/i;function ar(e,t=""){let r=e.trimStart();if(r.startsWith("{")||r.startsWith("["))try{let i=yi(e);return gi(i)?ve(i):e}catch{return e}return ff.test(t)||hf.test(r)?df(e,t):/x-www-form-urlencoded/i.test(t)||r.length<1e5&&cf.test(r)?or(e):e}function df(e,t=""){let r=/boundary=(?:"([^"]+)"|([^;,\s]+))/i.exec(t),i=r?.[1]??r?.[2]??/^--([^\r\n]+)/.exec(e.trimStart())?.[1];if(!i)return e;let n=`--${i}`,l=e.split(n),c=!1;for(let h=1;h<l.length;h++){let a=l[h],p=/\r?\n\r?\n/.exec(a);if(!p)continue;let o=a.slice(0,p.index);if(/;\s*filename\*?=/i.test(o))continue;let d=/;\s*name="([^"]*)"/i.exec(o)?.[1]??/;\s*name=([^;\s]+)/i.exec(o)?.[1];if(d===void 0||!De(d))continue;let u=p.index+p[0].length,s=a.endsWith(`\r
129
- `)?a.length-2:a.endsWith(`
130
- `)?a.length-1:a.length;l[h]=a.slice(0,u)+ze+a.slice(Math.max(u,s)),c=!0}return c?l.join(n):e}var wi={depth:4,items:50,string:2e3};function et(e){if(!e||typeof e!="object")return!1;if(e instanceof Error)return!0;let t=e;return typeof t.message=="string"&&typeof t.name=="string"&&"stack"in t}function pf(e){if(e.nodeType===1){let t=e,r="<"+t.tagName.toLowerCase();t.id&&(r+="#"+t.id);let i=t.getAttribute("class")?.trim();return i&&(r+="."+i.split(/\s+/).slice(0,3).join(".")),r+">"}return e.nodeType===3?`#text "${V(e.textContent??"",60)}"`:e.nodeName}function bt(e,t=wi){return wt(e,0,new WeakSet,t)}function wt(e,t,r,i){switch(typeof e){case"string":return V(e,i.string);case"number":return Number.isFinite(e)?e:String(e);case"boolean":return e;case"undefined":return"undefined";case"bigint":return`${e}n`;case"symbol":return e.toString();case"function":return`\u0192 ${e.name||"anonymous"}()`}if(e===null)return null;let n=e;if(r.has(n))return"[Circular]";try{if(et(n))return{name:n.name,message:V(String(n.message),i.string),stack:V(String(n.stack??""),Math.min(4e3,i.string*2))};let l=n;if(typeof l.nodeType=="number"&&typeof l.nodeName=="string")return pf(l);if(n.window===n)return"[Window]";let c=lf.call(n).slice(8,-1);if(c==="Date"){let p=n;return Number.isNaN(p.getTime())?"Invalid Date":p.toISOString()}if(c==="RegExp")return String(n);if(c==="Promise")return"[Promise]";if(n instanceof ArrayBuffer||ArrayBuffer.isView(n))return`[${c} ${n.byteLength} bytes]`;if(t>=i.depth)return Array.isArray(n)?`[Array(${n.length})]`:`[${c}]`;if(r.add(n),Array.isArray(n)){let p=n.slice(0,i.items).map(o=>wt(o,t+1,r,i));return n.length>i.items&&p.push(`\u2026 ${n.length-i.items} more`),p}if(c==="Map")return{"[[Map]]":wt([...n].slice(0,i.items),t+1,r,i)};if(c==="Set")return{"[[Set]]":wt([...n].slice(0,i.items),t+1,r,i)};let h={},a=Object.keys(n);for(let p of a.slice(0,i.items))try{h[p]=wt(n[p],t+1,r,i)}catch{h[p]="[unreadable]"}return a.length>i.items&&(h["\u2026"]=`${a.length-i.items} more keys`),h}catch{return"[unserializable]"}}function ca(e,t){if(typeof e=="string")return e;if(et(e))return`${e.name}: ${e.message}`;if(typeof t=="string")return t;try{return V(ve(t)??String(t),1e3)}catch{return String(t)}}function bi(e,t){let r=[],i=0;for(typeof e[0]=="string"&&e[0].includes("%")&&(i=1,r.push(e[0].replace(/%([sdifoOc%])/g,(n,l)=>{if(l==="%")return"%";if(i>=e.length)return n;let c=i++,h=e[c];switch(l){case"c":return"";case"d":case"i":return String(Number.parseInt(String(h),10));case"f":return String(Number(h));default:return ca(h,t[c])}})));i<e.length;i++)r.push(ca(e[i],t[i]));return V(r.join(" "),5e3)}function ha(e){if(!e)return;let t=e.split(`
128
+ `,po=typeof self<"u"&&self.Blob&&new Blob([la],{type:"text/javascript;charset=utf-8"});function gf(e){let t;try{if(t=po&&(self.URL||self.webkitURL).createObjectURL(po),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(la),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var Qn=class{constructor(t){O(this,"pendingCanvasMutations",new Map),O(this,"rafStamps",{latestId:0,invokeId:null}),O(this,"mirror"),O(this,"mutationCb"),O(this,"resetObservers"),O(this,"frozen",!1),O(this,"locked",!1),O(this,"processMutation",(l,p)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(p)});let{sampling:r="all",win:i,blockClass:n,blockSelector:a,recordCanvas:u,dataURLOptions:f}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,u&&r==="all"&&this.initCanvasMutationObserver(i,n,a),u&&typeof r=="number"&&this.initCanvasFPSObserver(r,i,n,a,{dataURLOptions:f})}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,i,n,a){let u=fo(r,i,n,!0),f=new Map,l=new gf;l.onmessage=m=>{let{id:h}=m.data;if(f.set(h,!1),!("base64"in m.data))return;let{base64:g,type:C,width:w,height:v}=m.data;this.mutationCb({id:h,type:Ze["2D"],commands:[{property:"clearRect",args:[0,0,w,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:C}]},0,0]}]})};let p=1e3/t,o=0,d,c=()=>{let m=[];return r.document.querySelectorAll("canvas").forEach(h=>{oe(h,i,n,!0)||m.push(h)}),m},s=m=>{if(o&&m-o<p){d=requestAnimationFrame(s);return}o=m,c().forEach(async h=>{var g;let C=this.mirror.getId(h);if(f.get(C)||h.width===0||h.height===0)return;if(f.set(C,!0),["webgl","webgl2"].includes(h.__context)){let v=h.getContext(h.__context);((g=v?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}let w=await createImageBitmap(h);l.postMessage({id:C,bitmap:w,width:h.width,height:h.height,dataURLOptions:a.dataURLOptions},[w])}),d=requestAnimationFrame(s)};d=requestAnimationFrame(s),this.resetObservers=()=>{u(),cancelAnimationFrame(d)}}initCanvasMutationObserver(t,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=fo(t,r,i,!1),a=df(this.processMutation.bind(this),t,r,i),u=mf(this.processMutation.bind(this),t,r,i);this.resetObservers=()=>{n(),a(),u()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let i=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,i)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let i=this.pendingCanvasMutations.get(t);if(!i||r===-1)return;let n=i.map(u=>{let{type:f,...l}=u;return l}),{type:a}=i[0];this.mutationCb({id:r,type:a,commands:n}),this.pendingCanvasMutations.delete(t)}},Zn=class{constructor(t){O(this,"trackedLinkElements",new WeakSet),O(this,"mutationCb"),O(this,"adoptedStyleSheetCb"),O(this,"styleMirror",new Gn),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let i={id:r,styleIds:[]},n=[];for(let a of t){let u;this.styleMirror.has(a)?u=this.styleMirror.getId(a):(u=this.styleMirror.add(a),n.push({styleId:u,rules:Array.from(a.rules||CSSRule,(f,l)=>({rule:vo(f,a.href),index:l}))})),i.styleIds.push(u)}n.length>0&&(i.styles=n),this.adoptedStyleSheetCb(i)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},ei=class{constructor(){O(this,"nodeMap",new WeakMap),O(this,"active",!1)}inOtherBuffer(t,r){let i=this.nodeMap.get(t);return i&&Array.from(i).some(n=>n!==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(){}},X,Bt,zn,Yt=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Gi=e.contentWindow)==null?void 0:Gi.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var be=xu();function he(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:u="rr-ignore",ignoreSelector:f=null,maskTextClass:l="rr-mask",maskTextSelector:p=null,inlineStylesheet:o=!0,maskAllInputs:d,maskInputOptions:c,slimDOMOptions:s,maskInputFn:m,maskTextFn:h,hooks:g,packFn:C,sampling:w={},dataURLOptions:v={},mousemoveWait:E,recordDOM:b=!0,recordCanvas:y=!1,recordCrossOriginIframes:S=!1,recordAfter:x=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:T=!1,inlineImages:k=!1,plugins:I,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:te=new Set([]),errorHandler:re}=e;Yc(re);let U=S?window.parent===window:!0,P=!1;if(!U)try{window.parent.document&&(P=!1)}catch{P=!0}if(U&&!t)throw new Error("emit function is required");if(!U&&!P)return()=>{};E!==void 0&&w.mousemove===void 0&&(w.mousemove=E),be.reset();let j=d===!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}:c!==void 0?c:{password:!0},K=Mo(s);Vc();let $,B=0,le=A=>{for(let Z of I||[])Z.eventProcessor&&(A=Z.eventProcessor(A));return C&&!P&&(A=C(A)),A};X=(A,Z)=>{var W;let Y=A;if(Y.timestamp=dt(),(W=Fe[0])!=null&&W.isFrozen()&&Y.type!==_.FullSnapshot&&!(Y.type===_.IncrementalSnapshot&&Y.data.source===L.Mutation)&&Fe.forEach(ue=>ue.unfreeze()),U)t?.(le(Y),Z);else if(P){let ue={type:"rrweb",event:le(Y),origin:window.location.origin,isCheckout:Z};window.parent.postMessage(ue,"*")}if(Y.type===_.FullSnapshot)$=Y,B=0;else if(Y.type===_.IncrementalSnapshot){if(Y.data.source===L.Mutation&&Y.data.isAttachIframe)return;B++;let ue=i&&B>=i,z=r&&Y.timestamp-$.timestamp>r;(ue||z)&&Bt(!0)}};let N=A=>{X({type:_.IncrementalSnapshot,data:{source:L.Mutation,...A}})},Ee=A=>X({type:_.IncrementalSnapshot,data:{source:L.Scroll,...A}}),pe=A=>X({type:_.IncrementalSnapshot,data:{source:L.CanvasMutation,...A}}),lt=A=>X({type:_.IncrementalSnapshot,data:{source:L.AdoptedStyleSheet,...A}}),ie=new Zn({mutationCb:N,adoptedStyleSheetCb:lt}),we=new Jn({mirror:be,mutationCb:N,stylesheetManager:ie,recordCrossOriginIframes:S,wrappedEmit:X});for(let A of I||[])A.getMirror&&A.getMirror({nodeMirror:be,crossOriginIframeMirror:we.crossOriginIframeMirror,crossOriginIframeStyleMirror:we.crossOriginIframeStyleMirror});let Pe=new ei;zn=new Qn({recordCanvas:y,mutationCb:pe,win:window,blockClass:n,blockSelector:a,mirror:be,sampling:w.canvas,dataURLOptions:v});let Oe=new Kn({mutationCb:N,scrollCb:Ee,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:l,maskTextSelector:p,inlineStylesheet:o,maskInputOptions:j,dataURLOptions:v,maskTextFn:h,maskInputFn:m,recordCanvas:y,inlineImages:k,sampling:w,slimDOMOptions:K,iframeManager:we,stylesheetManager:ie,canvasManager:zn,keepIframeSrcFn:R,processedNodeManager:Pe},mirror:be});Bt=(A=!1)=>{if(!b)return;X({type:_.Meta,data:{href:window.location.href,width:Go(),height:Ho()}},A),ie.reset(),Oe.init(),Fe.forEach(W=>W.lock());let Z=Ju(document,{mirror:be,blockClass:n,blockSelector:a,maskTextClass:l,maskTextSelector:p,inlineStylesheet:o,maskAllInputs:j,maskTextFn:h,maskInputFn:m,slimDOM:K,dataURLOptions:v,recordCanvas:y,inlineImages:k,onSerialize:W=>{Jo(W,be)&&we.addIframe(W),Ko(W,be)&&ie.trackLinkElement(W),Hn(W)&&Oe.addShadowRoot(D.shadowRoot(W),document)},onIframeLoad:(W,Y)=>{we.attachIframe(W,Y),Oe.observeAttachShadow(W)},onStylesheetLoad:(W,Y)=>{ie.attachLinkElement(W,Y)},keepIframeSrcFn:R});if(!Z)return console.warn("Failed to snapshot the document");X({type:_.FullSnapshot,data:{node:Z,initialOffset:jo(window)}},A),Fe.forEach(W=>W.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ie.adoptStyleSheets(document.adoptedStyleSheets,be.getId(document))};try{let A=[],Z=Y=>{var ue;return F(uf)({mutationCb:N,mousemoveCb:(z,Lr)=>X({type:_.IncrementalSnapshot,data:{source:Lr,positions:z}}),mouseInteractionCb:z=>X({type:_.IncrementalSnapshot,data:{source:L.MouseInteraction,...z}}),scrollCb:Ee,viewportResizeCb:z=>X({type:_.IncrementalSnapshot,data:{source:L.ViewportResize,...z}}),inputCb:z=>X({type:_.IncrementalSnapshot,data:{source:L.Input,...z}}),mediaInteractionCb:z=>X({type:_.IncrementalSnapshot,data:{source:L.MediaInteraction,...z}}),styleSheetRuleCb:z=>X({type:_.IncrementalSnapshot,data:{source:L.StyleSheetRule,...z}}),styleDeclarationCb:z=>X({type:_.IncrementalSnapshot,data:{source:L.StyleDeclaration,...z}}),canvasMutationCb:pe,fontCb:z=>X({type:_.IncrementalSnapshot,data:{source:L.Font,...z}}),selectionCb:z=>{X({type:_.IncrementalSnapshot,data:{source:L.Selection,...z}})},customElementCb:z=>{X({type:_.IncrementalSnapshot,data:{source:L.CustomElement,...z}})},blockClass:n,ignoreClass:u,ignoreSelector:f,maskTextClass:l,maskTextSelector:p,maskInputOptions:j,inlineStylesheet:o,sampling:w,recordDOM:b,recordCanvas:y,inlineImages:k,userTriggeredOnInput:M,collectFonts:T,doc:Y,maskInputFn:m,maskTextFn:h,keepIframeSrcFn:R,blockSelector:a,slimDOMOptions:K,dataURLOptions:v,mirror:be,iframeManager:we,stylesheetManager:ie,shadowDomManager:Oe,processedNodeManager:Pe,canvasManager:zn,ignoreCSSAttributes:te,plugins:((ue=I?.filter(z=>z.observer))==null?void 0:ue.map(z=>({observer:z.observer,options:z.options,callback:Lr=>X({type:_.Plugin,data:{plugin:z.name,payload:Lr}})})))||[]},g)};we.addLoadListener(Y=>{try{A.push(Z(Y.contentDocument))}catch(ue){console.warn(ue)}});let W=()=>{Bt(),A.push(Z(document)),Yt=!0};return["interactive","complete"].includes(document.readyState)?W():(A.push(se("DOMContentLoaded",()=>{X({type:_.DomContentLoaded,data:{}}),x==="DOMContentLoaded"&&W()})),A.push(se("load",()=>{X({type:_.Load,data:{}}),x==="load"&&W()},window))),()=>{A.forEach(Y=>{try{Y()}catch(ue){String(ue).toLowerCase().includes("cross-origin")||console.warn(ue)}}),Pe.destroy(),Yt=!1,Xc()}}catch(A){console.warn(A)}}he.addCustomEvent=(e,t)=>{if(!Yt)throw new Error("please add custom event after start recording");X({type:_.Custom,data:{tag:e,payload:t}})};he.freezePage=()=>{Fe.forEach(e=>e.freeze())};he.takeFullSnapshot=e=>{if(!Yt)throw new Error("please take full snapshot after start recording");Bt(e)};he.mirror=be;var mo;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(mo||(mo={}));var bh=5*1e3;var{addCustomEvent:vh}=he,{freezePage:Sh}=he,{takeFullSnapshot:Ch}=he;var yf=/card.?(num|exp|cvc|cvv|code)|cc.?(num|exp|csc|cvc|cvv)|^(cvc|cvv|csc)\d?$|security.?code|^exp(iry|iration)?.?(date|month|year)?$/i;function ua(e){return(e.getAttribute("autocomplete")??"").toLowerCase().split(/\s+/).some(r=>r.startsWith("cc-"))?!0:[e.getAttribute("name"),e.getAttribute("id")].some(r=>!!r&&yf.test(r))}function ca(e=window){if(e.parent===e||e.location.href==="about:blank")return!1;try{return e.parent.document,!1}catch{return!0}}var de={data:"__tabtape:data",flush:"__tabtape:flush",hello:"__tabtape:hello",control:"__tabtape:control",info:"__tabtape:info",infoReply:"__tabtape:info-reply",snapshot:"__tabtape:snapshot"},fa="tabtape.state";function We(){try{return window[Symbol.for(fa)]}catch{return}}function da(e){let t="",r=!1,i=null,n=f=>{try{e.emit(f)}catch{}};function a(f,l,p){let o=e.title(),d,c=()=>{},s=!1,m=()=>{s||(s=!0,i===m&&(i=null),c(),e.clearTimer(d),e.clearTimer(h),n({kind:f,url:l,title:e.title(),ts:p}))};i=m;let h=e.setTimer(m,2e3);try{c=e.watchTitle(()=>{s||e.title()===o||(e.clearTimer(d),d=e.setTimer(m,100))})}catch{}}let u=()=>i?.();return{reset(f){u(),t="",r=f},view(f,l=e.now()){let p=f==="push"||f==="replace"||f==="pop"||f==="hash";if(p&&r)return;p||(r=!1);let o=e.url();if(!(p&&o===t)){if(f==="replace"&&ha(o)===ha(t)){t=o;return}t=o,u(),p?a(f,o,l):n({kind:f,url:o,title:e.title(),ts:l})}},flush:u}}function ha(e){let t=e.search(/[?#]/);return t<0?e:e.slice(0,t)}var Ce=JSON.stringify,bt=JSON.parse,wf=Object.prototype.toString,ze="********",bf=/passw(or)?d|^pwd$|^pass$/i,or=/json|text\/|xml|javascript|ecmascript|graphql|x-www-form-urlencoded|csv|yaml/i,V=(e,t)=>e.length>t?e.slice(0,t-1)+"\u2026":e,J=e=>Math.round(e*10)/10;function Ae(e){return bf.test(e)}function De(e){try{return new URL(e,location.href).href}catch{return e}}function ma(e){let t=e,r="";for(let i of["currentSrc","src","href"]){let n=t[i];if(typeof n=="string"&&n){r=n;break}}if(!r){let i=e.getAttribute("src")||e.getAttribute("href");i&&(r=De(i))}return r?V(Q(r),1e3):""}function ar(e){let t=new URLSearchParams(e),r=!1;for(let i of new Set(t.keys()))Ae(i)&&(t.set(i,ze),r=!0);return r?t.toString():e}function Q(e){let t=e.indexOf("?");if(t<0)return e;let r=e.indexOf("#",t),i=e.slice(t+1,r<0?void 0:r),n=ar(i);return n===i?e:e.slice(0,t+1)+n+(r<0?"":e.slice(r))}function wi(e){let t=!1;if(Array.isArray(e))for(let r of e)t=wi(r)||t;else if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];Ae(i)&&(typeof n=="string"||typeof n=="number")?(r[i]=ze,t=!0):t=wi(n)||t}}return t}var vf=/^[\w.%[\]-]+=[^&]*(&[\w.%[\]-]+=[^&]*)*$/,Sf=/multipart\/form-data/i,Cf=/^--[^\r\n]{1,200}\r?\ncontent-disposition:\s*form-data/i;function lr(e,t=""){let r=e.trimStart();if(r.startsWith("{")||r.startsWith("["))try{let i=bt(e);return wi(i)?Ce(i):e}catch{return e}return Sf.test(t)||Cf.test(r)?Ef(e,t):/x-www-form-urlencoded/i.test(t)||r.length<1e5&&vf.test(r)?ar(e):e}function Ef(e,t=""){let r=/boundary=(?:"([^"]+)"|([^;,\s]+))/i.exec(t),i=r?.[1]??r?.[2]??/^--([^\r\n]+)/.exec(e.trimStart())?.[1];if(!i)return e;let n=`--${i}`,a=e.split(n),u=!1;for(let f=1;f<a.length;f++){let l=a[f],p=/\r?\n\r?\n/.exec(l);if(!p)continue;let o=l.slice(0,p.index);if(/;\s*filename\*?=/i.test(o))continue;let d=/;\s*name="([^"]*)"/i.exec(o)?.[1]??/;\s*name=([^;\s]+)/i.exec(o)?.[1];if(d===void 0||!Ae(d))continue;let c=p.index+p[0].length,s=l.endsWith(`\r
129
+ `)?l.length-2:l.endsWith(`
130
+ `)?l.length-1:l.length;a[f]=l.slice(0,c)+ze+l.slice(Math.max(c,s)),u=!0}return u?a.join(n):e}var bi={depth:4,items:50,string:2e3};function et(e){if(!e||typeof e!="object")return!1;if(e instanceof Error)return!0;let t=e;return typeof t.message=="string"&&typeof t.name=="string"&&"stack"in t}function xf(e){if(e.nodeType===1){let t=e,r="<"+t.tagName.toLowerCase();t.id&&(r+="#"+t.id);let i=t.getAttribute("class")?.trim();return i&&(r+="."+i.split(/\s+/).slice(0,3).join(".")),r+">"}return e.nodeType===3?`#text "${V(e.textContent??"",60)}"`:e.nodeName}function vt(e,t=bi){return wt(e,0,new WeakSet,t)}function wt(e,t,r,i){switch(typeof e){case"string":return V(e,i.string);case"number":return Number.isFinite(e)?e:String(e);case"boolean":return e;case"undefined":return"undefined";case"bigint":return`${e}n`;case"symbol":return e.toString();case"function":return`\u0192 ${e.name||"anonymous"}()`}if(e===null)return null;let n=e;if(r.has(n))return"[Circular]";try{if(et(n))return{name:n.name,message:V(String(n.message),i.string),stack:V(String(n.stack??""),Math.min(4e3,i.string*2))};let a=n;if(typeof a.nodeType=="number"&&typeof a.nodeName=="string")return xf(a);if(n.window===n)return"[Window]";let u=wf.call(n).slice(8,-1);if(u==="Date"){let p=n;return Number.isNaN(p.getTime())?"Invalid Date":p.toISOString()}if(u==="RegExp")return String(n);if(u==="Promise")return"[Promise]";if(n instanceof ArrayBuffer||ArrayBuffer.isView(n))return`[${u} ${n.byteLength} bytes]`;if(t>=i.depth)return Array.isArray(n)?`[Array(${n.length})]`:`[${u}]`;if(r.add(n),Array.isArray(n)){let p=n.slice(0,i.items).map(o=>wt(o,t+1,r,i));return n.length>i.items&&p.push(`\u2026 ${n.length-i.items} more`),p}if(u==="Map")return{"[[Map]]":wt([...n].slice(0,i.items),t+1,r,i)};if(u==="Set")return{"[[Set]]":wt([...n].slice(0,i.items),t+1,r,i)};let f={},l=Object.keys(n);for(let p of l.slice(0,i.items))try{f[p]=wt(n[p],t+1,r,i)}catch{f[p]="[unreadable]"}return l.length>i.items&&(f["\u2026"]=`${l.length-i.items} more keys`),f}catch{return"[unserializable]"}}function pa(e,t){if(typeof e=="string")return e;if(et(e))return`${e.name}: ${e.message}`;if(typeof t=="string")return t;try{return V(Ce(t)??String(t),1e3)}catch{return String(t)}}function vi(e,t){let r=[],i=0;for(typeof e[0]=="string"&&e[0].includes("%")&&(i=1,r.push(e[0].replace(/%([sdifoOc%])/g,(n,a)=>{if(a==="%")return"%";if(i>=e.length)return n;let u=i++,f=e[u];switch(a){case"c":return"";case"d":case"i":return String(Number.parseInt(String(f),10));case"f":return String(Number(f));default:return pa(f,t[u])}})));i<e.length;i++)r.push(pa(e[i],t[i]));return V(r.join(" "),5e3)}function ga(e){if(!e)return;let t=e.split(`
131
131
  `).filter((r,i)=>i>0&&!r.includes("chrome-extension://"));return t.length?V(t.join(`
132
- `),4e3):void 0}var mf=["a","button","input","select","textarea","label","summary","option",'[role="button"]','[role="link"]','[role="menuitem"]','[role="tab"]','[role="checkbox"]','[role="radio"]','[role="switch"]','[role="option"]',"[onclick]","[data-testid]"].join(","),gf=[["name","name"],["type","type"],["role","role"],["aria-label","ariaLabel"],["data-testid","testId"],["placeholder","placeholder"],["title","title"],["alt","alt"]],yf=4,da=1e3,wf=30,ma=history.pushState,ga=history.replaceState,rt=()=>{},qe=!1,tt=[],pa=0,lr=ua({emit:({kind:e,url:t,title:r,ts:i})=>{qe&&rt({name:"page_view",kind:e,url:t,title:r,referrer:e==="load"&&document.referrer?Q(document.referrer):void 0,viewport:{w:innerWidth,h:innerHeight}},i)},url:()=>Q(location.href),title:()=>document.title,now:()=>Date.now(),watchTitle:e=>{let t=new MutationObserver(e);return t.observe(document.head??document.documentElement,{subtree:!0,childList:!0,characterData:!0}),()=>t.disconnect()},setTimer:(e,t)=>setTimeout(e,t),clearTimer:e=>clearTimeout(e)});function ya(e,t){if(rt=e,qe)return;qe=!0,document.addEventListener("click",xa,!0),document.addEventListener("change",Ra,!0),document.addEventListener("submit",Ta,!0),addEventListener("popstate",Ca),addEventListener("hashchange",Ea),history.pushState=va,history.replaceState=Sa;let r=document.readyState==="loading";lr.reset(r),r?document.addEventListener("DOMContentLoaded",()=>_e(t),{once:!0}):_e(t)}function wa(){qe&&(lr.flush(),qe=!1,document.removeEventListener("click",xa,!0),document.removeEventListener("change",Ra,!0),document.removeEventListener("submit",Ta,!0),removeEventListener("popstate",Ca),removeEventListener("hashchange",Ea),history.pushState===va&&(history.pushState=ma),history.replaceState===Sa&&(history.replaceState=ga))}function _e(e,t=Date.now()){qe&&lr.view(e,t)}function ba(){qe&&lr.flush()}function va(...e){ma.apply(this,e),Ve(()=>_e("push"))}function Sa(...e){ga.apply(this,e),Ve(()=>_e("replace"))}var Ca=()=>Ve(()=>_e("pop")),Ea=()=>Ve(()=>_e("hash"));function xa(e){e.isTrusted&&Ve(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.closest(mf)??t,i=vi(r),n=Date.now(),l=Q(location.href),c=Math.round(e.clientX),h=Math.round(e.clientY);rt({name:"click",url:l,target:i,x:c,y:h},n),tt=tt.filter(a=>n-a.ts<da&&Math.hypot(a.x-c,a.y-h)<wf),tt.push({ts:n,x:c,y:h}),tt.length>=yf&&n>=pa&&(rt({name:"rage_click",url:l,target:i,x:c,y:h,count:tt.length},n),pa=n+da,tt=[])})}function Ra(e){Ve(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.tagName;if(r!=="INPUT"&&r!=="SELECT"&&r!=="TEXTAREA")return;let i=(t.getAttribute("type")??"").toLowerCase(),n={name:"change",url:Q(location.href),target:vi(t)};bf(t)?n.masked=!0:i==="checkbox"||i==="radio"?n.value=t.checked?"checked":"unchecked":i==="file"?n.value=Array.from(t.files??[],l=>l.name).join(", "):n.value=V(String(t.value??""),500),rt(n,Date.now())})}function Ta(e){Ve(()=>{let t=e.target;if(!t||t.nodeType!==1)return;let r=t.getAttribute("action");rt({name:"submit",url:Q(location.href),target:vi(t),action:r?Q(Ae(r)):void 0,method:(t.getAttribute("method")??"get").toUpperCase()},Date.now())})}function bf(e){return(e.getAttribute("type")??"").toLowerCase()==="password"||e.hasAttribute("data-rr-is-password")||/password/i.test(e.getAttribute("autocomplete")??"")}function vi(e){let t={tag:e.tagName.toLowerCase(),selector:Cf(e)};e.id&&(t.id=V(e.id,100));let r=e.getAttribute("class")?.trim();r&&(t.classes=V(r.split(/\s+/).slice(0,6).join(" "),200));let i=vf(e);i&&(t.text=i);for(let[n,l]of gf){let c=e.getAttribute(n);c&&(t[l]=V(c,200))}if(t.tag==="a"){let n=e.getAttribute("href");n&&(t.href=Q(Ae(n)))}return t}function vf(e){let t=e.tagName;if(t==="INPUT"){let n=(e.getAttribute("type")??"").toLowerCase();return n==="button"||n==="submit"||n==="reset"?V(e.value,120):""}if(t==="SELECT"||t==="TEXTAREA")return"";let r="",i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(let n=i.nextNode();n&&r.length<200;n=i.nextNode()){let l=n.parentElement?.tagName;l==="SCRIPT"||l==="STYLE"||(r+=" "+(n.nodeValue??""))}return V(r.replace(/\s+/g," ").trim(),120)}var Sf=/^(css|sc|jsx|emotion)-|[0-9a-f]{5,}|__/i;function Cf(e){let t=[];for(let r=e;r&&r.nodeType===1&&t.length<5;r=r.parentElement){let i=r.tagName.toLowerCase();if(r.id&&/^[A-Za-z][\w-]*$/.test(r.id)){t.unshift(`${i}#${r.id}`);break}let n=r.getAttribute("data-testid");if(n){t.unshift(`${i}[data-testid="${n.replace(/"/g,'\\"')}"]`);break}let l=i,c=(r.getAttribute("class")??"").trim().split(/\s+/).filter(a=>a&&!Sf.test(a)).slice(0,2);c.length&&(l+="."+c.map(a=>CSS.escape(a)).join("."));let h=r.parentElement;if(h){let a=Array.from(h.children).filter(p=>p.tagName===r.tagName);a.length>1&&(l+=`:nth-of-type(${a.indexOf(r)+1})`)}t.unshift(l)}return t.join(" > ")}function Ve(e){try{e()}catch{}}var xf=["log","info","warn","error","debug","trace"],vt=()=>{},hr=!1,ur=!1,Si=!1,cr=new Map,fr=new Map;function Na(e){vt=e}function Ci(e){hr=e}function Oa(){if(ur)return;ur=!0;let e=console;for(let r of xf){let i=e[r];if(typeof i!="function")continue;let n=function(...l){return Ma(r,l),i.apply(this,l)};cr.set(r,i),fr.set(r,n),e[r]=n}let t=e.assert;if(typeof t=="function"){let r=function(...i){return i[0]||Ma("error",["Assertion failed:",...i.slice(1)]),t.apply(this,i)};cr.set("assert",t),fr.set("assert",r),e.assert=r}addEventListener("error",ka,!0),addEventListener("unhandledrejection",Da)}function Ia(){if(!ur)return;ur=!1;let e=console;for(let[t,r]of fr)e[t]===r&&(e[t]=cr.get(t));fr.clear(),cr.clear(),removeEventListener("error",ka,!0),removeEventListener("unhandledrejection",Da)}function Ma(e,t){if(!(!hr||Si)){Si=!0;try{let r=t.map(l=>bt(l)),i={level:e,source:"console",text:bi(t,r),args:r},n=t.find(et);n?.stack?i.stack=V(String(n.stack),4e3):e==="trace"&&(i.stack=ha(new Error().stack)),vt(i,Date.now())}catch{}finally{Si=!1}}}function ka(e){if(hr)try{if(e instanceof ErrorEvent){let r={level:"error",source:"uncaught",text:e.message||String(e.error),url:e.filename||void 0,line:e.lineno||void 0,col:e.colno||void 0};et(e.error)&&e.error.stack&&(r.stack=V(String(e.error.stack),4e3)),vt(r,Date.now());return}let t=e.target;if(t&&t.nodeType===1){let r=fa(t);vt({level:"error",source:"resource",text:`Failed to load <${t.tagName.toLowerCase()}>${r?` ${r}`:""}`,url:r||void 0},Date.now())}}catch{}}function Da(e){if(hr)try{let t=e.reason,r=bt(t),i={level:"error",source:"unhandledrejection",text:`Uncaught (in promise) ${bi([t],[r])}`,args:[r]};et(t)&&t.stack&&(i.stack=V(String(t.stack),4e3)),vt(i,Date.now())}catch{}}var La=15e3,Pa=new Set([101,204,205,304]),xi=window.fetch,pe=XMLHttpRequest.prototype,Fa=pe.open,Ua=pe.send,Ba=pe.setRequestHeader,dr=Navigator.prototype,Ti=dr.sendBeacon,yr=()=>{},me={captureBodies:!0,maxBodyChars:1e6},Ne=!1,pr=!1,$a=0,Ct=!1,Tf=0,je,Et=new Map,mr=new WeakMap,wr=()=>`${Date.now().toString(36)}-${(++Tf).toString(36)}`;function Mi(e,t){me=e,yr=t}function br(e){Ne=e}function Wa(e=!1){pr||(pr=!0,$a=performance.now(),Ct=e,window.fetch=qa,pe.open=ja,pe.send=Ga,pe.setRequestHeader=Ha,typeof Ti=="function"&&(dr.sendBeacon=Ya),kf())}function Ni(){pr&&(pr=!1,window.fetch===qa&&(window.fetch=xi),pe.open===ja&&(pe.open=Fa),pe.send===Ga&&(pe.send=Ua),pe.setRequestHeader===Ha&&(pe.setRequestHeader=Ba),dr.sendBeacon===Ya&&(dr.sendBeacon=Ti),je?.disconnect(),je=void 0,Et.clear())}function za(){let e=Ne;Ne=!0;try{let t=performance.getEntriesByType("navigation")[0];t&&(Ct=!1,gr(t,!0))}catch{}finally{Ne=e}}function Oi(){try{for(let t of je?.takeRecords()??[])gr(t);let e=performance.getEntriesByType("navigation")[0];e&&!Ct&&gr(e,!0)}catch{}for(let e of[...Et.values()])e.data.pending=!0,vr(e)}function vr(e){e.done||(e.done=!0,Et.delete(e.data.id),e.data.duration=J(performance.now()-e.t0),yr(e.data,e.ts))}function Mf(e){let t={data:e,ts:Date.now(),t0:performance.now(),done:!1};return Et.set(e.id,t),t}function qa(e,t){let r=arguments;if(!Ne)return xi.apply(this,r);let i;try{i=Nf(e,t)}catch{}let n=xi.apply(this,r);if(i){let l=i;n.then(c=>Of(l,c),c=>{l.data.error=Xa(c),vr(l)})}return n}function Nf(e,t){let r=e instanceof Request?e:void 0,i=r?r.url:e instanceof URL?e.href:String(e),n={id:wr(),kind:"fetch",method:String(t?.method??r?.method??"GET").toUpperCase(),url:Q(Ae(i))},l=Df(r?.headers,t?.headers);l&&(n.reqHeaders=l);let c=Mf(n);if(me.captureBodies){let h=l?.["content-type"];t?.body!=null?St(n,Ii(t.body,h)):r?.body&&!r.bodyUsed&&(c.reqBody=Va(r.clone().body,me.maxBodyChars).then(a=>St(n,{text:ar(a.text,h),truncated:a.truncated}),()=>St(n,{note:"unreadable"})))}return c}async function Of(e,t){let r=e.data;try{r.ttfb=J(performance.now()-e.t0),r.status=t.status,t.statusText&&(r.statusText=t.statusText),r.resHeaders=Ri(t.headers);let i=t.headers.get("content-type")??"";if(i&&(r.mime=i),t.type==="opaque"||t.type==="opaqueredirect")r.resBodyNote="opaque response (no-cors)";else if(me.captureBodies&&r.method!=="HEAD"&&!Pa.has(t.status))if(/event-stream/i.test(i))r.resBodyNote="event stream, not captured";else if(!i||sr.test(i)){let n=await Va(t.clone().body,me.maxBodyChars);r.resBody=n.text,r.resSize=n.bytes,n.truncated&&(r.resBodyTruncated=!0),n.timedOut&&(r.resBodyNote=`body still streaming after ${La/1e3}s, captured partially`)}else{let n=t.headers.get("content-length");r.resBodyNote=`binary (${i}${n?`, ${n} bytes`:""})`}await e.reqBody}catch(i){r.resBodyNote=`unreadable: ${Xa(i)}`}vr(e)}var Aa=Symbol("timeout");async function Va(e,t){let r={text:"",bytes:0,truncated:!1,timedOut:!1};if(!e)return r;let i=e.getReader(),n=new TextDecoder,l=performance.now()+La;try{for(;;){let c=l-performance.now(),h,a=await Promise.race([i.read(),new Promise(p=>{h=setTimeout(()=>p(Aa),Math.max(0,c))})]);if(clearTimeout(h),a===Aa){r.timedOut=!0;break}if(a.done){r.text+=n.decode();break}if(r.bytes+=a.value.byteLength,r.text+=n.decode(a.value,{stream:!0}),r.text.length>t){r.text=r.text.slice(0,t),r.truncated=!0;break}}}finally{i.cancel().catch(()=>{})}return r}function ja(e,t){if(Ne)try{mr.set(this,{data:{id:wr(),kind:"xhr",method:String(e).toUpperCase(),url:Q(Ae(String(t)))},ts:0,t0:0,done:!1})}catch{}else mr.delete(this);return Fa.apply(this,arguments)}function Ha(e,t){let r=mr.get(this);return r&&((r.data.reqHeaders??={})[String(e).toLowerCase()]=String(t)),Ba.call(this,e,t)}function Ga(e){let t=mr.get(this);if(t&&Ne&&t.t0===0)try{t.ts=Date.now(),t.t0=performance.now(),Et.set(t.data.id,t),me.captureBodies&&e!=null&&St(t.data,Ii(e,t.data.reqHeaders?.["content-type"]));let r=this;r.addEventListener("readystatechange",()=>{r.readyState===2&&t.data.ttfb===void 0&&(t.data.ttfb=J(performance.now()-t.t0))}),r.addEventListener("error",()=>t.data.error??="network error"),r.addEventListener("abort",()=>t.data.error??="aborted"),r.addEventListener("timeout",()=>t.data.error??="timeout"),r.addEventListener("loadend",()=>{try{If(r,t.data)}catch{}vr(t)})}catch{}return Ua.apply(this,arguments)}function If(e,t){t.status=e.status,e.statusText&&(t.statusText=e.statusText),t.resHeaders=Af(e.getAllResponseHeaders());let r=e.getResponseHeader("content-type")??"";if(r&&(t.mime=r),!(!me.captureBodies||t.error||Pa.has(e.status)))switch(e.responseType){case"":case"text":{if(r&&!sr.test(r)){t.resBodyNote=`binary (${r})`;return}_a(t,e.responseText);return}case"json":_a(t,ve(e.response)??"null");return;case"arraybuffer":t.resBodyNote=`ArrayBuffer, ${e.response?.byteLength??0} bytes`;return;case"blob":t.resBodyNote=`Blob, ${e.response?.size??0} bytes`;return;default:t.resBodyNote=e.responseType}}function _a(e,t){e.resSize=t.length,t.length>me.maxBodyChars?(e.resBody=t.slice(0,me.maxBodyChars),e.resBodyTruncated=!0):e.resBody=t}function Ya(e,t){let r=Ti.apply(this,arguments);if(Ne)try{let i={id:wr(),kind:"beacon",method:"POST",url:Q(Ae(String(e)))};r?i.statusText="queued":i.error="rejected by the browser",me.captureBodies&&t!=null&&St(i,Ii(t)),yr(i,Date.now())}catch{}return r}function kf(){try{je=new PerformanceObserver(e=>{for(let t of e.getEntries())gr(t)}),je.observe({type:"resource",buffered:!0}),je.observe({type:"navigation",buffered:!0})}catch{je=void 0}}function gr(e,t=!1){if(!Ne)return;let r=e;if(r.entryType==="resource"){if(r.initiatorType==="fetch"||r.initiatorType==="xmlhttprequest"||r.initiatorType==="beacon"||r.startTime<$a-50||r.name.startsWith("chrome-extension:")||r.initiatorType==="other"&&/\/favicon\.ico($|\?)/.test(r.name))return}else if(r.entryType==="navigation"){if(Ct||r.duration===0&&!t)return;Ct=!0}else return;let i={id:wr(),kind:r.entryType==="navigation"?"navigation":"resource",method:"GET",url:Q(r.name),duration:J(r.duration)};r.entryType==="navigation"?(i.navType=r.type,r.duration===0&&(i.pending=!0)):i.initiator=r.initiatorType,r.responseStatus&&(i.status=r.responseStatus),r.responseStart>0&&(i.ttfb=J(r.responseStart-r.startTime)),r.transferSize&&(i.transferSize=r.transferSize),r.decodedBodySize&&(i.resSize=r.decodedBodySize),r.contentType&&(i.mime=r.contentType),yr(i,Math.round(performance.timeOrigin+r.startTime))}function St(e,t){t.text!==void 0&&(e.reqBody=t.text),t.note&&(e.reqBodyNote=t.note),t.truncated&&(e.reqBodyTruncated=!0)}function Ei(e){return e.length>me.maxBodyChars?{text:e.slice(0,me.maxBodyChars),truncated:!0}:{text:e}}function Ii(e,t=""){try{if(typeof e=="string")return Ei(ar(e,t));if(e instanceof URLSearchParams)return Ei(or(e.toString()));if(e instanceof FormData){let r={};return e.forEach((i,n)=>{let l=typeof i=="string"?De(n)?ze:V(i,1e4):`[File ${i.name}, ${i.size} bytes${i.type?`, ${i.type}`:""}]`,c=r[n];r[n]=c===void 0?l:Array.isArray(c)?[...c,l]:[c,l]}),{text:ve(r),note:"FormData"}}if(e instanceof Blob)return{note:`Blob, ${e.size} bytes${e.type?`, ${e.type}`:""}`};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let r=e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return sr.test(t)?Ei(ar(new TextDecoder().decode(r),t)):{note:`binary, ${r.byteLength} bytes`}}return e instanceof ReadableStream?{note:"stream"}:e instanceof Document?{note:"Document"}:{note:typeof e}}catch{return{note:"unreadable"}}}function Ri(e){if(!e)return;let t={};try{if(e instanceof Headers)e.forEach((r,i)=>t[i]=r);else if(Array.isArray(e))for(let[r,i]of e)t[String(r).toLowerCase()]=String(i);else for(let[r,i]of Object.entries(e))t[r.toLowerCase()]=String(i)}catch{}return Object.keys(t).length?t:void 0}function Df(e,t){let r=Ri(e),i=Ri(t);return r||i?{...r,...i}:void 0}function Af(e){let t={};for(let r of e.trim().split(/[\r\n]+/)){let i=r.indexOf(":");i>0&&(t[r.slice(0,i).trim().toLowerCase()]=r.slice(i+1).trim())}return Object.keys(t).length?t:void 0}function Xa(e){return e instanceof Error?`${e.name}: ${e.message}`:String(e)}var Cr=class{t;o=0;i=[];u(t){if(t.hadRecentInput)return;let r=this.i[0],i=this.i.at(-1);this.o&&r&&i&&t.startTime-i.startTime<1e3&&t.startTime-r.startTime<5e3?(this.o+=t.value,this.i.push(t)):(this.o=t.value,this.i=[t]),this.t?.(t)}},ot=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Er=e=>{if(document.readyState==="loading")return"loading";let t=ot();if(t){if(e<t.domInteractive)return"loading";if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return"dom-interactive";if(t.domComplete===0||e<t.domComplete)return"dom-content-loaded"}return"complete"},Lf=e=>{let t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},Pi=e=>{let t="";try{for(;e?.nodeType!==9;){let r=e,i=r.id?"#"+r.id:[Lf(r),...Array.from(r.classList).sort()].join(".");if(t.length+i.length>99)return t||i;if(t=t?i+">"+t:i,r.id)break;e=r.parentNode}}catch{}return t},Ja=new WeakMap;function it(e,t){let r=Ja.get(t);return r||(r=new WeakMap,Ja.set(t,r)),r.get(e)||r.set(e,new t),r.get(e)}var ol=-1,al=()=>ol,at=e=>{addEventListener("pageshow",t=>{t.persisted&&(ol=t.timeStamp,e(t))},!0)},Ee=(e,t,r,i)=>{let n,l;return c=>{t.value>=0&&(c||i)&&(l=t.value-(n??0),(l||n===void 0)&&(n=t.value,t.delta=l,t.rating=((h,a)=>h>a[1]?"poor":h>a[0]?"needs-improvement":"good")(t.value,r),e(t)))}},Fi=e=>{requestAnimationFrame(()=>requestAnimationFrame(e))},xt=()=>ot()?.activationStart??0,xe=(e,t=-1)=>{let r=ot(),i="navigate";return al()>=0?i="back-forward-cache":r&&(document.prerendering||xt()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},st=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let i=new PerformanceObserver(n=>{queueMicrotask(()=>{t(n.getEntries())})});return i.observe({type:e,buffered:!0,...r}),i}}catch{}},Ui=e=>{let t=!1;return()=>{t||(e(),t=!0)}},nt=-1,ll=new Set,Ka=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,Di=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(let t of ll)t();isFinite(nt)||(nt=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",Di,!0))}},Tr=()=>{if(nt<0){let e=xt();nt=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(r=>r.name==="hidden"&&r.startTime>=e)?.startTime)??Ka(),addEventListener("visibilitychange",Di,!0),addEventListener("prerenderingchange",Di,!0),at(()=>{setTimeout(()=>{nt=Ka()})})}return{get firstHiddenTime(){return nt},onHidden(e){ll.add(e)}}},Mr=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},Qa=[1800,3e3],ul=(e,t={})=>{Mr(()=>{let r=Tr(),i,n=xe("FCP"),l=st("paint",c=>{for(let h of c)h.name==="first-contentful-paint"&&(l.disconnect(),h.startTime<r.firstHiddenTime&&(n.value=Math.max(h.startTime-xt(),0),n.entries.push(h),i(!0)))});l&&(i=Ee(e,n,Qa,t.reportAllChanges),at(c=>{n=xe("FCP"),i=Ee(e,n,Qa,t.reportAllChanges),Fi(()=>{n.value=performance.now()-c.timeStamp,i(!0)})}))})},Za=[.1,.25],el=e=>e.find(t=>t.node?.nodeType===1)||e[0],cl=(e,t={})=>{let r=it(t=Object.assign({},t),Cr),i=new WeakMap;r.t=n=>{if(n?.sources?.length){let l=el(n.sources),c=l?.node;if(c){let h=t.generateTarget?.(c)??Pi(c);i.set(l,h)}}},((n,l={})=>{let c=Tr();ul(Ui(()=>{let h,a=xe("CLS",0),p=it(l,Cr),o=u=>{for(let s of u)p.u(s);p.o>a.value&&(a.value=p.o,a.entries=p.i,h())},d=st("layout-shift",o);d&&(h=Ee(n,a,Za,l.reportAllChanges),c.onHidden(()=>{o(d.takeRecords()),h(!0)}),at(()=>{p.o=0,a=xe("CLS",0),h=Ee(n,a,Za,l.reportAllChanges),Fi(h)}),setTimeout(h))}))})(n=>{e((l=>{let c={};if(l.entries.length){let h=l.entries.reduce((a,p)=>a.value>p.value?a:p);if(h?.sources?.length){let a=el(h.sources);a&&(c={largestShiftTarget:i.get(a),largestShiftTime:h.startTime,largestShiftValue:h.value,largestShiftSource:a,largestShiftEntry:h,loadState:Er(h.startTime)})}}return Object.assign(l,{attribution:c})})(n))},t)},fl=(e,t={})=>{ul(r=>{e((i=>{let n={timeToFirstByte:0,firstByteToFCP:i.value,loadState:Er(al())};if(i.entries.length){let l=ot(),c=i.entries.at(-1);if(l){let h=l.activationStart||0,a=Math.max(0,l.responseStart-h);n={timeToFirstByte:a,firstByteToFCP:i.value-a,loadState:Er(i.entries[0].startTime),navigationEntry:l,fcpEntry:c}}}return Object.assign(i,{attribution:n})})(r))},t)},hl=0,ki=1/0,Sr=0,Pf=e=>{for(let t of e)t.interactionId&&(ki=Math.min(ki,t.interactionId),Sr=Math.max(Sr,t.interactionId),hl=Sr?(Sr-ki)/7+1:0)},Ai,tl=()=>Ai?hl:performance.interactionCount??0,Ff=()=>{"interactionCount"in performance||Ai||(Ai=st("event",Pf,{durationThreshold:0}))},rl=0,xr=class{l=[];h=new Map;m;p;v(){rl=tl(),this.l.length=0,this.h.clear()}M(){let t=Math.min(this.l.length-1,Math.floor((tl()-rl)/50));return this.l[t]}u(t){if(this.m?.(t),!t.interactionId&&t.entryType!=="first-input")return;let r=this.l.at(-1),i=this.h.get(t.interactionId);if(i||this.l.length<10||t.duration>r.T){if(i?t.duration>i.T?(i.entries=[t],i.T=t.duration):t.duration===i.T&&t.startTime===i.entries[0].startTime&&i.entries.push(t):(i={id:t.interactionId,entries:[t],T:t.duration},this.h.set(i.id,i),this.l.push(i)),this.l.sort((n,l)=>l.T-n.T),this.l.length>10){let n=this.l.splice(10);for(let l of n)this.h.delete(l.id)}this.p?.(i)}}},_i=e=>{let t=globalThis.requestIdleCallback||setTimeout,r=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState==="hidden")e();else{let i=Ui(e),n=-1,l=()=>{r(n),i()};addEventListener("visibilitychange",l,{once:!0,capture:!0}),n=t(()=>{removeEventListener("visibilitychange",l,{capture:!0}),i()})}},nl=[200,500],dl=(e,t={})=>{let r=it(t=Object.assign({},t),xr),i=[],n=[],l=0,c=new WeakMap,h=new WeakMap,a=!1,p=()=>{a||(_i(o),a=!0)},o=()=>{let s=new Set(r.l.map(g=>c.get(g.entries[0]))),m=n.length-10;n=n.filter((g,C)=>C>=m||s.has(g));let f=new Set;for(let g of n){let C=d(g.startTime,g.processingEnd);for(let w of C)f.add(w)}i=i.filter(g=>g.startTime>l||f.has(g)),a=!1};r.m=s=>{let m=s.startTime+s.duration,f;l=Math.max(l,s.processingEnd);for(let g=n.length-1;g>=0;g--){let C=n[g];if(Math.abs(m-C.renderTime)<=8){f=C,f.startTime=Math.min(s.startTime,f.startTime),f.processingStart=Math.min(s.processingStart,f.processingStart),f.processingEnd=Math.max(s.processingEnd,f.processingEnd),t.includeProcessedEventEntries!==!1&&f.entries.push(s);break}}f||(f={startTime:s.startTime,processingStart:s.processingStart,processingEnd:s.processingEnd,renderTime:m,entries:t.includeProcessedEventEntries!==!1?[s]:[]},n.push(f)),(s.interactionId||s.entryType==="first-input")&&c.set(s,f),p()},r.p=s=>{if(!h.get(s)){let m=s.entries.find(f=>f.target)?.target;if(m){let f=t.generateTarget?.(m)??Pi(m);h.set(s,f)}else{let f=s.entries.find(g=>g.targetSelector)?.targetSelector;f&&h.set(s,f)}}};let d=(s,m)=>{let f=[];for(let g of i)if(!(g.startTime+g.duration<s)){if(g.startTime>m)break;f.push(g)}return f},u=s=>{let m=s.entries[0],f=c.get(m),g=m.processingStart,C=Math.max(m.startTime+m.duration,g),w=Math.min(f.processingEnd,C),v=f.entries.sort((S,x)=>S.processingStart-x.processingStart),E=d(m.startTime,w),b=r.h.get(m.interactionId),y={interactionTarget:h.get(b),interactionType:m.name.startsWith("key")?"keyboard":"pointer",interactionTime:m.startTime,nextPaintTime:C,processedEventEntries:v,longAnimationFrameEntries:E,inputDelay:g-m.startTime,processingDuration:w-g,presentationDelay:C-w,loadState:Er(m.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(S=>{if(!S.longAnimationFrameEntries?.length)return;let x=S.interactionTime,M=S.inputDelay,T=S.processingDuration,k,I,R=0,te=0,re=0,F=0;for(let K of S.longAnimationFrameEntries){te=te+K.startTime+K.duration-K.styleAndLayoutStart;for(let $ of K.scripts){let B=$.startTime+$.duration;if(B<x)continue;let le=B-Math.max(x,$.startTime),N=$.duration?le/$.duration*$.forcedStyleAndLayoutDuration:0;R+=le-N,te+=N,le>F&&(I=$.startTime<x+M?"input-delay":$.startTime>=x+M+T?"presentation-delay":"processing-duration",k=$,F=le)}}let L=S.longAnimationFrameEntries.at(-1),j=L?L.startTime+L.duration:0;j>=x+M+T&&(re=S.nextPaintTime-j),k&&I&&(S.longestScript={entry:k,subpart:I,intersectingDuration:F}),S.totalScriptDuration=R,S.totalStyleAndLayoutDuration=te,S.totalPaintDuration=re,S.totalUnattributedDuration=S.nextPaintTime-x-R-te-re})(y),Object.assign(s,{attribution:y})};st("long-animation-frame",s=>{i=i.concat(s),p()}),((s,m={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let f=Tr();Mr(()=>{Ff();let g,C=xe("INP"),w=it(m,xr),v=b=>{_i(()=>{for(let S of b)w.u(S);let y=w.M();y&&y.T!==C.value&&(C.value=y.T,C.entries=y.entries,g())})},E=st("event",v,{durationThreshold:m.durationThreshold??40});g=Ee(s,C,nl,m.reportAllChanges),E&&(E.observe({type:"first-input",buffered:!0}),f.onHidden(()=>{v(E.takeRecords()),g(!0)}),at(()=>{w.v(),C=xe("INP"),g=Ee(s,C,nl,m.reportAllChanges)}))})})(s=>{e(u(s))},t)},Rr=class{m;u(t){this.m?.(t)}},il=[2500,4e3],pl=(e,t={})=>{let r=it(t=Object.assign({},t),Rr),i=new WeakMap;r.m=n=>{let l=n.element;if(l){let c=t.generateTarget?.(l)??Pi(l);i.set(n,c)}else n.id&&i.set(n,`#${n.id}`)},((n,l={})=>{Mr(()=>{let c=Tr(),h,a=xe("LCP"),p=it(l,Rr),o=u=>{l.reportAllChanges||(u=u.slice(-1));for(let s of u)p.u(s),s.startTime<c.firstHiddenTime&&(a.value=Math.max(s.startTime-xt(),0),a.entries=[s],h())},d=st("largest-contentful-paint",o);if(d){h=Ee(n,a,il,l.reportAllChanges);let u=Ui(()=>{o(d.takeRecords()),d.disconnect(),h(!0)}),s=m=>{m.isTrusted&&(_i(u),removeEventListener(m.type,s,{capture:!0}))};for(let m of["keydown","click","visibilitychange"])addEventListener(m,s,{capture:!0});at(m=>{a=xe("LCP"),h=Ee(n,a,il,l.reportAllChanges),Fi(()=>{a.value=performance.now()-m.timeStamp,h(!0)})})}})})(n=>{e((l=>{let c={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:l.value};if(l.entries.length){let h=l.entries.at(-1),a=h.url&&performance.getEntriesByType("resource").find(o=>o.name===h.url);c.target=i.get(h),c.lcpEntry=h,h.url&&(c.url=h.url),a&&(c.lcpResourceEntry=a);let p=ot();if(p){let o=p.activationStart||0,d=Math.max(0,p.responseStart-o),u=Math.max(d,a?(a.requestStart||a.startTime)-o:0),s=Math.min(l.value,Math.max(u,a?a.responseEnd-o:0));c={...c,timeToFirstByte:d,resourceLoadDelay:u-d,resourceLoadDuration:s-u,elementRenderDelay:l.value-s,navigationEntry:p}}}return Object.assign(l,{attribution:c})})(n))},t)},sl=[800,1800],Li=e=>{document.prerendering?Mr(()=>Li(e)):document.readyState!=="complete"?addEventListener("load",()=>Li(e),!0):setTimeout(e)},ml=(e,t={})=>{((r,i={})=>{let n=xe("TTFB"),l=Ee(r,n,sl,i.reportAllChanges);Li(()=>{let c=ot();c&&(n.value=Math.max(c.responseStart-xt(),0),n.entries=[c],l(!0),at(()=>{n=xe("TTFB",0),l=Ee(r,n,sl,i.reportAllChanges),l(!0)}))})})(r=>{e((i=>{let n={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(i.entries.length){let l=i.entries[0],c=l.activationStart||0,h=Math.max((l.workerStart||l.fetchStart)-c,0),a=Math.max(l.domainLookupStart-c,0),p=Math.max(l.connectStart-c,0),o=Math.max(l.connectEnd-c,0);n={waitingDuration:h,cacheDuration:a-h,dnsDuration:p-a,connectionDuration:o-p,requestDuration:i.value-o,navigationEntry:l}}return Object.assign(i,{attribution:n})})(r))},t)};var gl="long-animation-frame",Uf=5,Nr=()=>{},He=!1,yl=!1,Tt,bl=0,Bi=new Map;function vl(e,t){if(Nr=e,He)return;He=!0;let r=Date.now();for(let i of Bi.values())Re(()=>Nr(i,r));yl||(yl=!0,Bf()),$f(t?0:performance.now())}function $i(){let e=Tt;He&&e&&Re(()=>Cl(e.takeRecords()))}function Sl(){He&&($i(),He=!1,Tt?.disconnect(),Tt=void 0)}function Bf(){addEventListener("pageshow",t=>t.persisted&&Bi.clear(),!0);let e={reportAllChanges:!0};Re(()=>pl(Rt,e)),Re(()=>cl(Rt,e)),Re(()=>dl(Rt,e)),Re(()=>fl(Rt,e)),Re(()=>ml(Rt,e))}function Rt(e){Re(()=>{let t=Wf(e,{timeOrigin:performance.timeOrigin,now:performance.now(),url:Q(location.href)});Bi.set(t.name,t),He&&Nr(t,Date.now())})}function $f(e){bl=e,!Tt&&Re(()=>{if(!PerformanceObserver.supportedEntryTypes?.includes(gl))return;let t=new PerformanceObserver(r=>Re(()=>Cl(r.getEntries())));t.observe({type:gl,buffered:!0}),Tt=t})}function Cl(e){if(!He)return;let t=Q(location.href);for(let r of e){let i=r;i.startTime+i.duration<bl||Nr(zf(i,t),Math.round(performance.timeOrigin+i.startTime))}}function Wf(e,t){let r=h=>Math.round(t.timeOrigin+h),i=()=>r(e.entries.at(-1)?.startTime??t.now),n={};switch(e.name){case"LCP":{let h=e.attribution;n.target=h.target,h.url&&(n.url=Q(h.url)),n.timeToFirstByte=J(h.timeToFirstByte),n.resourceLoadDelay=J(h.resourceLoadDelay),n.resourceLoadDuration=J(h.resourceLoadDuration),n.elementRenderDelay=J(h.elementRenderDelay),n.time=i();break}case"CLS":{let h=e.attribution;n.target=h.largestShiftTarget,h.largestShiftValue!==void 0&&(n.largestShiftValue=wl(h.largestShiftValue)),h.largestShiftTime!==void 0&&(n.time=r(h.largestShiftTime)),n.loadState=h.loadState;break}case"INP":{let h=e.attribution;n.target=h.interactionTarget||void 0,n.interactionType=h.interactionType,n.inputDelay=J(h.inputDelay),n.processingDuration=J(h.processingDuration),n.presentationDelay=J(h.presentationDelay),n.loadState=h.loadState,n.time=r(h.interactionTime);break}case"FCP":{let h=e.attribution;n.timeToFirstByte=J(h.timeToFirstByte),n.firstByteToFCP=J(h.firstByteToFCP),n.loadState=h.loadState,n.time=i();break}case"TTFB":{let h=e.attribution;n.waitingDuration=J(h.waitingDuration),n.cacheDuration=J(h.cacheDuration),n.dnsDuration=J(h.dnsDuration),n.connectionDuration=J(h.connectionDuration),n.requestDuration=J(h.requestDuration);break}}let l={kind:"vital",name:e.name,value:e.name==="CLS"?wl(e.value):J(e.value),rating:e.rating,id:e.id,navigationType:e.navigationType,url:t.url},c=qf(n);return Object.keys(c).length&&(l.attribution=c),l}function zf(e,t){let r=[...e.scripts??[]].sort((i,n)=>n.duration-i.duration).slice(0,Uf).map(i=>{let n={duration:Math.round(i.duration)};return i.sourceURL&&(n.url=V(Q(i.sourceURL),2e3)),i.sourceFunctionName&&(n.fn=V(i.sourceFunctionName,200)),i.invoker&&(n.invoker=V(i.invoker,500)),i.invokerType&&(n.invokerType=i.invokerType),n});return{kind:"loaf",duration:Math.round(e.duration),blockingDuration:Math.round(e.blockingDuration),scripts:r,url:t}}var wl=e=>Math.round(e*1e4)/1e4;function qf(e){let t={};for(let[r,i]of Object.entries(e))i!==void 0&&(t[r]=i);return t}function Re(e){try{e()}catch{}}var Ol="tabtape:track",Il="tabtape:identify",kl="tabtape:state",Wi=100,Or=200,Dl=8*1024,El={calls:100,perMs:1e3},jf=[wi,{depth:4,items:50,string:500},{depth:4,items:20,string:200},{depth:3,items:10,string:100},{depth:2,items:10,string:50}],Ir="\u2026";function Hf(e){if(typeof e!="string")return;let t=e.trim();return t&&t.length<=Wi*2&&[...t].length<=Wi?t:void 0}function Gf(e){let t;if(typeof e=="string")t=e.trim();else if(typeof e=="number"&&Number.isFinite(e)||typeof e=="bigint")t=String(e);else return;if(!t)return;if(t.length<=Or)return t;let r=/[\uD800-\uDBFF]/.test(t[Or-1])?Or-1:Or;return t.slice(0,r)}function Yf(e){let t=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t+=1:i<2048?t+=2:i>=55296&&i<=56319&&(e.charCodeAt(r+1)&64512)===56320?(t+=4,r++):t+=3}return t}function Mt(e,t=!1){if(Array.isArray(e)){for(let r=0;r<e.length;r++)e[r]=Mt(e[r],t);return e}if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];i==="[[Map]]"&&Array.isArray(n)?r[i]=n.map(l=>Array.isArray(l)&&l.length===2&&typeof l[0]=="string"?[l[0],Mt(l[1],t||De(l[0]))]:Mt(l,t)):r[i]=Mt(n,t||De(i))}return r}return t&&(typeof e=="string"||typeof e=="number")?ze:e}function xl(e){if(e==null)return{};let t={};for(let[r,i]of jf.entries())if(t=Xf(Mt(bt(e,i))),Al(t)<=Dl)return Rl(t,r>0);return Rl(Jf(t),!0)}function Xf(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{value:e}}function Rl(e,t){let r={};return Object.keys(e).length&&(r.props=e),t&&(r.truncated=!0),r}function Al(e){return Yf(ve(e)??"")}function Jf(e){let t=e[Ir],r=typeof t=="string"&&Number.parseInt(t,10)||0,i=Object.keys(e).filter(h=>h!==Ir),n={},l=0;for(let h of i){n[h]=e[h];let a=i.length-l-1+r;if(Al(a?{...n,[Ir]:`${a} more keys`}:n)>Dl){delete n[h];break}l++}let c=i.length-l+r;return c&&(n[Ir]=`${c} more keys`),n}var zi=class{calls;perMs;clock;times=[];oldest=0;constructor(t,r,i){this.calls=t,this.perMs=r,this.clock=i}take(){let t=this.clock();return this.times.length<this.calls?(this.times.push(t),!0):t-this.times[this.oldest]<this.perMs?!1:(this.times[this.oldest]=t,this.oldest=(this.oldest+1)%this.calls,!0)}};function Kf(e){let t=e.now??Date.now,r=e.url??(()=>Q(location.href)),i=e.warn??(s=>console.warn(s)),n=new zi(El.calls,El.perMs,e.clock??(()=>performance.now())),l=new Set,c=!1,h=0,a=!1;function p(s){if(!(!c||a)){a=!0;try{s()}catch{}finally{a=!1}}}function o(s,m){if(!l.has(s)){l.add(s);try{i(m())}catch{}}}function d(){return n.take()?!0:(h++,!1)}function u(s){h&&(s.dropped=h,h=0),e.emit(s,t())}return{get active(){return c},setActive(s){s&&!c&&(h=0),c=s},track(s,m){p(()=>{let f=Hf(s);if(f===void 0){o("track",()=>`tabtape.track: the event name must be a string of 1\u2013${Wi} characters, got ${Tl(s)}. The event was not recorded.`);return}if(!d())return;let g=xl(m),C={name:"custom",event:f,url:r()};g.props&&(C.props=g.props),g.truncated&&(C.propsTruncated=!0),u(C)})},identify(s,m){p(()=>{let f=Gf(s);if(f===void 0){o("identify",()=>`tabtape.identify: the user id must be a non-empty string or a number, got ${Tl(s)}. The call was ignored.`);return}if(!d())return;let g=xl(m),C={name:"identify",userId:f,url:r()};g.props&&(C.traits=g.props),g.truncated&&(C.propsTruncated=!0),u(C)})}}}function Tl(e){return typeof e=="string"?e.trim()?`${[...e.trim()].length} characters`:"an empty string":e===null?"null":typeof e}var Ml=()=>{},Le,kr,Dr=!1,Nl=!1;function _l(e){Ml=e,Le??=Kf({emit:(t,r)=>Ml(t,r)}),Le.setActive(!0),Qf(Le),Dr||(Dr=!0,addEventListener(Ol,Pl),addEventListener(Il,Fl),addEventListener(kl,Ul))}function Ll(){Le?.setActive(!1),Dr&&(Dr=!1,removeEventListener(Ol,Pl),removeEventListener(Il,Fl),removeEventListener(kl,Ul))}function Qf(e){try{if(kr&&window.tabtape===kr||"tabtape"in window)return;kr??=Object.freeze({track(t,r){e.track(t,r)},identify(t,r){e.identify(t,r)},state(t,r,i){Bl(e,t,r,i)},get isRecording(){return e.active}}),Object.defineProperty(window,"tabtape",{value:kr,configurable:!0,writable:!0,enumerable:!1})}catch{}}function qi(e){let t=e.detail;return t!==null&&typeof t=="object"?t:{}}function Pl(e){try{let t=qi(e);Le?.track(t.name,t.props)}catch{}}function Fl(e){try{let t=qi(e);Le?.identify(t.userId,t.traits)}catch{}}function Ul(e){try{let t=qi(e);Le&&Bl(Le,t.store,t.action,t.state)}catch{}}function Bl(e,t,r,i){if(e.active)try{let n=We();n?n.manual(t,r,i):Nl||(Nl=!0,console.warn("tabtape.state: state recording is off in the tabtape extension settings; the call was ignored."))}catch{}}var Vi=Symbol.for("tabtape.recorder"),eh=5e3,th=15e3,$l=window;$l[Vi]?$l[Vi].hello():rh();function rh(){let e=EventTarget.prototype.dispatchEvent,t=document.readyState==="loading",r="pending",i="",n=!1,l,c,h=!1,a=[],p=(y,S)=>e.call(document,new CustomEvent(y,{detail:S}));function o(y,S,x){if(r==="off")return;let M;try{M=ve({ts:Math.round(S),type:y,data:x})}catch{return}u(y,M)}function d(y,S,x){r!=="off"&&u(y,`{"ts":${Math.round(S)},"type":${ve(y)},"data":${x}}`)}function u(y,S){r==="active"?p(Me.data,S):a.length<eh&&a.push({type:y,line:S})}let s={captureBodies:!0,maxBodyChars:1e6,checkoutEveryNms:0,inPageNetwork:!0,recordState:!0};function m(y){Na((S,x)=>o("console",x,S)),Oa(),Ci(!0),y.inPageNetwork?(Mi(y,(S,x)=>o("network",x,S)),Wa(c?.inPageNetwork===!1),br(!0)):(br(!1),Ni())}function f(y){if(y===h)return;h=y;let S=We();if(S)try{y?S.start((x,M)=>d("state",M,x)):S.stop()}catch{}}function g(){br(!1),Ci(!1),Ni(),Ia()}m(s);let C=setTimeout(()=>r==="pending"&&E(),th);function w(y,S){if(clearTimeout(C),r==="active"&&y===i){m(S),c=S,f(S.recordState);return}r==="active"&&v(),i=y,m(S),c=S,r="active";for(let{type:x,line:M}of a.splice(0))x==="network"&&!S.inPageNetwork||p(Me.data,M);!S.inPageNetwork&&!t&&(Mi(S,(x,M)=>o("network",M,x)),za()),l=Ce({emit:(x,M)=>{o("rrweb",x.timestamp,x),M&&h&&We()?.checkout()},recordAfter:"DOMContentLoaded",maskAllInputs:!1,maskInputOptions:{password:!0},inlineStylesheet:!0,collectFonts:!1,recordCanvas:!1,recordCrossOriginIframes:!1,sampling:{mousemove:50,scroll:150,media:800,input:"last"},slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:!0,headMetaDescKeywords:!0},checkoutEveryNms:S.checkoutEveryNms>0?S.checkoutEveryNms:void 0,errorHandler:()=>!0})??void 0,ya((x,M)=>o("event",M,x),t&&!n?"load":"start"),_l((x,M)=>o("event",M,x)),vl((x,M)=>o("perf",M,x),t&&!n),f(S.recordState),n=!0}function v(){Oi(),f(!1),Sl(),Ll(),wa();try{l?.()}catch{}l=void 0,p(Me.flush)}function E(){clearTimeout(C),r==="active"&&v(),r="off",a.length=0,g();try{We()?.disable()}catch{}}document.addEventListener(Me.control,y=>{let S;try{S=yi(String(y.detail))}catch{return}S.cmd==="start"?w(S.sessionId,S.options):E()}),document.addEventListener(Me.info,()=>{let y={stateHook:"off",stores:[]};try{let S=We()?.info();S&&(y={stateHook:S.hook,stores:S.stores})}catch{}p(Me.infoReply,ve(y))}),addEventListener("pagehide",()=>{r==="active"&&(ba(),c?.inPageNetwork!==!1&&Oi(),$i(),p(Me.flush))}),addEventListener("pageshow",y=>{if(!(!y.persisted||r!=="active")){try{Ce.takeFullSnapshot(!0)}catch{}_e("bfcache")}});let b=()=>p(Me.hello);Object.defineProperty(window,Vi,{value:{hello:b,get active(){return r==="active"}},configurable:!0}),b()}})();
132
+ `),4e3):void 0}var Rf=["a","button","input","select","textarea","label","summary","option",'[role="button"]','[role="link"]','[role="menuitem"]','[role="tab"]','[role="checkbox"]','[role="radio"]','[role="switch"]','[role="option"]',"[onclick]","[data-testid]"].join(","),Tf=[["name","name"],["type","type"],["role","role"],["aria-label","ariaLabel"],["data-testid","testId"],["placeholder","placeholder"],["title","title"],["alt","alt"]],Mf=4,ya=1e3,Nf=30,ba=history.pushState,va=history.replaceState,rt=()=>{},qe=!1,tt=[],wa=0,ur=da({emit:({kind:e,url:t,title:r,ts:i})=>{qe&&rt({name:"page_view",kind:e,url:t,title:r,referrer:e==="load"&&document.referrer?Q(document.referrer):void 0,viewport:{w:innerWidth,h:innerHeight}},i)},url:()=>Q(location.href),title:()=>document.title,now:()=>Date.now(),watchTitle:e=>{let t=new MutationObserver(e);return t.observe(document.head??document.documentElement,{subtree:!0,childList:!0,characterData:!0}),()=>t.disconnect()},setTimer:(e,t)=>setTimeout(e,t),clearTimer:e=>clearTimeout(e)});function Sa(e,t){if(rt=e,qe)return;qe=!0,document.addEventListener("click",Na,!0),document.addEventListener("change",Oa,!0),document.addEventListener("submit",Ia,!0),addEventListener("popstate",Ta),addEventListener("hashchange",Ma),history.pushState=xa,history.replaceState=Ra;let r=document.readyState==="loading";ur.reset(r),r?document.addEventListener("DOMContentLoaded",()=>_e(t),{once:!0}):_e(t)}function Ca(){qe&&(ur.flush(),qe=!1,document.removeEventListener("click",Na,!0),document.removeEventListener("change",Oa,!0),document.removeEventListener("submit",Ia,!0),removeEventListener("popstate",Ta),removeEventListener("hashchange",Ma),history.pushState===xa&&(history.pushState=ba),history.replaceState===Ra&&(history.replaceState=va))}function _e(e,t=Date.now()){qe&&ur.view(e,t)}function Ea(){qe&&ur.flush()}function xa(...e){ba.apply(this,e),Ve(()=>_e("push"))}function Ra(...e){va.apply(this,e),Ve(()=>_e("replace"))}var Ta=()=>Ve(()=>_e("pop")),Ma=()=>Ve(()=>_e("hash"));function Na(e){e.isTrusted&&Ve(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.closest(Rf)??t,i=Si(r),n=Date.now(),a=Q(location.href),u=Math.round(e.clientX),f=Math.round(e.clientY);rt({name:"click",url:a,target:i,x:u,y:f},n),tt=tt.filter(l=>n-l.ts<ya&&Math.hypot(l.x-u,l.y-f)<Nf),tt.push({ts:n,x:u,y:f}),tt.length>=Mf&&n>=wa&&(rt({name:"rage_click",url:a,target:i,x:u,y:f,count:tt.length},n),wa=n+ya,tt=[])})}function Oa(e){Ve(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.tagName;if(r!=="INPUT"&&r!=="SELECT"&&r!=="TEXTAREA")return;let i=(t.getAttribute("type")??"").toLowerCase(),n={name:"change",url:Q(location.href),target:Si(t)};Of(t)?n.masked=!0:i==="checkbox"||i==="radio"?n.value=t.checked?"checked":"unchecked":i==="file"?n.value=Array.from(t.files??[],a=>a.name).join(", "):n.value=V(String(t.value??""),500),rt(n,Date.now())})}function Ia(e){Ve(()=>{let t=e.target;if(!t||t.nodeType!==1)return;let r=t.getAttribute("action");rt({name:"submit",url:Q(location.href),target:Si(t),action:r?Q(De(r)):void 0,method:(t.getAttribute("method")??"get").toUpperCase()},Date.now())})}function Of(e){return(e.getAttribute("type")??"").toLowerCase()==="password"||e.hasAttribute("data-rr-is-password")||/password/i.test(e.getAttribute("autocomplete")??"")}function Si(e){let t={tag:e.tagName.toLowerCase(),selector:Af(e)};e.id&&(t.id=V(e.id,100));let r=e.getAttribute("class")?.trim();r&&(t.classes=V(r.split(/\s+/).slice(0,6).join(" "),200));let i=If(e);i&&(t.text=i);for(let[n,a]of Tf){let u=e.getAttribute(n);u&&(t[a]=V(u,200))}if(t.tag==="a"){let n=e.getAttribute("href");n&&(t.href=Q(De(n)))}return t}function If(e){let t=e.tagName;if(t==="INPUT"){let n=(e.getAttribute("type")??"").toLowerCase();return n==="button"||n==="submit"||n==="reset"?V(e.value,120):""}if(t==="SELECT"||t==="TEXTAREA")return"";let r="",i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(let n=i.nextNode();n&&r.length<200;n=i.nextNode()){let a=n.parentElement?.tagName;a==="SCRIPT"||a==="STYLE"||(r+=" "+(n.nodeValue??""))}return V(r.replace(/\s+/g," ").trim(),120)}var kf=/^(css|sc|jsx|emotion)-|[0-9a-f]{5,}|__/i;function Af(e){let t=[];for(let r=e;r&&r.nodeType===1&&t.length<5;r=r.parentElement){let i=r.tagName.toLowerCase();if(r.id&&/^[A-Za-z][\w-]*$/.test(r.id)){t.unshift(`${i}#${r.id}`);break}let n=r.getAttribute("data-testid");if(n){t.unshift(`${i}[data-testid="${n.replace(/"/g,'\\"')}"]`);break}let a=i,u=(r.getAttribute("class")??"").trim().split(/\s+/).filter(l=>l&&!kf.test(l)).slice(0,2);u.length&&(a+="."+u.map(l=>CSS.escape(l)).join("."));let f=r.parentElement;if(f){let l=Array.from(f.children).filter(p=>p.tagName===r.tagName);l.length>1&&(a+=`:nth-of-type(${l.indexOf(r)+1})`)}t.unshift(a)}return t.join(" > ")}function Ve(e){try{e()}catch{}}var _f=["log","info","warn","error","debug","trace"],St=()=>{},dr=!1,cr=!1,Ci=!1,fr=new Map,hr=new Map;function Aa(e){St=e}function Ei(e){dr=e}function Da(){if(cr)return;cr=!0;let e=console;for(let r of _f){let i=e[r];if(typeof i!="function")continue;let n=function(...a){return ka(r,a),i.apply(this,a)};fr.set(r,i),hr.set(r,n),e[r]=n}let t=e.assert;if(typeof t=="function"){let r=function(...i){return i[0]||ka("error",["Assertion failed:",...i.slice(1)]),t.apply(this,i)};fr.set("assert",t),hr.set("assert",r),e.assert=r}addEventListener("error",La,!0),addEventListener("unhandledrejection",Pa)}function _a(){if(!cr)return;cr=!1;let e=console;for(let[t,r]of hr)e[t]===r&&(e[t]=fr.get(t));hr.clear(),fr.clear(),removeEventListener("error",La,!0),removeEventListener("unhandledrejection",Pa)}function ka(e,t){if(!(!dr||Ci)){Ci=!0;try{let r=t.map(a=>vt(a)),i={level:e,source:"console",text:vi(t,r),args:r},n=t.find(et);n?.stack?i.stack=V(String(n.stack),4e3):e==="trace"&&(i.stack=ga(new Error().stack)),St(i,Date.now())}catch{}finally{Ci=!1}}}function La(e){if(dr)try{if(e instanceof ErrorEvent){let r={level:"error",source:"uncaught",text:e.message||String(e.error),url:e.filename||void 0,line:e.lineno||void 0,col:e.colno||void 0};et(e.error)&&e.error.stack&&(r.stack=V(String(e.error.stack),4e3)),St(r,Date.now());return}let t=e.target;if(t&&t.nodeType===1){let r=ma(t);St({level:"error",source:"resource",text:`Failed to load <${t.tagName.toLowerCase()}>${r?` ${r}`:""}`,url:r||void 0},Date.now())}}catch{}}function Pa(e){if(dr)try{let t=e.reason,r=vt(t),i={level:"error",source:"unhandledrejection",text:`Uncaught (in promise) ${vi([t],[r])}`,args:[r]};et(t)&&t.stack&&(i.stack=V(String(t.stack),4e3)),St(i,Date.now())}catch{}}var Pf="data-tabtape-sandbox";function Fa(e){return!!e&&("srcdoc"in e||"sandbox"in e)}function Ua(e){let{srcdoc:t,sandbox:r,...i}=e;return r!==void 0&&(i[Pf]=r),i}function xi(e){let t=e.attributes,r=e.childNodes,i=!1;if(Fa(t)&&(t=Ua(t),i=!0),r){let n=r.map(xi);n.some((a,u)=>a!==r[u])&&(r=n,i=!0)}return i?{...e,attributes:t,childNodes:r}:e}var Ff=2,Uf=3,Bf=0;function $f(e){let t=e,r=t.data;if(!r)return e;if(t.type===Ff&&r.node){let i=xi(r.node);return i===r.node?e:{...t,data:{...r,node:i}}}if(t.type===Uf&&r.source===Bf){let i=!1,n=r.adds?.map(u=>{let f=xi(u.node);return f===u.node?u:(i=!0,{...u,node:f})}),a=r.attributes?.map(u=>Fa(u.attributes)?(i=!0,{...u,attributes:Ua(u.attributes)}):u);return i?{...t,data:{...r,adds:n,attributes:a}}:e}return e}var Ba={name:"tabtape/iframe-attrs",eventProcessor:$f,options:{}};function Ri(e){return{recordAfter:"DOMContentLoaded",maskAllInputs:!1,maskInputOptions:{password:!0},inlineStylesheet:!0,collectFonts:!1,recordCanvas:!1,recordCrossOriginIframes:!0,sampling:{mousemove:50,scroll:150,media:800,input:"last"},slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:!0,headMetaDescKeywords:!0},checkoutEveryNms:e.checkoutEveryNms>0?e.checkoutEveryNms:void 0,errorHandler:()=>!0,plugins:[Ba]}}function $a(e){return{...Ri(e),checkoutEveryNms:void 0,maskInputOptions:{password:!0,text:!0,tel:!0,number:!0},maskInputFn:(t,r)=>r?.type==="password"||r&&ua(r)?"*".repeat(t.length):t}}function Wa(e){let t,r=EventTarget.prototype.dispatchEvent,i=()=>r.call(document,new CustomEvent(de.hello));function n(){try{he.takeFullSnapshot(!0)}catch{}}function a(){try{t?.()}catch{}t=void 0}document.addEventListener(de.control,u=>{let f;try{f=bt(String(u.detail))}catch{return}f.cmd==="start"?t||(t=he($a(f.options))??(()=>{})):f.cmd==="checkout"?t&&n():a()}),addEventListener("pageshow",u=>{u.persisted&&t&&n()}),Object.defineProperty(window,e,{value:{hello:i,get active(){return t!==void 0}},configurable:!0}),i()}var Va=15e3,ja=new Set([101,204,205,304]),Mi=window.fetch,ge=XMLHttpRequest.prototype,Ha=ge.open,Ga=ge.send,Ya=ge.setRequestHeader,pr=Navigator.prototype,Oi=pr.sendBeacon,wr=()=>{},ye={captureBodies:!0,maxBodyChars:1e6},Ne=!1,mr=!1,Xa=0,Et=!1,Wf=0,je,xt=new Map,gr=new WeakMap,br=()=>`${Date.now().toString(36)}-${(++Wf).toString(36)}`;function Ii(e,t){ye=e,wr=t}function vr(e){Ne=e}function Ja(e=!1){mr||(mr=!0,Xa=performance.now(),Et=e,window.fetch=Qa,ge.open=el,ge.send=rl,ge.setRequestHeader=tl,typeof Oi=="function"&&(pr.sendBeacon=nl),Hf())}function ki(){mr&&(mr=!1,window.fetch===Qa&&(window.fetch=Mi),ge.open===el&&(ge.open=Ha),ge.send===rl&&(ge.send=Ga),ge.setRequestHeader===tl&&(ge.setRequestHeader=Ya),pr.sendBeacon===nl&&(pr.sendBeacon=Oi),je?.disconnect(),je=void 0,xt.clear())}function Ka(){let e=Ne;Ne=!0;try{let t=performance.getEntriesByType("navigation")[0];t&&(Et=!1,yr(t,!0))}catch{}finally{Ne=e}}function Ai(){try{for(let t of je?.takeRecords()??[])yr(t);let e=performance.getEntriesByType("navigation")[0];e&&!Et&&yr(e,!0)}catch{}for(let e of[...xt.values()])e.data.pending=!0,Sr(e)}function Sr(e){e.done||(e.done=!0,xt.delete(e.data.id),e.data.duration=J(performance.now()-e.t0),wr(e.data,e.ts))}function zf(e){let t={data:e,ts:Date.now(),t0:performance.now(),done:!1};return xt.set(e.id,t),t}function Qa(e,t){let r=arguments;if(!Ne)return Mi.apply(this,r);let i;try{i=qf(e,t)}catch{}let n=Mi.apply(this,r);if(i){let a=i;n.then(u=>Vf(a,u),u=>{a.data.error=il(u),Sr(a)})}return n}function qf(e,t){let r=e instanceof Request?e:void 0,i=r?r.url:e instanceof URL?e.href:String(e),n={id:br(),kind:"fetch",method:String(t?.method??r?.method??"GET").toUpperCase(),url:Q(De(i))},a=Gf(r?.headers,t?.headers);a&&(n.reqHeaders=a);let u=zf(n);if(ye.captureBodies){let f=a?.["content-type"];t?.body!=null?Ct(n,Di(t.body,f)):r?.body&&!r.bodyUsed&&(u.reqBody=Za(r.clone().body,ye.maxBodyChars).then(l=>Ct(n,{text:lr(l.text,f),truncated:l.truncated}),()=>Ct(n,{note:"unreadable"})))}return u}async function Vf(e,t){let r=e.data;try{r.ttfb=J(performance.now()-e.t0),r.status=t.status,t.statusText&&(r.statusText=t.statusText),r.resHeaders=Ni(t.headers);let i=t.headers.get("content-type")??"";if(i&&(r.mime=i),t.type==="opaque"||t.type==="opaqueredirect")r.resBodyNote="opaque response (no-cors)";else if(ye.captureBodies&&r.method!=="HEAD"&&!ja.has(t.status))if(/event-stream/i.test(i))r.resBodyNote="event stream, not captured";else if(!i||or.test(i)){let n=await Za(t.clone().body,ye.maxBodyChars);r.resBody=n.text,r.resSize=n.bytes,n.truncated&&(r.resBodyTruncated=!0),n.timedOut&&(r.resBodyNote=`body still streaming after ${Va/1e3}s, captured partially`)}else{let n=t.headers.get("content-length");r.resBodyNote=`binary (${i}${n?`, ${n} bytes`:""})`}await e.reqBody}catch(i){r.resBodyNote=`unreadable: ${il(i)}`}Sr(e)}var za=Symbol("timeout");async function Za(e,t){let r={text:"",bytes:0,truncated:!1,timedOut:!1};if(!e)return r;let i=e.getReader(),n=new TextDecoder,a=performance.now()+Va;try{for(;;){let u=a-performance.now(),f,l=await Promise.race([i.read(),new Promise(p=>{f=setTimeout(()=>p(za),Math.max(0,u))})]);if(clearTimeout(f),l===za){r.timedOut=!0;break}if(l.done){r.text+=n.decode();break}if(r.bytes+=l.value.byteLength,r.text+=n.decode(l.value,{stream:!0}),r.text.length>t){r.text=r.text.slice(0,t),r.truncated=!0;break}}}finally{i.cancel().catch(()=>{})}return r}function el(e,t){if(Ne)try{gr.set(this,{data:{id:br(),kind:"xhr",method:String(e).toUpperCase(),url:Q(De(String(t)))},ts:0,t0:0,done:!1})}catch{}else gr.delete(this);return Ha.apply(this,arguments)}function tl(e,t){let r=gr.get(this);return r&&((r.data.reqHeaders??={})[String(e).toLowerCase()]=String(t)),Ya.call(this,e,t)}function rl(e){let t=gr.get(this);if(t&&Ne&&t.t0===0)try{t.ts=Date.now(),t.t0=performance.now(),xt.set(t.data.id,t),ye.captureBodies&&e!=null&&Ct(t.data,Di(e,t.data.reqHeaders?.["content-type"]));let r=this;r.addEventListener("readystatechange",()=>{r.readyState===2&&t.data.ttfb===void 0&&(t.data.ttfb=J(performance.now()-t.t0))}),r.addEventListener("error",()=>t.data.error??="network error"),r.addEventListener("abort",()=>t.data.error??="aborted"),r.addEventListener("timeout",()=>t.data.error??="timeout"),r.addEventListener("loadend",()=>{try{jf(r,t.data)}catch{}Sr(t)})}catch{}return Ga.apply(this,arguments)}function jf(e,t){t.status=e.status,e.statusText&&(t.statusText=e.statusText),t.resHeaders=Yf(e.getAllResponseHeaders());let r=e.getResponseHeader("content-type")??"";if(r&&(t.mime=r),!(!ye.captureBodies||t.error||ja.has(e.status)))switch(e.responseType){case"":case"text":{if(r&&!or.test(r)){t.resBodyNote=`binary (${r})`;return}qa(t,e.responseText);return}case"json":qa(t,Ce(e.response)??"null");return;case"arraybuffer":t.resBodyNote=`ArrayBuffer, ${e.response?.byteLength??0} bytes`;return;case"blob":t.resBodyNote=`Blob, ${e.response?.size??0} bytes`;return;default:t.resBodyNote=e.responseType}}function qa(e,t){e.resSize=t.length,t.length>ye.maxBodyChars?(e.resBody=t.slice(0,ye.maxBodyChars),e.resBodyTruncated=!0):e.resBody=t}function nl(e,t){let r=Oi.apply(this,arguments);if(Ne)try{let i={id:br(),kind:"beacon",method:"POST",url:Q(De(String(e)))};r?i.statusText="queued":i.error="rejected by the browser",ye.captureBodies&&t!=null&&Ct(i,Di(t)),wr(i,Date.now())}catch{}return r}function Hf(){try{je=new PerformanceObserver(e=>{for(let t of e.getEntries())yr(t)}),je.observe({type:"resource",buffered:!0}),je.observe({type:"navigation",buffered:!0})}catch{je=void 0}}function yr(e,t=!1){if(!Ne)return;let r=e;if(r.entryType==="resource"){if(r.initiatorType==="fetch"||r.initiatorType==="xmlhttprequest"||r.initiatorType==="beacon"||r.startTime<Xa-50||r.name.startsWith("chrome-extension:")||r.initiatorType==="other"&&/\/favicon\.ico($|\?)/.test(r.name))return}else if(r.entryType==="navigation"){if(Et||r.duration===0&&!t)return;Et=!0}else return;let i={id:br(),kind:r.entryType==="navigation"?"navigation":"resource",method:"GET",url:Q(r.name),duration:J(r.duration)};r.entryType==="navigation"?(i.navType=r.type,r.duration===0&&(i.pending=!0)):i.initiator=r.initiatorType,r.responseStatus&&(i.status=r.responseStatus),r.responseStart>0&&(i.ttfb=J(r.responseStart-r.startTime)),r.transferSize&&(i.transferSize=r.transferSize),r.decodedBodySize&&(i.resSize=r.decodedBodySize),r.contentType&&(i.mime=r.contentType),wr(i,Math.round(performance.timeOrigin+r.startTime))}function Ct(e,t){t.text!==void 0&&(e.reqBody=t.text),t.note&&(e.reqBodyNote=t.note),t.truncated&&(e.reqBodyTruncated=!0)}function Ti(e){return e.length>ye.maxBodyChars?{text:e.slice(0,ye.maxBodyChars),truncated:!0}:{text:e}}function Di(e,t=""){try{if(typeof e=="string")return Ti(lr(e,t));if(e instanceof URLSearchParams)return Ti(ar(e.toString()));if(e instanceof FormData){let r={};return e.forEach((i,n)=>{let a=typeof i=="string"?Ae(n)?ze:V(i,1e4):`[File ${i.name}, ${i.size} bytes${i.type?`, ${i.type}`:""}]`,u=r[n];r[n]=u===void 0?a:Array.isArray(u)?[...u,a]:[u,a]}),{text:Ce(r),note:"FormData"}}if(e instanceof Blob)return{note:`Blob, ${e.size} bytes${e.type?`, ${e.type}`:""}`};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let r=e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return or.test(t)?Ti(lr(new TextDecoder().decode(r),t)):{note:`binary, ${r.byteLength} bytes`}}return e instanceof ReadableStream?{note:"stream"}:e instanceof Document?{note:"Document"}:{note:typeof e}}catch{return{note:"unreadable"}}}function Ni(e){if(!e)return;let t={};try{if(e instanceof Headers)e.forEach((r,i)=>t[i]=r);else if(Array.isArray(e))for(let[r,i]of e)t[String(r).toLowerCase()]=String(i);else for(let[r,i]of Object.entries(e))t[r.toLowerCase()]=String(i)}catch{}return Object.keys(t).length?t:void 0}function Gf(e,t){let r=Ni(e),i=Ni(t);return r||i?{...r,...i}:void 0}function Yf(e){let t={};for(let r of e.trim().split(/[\r\n]+/)){let i=r.indexOf(":");i>0&&(t[r.slice(0,i).trim().toLowerCase()]=r.slice(i+1).trim())}return Object.keys(t).length?t:void 0}function il(e){return e instanceof Error?`${e.name}: ${e.message}`:String(e)}var Er=class{t;o=0;i=[];u(t){if(t.hadRecentInput)return;let r=this.i[0],i=this.i.at(-1);this.o&&r&&i&&t.startTime-i.startTime<1e3&&t.startTime-r.startTime<5e3?(this.o+=t.value,this.i.push(t)):(this.o=t.value,this.i=[t]),this.t?.(t)}},ot=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},xr=e=>{if(document.readyState==="loading")return"loading";let t=ot();if(t){if(e<t.domInteractive)return"loading";if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return"dom-interactive";if(t.domComplete===0||e<t.domComplete)return"dom-content-loaded"}return"complete"},Jf=e=>{let t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},Bi=e=>{let t="";try{for(;e?.nodeType!==9;){let r=e,i=r.id?"#"+r.id:[Jf(r),...Array.from(r.classList).sort()].join(".");if(t.length+i.length>99)return t||i;if(t=t?i+">"+t:i,r.id)break;e=r.parentNode}}catch{}return t},sl=new WeakMap;function it(e,t){let r=sl.get(t);return r||(r=new WeakMap,sl.set(t,r)),r.get(e)||r.set(e,new t),r.get(e)}var ml=-1,gl=()=>ml,at=e=>{addEventListener("pageshow",t=>{t.persisted&&(ml=t.timeStamp,e(t))},!0)},xe=(e,t,r,i)=>{let n,a;return u=>{t.value>=0&&(u||i)&&(a=t.value-(n??0),(a||n===void 0)&&(n=t.value,t.delta=a,t.rating=((f,l)=>f>l[1]?"poor":f>l[0]?"needs-improvement":"good")(t.value,r),e(t)))}},$i=e=>{requestAnimationFrame(()=>requestAnimationFrame(e))},Rt=()=>ot()?.activationStart??0,Re=(e,t=-1)=>{let r=ot(),i="navigate";return gl()>=0?i="back-forward-cache":r&&(document.prerendering||Rt()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},st=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let i=new PerformanceObserver(n=>{queueMicrotask(()=>{t(n.getEntries())})});return i.observe({type:e,buffered:!0,...r}),i}}catch{}},Wi=e=>{let t=!1;return()=>{t||(e(),t=!0)}},nt=-1,yl=new Set,ol=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,Li=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(let t of yl)t();isFinite(nt)||(nt=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",Li,!0))}},Mr=()=>{if(nt<0){let e=Rt();nt=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(r=>r.name==="hidden"&&r.startTime>=e)?.startTime)??ol(),addEventListener("visibilitychange",Li,!0),addEventListener("prerenderingchange",Li,!0),at(()=>{setTimeout(()=>{nt=ol()})})}return{get firstHiddenTime(){return nt},onHidden(e){yl.add(e)}}},Nr=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},al=[1800,3e3],wl=(e,t={})=>{Nr(()=>{let r=Mr(),i,n=Re("FCP"),a=st("paint",u=>{for(let f of u)f.name==="first-contentful-paint"&&(a.disconnect(),f.startTime<r.firstHiddenTime&&(n.value=Math.max(f.startTime-Rt(),0),n.entries.push(f),i(!0)))});a&&(i=xe(e,n,al,t.reportAllChanges),at(u=>{n=Re("FCP"),i=xe(e,n,al,t.reportAllChanges),$i(()=>{n.value=performance.now()-u.timeStamp,i(!0)})}))})},ll=[.1,.25],ul=e=>e.find(t=>t.node?.nodeType===1)||e[0],bl=(e,t={})=>{let r=it(t=Object.assign({},t),Er),i=new WeakMap;r.t=n=>{if(n?.sources?.length){let a=ul(n.sources),u=a?.node;if(u){let f=t.generateTarget?.(u)??Bi(u);i.set(a,f)}}},((n,a={})=>{let u=Mr();wl(Wi(()=>{let f,l=Re("CLS",0),p=it(a,Er),o=c=>{for(let s of c)p.u(s);p.o>l.value&&(l.value=p.o,l.entries=p.i,f())},d=st("layout-shift",o);d&&(f=xe(n,l,ll,a.reportAllChanges),u.onHidden(()=>{o(d.takeRecords()),f(!0)}),at(()=>{p.o=0,l=Re("CLS",0),f=xe(n,l,ll,a.reportAllChanges),$i(f)}),setTimeout(f))}))})(n=>{e((a=>{let u={};if(a.entries.length){let f=a.entries.reduce((l,p)=>l.value>p.value?l:p);if(f?.sources?.length){let l=ul(f.sources);l&&(u={largestShiftTarget:i.get(l),largestShiftTime:f.startTime,largestShiftValue:f.value,largestShiftSource:l,largestShiftEntry:f,loadState:xr(f.startTime)})}}return Object.assign(a,{attribution:u})})(n))},t)},vl=(e,t={})=>{wl(r=>{e((i=>{let n={timeToFirstByte:0,firstByteToFCP:i.value,loadState:xr(gl())};if(i.entries.length){let a=ot(),u=i.entries.at(-1);if(a){let f=a.activationStart||0,l=Math.max(0,a.responseStart-f);n={timeToFirstByte:l,firstByteToFCP:i.value-l,loadState:xr(i.entries[0].startTime),navigationEntry:a,fcpEntry:u}}}return Object.assign(i,{attribution:n})})(r))},t)},Sl=0,_i=1/0,Cr=0,Kf=e=>{for(let t of e)t.interactionId&&(_i=Math.min(_i,t.interactionId),Cr=Math.max(Cr,t.interactionId),Sl=Cr?(Cr-_i)/7+1:0)},Pi,cl=()=>Pi?Sl:performance.interactionCount??0,Qf=()=>{"interactionCount"in performance||Pi||(Pi=st("event",Kf,{durationThreshold:0}))},fl=0,Rr=class{l=[];h=new Map;m;p;v(){fl=cl(),this.l.length=0,this.h.clear()}M(){let t=Math.min(this.l.length-1,Math.floor((cl()-fl)/50));return this.l[t]}u(t){if(this.m?.(t),!t.interactionId&&t.entryType!=="first-input")return;let r=this.l.at(-1),i=this.h.get(t.interactionId);if(i||this.l.length<10||t.duration>r.T){if(i?t.duration>i.T?(i.entries=[t],i.T=t.duration):t.duration===i.T&&t.startTime===i.entries[0].startTime&&i.entries.push(t):(i={id:t.interactionId,entries:[t],T:t.duration},this.h.set(i.id,i),this.l.push(i)),this.l.sort((n,a)=>a.T-n.T),this.l.length>10){let n=this.l.splice(10);for(let a of n)this.h.delete(a.id)}this.p?.(i)}}},Fi=e=>{let t=globalThis.requestIdleCallback||setTimeout,r=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState==="hidden")e();else{let i=Wi(e),n=-1,a=()=>{r(n),i()};addEventListener("visibilitychange",a,{once:!0,capture:!0}),n=t(()=>{removeEventListener("visibilitychange",a,{capture:!0}),i()})}},hl=[200,500],Cl=(e,t={})=>{let r=it(t=Object.assign({},t),Rr),i=[],n=[],a=0,u=new WeakMap,f=new WeakMap,l=!1,p=()=>{l||(Fi(o),l=!0)},o=()=>{let s=new Set(r.l.map(g=>u.get(g.entries[0]))),m=n.length-10;n=n.filter((g,C)=>C>=m||s.has(g));let h=new Set;for(let g of n){let C=d(g.startTime,g.processingEnd);for(let w of C)h.add(w)}i=i.filter(g=>g.startTime>a||h.has(g)),l=!1};r.m=s=>{let m=s.startTime+s.duration,h;a=Math.max(a,s.processingEnd);for(let g=n.length-1;g>=0;g--){let C=n[g];if(Math.abs(m-C.renderTime)<=8){h=C,h.startTime=Math.min(s.startTime,h.startTime),h.processingStart=Math.min(s.processingStart,h.processingStart),h.processingEnd=Math.max(s.processingEnd,h.processingEnd),t.includeProcessedEventEntries!==!1&&h.entries.push(s);break}}h||(h={startTime:s.startTime,processingStart:s.processingStart,processingEnd:s.processingEnd,renderTime:m,entries:t.includeProcessedEventEntries!==!1?[s]:[]},n.push(h)),(s.interactionId||s.entryType==="first-input")&&u.set(s,h),p()},r.p=s=>{if(!f.get(s)){let m=s.entries.find(h=>h.target)?.target;if(m){let h=t.generateTarget?.(m)??Bi(m);f.set(s,h)}else{let h=s.entries.find(g=>g.targetSelector)?.targetSelector;h&&f.set(s,h)}}};let d=(s,m)=>{let h=[];for(let g of i)if(!(g.startTime+g.duration<s)){if(g.startTime>m)break;h.push(g)}return h},c=s=>{let m=s.entries[0],h=u.get(m),g=m.processingStart,C=Math.max(m.startTime+m.duration,g),w=Math.min(h.processingEnd,C),v=h.entries.sort((S,x)=>S.processingStart-x.processingStart),E=d(m.startTime,w),b=r.h.get(m.interactionId),y={interactionTarget:f.get(b),interactionType:m.name.startsWith("key")?"keyboard":"pointer",interactionTime:m.startTime,nextPaintTime:C,processedEventEntries:v,longAnimationFrameEntries:E,inputDelay:g-m.startTime,processingDuration:w-g,presentationDelay:C-w,loadState:xr(m.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(S=>{if(!S.longAnimationFrameEntries?.length)return;let x=S.interactionTime,M=S.inputDelay,T=S.processingDuration,k,I,R=0,te=0,re=0,U=0;for(let K of S.longAnimationFrameEntries){te=te+K.startTime+K.duration-K.styleAndLayoutStart;for(let $ of K.scripts){let B=$.startTime+$.duration;if(B<x)continue;let le=B-Math.max(x,$.startTime),N=$.duration?le/$.duration*$.forcedStyleAndLayoutDuration:0;R+=le-N,te+=N,le>U&&(I=$.startTime<x+M?"input-delay":$.startTime>=x+M+T?"presentation-delay":"processing-duration",k=$,U=le)}}let P=S.longAnimationFrameEntries.at(-1),j=P?P.startTime+P.duration:0;j>=x+M+T&&(re=S.nextPaintTime-j),k&&I&&(S.longestScript={entry:k,subpart:I,intersectingDuration:U}),S.totalScriptDuration=R,S.totalStyleAndLayoutDuration=te,S.totalPaintDuration=re,S.totalUnattributedDuration=S.nextPaintTime-x-R-te-re})(y),Object.assign(s,{attribution:y})};st("long-animation-frame",s=>{i=i.concat(s),p()}),((s,m={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let h=Mr();Nr(()=>{Qf();let g,C=Re("INP"),w=it(m,Rr),v=b=>{Fi(()=>{for(let S of b)w.u(S);let y=w.M();y&&y.T!==C.value&&(C.value=y.T,C.entries=y.entries,g())})},E=st("event",v,{durationThreshold:m.durationThreshold??40});g=xe(s,C,hl,m.reportAllChanges),E&&(E.observe({type:"first-input",buffered:!0}),h.onHidden(()=>{v(E.takeRecords()),g(!0)}),at(()=>{w.v(),C=Re("INP"),g=xe(s,C,hl,m.reportAllChanges)}))})})(s=>{e(c(s))},t)},Tr=class{m;u(t){this.m?.(t)}},dl=[2500,4e3],El=(e,t={})=>{let r=it(t=Object.assign({},t),Tr),i=new WeakMap;r.m=n=>{let a=n.element;if(a){let u=t.generateTarget?.(a)??Bi(a);i.set(n,u)}else n.id&&i.set(n,`#${n.id}`)},((n,a={})=>{Nr(()=>{let u=Mr(),f,l=Re("LCP"),p=it(a,Tr),o=c=>{a.reportAllChanges||(c=c.slice(-1));for(let s of c)p.u(s),s.startTime<u.firstHiddenTime&&(l.value=Math.max(s.startTime-Rt(),0),l.entries=[s],f())},d=st("largest-contentful-paint",o);if(d){f=xe(n,l,dl,a.reportAllChanges);let c=Wi(()=>{o(d.takeRecords()),d.disconnect(),f(!0)}),s=m=>{m.isTrusted&&(Fi(c),removeEventListener(m.type,s,{capture:!0}))};for(let m of["keydown","click","visibilitychange"])addEventListener(m,s,{capture:!0});at(m=>{l=Re("LCP"),f=xe(n,l,dl,a.reportAllChanges),$i(()=>{l.value=performance.now()-m.timeStamp,f(!0)})})}})})(n=>{e((a=>{let u={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:a.value};if(a.entries.length){let f=a.entries.at(-1),l=f.url&&performance.getEntriesByType("resource").find(o=>o.name===f.url);u.target=i.get(f),u.lcpEntry=f,f.url&&(u.url=f.url),l&&(u.lcpResourceEntry=l);let p=ot();if(p){let o=p.activationStart||0,d=Math.max(0,p.responseStart-o),c=Math.max(d,l?(l.requestStart||l.startTime)-o:0),s=Math.min(a.value,Math.max(c,l?l.responseEnd-o:0));u={...u,timeToFirstByte:d,resourceLoadDelay:c-d,resourceLoadDuration:s-c,elementRenderDelay:a.value-s,navigationEntry:p}}}return Object.assign(a,{attribution:u})})(n))},t)},pl=[800,1800],Ui=e=>{document.prerendering?Nr(()=>Ui(e)):document.readyState!=="complete"?addEventListener("load",()=>Ui(e),!0):setTimeout(e)},xl=(e,t={})=>{((r,i={})=>{let n=Re("TTFB"),a=xe(r,n,pl,i.reportAllChanges);Ui(()=>{let u=ot();u&&(n.value=Math.max(u.responseStart-Rt(),0),n.entries=[u],a(!0),at(()=>{n=Re("TTFB",0),a=xe(r,n,pl,i.reportAllChanges),a(!0)}))})})(r=>{e((i=>{let n={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(i.entries.length){let a=i.entries[0],u=a.activationStart||0,f=Math.max((a.workerStart||a.fetchStart)-u,0),l=Math.max(a.domainLookupStart-u,0),p=Math.max(a.connectStart-u,0),o=Math.max(a.connectEnd-u,0);n={waitingDuration:f,cacheDuration:l-f,dnsDuration:p-l,connectionDuration:o-p,requestDuration:i.value-o,navigationEntry:a}}return Object.assign(i,{attribution:n})})(r))},t)};var Rl="long-animation-frame",Zf=5,Or=()=>{},He=!1,Tl=!1,Mt,Nl=0,zi=new Map;function Ol(e,t){if(Or=e,He)return;He=!0;let r=Date.now();for(let i of zi.values())Te(()=>Or(i,r));Tl||(Tl=!0,eh()),th(t?0:performance.now())}function qi(){let e=Mt;He&&e&&Te(()=>kl(e.takeRecords()))}function Il(){He&&(qi(),He=!1,Mt?.disconnect(),Mt=void 0)}function eh(){addEventListener("pageshow",t=>t.persisted&&zi.clear(),!0);let e={reportAllChanges:!0};Te(()=>El(Tt,e)),Te(()=>bl(Tt,e)),Te(()=>Cl(Tt,e)),Te(()=>vl(Tt,e)),Te(()=>xl(Tt,e))}function Tt(e){Te(()=>{let t=rh(e,{timeOrigin:performance.timeOrigin,now:performance.now(),url:Q(location.href)});zi.set(t.name,t),He&&Or(t,Date.now())})}function th(e){Nl=e,!Mt&&Te(()=>{if(!PerformanceObserver.supportedEntryTypes?.includes(Rl))return;let t=new PerformanceObserver(r=>Te(()=>kl(r.getEntries())));t.observe({type:Rl,buffered:!0}),Mt=t})}function kl(e){if(!He)return;let t=Q(location.href);for(let r of e){let i=r;i.startTime+i.duration<Nl||Or(nh(i,t),Math.round(performance.timeOrigin+i.startTime))}}function rh(e,t){let r=f=>Math.round(t.timeOrigin+f),i=()=>r(e.entries.at(-1)?.startTime??t.now),n={};switch(e.name){case"LCP":{let f=e.attribution;n.target=f.target,f.url&&(n.url=Q(f.url)),n.timeToFirstByte=J(f.timeToFirstByte),n.resourceLoadDelay=J(f.resourceLoadDelay),n.resourceLoadDuration=J(f.resourceLoadDuration),n.elementRenderDelay=J(f.elementRenderDelay),n.time=i();break}case"CLS":{let f=e.attribution;n.target=f.largestShiftTarget,f.largestShiftValue!==void 0&&(n.largestShiftValue=Ml(f.largestShiftValue)),f.largestShiftTime!==void 0&&(n.time=r(f.largestShiftTime)),n.loadState=f.loadState;break}case"INP":{let f=e.attribution;n.target=f.interactionTarget||void 0,n.interactionType=f.interactionType,n.inputDelay=J(f.inputDelay),n.processingDuration=J(f.processingDuration),n.presentationDelay=J(f.presentationDelay),n.loadState=f.loadState,n.time=r(f.interactionTime);break}case"FCP":{let f=e.attribution;n.timeToFirstByte=J(f.timeToFirstByte),n.firstByteToFCP=J(f.firstByteToFCP),n.loadState=f.loadState,n.time=i();break}case"TTFB":{let f=e.attribution;n.waitingDuration=J(f.waitingDuration),n.cacheDuration=J(f.cacheDuration),n.dnsDuration=J(f.dnsDuration),n.connectionDuration=J(f.connectionDuration),n.requestDuration=J(f.requestDuration);break}}let a={kind:"vital",name:e.name,value:e.name==="CLS"?Ml(e.value):J(e.value),rating:e.rating,id:e.id,navigationType:e.navigationType,url:t.url},u=ih(n);return Object.keys(u).length&&(a.attribution=u),a}function nh(e,t){let r=[...e.scripts??[]].sort((i,n)=>n.duration-i.duration).slice(0,Zf).map(i=>{let n={duration:Math.round(i.duration)};return i.sourceURL&&(n.url=V(Q(i.sourceURL),2e3)),i.sourceFunctionName&&(n.fn=V(i.sourceFunctionName,200)),i.invoker&&(n.invoker=V(i.invoker,500)),i.invokerType&&(n.invokerType=i.invokerType),n});return{kind:"loaf",duration:Math.round(e.duration),blockingDuration:Math.round(e.blockingDuration),scripts:r,url:t}}var Ml=e=>Math.round(e*1e4)/1e4;function ih(e){let t={};for(let[r,i]of Object.entries(e))i!==void 0&&(t[r]=i);return t}function Te(e){try{e()}catch{}}var Ul="tabtape:track",Bl="tabtape:identify",$l="tabtape:state",Vi=100,Ir=200,Wl=8*1024,Al={calls:100,perMs:1e3},oh=[bi,{depth:4,items:50,string:500},{depth:4,items:20,string:200},{depth:3,items:10,string:100},{depth:2,items:10,string:50}],kr="\u2026";function ah(e){if(typeof e!="string")return;let t=e.trim();return t&&t.length<=Vi*2&&[...t].length<=Vi?t:void 0}function lh(e){let t;if(typeof e=="string")t=e.trim();else if(typeof e=="number"&&Number.isFinite(e)||typeof e=="bigint")t=String(e);else return;if(!t)return;if(t.length<=Ir)return t;let r=/[\uD800-\uDBFF]/.test(t[Ir-1])?Ir-1:Ir;return t.slice(0,r)}function uh(e){let t=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t+=1:i<2048?t+=2:i>=55296&&i<=56319&&(e.charCodeAt(r+1)&64512)===56320?(t+=4,r++):t+=3}return t}function Nt(e,t=!1){if(Array.isArray(e)){for(let r=0;r<e.length;r++)e[r]=Nt(e[r],t);return e}if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];i==="[[Map]]"&&Array.isArray(n)?r[i]=n.map(a=>Array.isArray(a)&&a.length===2&&typeof a[0]=="string"?[a[0],Nt(a[1],t||Ae(a[0]))]:Nt(a,t)):r[i]=Nt(n,t||Ae(i))}return r}return t&&(typeof e=="string"||typeof e=="number")?ze:e}function Dl(e){if(e==null)return{};let t={};for(let[r,i]of oh.entries())if(t=ch(Nt(vt(e,i))),zl(t)<=Wl)return _l(t,r>0);return _l(fh(t),!0)}function ch(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{value:e}}function _l(e,t){let r={};return Object.keys(e).length&&(r.props=e),t&&(r.truncated=!0),r}function zl(e){return uh(Ce(e)??"")}function fh(e){let t=e[kr],r=typeof t=="string"&&Number.parseInt(t,10)||0,i=Object.keys(e).filter(f=>f!==kr),n={},a=0;for(let f of i){n[f]=e[f];let l=i.length-a-1+r;if(zl(l?{...n,[kr]:`${l} more keys`}:n)>Wl){delete n[f];break}a++}let u=i.length-a+r;return u&&(n[kr]=`${u} more keys`),n}var ji=class{calls;perMs;clock;times=[];oldest=0;constructor(t,r,i){this.calls=t,this.perMs=r,this.clock=i}take(){let t=this.clock();return this.times.length<this.calls?(this.times.push(t),!0):t-this.times[this.oldest]<this.perMs?!1:(this.times[this.oldest]=t,this.oldest=(this.oldest+1)%this.calls,!0)}};function hh(e){let t=e.now??Date.now,r=e.url??(()=>Q(location.href)),i=e.warn??(s=>console.warn(s)),n=new ji(Al.calls,Al.perMs,e.clock??(()=>performance.now())),a=new Set,u=!1,f=0,l=!1;function p(s){if(!(!u||l)){l=!0;try{s()}catch{}finally{l=!1}}}function o(s,m){if(!a.has(s)){a.add(s);try{i(m())}catch{}}}function d(){return n.take()?!0:(f++,!1)}function c(s){f&&(s.dropped=f,f=0),e.emit(s,t())}return{get active(){return u},setActive(s){s&&!u&&(f=0),u=s},track(s,m){p(()=>{let h=ah(s);if(h===void 0){o("track",()=>`tabtape.track: the event name must be a string of 1\u2013${Vi} characters, got ${Ll(s)}. The event was not recorded.`);return}if(!d())return;let g=Dl(m),C={name:"custom",event:h,url:r()};g.props&&(C.props=g.props),g.truncated&&(C.propsTruncated=!0),c(C)})},identify(s,m){p(()=>{let h=lh(s);if(h===void 0){o("identify",()=>`tabtape.identify: the user id must be a non-empty string or a number, got ${Ll(s)}. The call was ignored.`);return}if(!d())return;let g=Dl(m),C={name:"identify",userId:h,url:r()};g.props&&(C.traits=g.props),g.truncated&&(C.propsTruncated=!0),c(C)})}}}function Ll(e){return typeof e=="string"?e.trim()?`${[...e.trim()].length} characters`:"an empty string":e===null?"null":typeof e}var Pl=()=>{},Le,Ar,Dr=!1,Fl=!1;function ql(e){Pl=e,Le??=hh({emit:(t,r)=>Pl(t,r)}),Le.setActive(!0),dh(Le),Dr||(Dr=!0,addEventListener(Ul,jl),addEventListener(Bl,Hl),addEventListener($l,Gl))}function Vl(){Le?.setActive(!1),Dr&&(Dr=!1,removeEventListener(Ul,jl),removeEventListener(Bl,Hl),removeEventListener($l,Gl))}function dh(e){try{if(Ar&&window.tabtape===Ar||"tabtape"in window)return;Ar??=Object.freeze({track(t,r){e.track(t,r)},identify(t,r){e.identify(t,r)},state(t,r,i){Yl(e,t,r,i)},get isRecording(){return e.active}}),Object.defineProperty(window,"tabtape",{value:Ar,configurable:!0,writable:!0,enumerable:!1})}catch{}}function Hi(e){let t=e.detail;return t!==null&&typeof t=="object"?t:{}}function jl(e){try{let t=Hi(e);Le?.track(t.name,t.props)}catch{}}function Hl(e){try{let t=Hi(e);Le?.identify(t.userId,t.traits)}catch{}}function Gl(e){try{let t=Hi(e);Le&&Yl(Le,t.store,t.action,t.state)}catch{}}function Yl(e,t,r,i){if(e.active)try{let n=We();n?n.manual(t,r,i):Fl||(Fl=!0,console.warn("tabtape.state: state recording is off in the tabtape extension settings; the call was ignored."))}catch{}}var _r=Symbol.for("tabtape.recorder"),mh=5e3,gh=15e3,Xl=window;Xl[_r]?Xl[_r].hello():window.top!==window?ca()&&Wa(_r):yh();function yh(){let e=EventTarget.prototype.dispatchEvent,t=document.readyState==="loading",r="pending",i="",n=!1,a,u,f=!1,l=[],p=(y,S)=>e.call(document,new CustomEvent(y,{detail:S}));function o(y,S,x){if(r==="off")return;let M;try{M=Ce({ts:Math.round(S),type:y,data:x})}catch{return}c(y,M)}function d(y,S,x){r!=="off"&&c(y,`{"ts":${Math.round(S)},"type":${Ce(y)},"data":${x}}`)}function c(y,S){r==="active"?p(de.data,S):l.length<mh&&l.push({type:y,line:S})}let s={captureBodies:!0,maxBodyChars:1e6,checkoutEveryNms:0,inPageNetwork:!0,recordState:!0};function m(y){Aa((S,x)=>o("console",x,S)),Da(),Ei(!0),y.inPageNetwork?(Ii(y,(S,x)=>o("network",x,S)),Ja(u?.inPageNetwork===!1),vr(!0)):(vr(!1),ki())}function h(y){if(y===f)return;f=y;let S=We();if(S)try{y?S.start((x,M)=>d("state",M,x)):S.stop()}catch{}}function g(){vr(!1),Ei(!1),ki(),_a()}m(s);let C=setTimeout(()=>r==="pending"&&E(),gh);function w(y,S){if(clearTimeout(C),r==="active"&&y===i){m(S),u=S,h(S.recordState);return}r==="active"&&v(),i=y,m(S),u=S,r="active";for(let{type:x,line:M}of l.splice(0))x==="network"&&!S.inPageNetwork||p(de.data,M);!S.inPageNetwork&&!t&&(Ii(S,(x,M)=>o("network",M,x)),Ka()),a=he({...Ri(S),emit:(x,M)=>{o("rrweb",x.timestamp,x),M&&f&&We()?.checkout(),x.type===_.FullSnapshot&&p(de.snapshot)}})??void 0,Sa((x,M)=>o("event",M,x),t&&!n?"load":"start"),ql((x,M)=>o("event",M,x)),Ol((x,M)=>o("perf",M,x),t&&!n),h(S.recordState),n=!0}function v(){Ai(),h(!1),Il(),Vl(),Ca();try{a?.()}catch{}a=void 0,p(de.flush)}function E(){clearTimeout(C),r==="active"&&v(),r="off",l.length=0,g();try{We()?.disable()}catch{}}document.addEventListener(de.control,y=>{let S;try{S=bt(String(y.detail))}catch{return}S.cmd==="start"?w(S.sessionId,S.options):E()}),document.addEventListener(de.info,()=>{let y={stateHook:"off",stores:[]};try{let S=We()?.info();S&&(y={stateHook:S.hook,stores:S.stores})}catch{}p(de.infoReply,Ce(y))}),addEventListener("pagehide",()=>{r==="active"&&(Ea(),u?.inPageNetwork!==!1&&Ai(),qi(),p(de.flush))}),addEventListener("pageshow",y=>{if(!(!y.persisted||r!=="active")){try{he.takeFullSnapshot(!0)}catch{}_e("bfcache")}});let b=()=>p(de.hello);Object.defineProperty(window,_r,{value:{hello:b,get active(){return r==="active"}},configurable:!0}),b()}})();
133
133
  //# sourceMappingURL=recorder.js.map