@glimt/record 0.0.63 → 0.0.64

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,32 +1,32 @@
1
1
  (function (g, f) {if ("object" == typeof exports && "object" == typeof module) {module.exports = f();} else if ("function" == typeof define && define.amd) {define("rrweb", [], f);} else if ("object" == typeof exports) {exports["rrweb"] = f();} else {g["rrweb"] = f();}}(typeof self !== 'undefined' ? self : typeof globalThis !== 'undefined' ? globalThis : this, () => {var exports = {};var module = { exports };
2
- "use strict";var aa=Object.defineProperty,la=Object.defineProperties;var ua=Object.getOwnPropertyDescriptors;var Mt=Object.getOwnPropertySymbols;var ri=Object.prototype.hasOwnProperty,si=Object.prototype.propertyIsEnumerable;var ti=(s,e,t)=>e in s?aa(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,A=(s,e)=>{for(var t in e||(e={}))ri.call(e,t)&&ti(s,t,e[t]);if(Mt)for(var t of Mt(e))si.call(e,t)&&ti(s,t,e[t]);return s},re=(s,e)=>la(s,ua(e));var Pe=(s,e)=>{var t={};for(var r in s)ri.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&Mt)for(var r of Mt(s))e.indexOf(r)<0&&si.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var ca=Object.defineProperty,ha=(s,e,t)=>e in s?ca(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,y=(s,e,t)=>ha(s,typeof e!="symbol"?e+"":e,t),ii,R=(s=>(s[s.DomContentLoaded=0]="DomContentLoaded",s[s.Load=1]="Load",s[s.FullSnapshot=2]="FullSnapshot",s[s.IncrementalSnapshot=3]="IncrementalSnapshot",s[s.Meta=4]="Meta",s[s.Custom=5]="Custom",s[s.Plugin=6]="Plugin",s))(R||{}),x=(s=>(s[s.Mutation=0]="Mutation",s[s.MouseMove=1]="MouseMove",s[s.MouseInteraction=2]="MouseInteraction",s[s.Scroll=3]="Scroll",s[s.ViewportResize=4]="ViewportResize",s[s.Input=5]="Input",s[s.TouchMove=6]="TouchMove",s[s.MediaInteraction=7]="MediaInteraction",s[s.StyleSheetRule=8]="StyleSheetRule",s[s.CanvasMutation=9]="CanvasMutation",s[s.Font=10]="Font",s[s.Log=11]="Log",s[s.Drag=12]="Drag",s[s.StyleDeclaration=13]="StyleDeclaration",s[s.Selection=14]="Selection",s[s.AdoptedStyleSheet=15]="AdoptedStyleSheet",s[s.CustomElement=16]="CustomElement",s))(x||{}),K=(s=>(s[s.MouseUp=0]="MouseUp",s[s.MouseDown=1]="MouseDown",s[s.Click=2]="Click",s[s.ContextMenu=3]="ContextMenu",s[s.DblClick=4]="DblClick",s[s.Focus=5]="Focus",s[s.Blur=6]="Blur",s[s.TouchStart=7]="TouchStart",s[s.TouchMove_Departed=8]="TouchMove_Departed",s[s.TouchEnd=9]="TouchEnd",s[s.TouchCancel=10]="TouchCancel",s))(K||{}),me=(s=>(s[s.Mouse=0]="Mouse",s[s.Pen=1]="Pen",s[s.Touch=2]="Touch",s))(me||{}),Ve=(s=>(s[s["2D"]=0]="2D",s[s.WebGL=1]="WebGL",s[s.WebGL2=2]="WebGL2",s))(Ve||{}),Fe=(s=>(s[s.Play=0]="Play",s[s.Pause=1]="Pause",s[s.Seeked=2]="Seeked",s[s.VolumeChange=3]="VolumeChange",s[s.RateChange=4]="RateChange",s))(Fe||{}),on=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(on||{});const ni={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},oi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Et={},fa=()=>!!globalThis.Zone;function Es(s){if(Et[s])return Et[s];const e=globalThis[s],t=e.prototype,r=s in ni?ni[s]:void 0,i=!!(r&&r.every(l=>{var a,c;return!!((c=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&c.toString().includes("[native code]"))})),n=s in oi?oi[s]:void 0,o=!!(n&&n.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!fa())return Et[s]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const a=l.contentWindow;if(!a)return e.prototype;const c=a[s].prototype;return document.body.removeChild(l),c?Et[s]=c:t}catch(l){return t}}const Pr={};function ve(s,e,t){var r;const i=`${s}.${String(t)}`;if(Pr[i])return Pr[i].call(e);const n=Es(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(Pr[i]=o,o.call(e)):e[t]}const Lr={};function an(s,e,t){const r=`${s}.${String(t)}`;if(Lr[r])return Lr[r].bind(e);const n=Es(s)[t];return typeof n!="function"?e[t]:(Lr[r]=n,n.bind(e))}function pa(s){return ve("Node",s,"childNodes")}function da(s){return ve("Node",s,"parentNode")}function ma(s){return ve("Node",s,"parentElement")}function ga(s){return ve("Node",s,"textContent")}function ya(s,e){return an("Node",s,"contains")(e)}function wa(s){return an("Node",s,"getRootNode")()}function ba(s){return!s||!("host"in s)?null:ve("ShadowRoot",s,"host")}function Sa(s){return s.styleSheets}function Ca(s){return!s||!("shadowRoot"in s)?null:ve("Element",s,"shadowRoot")}function va(s,e){return ve("Element",s,"querySelector")(e)}function Ia(s,e){return ve("Element",s,"querySelectorAll")(e)}function ln(){return Es("MutationObserver").constructor}function Ne(s,e,t){try{if(!(e in s))return()=>{};const r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch(r){return()=>{}}}const I={childNodes:pa,parentNode:da,parentElement:ma,textContent:ga,contains:ya,getRootNode:wa,host:ba,styleSheets:Sa,shadowRoot:Ca,querySelector:va,querySelectorAll:Ia,mutationObserver:ln,patch:Ne};var xa=Object.defineProperty,Aa=(s,e,t)=>e in s?xa(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,je=(s,e,t)=>Aa(s,typeof e!="symbol"?e+"":e,t),H=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(H||{});const ai={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},li={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},$t={},Oa=()=>!!globalThis.Zone;function $s(s){if($t[s])return $t[s];const e=globalThis[s],t=e.prototype,r=s in ai?ai[s]:void 0,i=!!(r&&r.every(l=>{var a,c;return!!((c=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&c.toString().includes("[native code]"))})),n=s in li?li[s]:void 0,o=!!(n&&n.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!Oa())return $t[s]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const a=l.contentWindow;if(!a)return e.prototype;const c=a[s].prototype;return document.body.removeChild(l),c?$t[s]=c:t}catch(l){return t}}const Dr={};function Ie(s,e,t){var r;const i=`${s}.${String(t)}`;if(Dr[i])return Dr[i].call(e);const n=$s(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(Dr[i]=o,o.call(e)):e[t]}const Fr={};function un(s,e,t){const r=`${s}.${String(t)}`;if(Fr[r])return Fr[r].bind(e);const n=$s(s)[t];return typeof n!="function"?e[t]:(Fr[r]=n,n.bind(e))}function Ra(s){return Ie("Node",s,"childNodes")}function Ma(s){return Ie("Node",s,"parentNode")}function Ea(s){return Ie("Node",s,"parentElement")}function $a(s){return Ie("Node",s,"textContent")}function Na(s,e){return un("Node",s,"contains")(e)}function ka(s){return un("Node",s,"getRootNode")()}function _a(s){return!s||!("host"in s)?null:Ie("ShadowRoot",s,"host")}function Ta(s){return s.styleSheets}function Pa(s){return!s||!("shadowRoot"in s)?null:Ie("Element",s,"shadowRoot")}function La(s,e){return Ie("Element",s,"querySelector")(e)}function Da(s,e){return Ie("Element",s,"querySelectorAll")(e)}function Fa(){return $s("MutationObserver").constructor}function Ba(s,e,t){try{if(!(e in s))return()=>{};const r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch(r){return()=>{}}}const Y={childNodes:Ra,parentNode:Ma,parentElement:Ea,textContent:$a,contains:Na,getRootNode:ka,host:_a,styleSheets:Ta,shadowRoot:Pa,querySelector:La,querySelectorAll:Da,mutationObserver:Fa,patch:Ba},cn=()=>!("_rrweb_skip_re_fetching_to_suppress_cors_errors"in window&&window._rrweb_skip_re_fetching_to_suppress_cors_errors===!0),hn=()=>"_rrweb_is_debug"in window&&window._rrweb_is_debug?window._rrweb_is_debug:!1;function fn(s){return s.nodeType===s.ELEMENT_NODE}function ot(s){const e=s&&"host"in s&&"mode"in s&&Y.host(s)||null;return!!(e&&"shadowRoot"in e&&Y.shadowRoot(e)===s)}function at(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function Ua(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function za(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function Cr(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>pn(i,t)).join("");return Ua(r)}catch(e){return null}}function pn(s,e){if(ja(s)){let t;try{t=Cr(s.styleSheet)||za(s)}catch(r){t=s.cssText}return s.styleSheet.href?lr(t,s.styleSheet.href):t}else{let t=s.cssText;return Ga(s)&&s.selectorText.includes(":")&&(t=Wa(t)),e?lr(t,e):t}}function Wa(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function ja(s){return"styleSheet"in s}function Ga(s){return"selectorText"in s}class dn{constructor(){je(this,"idNodeMap",new Map),je(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Va(){return new dn}function or({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let o=i||"";const l=r&&$e(r);return(e[t.toLowerCase()]||l&&e[l])&&(n?o=n(o,s):o="*".repeat(o.length)),o}function $e(s){return s.toLowerCase()}const ui="__rrweb_original__",Ha=25e4;function Ya(s,e){if(s.width*s.height<Ha)return e!=null?e:s.getContext("2d");const t=document.createElement("canvas");t.width=s.width,t.height=s.height;const r=t.getContext("2d");return r&&r.drawImage(s,0,0),t.getContext("2d",{willReadFrequently:!0})}function Za(s,e){if(s.width===0||s.height===0)return!0;const t=Ya(s,e);if(!t)return!0;const r=s.width>512||s.height>512?100:50,i=t.getImageData,n=ui in i?i[ui]:i;for(let o=0;o<s.width;o+=r){const l=Math.min(r,s.width-o);for(let a=0;a<s.height;a+=r){const c=Math.min(r,s.height-a),u=new Uint32Array(n.call(t,o,a,l,c).data.buffer);for(let h=0;h<u.length;h++)if(u[h]!==0)return!1}}return!0}function ar(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?$e(e):null}function mn(s,e){var n;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(o){return null}const r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(n=i==null?void 0:i[1])!=null?n:null}function Ja(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const Xa=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ka=/^(?:[a-z+]+:)?\/\//i,qa=/^www\..*/i,Qa=/^(data:)([^,]*),(.*)/i;function lr(s,e){return(s||"").replace(Xa,(t,r,i,n,o,l)=>{const a=i||o||l,c=r||n||"";if(!a)return t;if(Ka.test(a)||qa.test(a))return`url(${c}${a}${c})`;if(Qa.test(a))return`url(${c}${a}${c})`;if(a[0]==="/")return`url(${c}${Ja(e)+a}${c})`;const u=e.split("/"),h=a.split("/");u.pop();for(const f of h)f!=="."&&(f===".."?u.pop():u.push(f));return`url(${c}${u.join("/")}${c})`})}function Nt(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function el(s,e,t=!1){const r=Array.from(e.childNodes),i=[];let n=0;if(r.length>1&&s&&typeof s=="string"){let o=Nt(s,t);const l=o.length/s.length;for(let a=1;a<r.length;a++)if(r[a].textContent&&typeof r[a].textContent=="string"){const c=Nt(r[a].textContent,t),u=100;let h=3;for(;h<c.length&&(c[h].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,h),1)!==-1);h++);for(;h<c.length;h++){let f=c.substring(0,h),d=o.split(f),g=-1;if(d.length===2)g=d[0].length;else if(d.length>2&&d[0]===""&&r[a-1].textContent!=="")g=o.indexOf(f,1);else if(d.length===1){if(f=f.substring(0,f.length-1),d=o.split(f),d.length<=1)return i.push(s),i;h=u+1}else h===c.length-1&&(g=o.indexOf(f));if(d.length>=2&&h>u){const m=r[a-1].textContent;if(m&&typeof m=="string"){const p=Nt(m).length;g=o.indexOf(f,p)}g===-1&&(g=d[0].length)}if(g!==-1){let m=Math.floor(g/l);for(;m>0&&m<s.length;){if(n+=1,n>50*r.length)return i.push(s),i;const p=Nt(s.substring(0,m),t);if(p.length===g){i.push(s.substring(0,m)),s=s.substring(m),o=o.substring(g);break}else p.length<g?m+=Math.max(1,Math.floor((g-p.length)/l)):m-=Math.max(1,Math.floor((p.length-g)*l))}break}}}}return i.push(s),i}function tl(s,e){return el(s,e).join("/* rr_split */")}const rl=1e3*30,Le="data-recapt-rrweb-link-cloned",sl=["woff","woff2","ttf","otf","eot","png","jpg","jpeg","gif","svg","webp","ico","js","mjs","ts","jsx","tsx","json","map","mp4","webm","ogg","mp3","wav","zip","rar","7z","tar","gz","pdf","doc","docx","xls","xlsx"],gn=class Kt{constructor(){if(je(this,"currentHref",null),je(this,"clones",{}),je(this,"cleanTimeout",null),Kt.instance)return Kt.instance;Kt.instance=this}removeCloneNode(e){var t;if(!(e in this.clones)||this.clones[e]===void 0)return;const r=document.querySelector(`link[${Le}="${this.clones[e].cloneNodeAttrId}"]`);r&&((t=r.parentNode)==null||t.removeChild(r))}onLoad(e){if(!(e in this.clones)||this.clones[e]===void 0)return;const t=Array.from(document.styleSheets);let r=null;for(let o=t.length-1;o>=0;o--)if(t[o].href===e){r=t[o];break}if(!r)return this.removeCloneNode(e);const i=Cr(r);if(this.removeCloneNode(e),!i)return;this.clones[e].cssText=i,this.clones[e].loaded=!0;const n=document.querySelector(`link[${Le}="source-${this.clones[e].cloneNodeAttrId}"]`);n?(n.setAttribute("data-rrweb-mutation",Date.now().toString()),n.removeAttribute(Le)):(this.clones[e].original.setAttribute("data-rrweb-mutation",Date.now().toString()),this.clones[e].original.removeAttribute(Le)),window.dispatchEvent(new CustomEvent("__rrweb_custom_event__",{detail:{type:5,timestamp:Date.now(),data:{tag:"async-css-resolution",requestCssId:this.clones[e].requestCssId,cssText:this.clones[e].cssText}}}))}onLoadError(e){!(e in this.clones)||this.clones[e]===void 0||this.removeCloneNode(e)}removeAllCloneElements(){for(const e of Object.keys(this.clones))this.removeCloneNode(e)}onCleanTimeout(){lt.cleanTimeout=null,lt.removeAllCloneElements()}blowCache(){this.removeAllCloneElements(),this.clones={}}requestClone({forElement:e,requestCssId:t}){if(!cn())return;this.currentHref!=null&&document.location.href!==this.currentHref&&this.blowCache(),this.currentHref=document.location.href;const r=e.href;if(!r||r in this.clones&&this.clones[r]!==void 0||e.getAttribute("crossorigin")==="anonymous")return;if(e.rel!=="stylesheet"){const o=r.split("/").pop();if(o&&o.includes(".")){const[l]=o.split("?"),a=l.split(".").pop();if(a&&sl.includes(a.trim().toLowerCase()))return}}const i=e.cloneNode(),n=Math.random().toString(36).slice(2);i.setAttribute("crossorigin","anonymous"),i.setAttribute(Le,n),e.setAttribute(Le,`source-${n}`),document.head.appendChild(i),this.clones[r]={original:e,clone:i,loaded:!1,cssText:null,cloneNodeAttrId:n,requestCssId:t},i.onload=()=>{this.onLoad(r)},i.onerror=()=>{this.onLoadError(r)},this.cleanTimeout&&clearTimeout(this.cleanTimeout),this.cleanTimeout=setTimeout(lt.onCleanTimeout,rl)}getClonedCssTextIfAvailable(e){return e in this.clones&&this.clones[e]!==void 0&&this.clones[e].loaded===!0?this.clones[e].cssText:null}};je(gn,"instance");let il=gn;const lt=new il,nl=({attributes:s,doc:e,n:t})=>{const r=Array.from(e.styleSheets);let i=null;for(let o=0;o<r.length;o++)if(r[o].href===t.href){i=r[o];break}let n=null;if(i&&(n=Cr(i)),n||(n=lt.getClonedCssTextIfAvailable(t.href)),n)delete s.rel,delete s.href,s._cssText=n;else{const o=`css-request-${Math.random().toString(36).slice(2)}`;lt.requestClone({forElement:t,requestCssId:o}),s._requestCssId=o}return s},ol=({attributes:s,n:e})=>{let t=Cr(e.sheet);return t&&(e.childNodes.length>1&&(t=tl(t,e)),s._cssText=t),s},al=({attributes:s,n:e,tagName:t,maskInputOptions:r,maskInputFn:i})=>{const n=e.value,o=e.checked;return s.type!=="radio"&&s.type!=="checkbox"&&s.type!=="submit"&&s.type!=="button"&&n?s.value=or({element:e,type:ar(e),tagName:t,value:n,maskInputOptions:r,maskInputFn:i}):o&&(s.checked=o),s},ll=({attributes:s,n:e,maskInputOptions:t})=>(e.selected&&!t.select?s.selected=!0:delete s.selected,s),ul=s=>{"requestIdleCallback"in window?window.requestIdleCallback(s):setTimeout(s,100)},cl=({attributes:s,n:e,dataURLOptions:t,doc:r})=>{let i="getContext"in e?e.getContext("2d"):null;if(i!=null)Za(e,i)||(s.rr_dataURL=e.toDataURL(t.type,t.quality));else if(e.width!==0&&e.height!==0){const n=e.toDataURL(t.type,t.quality);s.rr_dataURL=n,ul(()=>{try{const o=r.createElement("canvas");o.width=e.width,o.height=e.height;const l=o.toDataURL(t.type,t.quality);n===l&&delete s.rr_dataURL}catch(o){}})}return s},hl=({attributes:s,n:e,canvasService:t,canvasCtx:r,dataURLOptions:i,doc:n})=>{t||(t=n.createElement("canvas"),r=t.getContext("2d"));const o=e;let l=null,a=0;const c=(o.currentSrc||o.getAttribute("src")||"<unknown-src>")+"",u=o.naturalHeight,h=o.naturalWidth,f=()=>{l=null},d=()=>{if(a++,!(a>3)){(l!=null?l:o).removeEventListener("error",g);try{t.width=h,t.height=u,r.drawImage(o,0,0),s.rr_dataURL=t.toDataURL(i.type,i.quality)}catch(m){if(o.crossOrigin!=="anonymous"){if(cn()){l=new Image,l.src=c,l.crossOrigin="anonymous",l.height=u,l.width=h,l.complete&&l.naturalWidth!==0?d():(l.addEventListener("load",d,{once:!0}),l.addEventListener("error",g,{once:!0}));return}}else hn()&&console.warn(`Cannot inline img src=${c}! Error: ${m}`)}f()}},g=()=>{(l!=null?l:o).removeEventListener("load",d),f()};return o.complete&&o.naturalWidth!==0?d():(o.addEventListener("load",d,{once:!0}),o.addEventListener("error",g,{once:!0})),s},fl=({attributes:s,n:e})=>{const t=s;return t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume,s};let pl=1;const dl=new RegExp("[^a-z0-9-_:]"),ht=-2;function yn(){return pl++}function ml(s){if(s instanceof HTMLFormElement)return"form";const e=$e(s.tagName);return dl.test(e)?"div":e}let gl=null,yl=null;const wl=/^[^ \t\n\r\u000c]+/,bl=/^[, \t\n\r\u000c]+/;function Sl(s,e){if(e.trim()==="")return e;let t=0;function r(n){let o;const l=n.exec(e.substring(t));return l?(o=l[0],t+=o.length,o):""}const i=[];for(;r(bl),!(t>=e.length);){let n=r(wl);if(n.slice(-1)===",")n=Ue(s,n.substring(0,n.length-1)),i.push(n);else{let o="";n=Ue(s,n);let l=!1;for(;;){const a=e.charAt(t);if(a===""){i.push((n+o).trim());break}else if(l)a===")"&&(l=!1);else if(a===","){t+=1,i.push((n+o).trim());break}else a==="("&&(l=!0);o+=a,t+=1}}}return i.join(", ")}const ci=new WeakMap;function Ue(s,e){return!e||e.trim()===""?e:Ns(s,e)}function Cl(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function Ns(s,e){let t=ci.get(s);if(t||(t=s.createElement("a"),ci.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function wn(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?Ue(s,r):t==="srcset"?Sl(s,r):t==="style"?lr(r,Ns(s)):e==="object"&&t==="data"?Ue(s,r):r)}function bn(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function vl(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch(r){}return!1}function ur(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?ur(Y.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}return t?ur(Y.parentNode(s),e,t):!1}function Sn(s,e,t,r){let i;if(fn(s)){if(i=s,!Y.childNodes(i).length)return!1}else{if(Y.parentElement(s)===null)return!1;i=Y.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(ur(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch(n){}return!1}function Il(s,e,t){const r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch(l){return}if(n!=="complete"){const l=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(l),i=!0,e()});return}const o="about:blank";if(r.location.href!==o||s.src===o||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function xl(s,e,t){let r=!1,i;try{i=s.sheet}catch(o){return}if(i)return;const n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function Al(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:o,inlineStylesheet:l,maskInputOptions:a={},maskTextFn:c,maskInputFn:u,dataURLOptions:h={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m=!1,cssCaptured:p=!1}=e,w=Ol(t,r);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:H.Document,childNodes:[],compatMode:s.compatMode}:{type:H.Document,childNodes:[]};case s.DOCUMENT_TYPE_NODE:return{type:H.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:w};case s.ELEMENT_NODE:return Ml(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:a,maskInputFn:u,dataURLOptions:h,inlineImages:f,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m,rootId:w});case s.TEXT_NODE:return Rl(s,{doc:t,needsMask:o,maskTextFn:c,rootId:w,cssCaptured:p});case s.CDATA_SECTION_NODE:return{type:H.CDATA,textContent:"",rootId:w};case s.COMMENT_NODE:return{type:H.Comment,textContent:Y.textContent(s)||"",rootId:w};default:return!1}}function Ol(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function Rl(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n}=e,o=Y.parentNode(s),l=o&&o.tagName;let a="";const c=l==="STYLE"?!0:void 0,u=l==="SCRIPT"?!0:void 0;return u?a="SCRIPT_PLACEHOLDER":n||(a=Y.textContent(s),c&&a&&(a=lr(a,Ns(e.doc)))),!c&&!u&&a&&t&&(a=r?r(a,Y.parentElement(s)):a.replace(/[\S]/g,"*")),{type:H.Text,textContent:a||"",rootId:i}}function Ml(s,e){const{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:l,dataURLOptions:a={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:d}=e,g=vl(s,r,i),m=ml(s);let p={};const w=s.attributes.length;for(let S=0;S<w;S++){const M=s.attributes[S];bn(m,M.name,M.value)||(p[M.name]=wn(t,m,$e(M.name),M.value))}switch(m){case"link":n&&(p=nl({doc:t,attributes:p,n:s}));break;case"style":s.sheet&&(p=ol({attributes:p,n:s}));break;case"input":case"textarea":case"select":p=al({attributes:p,n:s,tagName:m,maskInputOptions:o,maskInputFn:l});break;case"option":p=ll({attributes:p,n:s,maskInputOptions:o});break;case"dialog":s.open&&(p.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal");break;case"canvas":u&&(p=cl({attributes:p,n:s,dataURLOptions:a,doc:t}));case"img":c&&(p=hl({attributes:p,n:s,canvasService:gl,canvasCtx:yl,dataURLOptions:a,doc:t}));break;case"audio":case"video":p=fl({attributes:p,n:s});break}if(f||(s.scrollLeft&&(p.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(p.rr_scrollTop=s.scrollTop)),g){const{width:S,height:M}=s.getBoundingClientRect();p={class:p.class,rr_width:`${S}px`,rr_height:`${M}px`}}m==="iframe"&&!h(p.src)&&(s.contentDocument||(p.rr_src=p.src),delete p.src);let b;try{customElements.get(m)&&(b=!0)}catch(S){}return{type:H.Element,tagName:m,attributes:p,childNodes:[],isSVG:Cl(s)||void 0,needBlock:g,rootId:d,isCustom:b}}function _(s){return s==null?"":s.toLowerCase()}function El(s,e){if(e.comment&&s.type===H.Comment)return!0;if(s.type===H.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&mn(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(_(s.attributes.name).match(/^msapplication-tile(image|color)$/)||_(s.attributes.name)==="application-name"||_(s.attributes.rel)==="icon"||_(s.attributes.rel)==="apple-touch-icon"||_(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&_(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(_(s.attributes.property).match(/^(og|twitter|fb):/)||_(s.attributes.name).match(/^(og|twitter):/)||_(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(_(s.attributes.name)==="robots"||_(s.attributes.name)==="googlebot"||_(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(_(s.attributes.name)==="author"||_(s.attributes.name)==="generator"||_(s.attributes.name)==="framework"||_(s.attributes.name)==="publisher"||_(s.attributes.name)==="progid"||_(s.attributes.property).match(/^article:/)||_(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(_(s.attributes.name)==="google-site-verification"||_(s.attributes.name)==="yandex-verification"||_(s.attributes.name)==="csrf-token"||_(s.attributes.name)==="p:domain_verify"||_(s.attributes.name)==="verify-v1"||_(s.attributes.name)==="verification"||_(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}const Se={index:0,store:{}};function ze(s,e){const t=Date.now(),{doc:r,mirror:i,blockClass:n,blockSelector:o,maskTextClass:l,maskTextSelector:a,skipChild:c=!1,inlineStylesheet:u=!0,maskInputOptions:h={},maskTextFn:f,maskInputFn:d,slimDOMOptions:g,dataURLOptions:m={},inlineImages:p=!1,recordCanvas:w=!1,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:M=5e3,onStylesheetLoad:F,stylesheetLoadTimeout:j=5e3,keepIframeSrcFn:G=()=>!1,newlyAddedElement:P=!1,cssCaptured:X=!1}=e;let{needsMask:V}=e,{preserveWhiteSpace:q=!0}=e;V||(V=Sn(s,l,a,V===void 0));const le=Al(s,{doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:V,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:d,dataURLOptions:m,inlineImages:p,recordCanvas:w,keepIframeSrcFn:G,newlyAddedElement:P,cssCaptured:X});if(!le)return hn()&&console.warn(s,"not serialized"),null;let he;i.hasNode(s)?he=i.getId(s):El(le,g)||!q&&le.type===H.Text&&!le.textContent.replace(/^\s+|\s+$/gm,"").length?he=ht:he=yn();const E=Object.assign(le,{id:he});if(i.add(s,E),he===ht)return null;b&&b(s);let qe=!c;if(E.type===H.Element){qe=qe&&!E.needBlock,delete E.needBlock;const z=Y.shadowRoot(s);z&&at(z)&&(E.isShadowHost=!0)}if((E.type===H.Document||E.type===H.Element)&&qe){g.headWhitespace&&E.type===H.Element&&E.tagName==="head"&&(q=!1);const z={doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:V,maskTextClass:l,maskTextSelector:a,skipChild:c,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:d,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:w,preserveWhiteSpace:q,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:M,onStylesheetLoad:F,stylesheetLoadTimeout:j,keepIframeSrcFn:G,cssCaptured:!1};if(!(E.type===H.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0)){E.type===H.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText=="string"&&(z.cssCaptured=!0);for(const ee of Array.from(Y.childNodes(s))){const te=ze(ee,z);te&&E.childNodes.push(te)}}let Q=null;if(fn(s)&&(Q=Y.shadowRoot(s))){const ee=Y.childNodes(Q);for(let te=0;te<ee.length;te++){const Te=ee[te],be=ze(Te,z);be&&(at(Q)&&(be.isShadow=!0),E.childNodes.push(be))}}}const we=Y.parentNode(s);we&&ot(we)&&at(we)&&(E.isShadow=!0),E.type===H.Element&&E.tagName==="iframe"&&Il(s,()=>{const z=s.contentDocument;if(z&&S){const Q=ze(z,{doc:z,mirror:i,blockClass:n,blockSelector:o,needsMask:V,maskTextClass:l,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:d,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:w,preserveWhiteSpace:q,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:M,onStylesheetLoad:F,stylesheetLoadTimeout:j,keepIframeSrcFn:G});Q&&S(s,Q)}},M),E.type===H.Element&&E.tagName==="link"&&typeof E.attributes.rel=="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href=="string"&&mn(E.attributes.href)==="css")&&xl(s,()=>{if(F){const z=ze(s,{doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:V,maskTextClass:l,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:d,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:w,preserveWhiteSpace:q,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:M,onStylesheetLoad:F,stylesheetLoadTimeout:j,keepIframeSrcFn:G});z&&F(s,z)}},j),Se.index++;const Ae=Date.now()-t;if(s.nodeName in Se.store||(Se.store[s.nodeName]=[]),Se.store[s.nodeName].push(Ae),Se.index%5e3===0){Se.index=0;const z=Object.entries(Se.store).map(([Q,ee])=>({tagName:Q,avg:ee.reduce((te,Te)=>te+Te,0)/ee.length,max:Math.max(...ee),min:Math.min(...ee)}));console.log("last 5000 avgs"),console.table(z),Se.store={}}return E}function $l(s,e){const{mirror:t=new dn,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:l=!0,inlineImages:a=!1,recordCanvas:c=!1,maskAllInputs:u=!1,maskTextFn:h,maskInputFn:f,slimDOM:d=!1,dataURLOptions:g,preserveWhiteSpace:m,onSerialize:p,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:M,keepIframeSrcFn:F=()=>!1}=e||{};return ze(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:l,maskInputOptions:u===!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===!1?{password:!0}:u,maskTextFn:h,maskInputFn:f,slimDOMOptions:d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:d==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:d===!1?{}:d,dataURLOptions:g,inlineImages:a,recordCanvas:c,preserveWhiteSpace:m,onSerialize:p,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:M,keepIframeSrcFn:F,newlyAddedElement:!1})}function Nl(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function kl(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var ks={exports:{}},C=String,Cn=function(){return{isColorSupported:!1,reset:C,bold:C,dim:C,italic:C,underline:C,inverse:C,hidden:C,strikethrough:C,black:C,red:C,green:C,yellow:C,blue:C,magenta:C,cyan:C,white:C,gray:C,bgBlack:C,bgRed:C,bgGreen:C,bgYellow:C,bgBlue:C,bgMagenta:C,bgCyan:C,bgWhite:C,blackBright:C,redBright:C,greenBright:C,yellowBright:C,blueBright:C,magentaBright:C,cyanBright:C,whiteBright:C,bgBlackBright:C,bgRedBright:C,bgGreenBright:C,bgYellowBright:C,bgBlueBright:C,bgMagentaBright:C,bgCyanBright:C,bgWhiteBright:C}};ks.exports=Cn();ks.exports.createColors=Cn;var _l=ks.exports;const Tl={},Pl=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),oe=kl(Pl);let hi=_l,fi=oe,Xr=class vn extends Error{constructor(e,t,r,i,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,vn)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=hi.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:f}=hi.createColors(!0);i=d=>u(f(d)),r=d=>h(d),fi&&(n=d=>fi(d))}let o=t.split(/\r?\n/),l=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;return o.slice(l,a).map((u,h)=>{let f=l+1+h,d=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(u.length>160){let m=20,p=Math.max(0,this.column-m),w=Math.max(this.column+m,this.endColumn+m),b=u.slice(p,w),S=r(d.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+r(d)+n(b)+`
2
+ "use strict";var ll=Object.defineProperty,al=Object.defineProperties;var ul=Object.getOwnPropertyDescriptors;var Et=Object.getOwnPropertySymbols;var ri=Object.prototype.hasOwnProperty,si=Object.prototype.propertyIsEnumerable;var ti=(s,e,t)=>e in s?ll(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,A=(s,e)=>{for(var t in e||(e={}))ri.call(e,t)&&ti(s,t,e[t]);if(Et)for(var t of Et(e))si.call(e,t)&&ti(s,t,e[t]);return s},re=(s,e)=>al(s,ul(e));var Pe=(s,e)=>{var t={};for(var r in s)ri.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&Et)for(var r of Et(s))e.indexOf(r)<0&&si.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var cl=Object.defineProperty,hl=(s,e,t)=>e in s?cl(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,y=(s,e,t)=>hl(s,typeof e!="symbol"?e+"":e,t),ii,O=(s=>(s[s.DomContentLoaded=0]="DomContentLoaded",s[s.Load=1]="Load",s[s.FullSnapshot=2]="FullSnapshot",s[s.IncrementalSnapshot=3]="IncrementalSnapshot",s[s.Meta=4]="Meta",s[s.Custom=5]="Custom",s[s.Plugin=6]="Plugin",s))(O||{}),x=(s=>(s[s.Mutation=0]="Mutation",s[s.MouseMove=1]="MouseMove",s[s.MouseInteraction=2]="MouseInteraction",s[s.Scroll=3]="Scroll",s[s.ViewportResize=4]="ViewportResize",s[s.Input=5]="Input",s[s.TouchMove=6]="TouchMove",s[s.MediaInteraction=7]="MediaInteraction",s[s.StyleSheetRule=8]="StyleSheetRule",s[s.CanvasMutation=9]="CanvasMutation",s[s.Font=10]="Font",s[s.Log=11]="Log",s[s.Drag=12]="Drag",s[s.StyleDeclaration=13]="StyleDeclaration",s[s.Selection=14]="Selection",s[s.AdoptedStyleSheet=15]="AdoptedStyleSheet",s[s.CustomElement=16]="CustomElement",s))(x||{}),K=(s=>(s[s.MouseUp=0]="MouseUp",s[s.MouseDown=1]="MouseDown",s[s.Click=2]="Click",s[s.ContextMenu=3]="ContextMenu",s[s.DblClick=4]="DblClick",s[s.Focus=5]="Focus",s[s.Blur=6]="Blur",s[s.TouchStart=7]="TouchStart",s[s.TouchMove_Departed=8]="TouchMove_Departed",s[s.TouchEnd=9]="TouchEnd",s[s.TouchCancel=10]="TouchCancel",s))(K||{}),me=(s=>(s[s.Mouse=0]="Mouse",s[s.Pen=1]="Pen",s[s.Touch=2]="Touch",s))(me||{}),Ve=(s=>(s[s["2D"]=0]="2D",s[s.WebGL=1]="WebGL",s[s.WebGL2=2]="WebGL2",s))(Ve||{}),Fe=(s=>(s[s.Play=0]="Play",s[s.Pause=1]="Pause",s[s.Seeked=2]="Seeked",s[s.VolumeChange=3]="VolumeChange",s[s.RateChange=4]="RateChange",s))(Fe||{}),on=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(on||{});const ni={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},oi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},$t={},fl=()=>!!globalThis.Zone;function Es(s){if($t[s])return $t[s];const e=globalThis[s],t=e.prototype,r=s in ni?ni[s]:void 0,i=!!(r&&r.every(a=>{var l,c;return!!((c=(l=Object.getOwnPropertyDescriptor(t,a))==null?void 0:l.get)!=null&&c.toString().includes("[native code]"))})),n=s in oi?oi[s]:void 0,o=!!(n&&n.every(a=>{var l;return typeof t[a]=="function"&&((l=t[a])==null?void 0:l.toString().includes("[native code]"))}));if(i&&o&&!fl())return $t[s]=e.prototype,e.prototype;try{const a=document.createElement("iframe");document.body.appendChild(a);const l=a.contentWindow;if(!l)return e.prototype;const c=l[s].prototype;return document.body.removeChild(a),c?$t[s]=c:t}catch(a){return t}}const Pr={};function ve(s,e,t){var r;const i=`${s}.${String(t)}`;if(Pr[i])return Pr[i].call(e);const n=Es(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(Pr[i]=o,o.call(e)):e[t]}const Lr={};function ln(s,e,t){const r=`${s}.${String(t)}`;if(Lr[r])return Lr[r].bind(e);const n=Es(s)[t];return typeof n!="function"?e[t]:(Lr[r]=n,n.bind(e))}function pl(s){return ve("Node",s,"childNodes")}function dl(s){return ve("Node",s,"parentNode")}function ml(s){return ve("Node",s,"parentElement")}function gl(s){return ve("Node",s,"textContent")}function yl(s,e){return ln("Node",s,"contains")(e)}function wl(s){return ln("Node",s,"getRootNode")()}function bl(s){return!s||!("host"in s)?null:ve("ShadowRoot",s,"host")}function Sl(s){return s.styleSheets}function Cl(s){return!s||!("shadowRoot"in s)?null:ve("Element",s,"shadowRoot")}function vl(s,e){return ve("Element",s,"querySelector")(e)}function Il(s,e){return ve("Element",s,"querySelectorAll")(e)}function an(){return Es("MutationObserver").constructor}function Ne(s,e,t){try{if(!(e in s))return()=>{};const r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch(r){return()=>{}}}const I={childNodes:pl,parentNode:dl,parentElement:ml,textContent:gl,contains:yl,getRootNode:wl,host:bl,styleSheets:Sl,shadowRoot:Cl,querySelector:vl,querySelectorAll:Il,mutationObserver:an,patch:Ne};var xl=Object.defineProperty,Al=(s,e,t)=>e in s?xl(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,je=(s,e,t)=>Al(s,typeof e!="symbol"?e+"":e,t),H=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(H||{});const li={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ai={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Nt={},Ml=()=>!!globalThis.Zone;function $s(s){if(Nt[s])return Nt[s];const e=globalThis[s],t=e.prototype,r=s in li?li[s]:void 0,i=!!(r&&r.every(a=>{var l,c;return!!((c=(l=Object.getOwnPropertyDescriptor(t,a))==null?void 0:l.get)!=null&&c.toString().includes("[native code]"))})),n=s in ai?ai[s]:void 0,o=!!(n&&n.every(a=>{var l;return typeof t[a]=="function"&&((l=t[a])==null?void 0:l.toString().includes("[native code]"))}));if(i&&o&&!Ml())return Nt[s]=e.prototype,e.prototype;try{const a=document.createElement("iframe");document.body.appendChild(a);const l=a.contentWindow;if(!l)return e.prototype;const c=l[s].prototype;return document.body.removeChild(a),c?Nt[s]=c:t}catch(a){return t}}const Dr={};function Ie(s,e,t){var r;const i=`${s}.${String(t)}`;if(Dr[i])return Dr[i].call(e);const n=$s(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(Dr[i]=o,o.call(e)):e[t]}const Fr={};function un(s,e,t){const r=`${s}.${String(t)}`;if(Fr[r])return Fr[r].bind(e);const n=$s(s)[t];return typeof n!="function"?e[t]:(Fr[r]=n,n.bind(e))}function Ol(s){return Ie("Node",s,"childNodes")}function Rl(s){return Ie("Node",s,"parentNode")}function El(s){return Ie("Node",s,"parentElement")}function $l(s){return Ie("Node",s,"textContent")}function Nl(s,e){return un("Node",s,"contains")(e)}function kl(s){return un("Node",s,"getRootNode")()}function Tl(s){return!s||!("host"in s)?null:Ie("ShadowRoot",s,"host")}function _l(s){return s.styleSheets}function Pl(s){return!s||!("shadowRoot"in s)?null:Ie("Element",s,"shadowRoot")}function Ll(s,e){return Ie("Element",s,"querySelector")(e)}function Dl(s,e){return Ie("Element",s,"querySelectorAll")(e)}function Fl(){return $s("MutationObserver").constructor}function Bl(s,e,t){try{if(!(e in s))return()=>{};const r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch(r){return()=>{}}}const Y={childNodes:Ol,parentNode:Rl,parentElement:El,textContent:$l,contains:Nl,getRootNode:kl,host:Tl,styleSheets:_l,shadowRoot:Pl,querySelector:Ll,querySelectorAll:Dl,mutationObserver:Fl,patch:Bl},cn=()=>!("_rrweb_skip_re_fetching_to_suppress_cors_errors"in window&&window._rrweb_skip_re_fetching_to_suppress_cors_errors===!0),hn=()=>"_rrweb_is_debug"in window&&window._rrweb_is_debug?window._rrweb_is_debug:!1;function fn(s){return s.nodeType===s.ELEMENT_NODE}function ot(s){const e=s&&"host"in s&&"mode"in s&&Y.host(s)||null;return!!(e&&"shadowRoot"in e&&Y.shadowRoot(e)===s)}function lt(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function Ul(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function zl(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function Cr(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>pn(i,t)).join("");return Ul(r)}catch(e){return null}}function pn(s,e){if(jl(s)){let t;try{t=Cr(s.styleSheet)||zl(s)}catch(r){t=s.cssText}return s.styleSheet.href?ur(t,s.styleSheet.href):t}else{let t=s.cssText;return Gl(s)&&s.selectorText.includes(":")&&(t=Wl(t)),e?ur(t,e):t}}function Wl(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function jl(s){return"styleSheet"in s}function Gl(s){return"selectorText"in s}class dn{constructor(){je(this,"idNodeMap",new Map),je(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Vl(){return new dn}function lr({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let o=i||"";const a=r&&$e(r);return(e[t.toLowerCase()]||a&&e[a])&&(n?o=n(o,s):o="*".repeat(o.length)),o}function $e(s){return s.toLowerCase()}const ui="__rrweb_original__",Hl=25e4;function Yl(s,e){if(s.width*s.height<Hl)return e!=null?e:s.getContext("2d");const t=document.createElement("canvas");t.width=s.width,t.height=s.height;const r=t.getContext("2d");return r&&r.drawImage(s,0,0),t.getContext("2d",{willReadFrequently:!0})}function Zl(s,e){if(s.width===0||s.height===0)return!0;const t=Yl(s,e);if(!t)return!0;const r=s.width>512||s.height>512?100:50,i=t.getImageData,n=ui in i?i[ui]:i;for(let o=0;o<s.width;o+=r){const a=Math.min(r,s.width-o);for(let l=0;l<s.height;l+=r){const c=Math.min(r,s.height-l),u=new Uint32Array(n.call(t,o,l,a,c).data.buffer);for(let h=0;h<u.length;h++)if(u[h]!==0)return!1}}return!0}function ar(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?$e(e):null}function mn(s,e){var n;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(o){return null}const r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(n=i==null?void 0:i[1])!=null?n:null}function Jl(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const Xl=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Kl=/^(?:[a-z+]+:)?\/\//i,ql=/^www\..*/i,Ql=/^(data:)([^,]*),(.*)/i;function ur(s,e){return(s||"").replace(Xl,(t,r,i,n,o,a)=>{const l=i||o||a,c=r||n||"";if(!l)return t;if(Kl.test(l)||ql.test(l))return`url(${c}${l}${c})`;if(Ql.test(l))return`url(${c}${l}${c})`;if(l[0]==="/")return`url(${c}${Jl(e)+l}${c})`;const u=e.split("/"),h=l.split("/");u.pop();for(const f of h)f!=="."&&(f===".."?u.pop():u.push(f));return`url(${c}${u.join("/")}${c})`})}function kt(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function ea(s,e,t=!1){const r=Array.from(e.childNodes),i=[];let n=0;if(r.length>1&&s&&typeof s=="string"){let o=kt(s,t);const a=o.length/s.length;for(let l=1;l<r.length;l++)if(r[l].textContent&&typeof r[l].textContent=="string"){const c=kt(r[l].textContent,t),u=100;let h=3;for(;h<c.length&&(c[h].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,h),1)!==-1);h++);for(;h<c.length;h++){let f=c.substring(0,h),d=o.split(f),g=-1;if(d.length===2)g=d[0].length;else if(d.length>2&&d[0]===""&&r[l-1].textContent!=="")g=o.indexOf(f,1);else if(d.length===1){if(f=f.substring(0,f.length-1),d=o.split(f),d.length<=1)return i.push(s),i;h=u+1}else h===c.length-1&&(g=o.indexOf(f));if(d.length>=2&&h>u){const m=r[l-1].textContent;if(m&&typeof m=="string"){const p=kt(m).length;g=o.indexOf(f,p)}g===-1&&(g=d[0].length)}if(g!==-1){let m=Math.floor(g/a);for(;m>0&&m<s.length;){if(n+=1,n>50*r.length)return i.push(s),i;const p=kt(s.substring(0,m),t);if(p.length===g){i.push(s.substring(0,m)),s=s.substring(m),o=o.substring(g);break}else p.length<g?m+=Math.max(1,Math.floor((g-p.length)/a)):m-=Math.max(1,Math.floor((p.length-g)*a))}break}}}}return i.push(s),i}function ta(s,e){return ea(s,e).join("/* rr_split */")}const ra=1e3*30,Le="data-recapt-rrweb-link-cloned",sa=["woff","woff2","ttf","otf","eot","png","jpg","jpeg","gif","svg","webp","ico","js","mjs","ts","jsx","tsx","json","map","mp4","webm","ogg","mp3","wav","zip","rar","7z","tar","gz","pdf","doc","docx","xls","xlsx"],gn=class qt{constructor(){if(je(this,"currentHref",null),je(this,"clones",{}),je(this,"cleanTimeout",null),qt.instance)return qt.instance;qt.instance=this}removeCloneNode(e){var t;if(!(e in this.clones)||this.clones[e]===void 0)return;const r=document.querySelector(`link[${Le}="${this.clones[e].cloneNodeAttrId}"]`);r&&((t=r.parentNode)==null||t.removeChild(r))}onLoad(e){if(!(e in this.clones)||this.clones[e]===void 0)return;const t=Array.from(document.styleSheets);let r=null;for(let o=t.length-1;o>=0;o--)if(t[o].href===e){r=t[o];break}if(!r)return this.removeCloneNode(e);const i=Cr(r);if(this.removeCloneNode(e),!i)return;this.clones[e].cssText=i,this.clones[e].loaded=!0;const n=document.querySelector(`link[${Le}="source-${this.clones[e].cloneNodeAttrId}"]`);n?(n.setAttribute("data-rrweb-mutation",Date.now().toString()),n.removeAttribute(Le)):(this.clones[e].original.setAttribute("data-rrweb-mutation",Date.now().toString()),this.clones[e].original.removeAttribute(Le)),window.dispatchEvent(new CustomEvent("__rrweb_custom_event__",{detail:{type:5,timestamp:Date.now(),data:{tag:"async-css-resolution",requestCssId:this.clones[e].requestCssId,cssText:this.clones[e].cssText}}}))}onLoadError(e){!(e in this.clones)||this.clones[e]===void 0||this.removeCloneNode(e)}removeAllCloneElements(){for(const e of Object.keys(this.clones))this.removeCloneNode(e)}onCleanTimeout(){at.cleanTimeout=null,at.removeAllCloneElements()}blowCache(){this.removeAllCloneElements(),this.clones={}}requestClone({forElement:e,requestCssId:t}){if(!cn())return;this.currentHref!=null&&document.location.href!==this.currentHref&&this.blowCache(),this.currentHref=document.location.href;const r=e.href;if(!r||r in this.clones&&this.clones[r]!==void 0||e.getAttribute("crossorigin")==="anonymous")return;if(e.rel!=="stylesheet"){const o=r.split("/").pop();if(o&&o.includes(".")){const[a]=o.split("?"),l=a.split(".").pop();if(l&&sa.includes(l.trim().toLowerCase()))return}}const i=e.cloneNode(),n=Math.random().toString(36).slice(2);i.setAttribute("crossorigin","anonymous"),i.setAttribute(Le,n),e.setAttribute(Le,`source-${n}`),document.head.appendChild(i),this.clones[r]={original:e,clone:i,loaded:!1,cssText:null,cloneNodeAttrId:n,requestCssId:t},i.onload=()=>{this.onLoad(r)},i.onerror=()=>{this.onLoadError(r)},this.cleanTimeout&&clearTimeout(this.cleanTimeout),this.cleanTimeout=setTimeout(at.onCleanTimeout,ra)}getClonedCssTextIfAvailable(e){return e in this.clones&&this.clones[e]!==void 0&&this.clones[e].loaded===!0?this.clones[e].cssText:null}};je(gn,"instance");let ia=gn;const at=new ia,na=({attributes:s,doc:e,n:t})=>{const r=Array.from(e.styleSheets);let i=null;for(let o=0;o<r.length;o++)if(r[o].href===t.href){i=r[o];break}let n=null;if(i&&(n=Cr(i)),n||(n=at.getClonedCssTextIfAvailable(t.href)),n)delete s.rel,delete s.href,s._cssText=n;else{const o=`css-request-${Math.random().toString(36).slice(2)}`;at.requestClone({forElement:t,requestCssId:o}),s._requestCssId=o}return s},oa=({attributes:s,n:e})=>{let t=Cr(e.sheet);return t&&(e.childNodes.length>1&&(t=ta(t,e)),s._cssText=t),s},la=({attributes:s,n:e,tagName:t,maskInputOptions:r,maskInputFn:i})=>{const n=e.value,o=e.checked;return s.type!=="radio"&&s.type!=="checkbox"&&s.type!=="submit"&&s.type!=="button"&&n?s.value=lr({element:e,type:ar(e),tagName:t,value:n,maskInputOptions:r,maskInputFn:i}):o&&(s.checked=o),s},aa=({attributes:s,n:e,maskInputOptions:t})=>(e.selected&&!t.select?s.selected=!0:delete s.selected,s),ua=s=>{"requestIdleCallback"in window?window.requestIdleCallback(s):setTimeout(s,100)},ca=({attributes:s,n:e,dataURLOptions:t,doc:r})=>{let i="getContext"in e?e.getContext("2d"):null;if(i!=null)Zl(e,i)||(s.rr_dataURL=e.toDataURL(t.type,t.quality));else if(e.width!==0&&e.height!==0){const n=e.toDataURL(t.type,t.quality);s.rr_dataURL=n,ua(()=>{try{const o=r.createElement("canvas");o.width=e.width,o.height=e.height;const a=o.toDataURL(t.type,t.quality);n===a&&delete s.rr_dataURL}catch(o){}})}return s},ha=({attributes:s,n:e,canvasService:t,canvasCtx:r,dataURLOptions:i,doc:n})=>{t||(t=n.createElement("canvas"),r=t.getContext("2d"));const o=e;let a=null,l=0;const c=(o.currentSrc||o.getAttribute("src")||"<unknown-src>")+"",u=o.naturalHeight,h=o.naturalWidth,f=()=>{a=null},d=()=>{if(l++,!(l>3)){(a!=null?a:o).removeEventListener("error",g);try{t.width=h,t.height=u,r.drawImage(o,0,0),s.rr_dataURL=t.toDataURL(i.type,i.quality)}catch(m){if(o.crossOrigin!=="anonymous"){if(cn()){a=new Image,a.src=c,a.crossOrigin="anonymous",a.height=u,a.width=h,a.complete&&a.naturalWidth!==0?d():(a.addEventListener("load",d,{once:!0}),a.addEventListener("error",g,{once:!0}));return}}else hn()&&console.warn(`Cannot inline img src=${c}! Error: ${m}`)}f()}},g=()=>{(a!=null?a:o).removeEventListener("load",d),f()};return o.complete&&o.naturalWidth!==0?d():(o.addEventListener("load",d,{once:!0}),o.addEventListener("error",g,{once:!0})),s},fa=({attributes:s,n:e})=>{const t=s;return t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume,s};let pa=1;const da=new RegExp("[^a-z0-9-_:]"),ft=-2;function yn(){return pa++}function ma(s){if(s instanceof HTMLFormElement)return"form";const e=$e(s.tagName);return da.test(e)?"div":e}let ga=null,ya=null;const wa=/^[^ \t\n\r\u000c]+/,ba=/^[, \t\n\r\u000c]+/;function Sa(s,e){if(e.trim()==="")return e;let t=0;function r(n){let o;const a=n.exec(e.substring(t));return a?(o=a[0],t+=o.length,o):""}const i=[];for(;r(ba),!(t>=e.length);){let n=r(wa);if(n.slice(-1)===",")n=Ue(s,n.substring(0,n.length-1)),i.push(n);else{let o="";n=Ue(s,n);let a=!1;for(;;){const l=e.charAt(t);if(l===""){i.push((n+o).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){t+=1,i.push((n+o).trim());break}else l==="("&&(a=!0);o+=l,t+=1}}}return i.join(", ")}const ci=new WeakMap;function Ue(s,e){return!e||e.trim()===""?e:Ns(s,e)}function Ca(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function Ns(s,e){let t=ci.get(s);if(t||(t=s.createElement("a"),ci.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function wn(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?Ue(s,r):t==="srcset"?Sa(s,r):t==="style"?ur(r,Ns(s)):e==="object"&&t==="data"?Ue(s,r):r)}function bn(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function va(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch(r){}return!1}function cr(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?cr(Y.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}return t?cr(Y.parentNode(s),e,t):!1}function Sn(s,e,t,r){let i;if(fn(s)){if(i=s,!Y.childNodes(i).length)return!1}else{if(Y.parentElement(s)===null)return!1;i=Y.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(cr(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch(n){}return!1}function Ia(s,e,t){const r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch(a){return}if(n!=="complete"){const a=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(a),i=!0,e()});return}const o="about:blank";if(r.location.href!==o||s.src===o||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function xa(s,e,t){let r=!1,i;try{i=s.sheet}catch(o){return}if(i)return;const n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function Aa(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:o,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:c,maskInputFn:u,dataURLOptions:h={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m=!1,cssCaptured:p=!1}=e,w=Ma(t,r);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:H.Document,childNodes:[],compatMode:s.compatMode}:{type:H.Document,childNodes:[]};case s.DOCUMENT_TYPE_NODE:return{type:H.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:w};case s.ELEMENT_NODE:return Ra(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:a,maskInputOptions:l,maskInputFn:u,dataURLOptions:h,inlineImages:f,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m,rootId:w});case s.TEXT_NODE:return Oa(s,{doc:t,needsMask:o,maskTextFn:c,rootId:w,cssCaptured:p});case s.CDATA_SECTION_NODE:return{type:H.CDATA,textContent:"",rootId:w};case s.COMMENT_NODE:return{type:H.Comment,textContent:Y.textContent(s)||"",rootId:w};default:return!1}}function Ma(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function Oa(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n}=e,o=Y.parentNode(s),a=o&&o.tagName;let l="";const c=a==="STYLE"?!0:void 0,u=a==="SCRIPT"?!0:void 0;return u?l="SCRIPT_PLACEHOLDER":n||(l=Y.textContent(s),c&&l&&(l=ur(l,Ns(e.doc)))),!c&&!u&&l&&t&&(l=r?r(l,Y.parentElement(s)):l.replace(/[\S]/g,"*")),{type:H.Text,textContent:l||"",rootId:i}}function Ra(s,e){const{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:a,dataURLOptions:l={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:d}=e,g=va(s,r,i),m=ma(s);let p={};const w=s.attributes.length;for(let S=0;S<w;S++){const R=s.attributes[S];bn(m,R.name,R.value)||(p[R.name]=wn(t,m,$e(R.name),R.value))}switch(m){case"link":n&&(p=na({doc:t,attributes:p,n:s}));break;case"style":s.sheet&&(p=oa({attributes:p,n:s}));break;case"input":case"textarea":case"select":p=la({attributes:p,n:s,tagName:m,maskInputOptions:o,maskInputFn:a});break;case"option":p=aa({attributes:p,n:s,maskInputOptions:o});break;case"dialog":s.open&&(p.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal");break;case"canvas":u&&(p=ca({attributes:p,n:s,dataURLOptions:l,doc:t}));case"img":c&&(p=ha({attributes:p,n:s,canvasService:ga,canvasCtx:ya,dataURLOptions:l,doc:t}));break;case"audio":case"video":p=fa({attributes:p,n:s});break}if(f||(s.scrollLeft&&(p.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(p.rr_scrollTop=s.scrollTop)),g){const{width:S,height:R}=s.getBoundingClientRect();p={class:p.class,rr_width:`${S}px`,rr_height:`${R}px`}}m==="iframe"&&!h(p.src)&&(s.contentDocument||(p.rr_src=p.src),delete p.src);let b;try{customElements.get(m)&&(b=!0)}catch(S){}return{type:H.Element,tagName:m,attributes:p,childNodes:[],isSVG:Ca(s)||void 0,needBlock:g,rootId:d,isCustom:b}}function T(s){return s==null?"":s.toLowerCase()}function Ea(s,e){if(e.comment&&s.type===H.Comment)return!0;if(s.type===H.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&mn(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(T(s.attributes.name).match(/^msapplication-tile(image|color)$/)||T(s.attributes.name)==="application-name"||T(s.attributes.rel)==="icon"||T(s.attributes.rel)==="apple-touch-icon"||T(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&T(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(T(s.attributes.property).match(/^(og|twitter|fb):/)||T(s.attributes.name).match(/^(og|twitter):/)||T(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(T(s.attributes.name)==="robots"||T(s.attributes.name)==="googlebot"||T(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(T(s.attributes.name)==="author"||T(s.attributes.name)==="generator"||T(s.attributes.name)==="framework"||T(s.attributes.name)==="publisher"||T(s.attributes.name)==="progid"||T(s.attributes.property).match(/^article:/)||T(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(T(s.attributes.name)==="google-site-verification"||T(s.attributes.name)==="yandex-verification"||T(s.attributes.name)==="csrf-token"||T(s.attributes.name)==="p:domain_verify"||T(s.attributes.name)==="verify-v1"||T(s.attributes.name)==="verification"||T(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}const Se={index:0,store:{}};function ze(s,e){const t=Date.now(),{doc:r,mirror:i,blockClass:n,blockSelector:o,maskTextClass:a,maskTextSelector:l,skipChild:c=!1,inlineStylesheet:u=!0,maskInputOptions:h={},maskTextFn:f,maskInputFn:d,slimDOMOptions:g,dataURLOptions:m={},inlineImages:p=!1,recordCanvas:w=!1,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:R=5e3,onStylesheetLoad:F,stylesheetLoadTimeout:j=5e3,keepIframeSrcFn:G=()=>!1,newlyAddedElement:P=!1,cssCaptured:X=!1}=e;let{needsMask:V}=e,{preserveWhiteSpace:q=!0}=e;V||(V=Sn(s,a,l,V===void 0));const ae=Aa(s,{doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:V,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:d,dataURLOptions:m,inlineImages:p,recordCanvas:w,keepIframeSrcFn:G,newlyAddedElement:P,cssCaptured:X});if(!ae)return hn()&&console.warn(s,"not serialized"),null;let he;i.hasNode(s)?he=i.getId(s):Ea(ae,g)||!q&&ae.type===H.Text&&!ae.textContent.replace(/^\s+|\s+$/gm,"").length?he=ft:he=yn();const E=Object.assign(ae,{id:he});if(i.add(s,E),he===ft)return null;b&&b(s);let qe=!c;if(E.type===H.Element){qe=qe&&!E.needBlock,delete E.needBlock;const z=Y.shadowRoot(s);z&&lt(z)&&(E.isShadowHost=!0)}if((E.type===H.Document||E.type===H.Element)&&qe){g.headWhitespace&&E.type===H.Element&&E.tagName==="head"&&(q=!1);const z={doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:V,maskTextClass:a,maskTextSelector:l,skipChild:c,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:d,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:w,preserveWhiteSpace:q,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:R,onStylesheetLoad:F,stylesheetLoadTimeout:j,keepIframeSrcFn:G,cssCaptured:!1};if(!(E.type===H.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0)){E.type===H.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText=="string"&&(z.cssCaptured=!0);for(const ee of Array.from(Y.childNodes(s))){const te=ze(ee,z);te&&E.childNodes.push(te)}}let Q=null;if(fn(s)&&(Q=Y.shadowRoot(s))){const ee=Y.childNodes(Q);for(let te=0;te<ee.length;te++){const _e=ee[te],be=ze(_e,z);be&&(lt(Q)&&(be.isShadow=!0),E.childNodes.push(be))}}}const we=Y.parentNode(s);we&&ot(we)&&lt(we)&&(E.isShadow=!0),E.type===H.Element&&E.tagName==="iframe"&&Ia(s,()=>{const z=s.contentDocument;if(z&&S){const Q=ze(z,{doc:z,mirror:i,blockClass:n,blockSelector:o,needsMask:V,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:d,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:w,preserveWhiteSpace:q,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:R,onStylesheetLoad:F,stylesheetLoadTimeout:j,keepIframeSrcFn:G});Q&&S(s,Q)}},R),E.type===H.Element&&E.tagName==="link"&&typeof E.attributes.rel=="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href=="string"&&mn(E.attributes.href)==="css")&&xa(s,()=>{if(F){const z=ze(s,{doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:V,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:d,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:w,preserveWhiteSpace:q,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:R,onStylesheetLoad:F,stylesheetLoadTimeout:j,keepIframeSrcFn:G});z&&F(s,z)}},j),Se.index++;const Ae=Date.now()-t;if(s.nodeName in Se.store||(Se.store[s.nodeName]=[]),Se.store[s.nodeName].push(Ae),Se.index%5e3===0){Se.index=0;const z=Object.entries(Se.store).map(([Q,ee])=>({tagName:Q,avg:ee.reduce((te,_e)=>te+_e,0)/ee.length,max:Math.max(...ee),min:Math.min(...ee)}));console.log("last 5000 avgs"),console.table(z),Se.store={}}return E}function $a(s,e){const{mirror:t=new dn,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:c=!1,maskAllInputs:u=!1,maskTextFn:h,maskInputFn:f,slimDOM:d=!1,dataURLOptions:g,preserveWhiteSpace:m,onSerialize:p,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:R,keepIframeSrcFn:F=()=>!1}=e||{};return ze(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:u===!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===!1?{password:!0}:u,maskTextFn:h,maskInputFn:f,slimDOMOptions:d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:d==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:d===!1?{}:d,dataURLOptions:g,inlineImages:l,recordCanvas:c,preserveWhiteSpace:m,onSerialize:p,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:R,keepIframeSrcFn:F,newlyAddedElement:!1})}function Na(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function ka(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var ks={exports:{}},C=String,Cn=function(){return{isColorSupported:!1,reset:C,bold:C,dim:C,italic:C,underline:C,inverse:C,hidden:C,strikethrough:C,black:C,red:C,green:C,yellow:C,blue:C,magenta:C,cyan:C,white:C,gray:C,bgBlack:C,bgRed:C,bgGreen:C,bgYellow:C,bgBlue:C,bgMagenta:C,bgCyan:C,bgWhite:C,blackBright:C,redBright:C,greenBright:C,yellowBright:C,blueBright:C,magentaBright:C,cyanBright:C,whiteBright:C,bgBlackBright:C,bgRedBright:C,bgGreenBright:C,bgYellowBright:C,bgBlueBright:C,bgMagentaBright:C,bgCyanBright:C,bgWhiteBright:C}};ks.exports=Cn();ks.exports.createColors=Cn;var Ta=ks.exports;const _a={},Pa=Object.freeze(Object.defineProperty({__proto__:null,default:_a},Symbol.toStringTag,{value:"Module"})),oe=ka(Pa);let hi=Ta,fi=oe,Xr=class vn extends Error{constructor(e,t,r,i,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,vn)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=hi.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:f}=hi.createColors(!0);i=d=>u(f(d)),r=d=>h(d),fi&&(n=d=>fi(d))}let o=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),c=String(l).length;return o.slice(a,l).map((u,h)=>{let f=a+1+h,d=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(u.length>160){let m=20,p=Math.max(0,this.column-m),w=Math.max(this.column+m,this.endColumn+m),b=u.slice(p,w),S=r(d.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+r(d)+n(b)+`
3
3
  `+S+i("^")}let g=r(d.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(d)+n(u)+`
4
4
  `+g+i("^")}return" "+r(d)+n(u)}).join(`
5
5
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
6
6
 
7
7
  `+e+`
8
- `),this.name+": "+this.message+e}};var _s=Xr;Xr.default=Xr;const pi={after:`
8
+ `),this.name+": "+this.message+e}};var Ts=Xr;Xr.default=Xr;const pi={after:`
9
9
  `,beforeClose:`
10
10
  `,beforeComment:`
11
11
  `,beforeDecl:`
12
12
  `,beforeOpen:" ",beforeRule:`
13
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Ll(s){return s[0].toUpperCase()+s.slice(1)}let Kr=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&i.type!=="root";)n+=1,i=i.parent;if(r.includes(`
14
- `)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<n;l++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return pi[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]!="undefined")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+Ll(r);this[l]?i=this[l](o,e):o.walk(a=>{if(i=a.raws[t],typeof i!="undefined")return!1})}return typeof i=="undefined"&&(i=pi[r]),o.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(`
13
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function La(s){return s[0].toUpperCase()+s.slice(1)}let Kr=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&i.type!=="root";)n+=1,i=i.parent;if(r.includes(`
14
+ `)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<n;a++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return pi[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]!="undefined")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let a="raw"+La(r);this[a]?i=this[a](o,e):o.walk(l=>{if(i=l.raws[t],typeof i!="undefined")return!1})}return typeof i=="undefined"&&(i=pi[r]),o.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(`
15
15
  `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(`
16
16
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(`
17
17
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t!="undefined"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before!="undefined")return t=r.raws.before,t.includes(`
18
18
  `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between!="undefined")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof r.raws.before!="undefined"){let n=r.raws.before.split(`
19
- `);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var In=Kr;Kr.default=Kr;let Dl=In;function qr(s,e){new Dl(e).stringify(s)}var vr=qr;qr.default=qr;var Ct={};Ct.isClean=Symbol("isClean");Ct.my=Symbol("my");let Fl=_s,Bl=In,Ul=vr,{isClean:Qe,my:zl}=Ct;function Qr(s,e){let t=new s.constructor;for(let r in s){if(!Object.prototype.hasOwnProperty.call(s,r)||r==="proxyCache")continue;let i=s[r],n=typeof i;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(o=>Qr(o,t)):(n==="object"&&i!==null&&(i=Qr(i)),t[r]=i)}return t}function pe(s,e){if(e&&typeof e.offset!="undefined")return e.offset;let t=1,r=1,i=0;for(let n=0;n<s.length;n++){if(r===e.line&&t===e.column){i=n;break}s[n]===`
20
- `?(t=1,r+=1):t+=1}return i}let es=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[Qe]=!1,this[zl]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Qr(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Fl(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[Qe]=!0}markDirty(){if(this[Qe]){this[Qe]=!1;let e=this;for(;e=e.parent;)e[Qe]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n=r.slice(pe(r,this.source.start),pe(r,this.source.end)).indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,n=pe(i,this.source.start),o=n+e;for(let l=n;l<o;l++)i[l]===`
21
- `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:pe(t,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:pe(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let o=t.slice(pe(t,this.source.start),pe(t,this.source.end)).indexOf(e.word);o!==-1&&(r=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:pe(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:pe(t,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line,offset:r.offset+1}),{end:i,start:r}}raw(e,t){return new Bl().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))r[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)r[o]=l.toJSON(null,t);else if(o==="source"){if(l==null)continue;let a=t.get(l.input);a==null&&(a=n,t.set(l.input,n),n++),r[o]={end:l.end,inputId:a,start:l.start}}else r[o]=l}return i&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ul){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let i={node:this};for(let n in r)i[n]=r[n];return e.warn(t,i)}};var Ir=es;es.default=es;let Wl=Ir,ts=class extends Wl{constructor(e){super(e),this.type="comment"}};var xr=ts;ts.default=ts;let jl=Ir,rs=class extends jl{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=re(A({},e),{value:String(e.value)})),super(e),this.type="decl"}};var Ar=rs;rs.default=rs;let xn=xr,An=Ar,Gl=Ir,{isClean:On,my:Rn}=Ct,Ts,Mn,En,Ps;function $n(s){return s.map(e=>(e.nodes&&(e.nodes=$n(e.nodes)),delete e.source,e))}function Nn(s){if(s[On]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)Nn(e)}let ge=class kn extends Gl{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]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(n,o)=>i(n.toProxy(),o):i)):t==="every"||t==="some"?r=>e[t]((i,...n)=>r(i.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],r<n&&(this.indexes[o]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let l of n)this.proxyOf.nodes.splice(r,0,l);let o;for(let l in this.indexes)o=this.indexes[l],r<=o&&(this.indexes[l]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=$n(Mn(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new An(e)]}else if(e.selector||e.selectors)e=[new Ps(e)];else if(e.name)e=[new Ts(e)];else if(e.text)e=[new xn(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Rn]||kn.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[On]&&Nn(i),i.raws||(i.raws={}),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}};ge.registerParse=s=>{Mn=s};ge.registerRule=s=>{Ps=s};ge.registerAtRule=s=>{Ts=s};ge.registerRoot=s=>{En=s};var ke=ge;ge.default=ge;ge.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Ts.prototype):s.type==="rule"?Object.setPrototypeOf(s,Ps.prototype):s.type==="decl"?Object.setPrototypeOf(s,An.prototype):s.type==="comment"?Object.setPrototypeOf(s,xn.prototype):s.type==="root"&&Object.setPrototypeOf(s,En.prototype),s[Rn]=!0,s.nodes&&s.nodes.forEach(e=>{ge.rebuild(e)})};let _n=ke,cr=class extends _n{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Ls=cr;cr.default=cr;_n.registerAtRule(cr);let Vl=ke,Tn,Pn,ft=class extends Vl{constructor(e){super(A({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Tn(new Pn,this,e).stringify()}};ft.registerLazyResult=s=>{Tn=s};ft.registerProcessor=s=>{Pn=s};var Ds=ft;ft.default=ft;let Hl="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Yl=(s=21)=>{let e="",t=s|0;for(;t--;)e+=Hl[Math.random()*64|0];return e};var Zl={nanoid:Yl};let{existsSync:Jl,readFileSync:Xl}=oe,{dirname:Br,join:Kl}=oe,{SourceMapConsumer:di,SourceMapGenerator:mi}=oe;function ql(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let ss=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Br(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new di(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,o=e.match(i)||e.match(n);if(o)return decodeURIComponent(e.substr(o[0].length));let l=e.match(t)||e.match(r);if(l)return ql(e.substr(l[0].length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=Br(e),Jl(e))return this.mapFile=e,Xl(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof di)return mi.fromSourceMap(t).toString();if(t instanceof mi)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=Kl(Br(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Ln=ss;ss.default=ss;let{nanoid:Ql}=Zl,{isAbsolute:is,resolve:ns}=oe,{SourceMapConsumer:eu,SourceMapGenerator:tu}=oe,{fileURLToPath:gi,pathToFileURL:kt}=oe,yi=_s,ru=Ln,Ur=oe,zr=Symbol("lineToIndexCache"),su=!!(eu&&tu),wi=!!(ns&&is);function bi(s){if(s[zr])return s[zr];let e=s.css.split(`
22
- `),t=new Array(e.length),r=0;for(let i=0,n=e.length;i<n;i++)t[i]=r,r+=e[i].length+1;return s[zr]=t,t}let hr=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!wi||/^\w+:\/\//.test(t.from)||is(t.from)?this.file=t.from:this.file=ns(t.from)),wi&&su){let r=new ru(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Ql(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,o,l,a,c;if(t&&typeof t=="object"){let h=t,f=r;if(typeof h.offset=="number"){a=h.offset;let d=this.fromOffset(a);t=d.line,r=d.col}else t=h.line,r=h.column,a=this.fromLineAndColumn(t,r);if(typeof f.offset=="number"){l=f.offset;let d=this.fromOffset(l);o=d.line,n=d.col}else o=f.line,n=f.column,l=this.fromLineAndColumn(f.line,f.column)}else if(r)a=this.fromLineAndColumn(t,r);else{a=t;let h=this.fromOffset(a);t=h.line,r=h.col}let u=this.origin(t,r,o,n);return u?c=new yi(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,i.plugin):c=new yi(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:n,line:o},this.css,this.file,i.plugin),c.input={column:r,endColumn:n,endLine:o,endOffset:l,line:t,offset:a,source:this.css},this.file&&(kt&&(c.input.url=kt(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return bi(this)[e-1]+t-1}fromOffset(e){let t=bi(this),r=t[t.length-1],i=0;if(e>=r)i=t.length-1;else{let n=t.length-2,o;for(;i<n;)if(o=i+(n-i>>1),e<t[o])n=o-1;else if(e>=t[o+1])i=o+1;else{i=o;break}}return{col:e-t[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ns(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof r=="number"&&(l=n.originalPositionFor({column:i,line:r}));let a;is(o.source)?a=kt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||kt(this.map.mapFile));let c={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(gi)c.file=gi(a);else throw new Error("file: protocol is not available in this PostCSS build");let u=n.sourceContentFor(o.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=A({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Or=hr;hr.default=hr;Ur&&Ur.registerInput&&Ur.registerInput(hr);let Dn=ke,Fn,Bn,He=class extends Dn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of i)n.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Fn(new Bn,this,e).stringify()}};He.registerLazyResult=s=>{Fn=s};He.registerProcessor=s=>{Bn=s};var vt=He;He.default=He;Dn.registerRoot(He);let pt={comma(s){return pt.split(s,[","],!0)},space(s){let e=[" ",`
23
- `," "];return pt.split(s,e)},split(s,e,t){let r=[],i="",n=!1,o=0,l=!1,a="",c=!1;for(let u of s)c?c=!1:u==="\\"?c=!0:l?u===a&&(l=!1):u==='"'||u==="'"?(l=!0,a=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(n=!0),n?(i!==""&&r.push(i.trim()),i="",n=!1):i+=u;return(t||i!=="")&&r.push(i.trim()),r}};var Un=pt;pt.default=pt;let zn=ke,iu=Un,fr=class extends zn{get selectors(){return iu.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var Fs=fr;fr.default=fr;zn.registerRule(fr);let nu=Ls,ou=xr,au=Ar,lu=Or,uu=Ln,cu=vt,hu=Fs;function dt(s,e){if(Array.isArray(s))return s.map(o=>dt(o));let i=s,{inputs:t}=i,r=Pe(i,["inputs"]);if(t){e=[];for(let o of t){let l=re(A({},o),{__proto__:lu.prototype});l.map&&(l.map=re(A({},l.map),{__proto__:uu.prototype})),e.push(l)}}if(r.nodes&&(r.nodes=s.nodes.map(o=>dt(o,e))),r.source){let n=r.source,{inputId:o}=n,l=Pe(n,["inputId"]);r.source=l,o!=null&&(r.source.input=e[o])}if(r.type==="root")return new cu(r);if(r.type==="decl")return new au(r);if(r.type==="rule")return new hu(r);if(r.type==="comment")return new ou(r);if(r.type==="atrule")return new nu(r);throw new Error("Unknown node type: "+s.type)}var fu=dt;dt.default=dt;let{dirname:qt,relative:Wn,resolve:jn,sep:Gn}=oe,{SourceMapConsumer:Vn,SourceMapGenerator:Qt}=oe,{pathToFileURL:Si}=oe,pu=Or,du=!!(Vn&&Qt),mu=!!(qt&&jn&&Wn&&Gn),gu=class{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
19
+ `);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var In=Kr;Kr.default=Kr;let Da=In;function qr(s,e){new Da(e).stringify(s)}var vr=qr;qr.default=qr;var vt={};vt.isClean=Symbol("isClean");vt.my=Symbol("my");let Fa=Ts,Ba=In,Ua=vr,{isClean:Qe,my:za}=vt;function Qr(s,e){let t=new s.constructor;for(let r in s){if(!Object.prototype.hasOwnProperty.call(s,r)||r==="proxyCache")continue;let i=s[r],n=typeof i;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(o=>Qr(o,t)):(n==="object"&&i!==null&&(i=Qr(i)),t[r]=i)}return t}function pe(s,e){if(e&&typeof e.offset!="undefined")return e.offset;let t=1,r=1,i=0;for(let n=0;n<s.length;n++){if(r===e.line&&t===e.column){i=n;break}s[n]===`
20
+ `?(t=1,r+=1):t+=1}return i}let es=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[Qe]=!1,this[za]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Qr(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Fa(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[Qe]=!0}markDirty(){if(this[Qe]){this[Qe]=!1;let e=this;for(;e=e.parent;)e[Qe]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n=r.slice(pe(r,this.source.start),pe(r,this.source.end)).indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,n=pe(i,this.source.start),o=n+e;for(let a=n;a<o;a++)i[a]===`
21
+ `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:pe(t,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:pe(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let o=t.slice(pe(t,this.source.start),pe(t,this.source.end)).indexOf(e.word);o!==-1&&(r=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:pe(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:pe(t,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line,offset:r.offset+1}),{end:i,start:r}}raw(e,t){return new Ba().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))r[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)r[o]=a.toJSON(null,t);else if(o==="source"){if(a==null)continue;let l=t.get(a.input);l==null&&(l=n,t.set(a.input,n),n++),r[o]={end:a.end,inputId:l,start:a.start}}else r[o]=a}return i&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ua){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let i={node:this};for(let n in r)i[n]=r[n];return e.warn(t,i)}};var Ir=es;es.default=es;let Wa=Ir,ts=class extends Wa{constructor(e){super(e),this.type="comment"}};var xr=ts;ts.default=ts;let ja=Ir,rs=class extends ja{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=re(A({},e),{value:String(e.value)})),super(e),this.type="decl"}};var Ar=rs;rs.default=rs;let xn=xr,An=Ar,Ga=Ir,{isClean:Mn,my:On}=vt,_s,Rn,En,Ps;function $n(s){return s.map(e=>(e.nodes&&(e.nodes=$n(e.nodes)),delete e.source,e))}function Nn(s){if(s[Mn]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)Nn(e)}let ge=class kn extends Ga{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]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(n,o)=>i(n.toProxy(),o):i)):t==="every"||t==="some"?r=>e[t]((i,...n)=>r(i.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],r<n&&(this.indexes[o]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let a of n)this.proxyOf.nodes.splice(r,0,a);let o;for(let a in this.indexes)o=this.indexes[a],r<=o&&(this.indexes[a]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=$n(Rn(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new An(e)]}else if(e.selector||e.selectors)e=[new Ps(e)];else if(e.name)e=[new _s(e)];else if(e.text)e=[new xn(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[On]||kn.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Mn]&&Nn(i),i.raws||(i.raws={}),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}};ge.registerParse=s=>{Rn=s};ge.registerRule=s=>{Ps=s};ge.registerAtRule=s=>{_s=s};ge.registerRoot=s=>{En=s};var ke=ge;ge.default=ge;ge.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,_s.prototype):s.type==="rule"?Object.setPrototypeOf(s,Ps.prototype):s.type==="decl"?Object.setPrototypeOf(s,An.prototype):s.type==="comment"?Object.setPrototypeOf(s,xn.prototype):s.type==="root"&&Object.setPrototypeOf(s,En.prototype),s[On]=!0,s.nodes&&s.nodes.forEach(e=>{ge.rebuild(e)})};let Tn=ke,hr=class extends Tn{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Ls=hr;hr.default=hr;Tn.registerAtRule(hr);let Va=ke,_n,Pn,pt=class extends Va{constructor(e){super(A({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new _n(new Pn,this,e).stringify()}};pt.registerLazyResult=s=>{_n=s};pt.registerProcessor=s=>{Pn=s};var Ds=pt;pt.default=pt;let Ha="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ya=(s=21)=>{let e="",t=s|0;for(;t--;)e+=Ha[Math.random()*64|0];return e};var Za={nanoid:Ya};let{existsSync:Ja,readFileSync:Xa}=oe,{dirname:Br,join:Ka}=oe,{SourceMapConsumer:di,SourceMapGenerator:mi}=oe;function qa(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let ss=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Br(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new di(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,o=e.match(i)||e.match(n);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(t)||e.match(r);if(a)return qa(e.substr(a[0].length));let l=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=Br(e),Ja(e))return this.mapFile=e,Xa(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof di)return mi.fromSourceMap(t).toString();if(t instanceof mi)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=Ka(Br(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Ln=ss;ss.default=ss;let{nanoid:Qa}=Za,{isAbsolute:is,resolve:ns}=oe,{SourceMapConsumer:eu,SourceMapGenerator:tu}=oe,{fileURLToPath:gi,pathToFileURL:Tt}=oe,yi=Ts,ru=Ln,Ur=oe,zr=Symbol("lineToIndexCache"),su=!!(eu&&tu),wi=!!(ns&&is);function bi(s){if(s[zr])return s[zr];let e=s.css.split(`
22
+ `),t=new Array(e.length),r=0;for(let i=0,n=e.length;i<n;i++)t[i]=r,r+=e[i].length+1;return s[zr]=t,t}let fr=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!wi||/^\w+:\/\//.test(t.from)||is(t.from)?this.file=t.from:this.file=ns(t.from)),wi&&su){let r=new ru(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Qa(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,o,a,l,c;if(t&&typeof t=="object"){let h=t,f=r;if(typeof h.offset=="number"){l=h.offset;let d=this.fromOffset(l);t=d.line,r=d.col}else t=h.line,r=h.column,l=this.fromLineAndColumn(t,r);if(typeof f.offset=="number"){a=f.offset;let d=this.fromOffset(a);o=d.line,n=d.col}else o=f.line,n=f.column,a=this.fromLineAndColumn(f.line,f.column)}else if(r)l=this.fromLineAndColumn(t,r);else{l=t;let h=this.fromOffset(l);t=h.line,r=h.col}let u=this.origin(t,r,o,n);return u?c=new yi(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,i.plugin):c=new yi(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:n,line:o},this.css,this.file,i.plugin),c.input={column:r,endColumn:n,endLine:o,endOffset:a,line:t,offset:l,source:this.css},this.file&&(Tt&&(c.input.url=Tt(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return bi(this)[e-1]+t-1}fromOffset(e){let t=bi(this),r=t[t.length-1],i=0;if(e>=r)i=t.length-1;else{let n=t.length-2,o;for(;i<n;)if(o=i+(n-i>>1),e<t[o])n=o-1;else if(e>=t[o+1])i=o+1;else{i=o;break}}return{col:e-t[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ns(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let a;typeof r=="number"&&(a=n.originalPositionFor({column:i,line:r}));let l;is(o.source)?l=Tt(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||Tt(this.map.mapFile));let c={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(gi)c.file=gi(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=n.sourceContentFor(o.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=A({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Mr=fr;fr.default=fr;Ur&&Ur.registerInput&&Ur.registerInput(fr);let Dn=ke,Fn,Bn,He=class extends Dn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of i)n.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Fn(new Bn,this,e).stringify()}};He.registerLazyResult=s=>{Fn=s};He.registerProcessor=s=>{Bn=s};var It=He;He.default=He;Dn.registerRoot(He);let dt={comma(s){return dt.split(s,[","],!0)},space(s){let e=[" ",`
23
+ `," "];return dt.split(s,e)},split(s,e,t){let r=[],i="",n=!1,o=0,a=!1,l="",c=!1;for(let u of s)c?c=!1:u==="\\"?c=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(n=!0),n?(i!==""&&r.push(i.trim()),i="",n=!1):i+=u;return(t||i!=="")&&r.push(i.trim()),r}};var Un=dt;dt.default=dt;let zn=ke,iu=Un,pr=class extends zn{get selectors(){return iu.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var Fs=pr;pr.default=pr;zn.registerRule(pr);let nu=Ls,ou=xr,lu=Ar,au=Mr,uu=Ln,cu=It,hu=Fs;function mt(s,e){if(Array.isArray(s))return s.map(o=>mt(o));let i=s,{inputs:t}=i,r=Pe(i,["inputs"]);if(t){e=[];for(let o of t){let a=re(A({},o),{__proto__:au.prototype});a.map&&(a.map=re(A({},a.map),{__proto__:uu.prototype})),e.push(a)}}if(r.nodes&&(r.nodes=s.nodes.map(o=>mt(o,e))),r.source){let n=r.source,{inputId:o}=n,a=Pe(n,["inputId"]);r.source=a,o!=null&&(r.source.input=e[o])}if(r.type==="root")return new cu(r);if(r.type==="decl")return new lu(r);if(r.type==="rule")return new hu(r);if(r.type==="comment")return new ou(r);if(r.type==="atrule")return new nu(r);throw new Error("Unknown node type: "+s.type)}var fu=mt;mt.default=mt;let{dirname:Qt,relative:Wn,resolve:jn,sep:Gn}=oe,{SourceMapConsumer:Vn,SourceMapGenerator:er}=oe,{pathToFileURL:Si}=oe,pu=Mr,du=!!(Vn&&er),mu=!!(Qt&&jn&&Wn&&Gn),gu=class{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
24
24
  `;this.css.includes(`\r
25
25
  `)&&(t=`\r
26
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||qt(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Vn(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),mu&&du&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Qt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Qt({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 Qt({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(l,a,c)=>{if(this.css+=l,a&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),o=l.match(/\n/g),o?(e+=o.length,n=l.lastIndexOf(`
27
- `),t=l.length-n):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?qt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=qt(jn(r,this.mapOpts.annotation)));let i=Wn(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new pu(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Si){let r=Si(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Gn==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Hn=gu;const Wr=39,Ci=34,_t=92,vi=47,Tt=10,et=32,Pt=12,Lt=9,Dt=13,yu=91,wu=93,bu=40,Su=41,Cu=123,vu=125,Iu=59,xu=42,Au=58,Ou=64,Ft=/[\t\n\f\r "#'()/;[\\\]{}]/g,Bt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ru=/.[\r\n"'(/\\]/,Ii=/[\da-f]/i;var Mu=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,o,l,a,c,u,h,f,d,g,m=r.length,p=0,w=[],b=[];function S(){return p}function M(P){throw e.error("Unclosed "+P,p)}function F(){return b.length===0&&p>=m}function j(P){if(b.length)return b.pop();if(p>=m)return;let X=P?P.ignoreUnclosed:!1;switch(n=r.charCodeAt(p),n){case Tt:case et:case Lt:case Dt:case Pt:{a=p;do a+=1,n=r.charCodeAt(a);while(n===et||n===Tt||n===Lt||n===Dt||n===Pt);u=["space",r.slice(p,a)],p=a-1;break}case yu:case wu:case Cu:case vu:case Au:case Iu:case Su:{let V=String.fromCharCode(n);u=[V,V,p];break}case bu:{if(g=w.length?w.pop()[1]:"",d=r.charCodeAt(p+1),g==="url"&&d!==Wr&&d!==Ci&&d!==et&&d!==Tt&&d!==Lt&&d!==Pt&&d!==Dt){a=p;do{if(h=!1,a=r.indexOf(")",a+1),a===-1)if(i||X){a=p;break}else M("bracket");for(f=a;r.charCodeAt(f-1)===_t;)f-=1,h=!h}while(h);u=["brackets",r.slice(p,a+1),p,a],p=a}else a=r.indexOf(")",p+1),o=r.slice(p,a+1),a===-1||Ru.test(o)?u=["(","(",p]:(u=["brackets",o,p,a],p=a);break}case Wr:case Ci:{c=n===Wr?"'":'"',a=p;do{if(h=!1,a=r.indexOf(c,a+1),a===-1)if(i||X){a=p+1;break}else M("string");for(f=a;r.charCodeAt(f-1)===_t;)f-=1,h=!h}while(h);u=["string",r.slice(p,a+1),p,a],p=a;break}case Ou:{Ft.lastIndex=p+1,Ft.test(r),Ft.lastIndex===0?a=r.length-1:a=Ft.lastIndex-2,u=["at-word",r.slice(p,a+1),p,a],p=a;break}case _t:{for(a=p,l=!0;r.charCodeAt(a+1)===_t;)a+=1,l=!l;if(n=r.charCodeAt(a+1),l&&n!==vi&&n!==et&&n!==Tt&&n!==Lt&&n!==Dt&&n!==Pt&&(a+=1,Ii.test(r.charAt(a)))){for(;Ii.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===et&&(a+=1)}u=["word",r.slice(p,a+1),p,a],p=a;break}default:{n===vi&&r.charCodeAt(p+1)===xu?(a=r.indexOf("*/",p+2)+1,a===0&&(i||X?a=r.length:M("comment")),u=["comment",r.slice(p,a+1),p,a],p=a):(Bt.lastIndex=p+1,Bt.test(r),Bt.lastIndex===0?a=r.length-1:a=Bt.lastIndex-2,u=["word",r.slice(p,a+1),p,a],w.push(u),p=a);break}}return p++,u}function G(P){b.push(P)}return{back:G,endOfFile:F,nextToken:j,position:S}};let Eu=Ls,$u=xr,Nu=Ar,ku=vt,xi=Fs,_u=Mu;const Ai={empty:!0,space:!0};function Tu(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}let Pu=class{constructor(e){this.input=e,this.root=new ku,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Eu;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,n,o=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(a.length>0){for(n=a.length-1,i=a[n];i&&i[0]==="space";)i=a[--n];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let n=t-1;n>=0&&(i=e[n],!(i[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,n;for(let[o,l]of e.entries()){if(i=l,n=i[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=i}return!1}comment(e){let t=new $u;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=_u(this.input)}decl(e,t){let r=new Nu;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||Tu(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(n=e[c],n[1].toLowerCase()==="!important"){r.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(r.raws.important=u);break}else if(n[1].toLowerCase()==="important"){let u=e.slice(0),h="";for(let f=c;f>0;f--){let d=u[f][0];if(h.trim().startsWith("!")&&d!=="space")break;h=u.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=u)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new xi;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}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(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,o=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(r=c[0],a.push(c),r==="("||r==="[")n||(n=c),o.push(r==="("?")":"]");else if(l&&i&&r==="{")n||(n=c),o.push("}");else if(o.length===0)if(r===";")if(i){this.decl(a,l);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(i=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&i){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,o,l=r.length,a="",c=!0,u,h;for(let f=0;f<l;f+=1)n=r[f],o=n[0],o==="space"&&f===l-1&&!i?c=!1:o==="comment"?(h=r[f-1]?r[f-1][0]:"empty",u=r[f+1]?r[f+1][0]:"empty",!Ai[h]&&!Ai[u]?a.slice(-1)===","?c=!1:a+=n[1]:c=!1):a+=n[1];if(!c){let f=r.reduce((d,g)=>d+g[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new xi;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Lu=Pu;let Du=ke,Fu=Or,Bu=Lu;function pr(s,e){let t=new Fu(s,e),r=new Bu(t);try{r.parse()}catch(i){throw i}return r.root}var Bs=pr;pr.default=pr;Du.registerParse(pr);let os=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}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}};var Yn=os;os.default=os;let Uu=Yn,as=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Uu(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Us=as;as.default=as;let zu=ke,Wu=Ds,ju=Hn,Gu=Bs,Oi=Us,Vu=vt,Hu=vr,{isClean:ue,my:Yu}=Ct;const Zu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ju={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},Xu={Once:!0,postcssPlugin:!0,prepare:!0},Ye=0;function tt(s){return typeof s=="object"&&typeof s.then=="function"}function Zn(s){let e=!1,t=Zu[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,Ye,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,Ye,t+"Exit"]:[t,t+"Exit"]}function Ri(s){let e;return s.type==="document"?e=["Document",Ye,"DocumentExit"]:s.type==="root"?e=["Root",Ye,"RootExit"]:e=Zn(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function ls(s){return s[ue]=!1,s.nodes&&s.nodes.forEach(e=>ls(e)),s}let us={},Ze=class Jn{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"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=ls(t);else if(t instanceof Jn||t instanceof Oi)i=ls(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=Gu;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{i=n(t,r)}catch(o){this.processed=!0,this.error=o}i&&!i[Yu]&&zu.rebuild(i)}this.result=new Oi(e,i,r),this.helpers=re(A({},us),{postcss:us,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?A(A({},n),n.prepare(this.result)):n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Ju[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Xu[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(tt(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ue];){e[ue]=!0;let t=[Ri(e)];for(;t.length>0;){let r=this.visitTick(t);if(tt(r))try{await r}catch(i){let n=t[t.length-1].node;throw this.handleError(i,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(n=>r(n,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return tt(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Hu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new ju(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[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 e of this.plugins){let t=this.runOnRoot(e);if(tt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ue];)e[ue]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let n;try{n=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(tt(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!l[ue]){l[ue]=!0,e.push(Ri(l));return}t.iterator=0,delete r.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===Ye){r.nodes&&r.nodes.length&&(r[ue]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[ue]=!0;let t=Zn(e);for(let r of t)if(r===Ye)e.nodes&&e.each(i=>{i[ue]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Ze.registerPostcss=s=>{us=s};var Xn=Ze;Ze.default=Ze;Vu.registerLazyResult(Ze);Wu.registerLazyResult(Ze);let Ku=Hn,qu=Bs;const Qu=Us;let ec=vr;let cs=class{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 e,t=qu;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,n=ec;this.result=new Qu(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Ku(n,i,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),c&&(this.result.map=c)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};var tc=cs;cs.default=cs;let rc=Ds,sc=Xn,ic=tc,nc=vt,mt=class{constructor(e=[]){this.version="8.5.4",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new ic(this,e,t):new sc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var oc=mt;mt.default=mt;nc.registerProcessor(mt);rc.registerProcessor(mt);let Kn=Ls,qn=xr,ac=ke,lc=_s,Qn=Ar,eo=Ds,uc=fu,cc=Or,hc=Xn,fc=Un,pc=Ir,dc=Bs,zs=oc,mc=Us,to=vt,ro=Fs,gc=vr,yc=Yn;function N(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new zs(s)}N.plugin=function(e,t){let r=!1;function i(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
26
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Qt(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Vn(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),mu&&du&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=er.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new er({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 er({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(a,l,c)=>{if(this.css+=a,l&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,l.source&&l.source.start?(i.source=this.sourcePath(l),i.original.line=l.source.start.line,i.original.column=l.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),o=a.match(/\n/g),o?(e+=o.length,n=a.lastIndexOf(`
27
+ `),t=a.length-n):t+=a.length,l&&c!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Qt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Qt(jn(r,this.mapOpts.annotation)));let i=Wn(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new pu(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Si){let r=Si(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Gn==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Hn=gu;const Wr=39,Ci=34,_t=92,vi=47,Pt=10,et=32,Lt=12,Dt=9,Ft=13,yu=91,wu=93,bu=40,Su=41,Cu=123,vu=125,Iu=59,xu=42,Au=58,Mu=64,Bt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ut=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ou=/.[\r\n"'(/\\]/,Ii=/[\da-f]/i;var Ru=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,o,a,l,c,u,h,f,d,g,m=r.length,p=0,w=[],b=[];function S(){return p}function R(P){throw e.error("Unclosed "+P,p)}function F(){return b.length===0&&p>=m}function j(P){if(b.length)return b.pop();if(p>=m)return;let X=P?P.ignoreUnclosed:!1;switch(n=r.charCodeAt(p),n){case Pt:case et:case Dt:case Ft:case Lt:{l=p;do l+=1,n=r.charCodeAt(l);while(n===et||n===Pt||n===Dt||n===Ft||n===Lt);u=["space",r.slice(p,l)],p=l-1;break}case yu:case wu:case Cu:case vu:case Au:case Iu:case Su:{let V=String.fromCharCode(n);u=[V,V,p];break}case bu:{if(g=w.length?w.pop()[1]:"",d=r.charCodeAt(p+1),g==="url"&&d!==Wr&&d!==Ci&&d!==et&&d!==Pt&&d!==Dt&&d!==Lt&&d!==Ft){l=p;do{if(h=!1,l=r.indexOf(")",l+1),l===-1)if(i||X){l=p;break}else R("bracket");for(f=l;r.charCodeAt(f-1)===_t;)f-=1,h=!h}while(h);u=["brackets",r.slice(p,l+1),p,l],p=l}else l=r.indexOf(")",p+1),o=r.slice(p,l+1),l===-1||Ou.test(o)?u=["(","(",p]:(u=["brackets",o,p,l],p=l);break}case Wr:case Ci:{c=n===Wr?"'":'"',l=p;do{if(h=!1,l=r.indexOf(c,l+1),l===-1)if(i||X){l=p+1;break}else R("string");for(f=l;r.charCodeAt(f-1)===_t;)f-=1,h=!h}while(h);u=["string",r.slice(p,l+1),p,l],p=l;break}case Mu:{Bt.lastIndex=p+1,Bt.test(r),Bt.lastIndex===0?l=r.length-1:l=Bt.lastIndex-2,u=["at-word",r.slice(p,l+1),p,l],p=l;break}case _t:{for(l=p,a=!0;r.charCodeAt(l+1)===_t;)l+=1,a=!a;if(n=r.charCodeAt(l+1),a&&n!==vi&&n!==et&&n!==Pt&&n!==Dt&&n!==Ft&&n!==Lt&&(l+=1,Ii.test(r.charAt(l)))){for(;Ii.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===et&&(l+=1)}u=["word",r.slice(p,l+1),p,l],p=l;break}default:{n===vi&&r.charCodeAt(p+1)===xu?(l=r.indexOf("*/",p+2)+1,l===0&&(i||X?l=r.length:R("comment")),u=["comment",r.slice(p,l+1),p,l],p=l):(Ut.lastIndex=p+1,Ut.test(r),Ut.lastIndex===0?l=r.length-1:l=Ut.lastIndex-2,u=["word",r.slice(p,l+1),p,l],w.push(u),p=l);break}}return p++,u}function G(P){b.push(P)}return{back:G,endOfFile:F,nextToken:j,position:S}};let Eu=Ls,$u=xr,Nu=Ar,ku=It,xi=Fs,Tu=Ru;const Ai={empty:!0,space:!0};function _u(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}let Pu=class{constructor(e){this.input=e,this.root=new ku,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Eu;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,n,o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(n=l.length-1,i=l[n];i&&i[0]==="space";)i=l[--n];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let n=t-1;n>=0&&(i=e[n],!(i[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,n;for(let[o,a]of e.entries()){if(i=a,n=i[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=i}return!1}comment(e){let t=new $u;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Tu(this.input)}decl(e,t){let r=new Nu;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||_u(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(n=e[c],n[1].toLowerCase()==="!important"){r.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(r.raws.important=u);break}else if(n[1].toLowerCase()==="important"){let u=e.slice(0),h="";for(let f=c;f>0;f--){let d=u[f][0];if(h.trim().startsWith("!")&&d!=="space")break;h=u.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=u)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new xi;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}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(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,o=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(r=c[0],l.push(c),r==="("||r==="[")n||(n=c),o.push(r==="("?")":"]");else if(a&&i&&r==="{")n||(n=c),o.push("}");else if(o.length===0)if(r===";")if(i){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(i=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&i){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,o,a=r.length,l="",c=!0,u,h;for(let f=0;f<a;f+=1)n=r[f],o=n[0],o==="space"&&f===a-1&&!i?c=!1:o==="comment"?(h=r[f-1]?r[f-1][0]:"empty",u=r[f+1]?r[f+1][0]:"empty",!Ai[h]&&!Ai[u]?l.slice(-1)===","?c=!1:l+=n[1]:c=!1):l+=n[1];if(!c){let f=r.reduce((d,g)=>d+g[1],"");e.raws[t]={raw:f,value:l}}e[t]=l}rule(e){e.pop();let t=new xi;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Lu=Pu;let Du=ke,Fu=Mr,Bu=Lu;function dr(s,e){let t=new Fu(s,e),r=new Bu(t);try{r.parse()}catch(i){throw i}return r.root}var Bs=dr;dr.default=dr;Du.registerParse(dr);let os=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}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}};var Yn=os;os.default=os;let Uu=Yn,ls=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Uu(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Us=ls;ls.default=ls;let zu=ke,Wu=Ds,ju=Hn,Gu=Bs,Mi=Us,Vu=It,Hu=vr,{isClean:ue,my:Yu}=vt;const Zu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ju={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},Xu={Once:!0,postcssPlugin:!0,prepare:!0},Ye=0;function tt(s){return typeof s=="object"&&typeof s.then=="function"}function Zn(s){let e=!1,t=Zu[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,Ye,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,Ye,t+"Exit"]:[t,t+"Exit"]}function Oi(s){let e;return s.type==="document"?e=["Document",Ye,"DocumentExit"]:s.type==="root"?e=["Root",Ye,"RootExit"]:e=Zn(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function as(s){return s[ue]=!1,s.nodes&&s.nodes.forEach(e=>as(e)),s}let us={},Ze=class Jn{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"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=as(t);else if(t instanceof Jn||t instanceof Mi)i=as(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=Gu;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{i=n(t,r)}catch(o){this.processed=!0,this.error=o}i&&!i[Yu]&&zu.rebuild(i)}this.result=new Mi(e,i,r),this.helpers=re(A({},us),{postcss:us,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?A(A({},n),n.prepare(this.result)):n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Ju[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Xu[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(tt(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ue];){e[ue]=!0;let t=[Oi(e)];for(;t.length>0;){let r=this.visitTick(t);if(tt(r))try{await r}catch(i){let n=t[t.length-1].node;throw this.handleError(i,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(n=>r(n,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return tt(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Hu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new ju(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[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 e of this.plugins){let t=this.runOnRoot(e);if(tt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ue];)e[ue]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let n;try{n=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(tt(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,a]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(r.toProxy(),this.helpers)}catch(l){throw this.handleError(l,r)}}if(t.iterator!==0){let o=t.iterator,a;for(;a=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!a[ue]){a[ue]=!0,e.push(Oi(a));return}t.iterator=0,delete r.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===Ye){r.nodes&&r.nodes.length&&(r[ue]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[ue]=!0;let t=Zn(e);for(let r of t)if(r===Ye)e.nodes&&e.each(i=>{i[ue]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Ze.registerPostcss=s=>{us=s};var Xn=Ze;Ze.default=Ze;Vu.registerLazyResult(Ze);Wu.registerLazyResult(Ze);let Ku=Hn,qu=Bs;const Qu=Us;let ec=vr;let cs=class{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 e,t=qu;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,n=ec;this.result=new Qu(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new Ku(n,i,this._opts,t);if(a.isMap()){let[l,c]=a.generate();l&&(this.result.css=l),c&&(this.result.map=c)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};var tc=cs;cs.default=cs;let rc=Ds,sc=Xn,ic=tc,nc=It,gt=class{constructor(e=[]){this.version="8.5.4",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new ic(this,e,t):new sc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var oc=gt;gt.default=gt;nc.registerProcessor(gt);rc.registerProcessor(gt);let Kn=Ls,qn=xr,lc=ke,ac=Ts,Qn=Ar,eo=Ds,uc=fu,cc=Mr,hc=Xn,fc=Un,pc=Ir,dc=Bs,zs=oc,mc=Us,to=It,ro=Fs,gc=vr,yc=Yn;function N(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new zs(s)}N.plugin=function(e,t){let r=!1;function i(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
28
28
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
29
- https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new zs().version,l}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(o,l,a){return N([i(a)]).process(o,l)},i};N.stringify=gc;N.parse=dc;N.fromJSON=uc;N.list=fc;N.comment=s=>new qn(s);N.atRule=s=>new Kn(s);N.decl=s=>new Qn(s);N.rule=s=>new ro(s);N.root=s=>new to(s);N.document=s=>new eo(s);N.CssSyntaxError=lc;N.Declaration=Qn;N.Container=ac;N.Processor=zs;N.Document=eo;N.Comment=qn;N.Warning=yc;N.AtRule=Kn;N.Result=mc;N.Input=cc;N.Rule=ro;N.Root=to;N.Node=pc;hc.registerPostcss(N);var wc=N;N.default=N;const L=Nl(wc);L.stringify;L.fromJSON;L.plugin;L.parse;L.list;L.document;L.comment;L.atRule;L.rule;L.decl;L.root;L.CssSyntaxError;L.Declaration;L.Container;L.Processor;L.Document;L.Comment;L.Warning;L.AtRule;L.Result;L.Input;L.Rule;L.Root;L.Node;var bc=Object.defineProperty,Sc=(s,e,t)=>e in s?bc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,se=(s,e,t)=>Sc(s,typeof e!="symbol"?e+"":e,t),Cc=Object.defineProperty,vc=(s,e,t)=>e in s?Cc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,er=(s,e,t)=>vc(s,typeof e!="symbol"?e+"":e,t);const Ic=()=>!("_rrweb_skip_re_fetching_to_suppress_cors_errors"in window&&window._rrweb_skip_re_fetching_to_suppress_cors_errors===!0);function xc(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function Ac(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function so(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>Oc(i,t)).join("");return xc(r)}catch(e){return null}}function Oc(s,e){if(Mc(s)){let t;try{t=so(s.styleSheet)||Ac(s)}catch(r){t=s.cssText}return s.styleSheet.href?Mi(t,s.styleSheet.href):t}else{let t=s.cssText;return Ec(s)&&s.selectorText.includes(":")&&(t=Rc(t)),e?Mi(t,e):t}}function Rc(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function Mc(s){return"styleSheet"in s}function Ec(s){return"selectorText"in s}function $c(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const Nc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,kc=/^(?:[a-z+]+:)?\/\//i,_c=/^www\..*/i,Tc=/^(data:)([^,]*),(.*)/i;function Mi(s,e){return(s||"").replace(Nc,(t,r,i,n,o,l)=>{const a=i||o||l,c=r||n||"";if(!a)return t;if(kc.test(a)||_c.test(a))return`url(${c}${a}${c})`;if(Tc.test(a))return`url(${c}${a}${c})`;if(a[0]==="/")return`url(${c}${$c(e)+a}${c})`;const u=e.split("/"),h=a.split("/");u.pop();for(const f of h)f!=="."&&(f===".."?u.pop():u.push(f));return`url(${c}${u.join("/")}${c})`})}const Pc=1e3*30,De="data-recapt-rrweb-link-cloned",Lc=["woff","woff2","ttf","otf","eot","png","jpg","jpeg","gif","svg","webp","ico","js","mjs","ts","jsx","tsx","json","map","mp4","webm","ogg","mp3","wav","zip","rar","7z","tar","gz","pdf","doc","docx","xls","xlsx"],io=class tr{constructor(){if(er(this,"currentHref",null),er(this,"clones",{}),er(this,"cleanTimeout",null),tr.instance)return tr.instance;tr.instance=this}removeCloneNode(e){var t;if(!(e in this.clones)||this.clones[e]===void 0)return;const r=document.querySelector(`link[${De}="${this.clones[e].cloneNodeAttrId}"]`);r&&((t=r.parentNode)==null||t.removeChild(r))}onLoad(e){if(!(e in this.clones)||this.clones[e]===void 0)return;const t=Array.from(document.styleSheets);let r=null;for(let o=t.length-1;o>=0;o--)if(t[o].href===e){r=t[o];break}if(!r)return this.removeCloneNode(e);const i=so(r);if(this.removeCloneNode(e),!i)return;this.clones[e].cssText=i,this.clones[e].loaded=!0;const n=document.querySelector(`link[${De}="source-${this.clones[e].cloneNodeAttrId}"]`);n?(n.setAttribute("data-rrweb-mutation",Date.now().toString()),n.removeAttribute(De)):(this.clones[e].original.setAttribute("data-rrweb-mutation",Date.now().toString()),this.clones[e].original.removeAttribute(De)),window.dispatchEvent(new CustomEvent("__rrweb_custom_event__",{detail:{type:5,timestamp:Date.now(),data:{tag:"async-css-resolution",requestCssId:this.clones[e].requestCssId,cssText:this.clones[e].cssText}}}))}onLoadError(e){!(e in this.clones)||this.clones[e]===void 0||this.removeCloneNode(e)}removeAllCloneElements(){for(const e of Object.keys(this.clones))this.removeCloneNode(e)}onCleanTimeout(){jr.cleanTimeout=null,jr.removeAllCloneElements()}blowCache(){this.removeAllCloneElements(),this.clones={}}requestClone({forElement:e,requestCssId:t}){if(!Ic())return;this.currentHref!=null&&document.location.href!==this.currentHref&&this.blowCache(),this.currentHref=document.location.href;const r=e.href;if(!r||r in this.clones&&this.clones[r]!==void 0||e.getAttribute("crossorigin")==="anonymous")return;if(e.rel!=="stylesheet"){const o=r.split("/").pop();if(o&&o.includes(".")){const[l]=o.split("?"),a=l.split(".").pop();if(a&&Lc.includes(a.trim().toLowerCase()))return}}const i=e.cloneNode(),n=Math.random().toString(36).slice(2);i.setAttribute("crossorigin","anonymous"),i.setAttribute(De,n),e.setAttribute(De,`source-${n}`),document.head.appendChild(i),this.clones[r]={original:e,clone:i,loaded:!1,cssText:null,cloneNodeAttrId:n,requestCssId:t},i.onload=()=>{this.onLoad(r)},i.onerror=()=>{this.onLoadError(r)},this.cleanTimeout&&clearTimeout(this.cleanTimeout),this.cleanTimeout=setTimeout(jr.onCleanTimeout,Pc)}getClonedCssTextIfAvailable(e){return e in this.clones&&this.clones[e]!==void 0&&this.clones[e].loaded===!0?this.clones[e].cssText:null}};er(io,"instance");let Dc=io;const jr=new Dc;function Fc(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Bc(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var Ws={exports:{}},v=String,no=function(){return{isColorSupported:!1,reset:v,bold:v,dim:v,italic:v,underline:v,inverse:v,hidden:v,strikethrough:v,black:v,red:v,green:v,yellow:v,blue:v,magenta:v,cyan:v,white:v,gray:v,bgBlack:v,bgRed:v,bgGreen:v,bgYellow:v,bgBlue:v,bgMagenta:v,bgCyan:v,bgWhite:v,blackBright:v,redBright:v,greenBright:v,yellowBright:v,blueBright:v,magentaBright:v,cyanBright:v,whiteBright:v,bgBlackBright:v,bgRedBright:v,bgGreenBright:v,bgYellowBright:v,bgBlueBright:v,bgMagentaBright:v,bgCyanBright:v,bgWhiteBright:v}};Ws.exports=no();Ws.exports.createColors=no;var Uc=Ws.exports;const zc={},Wc=Object.freeze(Object.defineProperty({__proto__:null,default:zc},Symbol.toStringTag,{value:"Module"})),ae=Bc(Wc);let Ei=Uc,$i=ae,hs=class oo extends Error{constructor(e,t,r,i,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,oo)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Ei.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:f}=Ei.createColors(!0);i=d=>u(f(d)),r=d=>h(d),$i&&(n=d=>$i(d))}let o=t.split(/\r?\n/),l=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;return o.slice(l,a).map((u,h)=>{let f=l+1+h,d=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(u.length>160){let m=20,p=Math.max(0,this.column-m),w=Math.max(this.column+m,this.endColumn+m),b=u.slice(p,w),S=r(d.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+r(d)+n(b)+`
29
+ https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new zs().version,a}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(o,a,l){return N([i(l)]).process(o,a)},i};N.stringify=gc;N.parse=dc;N.fromJSON=uc;N.list=fc;N.comment=s=>new qn(s);N.atRule=s=>new Kn(s);N.decl=s=>new Qn(s);N.rule=s=>new ro(s);N.root=s=>new to(s);N.document=s=>new eo(s);N.CssSyntaxError=ac;N.Declaration=Qn;N.Container=lc;N.Processor=zs;N.Document=eo;N.Comment=qn;N.Warning=yc;N.AtRule=Kn;N.Result=mc;N.Input=cc;N.Rule=ro;N.Root=to;N.Node=pc;hc.registerPostcss(N);var wc=N;N.default=N;const L=Na(wc);L.stringify;L.fromJSON;L.plugin;L.parse;L.list;L.document;L.comment;L.atRule;L.rule;L.decl;L.root;L.CssSyntaxError;L.Declaration;L.Container;L.Processor;L.Document;L.Comment;L.Warning;L.AtRule;L.Result;L.Input;L.Rule;L.Root;L.Node;var bc=Object.defineProperty,Sc=(s,e,t)=>e in s?bc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,se=(s,e,t)=>Sc(s,typeof e!="symbol"?e+"":e,t),Cc=Object.defineProperty,vc=(s,e,t)=>e in s?Cc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,tr=(s,e,t)=>vc(s,typeof e!="symbol"?e+"":e,t);const Ic=()=>!("_rrweb_skip_re_fetching_to_suppress_cors_errors"in window&&window._rrweb_skip_re_fetching_to_suppress_cors_errors===!0);function xc(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function Ac(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function so(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>Mc(i,t)).join("");return xc(r)}catch(e){return null}}function Mc(s,e){if(Rc(s)){let t;try{t=so(s.styleSheet)||Ac(s)}catch(r){t=s.cssText}return s.styleSheet.href?Ri(t,s.styleSheet.href):t}else{let t=s.cssText;return Ec(s)&&s.selectorText.includes(":")&&(t=Oc(t)),e?Ri(t,e):t}}function Oc(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function Rc(s){return"styleSheet"in s}function Ec(s){return"selectorText"in s}function $c(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const Nc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,kc=/^(?:[a-z+]+:)?\/\//i,Tc=/^www\..*/i,_c=/^(data:)([^,]*),(.*)/i;function Ri(s,e){return(s||"").replace(Nc,(t,r,i,n,o,a)=>{const l=i||o||a,c=r||n||"";if(!l)return t;if(kc.test(l)||Tc.test(l))return`url(${c}${l}${c})`;if(_c.test(l))return`url(${c}${l}${c})`;if(l[0]==="/")return`url(${c}${$c(e)+l}${c})`;const u=e.split("/"),h=l.split("/");u.pop();for(const f of h)f!=="."&&(f===".."?u.pop():u.push(f));return`url(${c}${u.join("/")}${c})`})}const Pc=1e3*30,De="data-recapt-rrweb-link-cloned",Lc=["woff","woff2","ttf","otf","eot","png","jpg","jpeg","gif","svg","webp","ico","js","mjs","ts","jsx","tsx","json","map","mp4","webm","ogg","mp3","wav","zip","rar","7z","tar","gz","pdf","doc","docx","xls","xlsx"],io=class rr{constructor(){if(tr(this,"currentHref",null),tr(this,"clones",{}),tr(this,"cleanTimeout",null),rr.instance)return rr.instance;rr.instance=this}removeCloneNode(e){var t;if(!(e in this.clones)||this.clones[e]===void 0)return;const r=document.querySelector(`link[${De}="${this.clones[e].cloneNodeAttrId}"]`);r&&((t=r.parentNode)==null||t.removeChild(r))}onLoad(e){if(!(e in this.clones)||this.clones[e]===void 0)return;const t=Array.from(document.styleSheets);let r=null;for(let o=t.length-1;o>=0;o--)if(t[o].href===e){r=t[o];break}if(!r)return this.removeCloneNode(e);const i=so(r);if(this.removeCloneNode(e),!i)return;this.clones[e].cssText=i,this.clones[e].loaded=!0;const n=document.querySelector(`link[${De}="source-${this.clones[e].cloneNodeAttrId}"]`);n?(n.setAttribute("data-rrweb-mutation",Date.now().toString()),n.removeAttribute(De)):(this.clones[e].original.setAttribute("data-rrweb-mutation",Date.now().toString()),this.clones[e].original.removeAttribute(De)),window.dispatchEvent(new CustomEvent("__rrweb_custom_event__",{detail:{type:5,timestamp:Date.now(),data:{tag:"async-css-resolution",requestCssId:this.clones[e].requestCssId,cssText:this.clones[e].cssText}}}))}onLoadError(e){!(e in this.clones)||this.clones[e]===void 0||this.removeCloneNode(e)}removeAllCloneElements(){for(const e of Object.keys(this.clones))this.removeCloneNode(e)}onCleanTimeout(){jr.cleanTimeout=null,jr.removeAllCloneElements()}blowCache(){this.removeAllCloneElements(),this.clones={}}requestClone({forElement:e,requestCssId:t}){if(!Ic())return;this.currentHref!=null&&document.location.href!==this.currentHref&&this.blowCache(),this.currentHref=document.location.href;const r=e.href;if(!r||r in this.clones&&this.clones[r]!==void 0||e.getAttribute("crossorigin")==="anonymous")return;if(e.rel!=="stylesheet"){const o=r.split("/").pop();if(o&&o.includes(".")){const[a]=o.split("?"),l=a.split(".").pop();if(l&&Lc.includes(l.trim().toLowerCase()))return}}const i=e.cloneNode(),n=Math.random().toString(36).slice(2);i.setAttribute("crossorigin","anonymous"),i.setAttribute(De,n),e.setAttribute(De,`source-${n}`),document.head.appendChild(i),this.clones[r]={original:e,clone:i,loaded:!1,cssText:null,cloneNodeAttrId:n,requestCssId:t},i.onload=()=>{this.onLoad(r)},i.onerror=()=>{this.onLoadError(r)},this.cleanTimeout&&clearTimeout(this.cleanTimeout),this.cleanTimeout=setTimeout(jr.onCleanTimeout,Pc)}getClonedCssTextIfAvailable(e){return e in this.clones&&this.clones[e]!==void 0&&this.clones[e].loaded===!0?this.clones[e].cssText:null}};tr(io,"instance");let Dc=io;const jr=new Dc;function Fc(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Bc(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var Ws={exports:{}},v=String,no=function(){return{isColorSupported:!1,reset:v,bold:v,dim:v,italic:v,underline:v,inverse:v,hidden:v,strikethrough:v,black:v,red:v,green:v,yellow:v,blue:v,magenta:v,cyan:v,white:v,gray:v,bgBlack:v,bgRed:v,bgGreen:v,bgYellow:v,bgBlue:v,bgMagenta:v,bgCyan:v,bgWhite:v,blackBright:v,redBright:v,greenBright:v,yellowBright:v,blueBright:v,magentaBright:v,cyanBright:v,whiteBright:v,bgBlackBright:v,bgRedBright:v,bgGreenBright:v,bgYellowBright:v,bgBlueBright:v,bgMagentaBright:v,bgCyanBright:v,bgWhiteBright:v}};Ws.exports=no();Ws.exports.createColors=no;var Uc=Ws.exports;const zc={},Wc=Object.freeze(Object.defineProperty({__proto__:null,default:zc},Symbol.toStringTag,{value:"Module"})),le=Bc(Wc);let Ei=Uc,$i=le,hs=class oo extends Error{constructor(e,t,r,i,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,oo)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Ei.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:f}=Ei.createColors(!0);i=d=>u(f(d)),r=d=>h(d),$i&&(n=d=>$i(d))}let o=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),c=String(l).length;return o.slice(a,l).map((u,h)=>{let f=a+1+h,d=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(u.length>160){let m=20,p=Math.max(0,this.column-m),w=Math.max(this.column+m,this.endColumn+m),b=u.slice(p,w),S=r(d.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+r(d)+n(b)+`
30
30
  `+S+i("^")}let g=r(d.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(d)+n(u)+`
31
31
  `+g+i("^")}return" "+r(d)+n(u)}).join(`
32
32
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
@@ -38,24 +38,24 @@ https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.p
38
38
  `,beforeDecl:`
39
39
  `,beforeOpen:" ",beforeRule:`
40
40
  `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function jc(s){return s[0].toUpperCase()+s.slice(1)}let fs=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&i.type!=="root";)n+=1,i=i.parent;if(r.includes(`
41
- `)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<n;l++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return Ni[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]!="undefined")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+jc(r);this[l]?i=this[l](o,e):o.walk(a=>{if(i=a.raws[t],typeof i!="undefined")return!1})}return typeof i=="undefined"&&(i=Ni[r]),o.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(`
41
+ `)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<n;a++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return Ni[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]!="undefined")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let a="raw"+jc(r);this[a]?i=this[a](o,e):o.walk(l=>{if(i=l.raws[t],typeof i!="undefined")return!1})}return typeof i=="undefined"&&(i=Ni[r]),o.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(`
42
42
  `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(`
43
43
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(`
44
44
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t!="undefined"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before!="undefined")return t=r.raws.before,t.includes(`
45
45
  `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between!="undefined")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof r.raws.before!="undefined"){let n=r.raws.before.split(`
46
- `);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var ao=fs;fs.default=fs;let Gc=ao;function ps(s,e){new Gc(e).stringify(s)}var Rr=ps;ps.default=ps;var It={};It.isClean=Symbol("isClean");It.my=Symbol("my");let Vc=js,Hc=ao,Yc=Rr,{isClean:rt,my:Zc}=It;function ds(s,e){let t=new s.constructor;for(let r in s){if(!Object.prototype.hasOwnProperty.call(s,r)||r==="proxyCache")continue;let i=s[r],n=typeof i;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(o=>ds(o,t)):(n==="object"&&i!==null&&(i=ds(i)),t[r]=i)}return t}function de(s,e){if(e&&typeof e.offset!="undefined")return e.offset;let t=1,r=1,i=0;for(let n=0;n<s.length;n++){if(r===e.line&&t===e.column){i=n;break}s[n]===`
47
- `?(t=1,r+=1):t+=1}return i}let ms=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[rt]=!1,this[Zc]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=ds(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Vc(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[rt]=!0}markDirty(){if(this[rt]){this[rt]=!1;let e=this;for(;e=e.parent;)e[rt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n=r.slice(de(r,this.source.start),de(r,this.source.end)).indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,n=de(i,this.source.start),o=n+e;for(let l=n;l<o;l++)i[l]===`
48
- `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:de(t,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:de(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let o=t.slice(de(t,this.source.start),de(t,this.source.end)).indexOf(e.word);o!==-1&&(r=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:de(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:de(t,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line,offset:r.offset+1}),{end:i,start:r}}raw(e,t){return new Hc().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))r[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)r[o]=l.toJSON(null,t);else if(o==="source"){if(l==null)continue;let a=t.get(l.input);a==null&&(a=n,t.set(l.input,n),n++),r[o]={end:l.end,inputId:a,start:l.start}}else r[o]=l}return i&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Yc){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let i={node:this};for(let n in r)i[n]=r[n];return e.warn(t,i)}};var Mr=ms;ms.default=ms;let Jc=Mr,gs=class extends Jc{constructor(e){super(e),this.type="comment"}};var Er=gs;gs.default=gs;let Xc=Mr,ys=class extends Xc{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=re(A({},e),{value:String(e.value)})),super(e),this.type="decl"}};var $r=ys;ys.default=ys;let lo=Er,uo=$r,Kc=Mr,{isClean:co,my:ho}=It,Gs,fo,po,Vs;function mo(s){return s.map(e=>(e.nodes&&(e.nodes=mo(e.nodes)),delete e.source,e))}function go(s){if(s[co]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)go(e)}let ye=class yo extends Kc{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]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(n,o)=>i(n.toProxy(),o):i)):t==="every"||t==="some"?r=>e[t]((i,...n)=>r(i.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],r<n&&(this.indexes[o]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let l of n)this.proxyOf.nodes.splice(r,0,l);let o;for(let l in this.indexes)o=this.indexes[l],r<=o&&(this.indexes[l]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=mo(fo(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new uo(e)]}else if(e.selector||e.selectors)e=[new Vs(e)];else if(e.name)e=[new Gs(e)];else if(e.text)e=[new lo(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[ho]||yo.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[co]&&go(i),i.raws||(i.raws={}),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}};ye.registerParse=s=>{fo=s};ye.registerRule=s=>{Vs=s};ye.registerAtRule=s=>{Gs=s};ye.registerRoot=s=>{po=s};var _e=ye;ye.default=ye;ye.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Gs.prototype):s.type==="rule"?Object.setPrototypeOf(s,Vs.prototype):s.type==="decl"?Object.setPrototypeOf(s,uo.prototype):s.type==="comment"?Object.setPrototypeOf(s,lo.prototype):s.type==="root"&&Object.setPrototypeOf(s,po.prototype),s[ho]=!0,s.nodes&&s.nodes.forEach(e=>{ye.rebuild(e)})};let wo=_e,dr=class extends wo{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Hs=dr;dr.default=dr;wo.registerAtRule(dr);let qc=_e,bo,So,gt=class extends qc{constructor(e){super(A({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new bo(new So,this,e).stringify()}};gt.registerLazyResult=s=>{bo=s};gt.registerProcessor=s=>{So=s};var Ys=gt;gt.default=gt;let Qc="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",eh=(s=21)=>{let e="",t=s|0;for(;t--;)e+=Qc[Math.random()*64|0];return e};var th={nanoid:eh};let{existsSync:rh,readFileSync:sh}=ae,{dirname:Gr,join:ih}=ae,{SourceMapConsumer:ki,SourceMapGenerator:_i}=ae;function nh(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let ws=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Gr(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new ki(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,o=e.match(i)||e.match(n);if(o)return decodeURIComponent(e.substr(o[0].length));let l=e.match(t)||e.match(r);if(l)return nh(e.substr(l[0].length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=Gr(e),rh(e))return this.mapFile=e,sh(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof ki)return _i.fromSourceMap(t).toString();if(t instanceof _i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=ih(Gr(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Co=ws;ws.default=ws;let{nanoid:oh}=th,{isAbsolute:bs,resolve:Ss}=ae,{SourceMapConsumer:ah,SourceMapGenerator:lh}=ae,{fileURLToPath:Ti,pathToFileURL:Ut}=ae,Pi=js,uh=Co,Vr=ae,Hr=Symbol("lineToIndexCache"),ch=!!(ah&&lh),Li=!!(Ss&&bs);function Di(s){if(s[Hr])return s[Hr];let e=s.css.split(`
49
- `),t=new Array(e.length),r=0;for(let i=0,n=e.length;i<n;i++)t[i]=r,r+=e[i].length+1;return s[Hr]=t,t}let mr=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!Li||/^\w+:\/\//.test(t.from)||bs(t.from)?this.file=t.from:this.file=Ss(t.from)),Li&&ch){let r=new uh(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+oh(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,o,l,a,c;if(t&&typeof t=="object"){let h=t,f=r;if(typeof h.offset=="number"){a=h.offset;let d=this.fromOffset(a);t=d.line,r=d.col}else t=h.line,r=h.column,a=this.fromLineAndColumn(t,r);if(typeof f.offset=="number"){l=f.offset;let d=this.fromOffset(l);o=d.line,n=d.col}else o=f.line,n=f.column,l=this.fromLineAndColumn(f.line,f.column)}else if(r)a=this.fromLineAndColumn(t,r);else{a=t;let h=this.fromOffset(a);t=h.line,r=h.col}let u=this.origin(t,r,o,n);return u?c=new Pi(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,i.plugin):c=new Pi(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:n,line:o},this.css,this.file,i.plugin),c.input={column:r,endColumn:n,endLine:o,endOffset:l,line:t,offset:a,source:this.css},this.file&&(Ut&&(c.input.url=Ut(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return Di(this)[e-1]+t-1}fromOffset(e){let t=Di(this),r=t[t.length-1],i=0;if(e>=r)i=t.length-1;else{let n=t.length-2,o;for(;i<n;)if(o=i+(n-i>>1),e<t[o])n=o-1;else if(e>=t[o+1])i=o+1;else{i=o;break}}return{col:e-t[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ss(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof r=="number"&&(l=n.originalPositionFor({column:i,line:r}));let a;bs(o.source)?a=Ut(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Ut(this.map.mapFile));let c={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Ti)c.file=Ti(a);else throw new Error("file: protocol is not available in this PostCSS build");let u=n.sourceContentFor(o.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=A({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Nr=mr;mr.default=mr;Vr&&Vr.registerInput&&Vr.registerInput(mr);let vo=_e,Io,xo,Je=class extends vo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of i)n.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Io(new xo,this,e).stringify()}};Je.registerLazyResult=s=>{Io=s};Je.registerProcessor=s=>{xo=s};var xt=Je;Je.default=Je;vo.registerRoot(Je);let yt={comma(s){return yt.split(s,[","],!0)},space(s){let e=[" ",`
50
- `," "];return yt.split(s,e)},split(s,e,t){let r=[],i="",n=!1,o=0,l=!1,a="",c=!1;for(let u of s)c?c=!1:u==="\\"?c=!0:l?u===a&&(l=!1):u==='"'||u==="'"?(l=!0,a=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(n=!0),n?(i!==""&&r.push(i.trim()),i="",n=!1):i+=u;return(t||i!=="")&&r.push(i.trim()),r}};var Ao=yt;yt.default=yt;let Oo=_e,hh=Ao,gr=class extends Oo{get selectors(){return hh.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var Zs=gr;gr.default=gr;Oo.registerRule(gr);let fh=Hs,ph=Er,dh=$r,mh=Nr,gh=Co,yh=xt,wh=Zs;function wt(s,e){if(Array.isArray(s))return s.map(o=>wt(o));let i=s,{inputs:t}=i,r=Pe(i,["inputs"]);if(t){e=[];for(let o of t){let l=re(A({},o),{__proto__:mh.prototype});l.map&&(l.map=re(A({},l.map),{__proto__:gh.prototype})),e.push(l)}}if(r.nodes&&(r.nodes=s.nodes.map(o=>wt(o,e))),r.source){let n=r.source,{inputId:o}=n,l=Pe(n,["inputId"]);r.source=l,o!=null&&(r.source.input=e[o])}if(r.type==="root")return new yh(r);if(r.type==="decl")return new dh(r);if(r.type==="rule")return new wh(r);if(r.type==="comment")return new ph(r);if(r.type==="atrule")return new fh(r);throw new Error("Unknown node type: "+s.type)}var bh=wt;wt.default=wt;let{dirname:rr,relative:Ro,resolve:Mo,sep:Eo}=ae,{SourceMapConsumer:$o,SourceMapGenerator:sr}=ae,{pathToFileURL:Fi}=ae,Sh=Nr,Ch=!!($o&&sr),vh=!!(rr&&Mo&&Ro&&Eo),Ih=class{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
46
+ `);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var lo=fs;fs.default=fs;let Gc=lo;function ps(s,e){new Gc(e).stringify(s)}var Or=ps;ps.default=ps;var xt={};xt.isClean=Symbol("isClean");xt.my=Symbol("my");let Vc=js,Hc=lo,Yc=Or,{isClean:rt,my:Zc}=xt;function ds(s,e){let t=new s.constructor;for(let r in s){if(!Object.prototype.hasOwnProperty.call(s,r)||r==="proxyCache")continue;let i=s[r],n=typeof i;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(o=>ds(o,t)):(n==="object"&&i!==null&&(i=ds(i)),t[r]=i)}return t}function de(s,e){if(e&&typeof e.offset!="undefined")return e.offset;let t=1,r=1,i=0;for(let n=0;n<s.length;n++){if(r===e.line&&t===e.column){i=n;break}s[n]===`
47
+ `?(t=1,r+=1):t+=1}return i}let ms=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[rt]=!1,this[Zc]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=ds(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Vc(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[rt]=!0}markDirty(){if(this[rt]){this[rt]=!1;let e=this;for(;e=e.parent;)e[rt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n=r.slice(de(r,this.source.start),de(r,this.source.end)).indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,n=de(i,this.source.start),o=n+e;for(let a=n;a<o;a++)i[a]===`
48
+ `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:de(t,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:de(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let o=t.slice(de(t,this.source.start),de(t,this.source.end)).indexOf(e.word);o!==-1&&(r=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:de(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:de(t,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line,offset:r.offset+1}),{end:i,start:r}}raw(e,t){return new Hc().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))r[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)r[o]=a.toJSON(null,t);else if(o==="source"){if(a==null)continue;let l=t.get(a.input);l==null&&(l=n,t.set(a.input,n),n++),r[o]={end:a.end,inputId:l,start:a.start}}else r[o]=a}return i&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Yc){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let i={node:this};for(let n in r)i[n]=r[n];return e.warn(t,i)}};var Rr=ms;ms.default=ms;let Jc=Rr,gs=class extends Jc{constructor(e){super(e),this.type="comment"}};var Er=gs;gs.default=gs;let Xc=Rr,ys=class extends Xc{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=re(A({},e),{value:String(e.value)})),super(e),this.type="decl"}};var $r=ys;ys.default=ys;let ao=Er,uo=$r,Kc=Rr,{isClean:co,my:ho}=xt,Gs,fo,po,Vs;function mo(s){return s.map(e=>(e.nodes&&(e.nodes=mo(e.nodes)),delete e.source,e))}function go(s){if(s[co]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)go(e)}let ye=class yo extends Kc{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]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(n,o)=>i(n.toProxy(),o):i)):t==="every"||t==="some"?r=>e[t]((i,...n)=>r(i.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],r<n&&(this.indexes[o]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let a of n)this.proxyOf.nodes.splice(r,0,a);let o;for(let a in this.indexes)o=this.indexes[a],r<=o&&(this.indexes[a]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=mo(fo(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new uo(e)]}else if(e.selector||e.selectors)e=[new Vs(e)];else if(e.name)e=[new Gs(e)];else if(e.text)e=[new ao(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[ho]||yo.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[co]&&go(i),i.raws||(i.raws={}),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}};ye.registerParse=s=>{fo=s};ye.registerRule=s=>{Vs=s};ye.registerAtRule=s=>{Gs=s};ye.registerRoot=s=>{po=s};var Te=ye;ye.default=ye;ye.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Gs.prototype):s.type==="rule"?Object.setPrototypeOf(s,Vs.prototype):s.type==="decl"?Object.setPrototypeOf(s,uo.prototype):s.type==="comment"?Object.setPrototypeOf(s,ao.prototype):s.type==="root"&&Object.setPrototypeOf(s,po.prototype),s[ho]=!0,s.nodes&&s.nodes.forEach(e=>{ye.rebuild(e)})};let wo=Te,mr=class extends wo{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Hs=mr;mr.default=mr;wo.registerAtRule(mr);let qc=Te,bo,So,yt=class extends qc{constructor(e){super(A({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new bo(new So,this,e).stringify()}};yt.registerLazyResult=s=>{bo=s};yt.registerProcessor=s=>{So=s};var Ys=yt;yt.default=yt;let Qc="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",eh=(s=21)=>{let e="",t=s|0;for(;t--;)e+=Qc[Math.random()*64|0];return e};var th={nanoid:eh};let{existsSync:rh,readFileSync:sh}=le,{dirname:Gr,join:ih}=le,{SourceMapConsumer:ki,SourceMapGenerator:Ti}=le;function nh(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let ws=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Gr(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new ki(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,o=e.match(i)||e.match(n);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(t)||e.match(r);if(a)return nh(e.substr(a[0].length));let l=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=Gr(e),rh(e))return this.mapFile=e,sh(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof ki)return Ti.fromSourceMap(t).toString();if(t instanceof Ti)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=ih(Gr(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Co=ws;ws.default=ws;let{nanoid:oh}=th,{isAbsolute:bs,resolve:Ss}=le,{SourceMapConsumer:lh,SourceMapGenerator:ah}=le,{fileURLToPath:_i,pathToFileURL:zt}=le,Pi=js,uh=Co,Vr=le,Hr=Symbol("lineToIndexCache"),ch=!!(lh&&ah),Li=!!(Ss&&bs);function Di(s){if(s[Hr])return s[Hr];let e=s.css.split(`
49
+ `),t=new Array(e.length),r=0;for(let i=0,n=e.length;i<n;i++)t[i]=r,r+=e[i].length+1;return s[Hr]=t,t}let gr=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!Li||/^\w+:\/\//.test(t.from)||bs(t.from)?this.file=t.from:this.file=Ss(t.from)),Li&&ch){let r=new uh(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+oh(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,o,a,l,c;if(t&&typeof t=="object"){let h=t,f=r;if(typeof h.offset=="number"){l=h.offset;let d=this.fromOffset(l);t=d.line,r=d.col}else t=h.line,r=h.column,l=this.fromLineAndColumn(t,r);if(typeof f.offset=="number"){a=f.offset;let d=this.fromOffset(a);o=d.line,n=d.col}else o=f.line,n=f.column,a=this.fromLineAndColumn(f.line,f.column)}else if(r)l=this.fromLineAndColumn(t,r);else{l=t;let h=this.fromOffset(l);t=h.line,r=h.col}let u=this.origin(t,r,o,n);return u?c=new Pi(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,i.plugin):c=new Pi(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:n,line:o},this.css,this.file,i.plugin),c.input={column:r,endColumn:n,endLine:o,endOffset:a,line:t,offset:l,source:this.css},this.file&&(zt&&(c.input.url=zt(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return Di(this)[e-1]+t-1}fromOffset(e){let t=Di(this),r=t[t.length-1],i=0;if(e>=r)i=t.length-1;else{let n=t.length-2,o;for(;i<n;)if(o=i+(n-i>>1),e<t[o])n=o-1;else if(e>=t[o+1])i=o+1;else{i=o;break}}return{col:e-t[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ss(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let a;typeof r=="number"&&(a=n.originalPositionFor({column:i,line:r}));let l;bs(o.source)?l=zt(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||zt(this.map.mapFile));let c={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(_i)c.file=_i(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=n.sourceContentFor(o.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=A({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Nr=gr;gr.default=gr;Vr&&Vr.registerInput&&Vr.registerInput(gr);let vo=Te,Io,xo,Je=class extends vo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of i)n.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Io(new xo,this,e).stringify()}};Je.registerLazyResult=s=>{Io=s};Je.registerProcessor=s=>{xo=s};var At=Je;Je.default=Je;vo.registerRoot(Je);let wt={comma(s){return wt.split(s,[","],!0)},space(s){let e=[" ",`
50
+ `," "];return wt.split(s,e)},split(s,e,t){let r=[],i="",n=!1,o=0,a=!1,l="",c=!1;for(let u of s)c?c=!1:u==="\\"?c=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(n=!0),n?(i!==""&&r.push(i.trim()),i="",n=!1):i+=u;return(t||i!=="")&&r.push(i.trim()),r}};var Ao=wt;wt.default=wt;let Mo=Te,hh=Ao,yr=class extends Mo{get selectors(){return hh.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var Zs=yr;yr.default=yr;Mo.registerRule(yr);let fh=Hs,ph=Er,dh=$r,mh=Nr,gh=Co,yh=At,wh=Zs;function bt(s,e){if(Array.isArray(s))return s.map(o=>bt(o));let i=s,{inputs:t}=i,r=Pe(i,["inputs"]);if(t){e=[];for(let o of t){let a=re(A({},o),{__proto__:mh.prototype});a.map&&(a.map=re(A({},a.map),{__proto__:gh.prototype})),e.push(a)}}if(r.nodes&&(r.nodes=s.nodes.map(o=>bt(o,e))),r.source){let n=r.source,{inputId:o}=n,a=Pe(n,["inputId"]);r.source=a,o!=null&&(r.source.input=e[o])}if(r.type==="root")return new yh(r);if(r.type==="decl")return new dh(r);if(r.type==="rule")return new wh(r);if(r.type==="comment")return new ph(r);if(r.type==="atrule")return new fh(r);throw new Error("Unknown node type: "+s.type)}var bh=bt;bt.default=bt;let{dirname:sr,relative:Oo,resolve:Ro,sep:Eo}=le,{SourceMapConsumer:$o,SourceMapGenerator:ir}=le,{pathToFileURL:Fi}=le,Sh=Nr,Ch=!!($o&&ir),vh=!!(sr&&Ro&&Oo&&Eo),Ih=class{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
51
51
  `;this.css.includes(`\r
52
52
  `)&&(t=`\r
53
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||rr(e.file),i;this.mapOpts.sourcesContent===!1?(i=new $o(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),vh&&Ch&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=sr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new sr({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 sr({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(l,a,c)=>{if(this.css+=l,a&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),o=l.match(/\n/g),o?(e+=o.length,n=l.lastIndexOf(`
54
- `),t=l.length-n):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?rr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=rr(Mo(r,this.mapOpts.annotation)));let i=Ro(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Sh(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Fi){let r=Fi(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Eo==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var No=Ih;const Yr=39,Bi=34,zt=92,Ui=47,Wt=10,st=32,jt=12,Gt=9,Vt=13,xh=91,Ah=93,Oh=40,Rh=41,Mh=123,Eh=125,$h=59,Nh=42,kh=58,_h=64,Ht=/[\t\n\f\r "#'()/;[\\\]{}]/g,Yt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Th=/.[\r\n"'(/\\]/,zi=/[\da-f]/i;var Ph=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,o,l,a,c,u,h,f,d,g,m=r.length,p=0,w=[],b=[];function S(){return p}function M(P){throw e.error("Unclosed "+P,p)}function F(){return b.length===0&&p>=m}function j(P){if(b.length)return b.pop();if(p>=m)return;let X=P?P.ignoreUnclosed:!1;switch(n=r.charCodeAt(p),n){case Wt:case st:case Gt:case Vt:case jt:{a=p;do a+=1,n=r.charCodeAt(a);while(n===st||n===Wt||n===Gt||n===Vt||n===jt);u=["space",r.slice(p,a)],p=a-1;break}case xh:case Ah:case Mh:case Eh:case kh:case $h:case Rh:{let V=String.fromCharCode(n);u=[V,V,p];break}case Oh:{if(g=w.length?w.pop()[1]:"",d=r.charCodeAt(p+1),g==="url"&&d!==Yr&&d!==Bi&&d!==st&&d!==Wt&&d!==Gt&&d!==jt&&d!==Vt){a=p;do{if(h=!1,a=r.indexOf(")",a+1),a===-1)if(i||X){a=p;break}else M("bracket");for(f=a;r.charCodeAt(f-1)===zt;)f-=1,h=!h}while(h);u=["brackets",r.slice(p,a+1),p,a],p=a}else a=r.indexOf(")",p+1),o=r.slice(p,a+1),a===-1||Th.test(o)?u=["(","(",p]:(u=["brackets",o,p,a],p=a);break}case Yr:case Bi:{c=n===Yr?"'":'"',a=p;do{if(h=!1,a=r.indexOf(c,a+1),a===-1)if(i||X){a=p+1;break}else M("string");for(f=a;r.charCodeAt(f-1)===zt;)f-=1,h=!h}while(h);u=["string",r.slice(p,a+1),p,a],p=a;break}case _h:{Ht.lastIndex=p+1,Ht.test(r),Ht.lastIndex===0?a=r.length-1:a=Ht.lastIndex-2,u=["at-word",r.slice(p,a+1),p,a],p=a;break}case zt:{for(a=p,l=!0;r.charCodeAt(a+1)===zt;)a+=1,l=!l;if(n=r.charCodeAt(a+1),l&&n!==Ui&&n!==st&&n!==Wt&&n!==Gt&&n!==Vt&&n!==jt&&(a+=1,zi.test(r.charAt(a)))){for(;zi.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===st&&(a+=1)}u=["word",r.slice(p,a+1),p,a],p=a;break}default:{n===Ui&&r.charCodeAt(p+1)===Nh?(a=r.indexOf("*/",p+2)+1,a===0&&(i||X?a=r.length:M("comment")),u=["comment",r.slice(p,a+1),p,a],p=a):(Yt.lastIndex=p+1,Yt.test(r),Yt.lastIndex===0?a=r.length-1:a=Yt.lastIndex-2,u=["word",r.slice(p,a+1),p,a],w.push(u),p=a);break}}return p++,u}function G(P){b.push(P)}return{back:G,endOfFile:F,nextToken:j,position:S}};let Lh=Hs,Dh=Er,Fh=$r,Bh=xt,Wi=Zs,Uh=Ph;const ji={empty:!0,space:!0};function zh(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}let Wh=class{constructor(e){this.input=e,this.root=new Bh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Lh;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,n,o=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(a.length>0){for(n=a.length-1,i=a[n];i&&i[0]==="space";)i=a[--n];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let n=t-1;n>=0&&(i=e[n],!(i[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,n;for(let[o,l]of e.entries()){if(i=l,n=i[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=i}return!1}comment(e){let t=new Dh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Uh(this.input)}decl(e,t){let r=new Fh;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||zh(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(n=e[c],n[1].toLowerCase()==="!important"){r.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(r.raws.important=u);break}else if(n[1].toLowerCase()==="important"){let u=e.slice(0),h="";for(let f=c;f>0;f--){let d=u[f][0];if(h.trim().startsWith("!")&&d!=="space")break;h=u.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=u)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Wi;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}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(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,o=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(r=c[0],a.push(c),r==="("||r==="[")n||(n=c),o.push(r==="("?")":"]");else if(l&&i&&r==="{")n||(n=c),o.push("}");else if(o.length===0)if(r===";")if(i){this.decl(a,l);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(i=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&i){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,o,l=r.length,a="",c=!0,u,h;for(let f=0;f<l;f+=1)n=r[f],o=n[0],o==="space"&&f===l-1&&!i?c=!1:o==="comment"?(h=r[f-1]?r[f-1][0]:"empty",u=r[f+1]?r[f+1][0]:"empty",!ji[h]&&!ji[u]?a.slice(-1)===","?c=!1:a+=n[1]:c=!1):a+=n[1];if(!c){let f=r.reduce((d,g)=>d+g[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new Wi;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var jh=Wh;let Gh=_e,Vh=Nr,Hh=jh;function yr(s,e){let t=new Vh(s,e),r=new Hh(t);try{r.parse()}catch(i){throw i}return r.root}var Js=yr;yr.default=yr;Gh.registerParse(yr);let Cs=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}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}};var ko=Cs;Cs.default=Cs;let Yh=ko,vs=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Yh(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Xs=vs;vs.default=vs;let Zh=_e,Jh=Ys,Xh=No,Kh=Js,Gi=Xs,qh=xt,Qh=Rr,{isClean:ce,my:ef}=It;const tf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rf={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},sf={Once:!0,postcssPlugin:!0,prepare:!0},Xe=0;function it(s){return typeof s=="object"&&typeof s.then=="function"}function _o(s){let e=!1,t=tf[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,Xe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,Xe,t+"Exit"]:[t,t+"Exit"]}function Vi(s){let e;return s.type==="document"?e=["Document",Xe,"DocumentExit"]:s.type==="root"?e=["Root",Xe,"RootExit"]:e=_o(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function Is(s){return s[ce]=!1,s.nodes&&s.nodes.forEach(e=>Is(e)),s}let xs={},Ke=class To{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"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Is(t);else if(t instanceof To||t instanceof Gi)i=Is(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=Kh;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{i=n(t,r)}catch(o){this.processed=!0,this.error=o}i&&!i[ef]&&Zh.rebuild(i)}this.result=new Gi(e,i,r),this.helpers=re(A({},xs),{postcss:xs,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?A(A({},n),n.prepare(this.result)):n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!rf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!sf[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(it(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ce];){e[ce]=!0;let t=[Vi(e)];for(;t.length>0;){let r=this.visitTick(t);if(it(r))try{await r}catch(i){let n=t[t.length-1].node;throw this.handleError(i,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(n=>r(n,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return it(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Qh;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Xh(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[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 e of this.plugins){let t=this.runOnRoot(e);if(it(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ce];)e[ce]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let n;try{n=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(it(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!l[ce]){l[ce]=!0,e.push(Vi(l));return}t.iterator=0,delete r.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===Xe){r.nodes&&r.nodes.length&&(r[ce]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[ce]=!0;let t=_o(e);for(let r of t)if(r===Xe)e.nodes&&e.each(i=>{i[ce]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Ke.registerPostcss=s=>{xs=s};var Po=Ke;Ke.default=Ke;qh.registerLazyResult(Ke);Jh.registerLazyResult(Ke);let nf=No,of=Js;const af=Xs;let lf=Rr;let As=class{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 e,t=of;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,n=lf;this.result=new af(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new nf(n,i,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),c&&(this.result.map=c)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};var uf=As;As.default=As;let cf=Ys,hf=Po,ff=uf,pf=xt,bt=class{constructor(e=[]){this.version="8.5.4",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new ff(this,e,t):new hf(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var df=bt;bt.default=bt;pf.registerProcessor(bt);cf.registerProcessor(bt);let Lo=Hs,Do=Er,mf=_e,gf=js,Fo=$r,Bo=Ys,yf=bh,wf=Nr,bf=Po,Sf=Ao,Cf=Mr,vf=Js,Ks=df,If=Xs,Uo=xt,zo=Zs,xf=Rr,Af=ko;function k(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Ks(s)}k.plugin=function(e,t){let r=!1;function i(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
53
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||sr(e.file),i;this.mapOpts.sourcesContent===!1?(i=new $o(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),vh&&Ch&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ir.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ir({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 ir({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(a,l,c)=>{if(this.css+=a,l&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,l.source&&l.source.start?(i.source=this.sourcePath(l),i.original.line=l.source.start.line,i.original.column=l.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),o=a.match(/\n/g),o?(e+=o.length,n=a.lastIndexOf(`
54
+ `),t=a.length-n):t+=a.length,l&&c!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?sr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=sr(Ro(r,this.mapOpts.annotation)));let i=Oo(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Sh(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Fi){let r=Fi(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Eo==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var No=Ih;const Yr=39,Bi=34,Wt=92,Ui=47,jt=10,st=32,Gt=12,Vt=9,Ht=13,xh=91,Ah=93,Mh=40,Oh=41,Rh=123,Eh=125,$h=59,Nh=42,kh=58,Th=64,Yt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Zt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_h=/.[\r\n"'(/\\]/,zi=/[\da-f]/i;var Ph=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,o,a,l,c,u,h,f,d,g,m=r.length,p=0,w=[],b=[];function S(){return p}function R(P){throw e.error("Unclosed "+P,p)}function F(){return b.length===0&&p>=m}function j(P){if(b.length)return b.pop();if(p>=m)return;let X=P?P.ignoreUnclosed:!1;switch(n=r.charCodeAt(p),n){case jt:case st:case Vt:case Ht:case Gt:{l=p;do l+=1,n=r.charCodeAt(l);while(n===st||n===jt||n===Vt||n===Ht||n===Gt);u=["space",r.slice(p,l)],p=l-1;break}case xh:case Ah:case Rh:case Eh:case kh:case $h:case Oh:{let V=String.fromCharCode(n);u=[V,V,p];break}case Mh:{if(g=w.length?w.pop()[1]:"",d=r.charCodeAt(p+1),g==="url"&&d!==Yr&&d!==Bi&&d!==st&&d!==jt&&d!==Vt&&d!==Gt&&d!==Ht){l=p;do{if(h=!1,l=r.indexOf(")",l+1),l===-1)if(i||X){l=p;break}else R("bracket");for(f=l;r.charCodeAt(f-1)===Wt;)f-=1,h=!h}while(h);u=["brackets",r.slice(p,l+1),p,l],p=l}else l=r.indexOf(")",p+1),o=r.slice(p,l+1),l===-1||_h.test(o)?u=["(","(",p]:(u=["brackets",o,p,l],p=l);break}case Yr:case Bi:{c=n===Yr?"'":'"',l=p;do{if(h=!1,l=r.indexOf(c,l+1),l===-1)if(i||X){l=p+1;break}else R("string");for(f=l;r.charCodeAt(f-1)===Wt;)f-=1,h=!h}while(h);u=["string",r.slice(p,l+1),p,l],p=l;break}case Th:{Yt.lastIndex=p+1,Yt.test(r),Yt.lastIndex===0?l=r.length-1:l=Yt.lastIndex-2,u=["at-word",r.slice(p,l+1),p,l],p=l;break}case Wt:{for(l=p,a=!0;r.charCodeAt(l+1)===Wt;)l+=1,a=!a;if(n=r.charCodeAt(l+1),a&&n!==Ui&&n!==st&&n!==jt&&n!==Vt&&n!==Ht&&n!==Gt&&(l+=1,zi.test(r.charAt(l)))){for(;zi.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===st&&(l+=1)}u=["word",r.slice(p,l+1),p,l],p=l;break}default:{n===Ui&&r.charCodeAt(p+1)===Nh?(l=r.indexOf("*/",p+2)+1,l===0&&(i||X?l=r.length:R("comment")),u=["comment",r.slice(p,l+1),p,l],p=l):(Zt.lastIndex=p+1,Zt.test(r),Zt.lastIndex===0?l=r.length-1:l=Zt.lastIndex-2,u=["word",r.slice(p,l+1),p,l],w.push(u),p=l);break}}return p++,u}function G(P){b.push(P)}return{back:G,endOfFile:F,nextToken:j,position:S}};let Lh=Hs,Dh=Er,Fh=$r,Bh=At,Wi=Zs,Uh=Ph;const ji={empty:!0,space:!0};function zh(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}let Wh=class{constructor(e){this.input=e,this.root=new Bh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Lh;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,n,o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(n=l.length-1,i=l[n];i&&i[0]==="space";)i=l[--n];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let n=t-1;n>=0&&(i=e[n],!(i[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,n;for(let[o,a]of e.entries()){if(i=a,n=i[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=i}return!1}comment(e){let t=new Dh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Uh(this.input)}decl(e,t){let r=new Fh;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||zh(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(n=e[c],n[1].toLowerCase()==="!important"){r.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(r.raws.important=u);break}else if(n[1].toLowerCase()==="important"){let u=e.slice(0),h="";for(let f=c;f>0;f--){let d=u[f][0];if(h.trim().startsWith("!")&&d!=="space")break;h=u.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=u)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Wi;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}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(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,o=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(r=c[0],l.push(c),r==="("||r==="[")n||(n=c),o.push(r==="("?")":"]");else if(a&&i&&r==="{")n||(n=c),o.push("}");else if(o.length===0)if(r===";")if(i){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(i=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&i){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,o,a=r.length,l="",c=!0,u,h;for(let f=0;f<a;f+=1)n=r[f],o=n[0],o==="space"&&f===a-1&&!i?c=!1:o==="comment"?(h=r[f-1]?r[f-1][0]:"empty",u=r[f+1]?r[f+1][0]:"empty",!ji[h]&&!ji[u]?l.slice(-1)===","?c=!1:l+=n[1]:c=!1):l+=n[1];if(!c){let f=r.reduce((d,g)=>d+g[1],"");e.raws[t]={raw:f,value:l}}e[t]=l}rule(e){e.pop();let t=new Wi;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var jh=Wh;let Gh=Te,Vh=Nr,Hh=jh;function wr(s,e){let t=new Vh(s,e),r=new Hh(t);try{r.parse()}catch(i){throw i}return r.root}var Js=wr;wr.default=wr;Gh.registerParse(wr);let Cs=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}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}};var ko=Cs;Cs.default=Cs;let Yh=ko,vs=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Yh(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Xs=vs;vs.default=vs;let Zh=Te,Jh=Ys,Xh=No,Kh=Js,Gi=Xs,qh=At,Qh=Or,{isClean:ce,my:ef}=xt;const tf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rf={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},sf={Once:!0,postcssPlugin:!0,prepare:!0},Xe=0;function it(s){return typeof s=="object"&&typeof s.then=="function"}function To(s){let e=!1,t=tf[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,Xe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,Xe,t+"Exit"]:[t,t+"Exit"]}function Vi(s){let e;return s.type==="document"?e=["Document",Xe,"DocumentExit"]:s.type==="root"?e=["Root",Xe,"RootExit"]:e=To(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function Is(s){return s[ce]=!1,s.nodes&&s.nodes.forEach(e=>Is(e)),s}let xs={},Ke=class _o{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"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Is(t);else if(t instanceof _o||t instanceof Gi)i=Is(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=Kh;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{i=n(t,r)}catch(o){this.processed=!0,this.error=o}i&&!i[ef]&&Zh.rebuild(i)}this.result=new Gi(e,i,r),this.helpers=re(A({},xs),{postcss:xs,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?A(A({},n),n.prepare(this.result)):n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!rf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!sf[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(it(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ce];){e[ce]=!0;let t=[Vi(e)];for(;t.length>0;){let r=this.visitTick(t);if(it(r))try{await r}catch(i){let n=t[t.length-1].node;throw this.handleError(i,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(n=>r(n,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return it(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Qh;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Xh(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[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 e of this.plugins){let t=this.runOnRoot(e);if(it(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ce];)e[ce]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let n;try{n=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(it(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,a]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(r.toProxy(),this.helpers)}catch(l){throw this.handleError(l,r)}}if(t.iterator!==0){let o=t.iterator,a;for(;a=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!a[ce]){a[ce]=!0,e.push(Vi(a));return}t.iterator=0,delete r.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===Xe){r.nodes&&r.nodes.length&&(r[ce]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[ce]=!0;let t=To(e);for(let r of t)if(r===Xe)e.nodes&&e.each(i=>{i[ce]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Ke.registerPostcss=s=>{xs=s};var Po=Ke;Ke.default=Ke;qh.registerLazyResult(Ke);Jh.registerLazyResult(Ke);let nf=No,of=Js;const lf=Xs;let af=Or;let As=class{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 e,t=of;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,n=af;this.result=new lf(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new nf(n,i,this._opts,t);if(a.isMap()){let[l,c]=a.generate();l&&(this.result.css=l),c&&(this.result.map=c)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};var uf=As;As.default=As;let cf=Ys,hf=Po,ff=uf,pf=At,St=class{constructor(e=[]){this.version="8.5.4",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new ff(this,e,t):new hf(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var df=St;St.default=St;pf.registerProcessor(St);cf.registerProcessor(St);let Lo=Hs,Do=Er,mf=Te,gf=js,Fo=$r,Bo=Ys,yf=bh,wf=Nr,bf=Po,Sf=Ao,Cf=Rr,vf=Js,Ks=df,If=Xs,Uo=At,zo=Zs,xf=Or,Af=ko;function k(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Ks(s)}k.plugin=function(e,t){let r=!1;function i(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
55
55
  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:
56
- https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new Ks().version,l}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(o,l,a){return k([i(a)]).process(o,l)},i};k.stringify=xf;k.parse=vf;k.fromJSON=yf;k.list=Sf;k.comment=s=>new Do(s);k.atRule=s=>new Lo(s);k.decl=s=>new Fo(s);k.rule=s=>new zo(s);k.root=s=>new Uo(s);k.document=s=>new Bo(s);k.CssSyntaxError=gf;k.Declaration=Fo;k.Container=mf;k.Processor=Ks;k.Document=Bo;k.Comment=Do;k.Warning=Af;k.AtRule=Lo;k.Result=If;k.Input=wf;k.Rule=zo;k.Root=Uo;k.Node=Cf;bf.registerPostcss(k);var Of=k;k.default=k;const D=Fc(Of);D.stringify;D.fromJSON;D.plugin;D.parse;D.list;D.document;D.comment;D.atRule;D.rule;D.decl;D.root;D.CssSyntaxError;D.Declaration;D.Container;D.Processor;D.Document;D.Comment;D.Warning;D.AtRule;D.Result;D.Input;D.Rule;D.Root;D.Node;class qs{constructor(...e){se(this,"parentElement",null),se(this,"parentNode",null),se(this,"ownerDocument"),se(this,"firstChild",null),se(this,"lastChild",null),se(this,"previousSibling",null),se(this,"nextSibling",null),se(this,"ELEMENT_NODE",1),se(this,"TEXT_NODE",3),se(this,"nodeType"),se(this,"nodeName"),se(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof qs){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}function Z(s,e,t=document){const r={capture:!0,passive:!0};return t.addEventListener(s,e,r),()=>t.removeEventListener(s,e,r)}const Be=`Please stop import mirror directly. Instead of that,\r
56
+ https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new Ks().version,a}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(o,a,l){return k([i(l)]).process(o,a)},i};k.stringify=xf;k.parse=vf;k.fromJSON=yf;k.list=Sf;k.comment=s=>new Do(s);k.atRule=s=>new Lo(s);k.decl=s=>new Fo(s);k.rule=s=>new zo(s);k.root=s=>new Uo(s);k.document=s=>new Bo(s);k.CssSyntaxError=gf;k.Declaration=Fo;k.Container=mf;k.Processor=Ks;k.Document=Bo;k.Comment=Do;k.Warning=Af;k.AtRule=Lo;k.Result=If;k.Input=wf;k.Rule=zo;k.Root=Uo;k.Node=Cf;bf.registerPostcss(k);var Mf=k;k.default=k;const D=Fc(Mf);D.stringify;D.fromJSON;D.plugin;D.parse;D.list;D.document;D.comment;D.atRule;D.rule;D.decl;D.root;D.CssSyntaxError;D.Declaration;D.Container;D.Processor;D.Document;D.Comment;D.Warning;D.AtRule;D.Result;D.Input;D.Rule;D.Root;D.Node;class qs{constructor(...e){se(this,"parentElement",null),se(this,"parentNode",null),se(this,"ownerDocument"),se(this,"firstChild",null),se(this,"lastChild",null),se(this,"previousSibling",null),se(this,"nextSibling",null),se(this,"ELEMENT_NODE",1),se(this,"TEXT_NODE",3),se(this,"nodeType"),se(this,"nodeName"),se(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof qs){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}function Z(s,e,t=document){const r={capture:!0,passive:!0};return t.addEventListener(s,e,r),()=>t.removeEventListener(s,e,r)}const Be=`Please stop import mirror directly. Instead of that,\r
57
57
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
58
- or you can use record.mirror to access the mirror instance during recording.`;let Hi={map:{},getId(){return console.error(Be),-1},getNode(){return console.error(Be),null},removeNodeFromMap(){console.error(Be)},has(){return console.error(Be),!1},reset(){console.error(Be)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Hi=new Proxy(Hi,{get(s,e,t){return e==="map"&&console.error(Be),Reflect.get(s,e,t)}}));function St(s,e,t={}){let r=null,i=0;return function(...n){const o=Date.now();!i&&t.leading===!1&&(i=o);const l=e-(o-i),a=this;l<=0||l>e?(r&&(clearTimeout(r),r=null),i=o,s.apply(a,n)):!r&&t.trailing!==!1&&(r=setTimeout(()=>{i=t.leading===!1?0:Date.now(),r=null,s.apply(a,n)},l))}}function kr(s,e,t,r,i=window){const n=i.Object.getOwnPropertyDescriptor(s,e);return i.Object.defineProperty(s,e,r?t:{set(o){setTimeout(()=>{t.set.call(this,o)},0),n&&n.set&&n.set.call(this,o)}}),()=>kr(s,e,n||{},!0)}let wr=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(wr=()=>new Date().getTime());function Wo(s){var e,t,r,i;const n=s.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:s.pageXOffset!==void 0?s.pageXOffset:n.documentElement.scrollLeft||(n==null?void 0:n.body)&&((e=I.parentElement(n.body))==null?void 0:e.scrollLeft)||((t=n==null?void 0:n.body)==null?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:s.pageYOffset!==void 0?s.pageYOffset:(n==null?void 0:n.documentElement.scrollTop)||(n==null?void 0:n.body)&&((r=I.parentElement(n.body))==null?void 0:r.scrollTop)||((i=n==null?void 0:n.body)==null?void 0:i.scrollTop)||0}}function jo(){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 Vo(s){return s?s.nodeType===s.ELEMENT_NODE?s:I.parentElement(s):null}function J(s,e,t,r){if(!s)return!1;const i=Vo(s);if(!i)return!1;try{if(typeof e=="string"){if(i.classList.contains(e)||r&&i.closest("."+e)!==null)return!0}else if(ur(i,e,r))return!0}catch(n){}return!!(t&&(i.matches(t)||r&&i.closest(t)!==null))}function Rf(s,e){return e.getId(s)!==-1}function Zr(s,e,t){return s.tagName==="TITLE"&&t.headTitleMutations?!0:e.getId(s)===ht}function Ho(s,e){if(ot(s))return!1;const t=e.getId(s);if(!e.has(t))return!0;const r=I.parentNode(s);return r&&r.nodeType===s.DOCUMENT_NODE?!1:r?Ho(r,e):!0}function Os(s){return!!s.changedTouches}function Mf(s=window){"NodeList"in s&&!s.NodeList.prototype.forEach&&(s.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in s&&!s.DOMTokenList.prototype.forEach&&(s.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Yo(s,e){return!!(s.nodeName==="IFRAME"&&e.getMeta(s))}function Zo(s,e){return!!(s.nodeName==="LINK"&&s.nodeType===s.ELEMENT_NODE&&s.getAttribute&&s.getAttribute("rel")==="stylesheet"&&e.getMeta(s))}function Rs(s){return s?s instanceof qs&&"shadowRoot"in s?!!s.shadowRoot:!!I.shadowRoot(s):!1}class Ef{constructor(){y(this,"id",1),y(this,"styleIDMap",new WeakMap),y(this,"idStyleMap",new Map)}getId(e){var t;return(t=this.styleIDMap.get(e))!=null?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return t===void 0?r=this.id++:r=t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Jo(s){var e;let t=null;return"getRootNode"in s&&((e=I.getRootNode(s))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&I.host(I.getRootNode(s))&&(t=I.host(I.getRootNode(s))),t}function $f(s){let e=s,t;for(;t=Jo(e);)e=t;return e}function Nf(s){const e=s.ownerDocument;if(!e)return!1;const t=$f(s);return I.contains(e,t)}function Xo(s){const e=s.ownerDocument;return e?I.contains(e,s)||Nf(s):!1}let ut;function kf(s){ut=s}function _f(){ut=void 0}const O=s=>ut?(...t)=>{try{return s(...t)}catch(r){if(ut&&ut(r)===!0)return;throw r}}:s;class Yi{constructor(e){y(this,"iframeIdToRemoteIdMap",new WeakMap),y(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,i){const n=r||this.getIdToRemoteIdMap(e),o=i||this.getRemoteIdToIdMap(e);let l=n.get(t);return l||(l=this.generateIdFn(),n.set(t,l),o.set(l,t)),l}getIds(e,t){const r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(n=>this.getId(e,n,r,i))}getRemoteId(e,t,r){const i=r||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;const n=i.get(t);return n||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map(i=>this.getRemoteId(e,i,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class Tf{constructor(e){y(this,"iframes",new WeakMap),y(this,"crossOriginIframeMap",new WeakMap),y(this,"crossOriginIframeMirror",new Yi(yn)),y(this,"crossOriginIframeStyleMirror"),y(this,"crossOriginIframeRootIdMap",new WeakMap),y(this,"mirror"),y(this,"mutationCb"),y(this,"wrappedEmit"),y(this,"loadListener"),y(this,"stylesheetManager"),y(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Yi(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r,i;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((r=e.contentWindow)==null||r.addEventListener("message",this.handleMessage.bind(this))),(i=this.loadListener)==null||i.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if(t.data.type!=="rrweb"||t.origin!==t.data.origin||!e.source)return;const i=this.crossOriginIframeMap.get(e.source);if(!i)return;const n=this.transformCrossOriginEvent(i,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case R.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:R.IncrementalSnapshot,data:{source:x.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case R.Meta:case R.Load:case R.DomContentLoaded:return!1;case R.Plugin:return t;case R.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case R.IncrementalSnapshot:switch(t.data.source){case x.Mutation:return t.data.adds.forEach(i=>{this.replaceIds(i,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(i.node,n)}),t.data.removes.forEach(i=>{this.replaceIds(i,e,["parentId","id"])}),t.data.attributes.forEach(i=>{this.replaceIds(i,e,["id"])}),t.data.texts.forEach(i=>{this.replaceIds(i,e,["id"])}),t;case x.Drag:case x.TouchMove:case x.MouseMove:return t.data.positions.forEach(i=>{this.replaceIds(i,e,["id"])}),t;case x.ViewportResize:return!1;case x.MediaInteraction:case x.MouseInteraction:case x.Scroll:case x.CanvasMutation:case x.Input:return this.replaceIds(t.data,e,["id"]),t;case x.StyleSheetRule:case x.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case x.Font:return t;case x.Selection:return t.data.ranges.forEach(i=>{this.replaceIds(i,e,["start","end"])}),t;case x.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(r=t.data.styles)==null||r.forEach(i=>{this.replaceStyleIds(i,e,["styleId"])}),t}}return!1}replace(e,t,r,i){for(const n of i)!Array.isArray(t[n])&&typeof t[n]!="number"||(Array.isArray(t[n])?t[n]=e.getIds(r,t[n]):t[n]=e.getId(r,t[n]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,t)})}patchRootIdOnNode(e,t){e.type!==on.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,t)})}}const Ge=()=>"_rrweb_is_debug"in window&&window._rrweb_is_debug?window._rrweb_is_debug:!1,br=(...s)=>{Ge()&&console.log("[recapt:rrweb]",...s)},Ko=class ir{constructor(){if(y(this,"lastFullSnapshot",-1),y(this,"intervalBetweenSnapshots",150),y(this,"debounceTimeout",null),y(this,"debounceTime",10),ir.instance)return ir.instance;ir.instance=this}requestFullSnapshot(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.debounceTimeout=null,this.takeSnapshot()},this.debounceTime)}takeSnapshot(){if(Date.now()-this.lastFullSnapshot<this.intervalBetweenSnapshots){br("StormSnapshotManager, takeSnapshot: too soon");return}br("StormSnapshotManager, takeSnapshot: taking full snapshot"),pp(),this.lastFullSnapshot=Date.now()}};y(Ko,"instance");let Pf=Ko;const Lf=new Pf;function Zi(s){return"__ln"in s}class Df{constructor(){y(this,"length",0),y(this,"head",null),y(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(t==null?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Zi(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Zi(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Ji=(s,e)=>`${s}@${e}`,Xi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function Ff(s=8){let e="";for(let t=0;t<s;t++)e+=Xi.charAt(Math.floor(Math.random()*Xi.length));return e}class Bf{constructor(){y(this,"frozen",!1),y(this,"locked",!1),y(this,"texts",[]),y(this,"attributes",[]),y(this,"attributeMap",new WeakMap),y(this,"removes",[]),y(this,"mapRemoves",[]),y(this,"movedMap",{}),y(this,"addedSet",new Set),y(this,"movedSet",new Set),y(this,"droppedSet",new Set),y(this,"removesSubTreeCache",new Set),y(this,"mutationCb"),y(this,"blockClass"),y(this,"blockSelector"),y(this,"maskTextClass"),y(this,"maskTextSelector"),y(this,"inlineStylesheet"),y(this,"maskInputOptions"),y(this,"maskTextFn"),y(this,"maskInputFn"),y(this,"keepIframeSrcFn"),y(this,"recordCanvas"),y(this,"inlineImages"),y(this,"slimDOMOptions"),y(this,"dataURLOptions"),y(this,"doc"),y(this,"mirror"),y(this,"iframeManager"),y(this,"stylesheetManager"),y(this,"shadowDomManager"),y(this,"canvasManager"),y(this,"processedNodeManager"),y(this,"unattachedDoc"),y(this,"bufId",Ge()?Ff():""),y(this,"stormBatches",[]),y(this,"stormInfo",null),y(this,"stormSettings",{batchSize:50,timeout:30,mutationLimit:800}),y(this,"handleStormMutations",e=>{const t=Date.now();this.stormInfo==null&&(br("detected probable mutation storm start","buffer id:",this.bufId),this.stormInfo={startedAt:t,totalMutations:0,timeout:setTimeout(this.handleStormFinish,this.stormSettings.timeout),stormExceededLimit:!1}),this.stormInfo.totalMutations+=e.length,this.stormInfo.totalMutations>=this.stormSettings.mutationLimit?(this.stormInfo.stormExceededLimit=!0,this.stormBatches=[]):this.stormBatches.push({ts:t,mutations:e}),clearTimeout(this.stormInfo.timeout),e.length<this.stormSettings.batchSize?this.handleStormFinish():this.stormInfo.timeout=setTimeout(this.handleStormFinish,this.stormSettings.timeout)}),y(this,"handleStormFinish",()=>{if(!this.stormInfo)return;const{stormExceededLimit:e}=this.stormInfo;if(br("mutation storm finished","totalMutations:",this.stormInfo.totalMutations,"stormExceededLimit:",e,"storm duration:",Date.now()-this.stormInfo.startedAt,"ms","buffer id:",this.bufId),clearTimeout(this.stormInfo.timeout),this.stormInfo=null,e)this.stormBatches=[],Lf.requestFullSnapshot();else{let t=[];for(const r of this.stormBatches)t.push(...r.mutations);this.stormBatches=[],this.processInternalMutations(t,!0)}}),y(this,"processInternalMutations",(e,t=!1)=>{if(console.log("muts",e.length),!t&&(this.stormInfo!=null||e.length>=this.stormSettings.batchSize)){this.handleStormMutations(e);return}for(const r of e)this.processMutation(r);this.emit()}),y(this,"processMutations",e=>{this.processInternalMutations(e)}),y(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new Df,i=u=>{let h=u,f=ht;for(;f===ht;)h=h&&h.nextSibling,f=h&&this.mirror.getId(h);return f},n=u=>{const h=I.parentNode(u);if(!h||!Xo(u))return;let f=!1;if(u.nodeType===Node.TEXT_NODE){const p=h.tagName;if(p==="TEXTAREA")return;p==="STYLE"&&this.addedSet.has(h)&&(f=!0)}const d=ot(h)?this.mirror.getId(Jo(u)):this.mirror.getId(h),g=i(u);if(d===-1||g===-1)return r.addNode(u);const m=ze(u,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{Yo(p,this.mirror)&&this.iframeManager.addIframe(p),Zo(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),Rs(u)&&this.shadowDomManager.addShadowRoot(I.shadowRoot(u),this.doc)},onIframeLoad:(p,w)=>{this.iframeManager.attachIframe(p,w),this.shadowDomManager.observeAttachShadow(p)},onStylesheetLoad:(p,w)=>{this.stylesheetManager.attachLinkElement(p,w)},cssCaptured:f});m&&(e.push({parentId:d,nextId:g,node:m}),t.add(m.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const u of this.movedSet)Ki(this.removesSubTreeCache,u,this.mirror)&&!this.movedSet.has(I.parentNode(u))||n(u);for(const u of this.addedSet)!qi(this.droppedSet,u)&&!Ki(this.removesSubTreeCache,u,this.mirror)||qi(this.movedSet,u)?n(u):this.droppedSet.add(u);let o=null;for(;r.length;){let u=null;if(o){const h=this.mirror.getId(I.parentNode(o.value)),f=i(o.value);h!==-1&&f!==-1&&(u=o)}if(!u){let h=r.tail;for(;h;){const f=h;if(h=h.previous,f){const d=this.mirror.getId(I.parentNode(f.value));if(i(f.value)===-1)continue;if(d!==-1){u=f;break}else{const m=f.value,p=I.parentNode(m);if(p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const w=I.host(p);if(this.mirror.getId(w)!==-1){u=f;break}}}}}}if(!u){for(;r.head;)r.removeNode(r.head.value);break}o=u.previous,r.removeNode(u.value),n(u.value)}const l=[];for(const u of this.texts){const h=u.node,f=I.parentNode(h);f&&f.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(f);const d=this.mirror.getId(h);!t.has(d)&&this.mirror.has(d)&&l.push({id:d,value:u.value})}const a=[];for(const u of this.attributes){const{attributes:h}=u;if(typeof h.style=="string"){const d=JSON.stringify(u.styleDiff),g=JSON.stringify(u._unchangedStyles);d.length<h.style.length&&(d+g).split("var(").length===h.style.split("var(").length&&(h.style=u.styleDiff)}const f=this.mirror.getId(u.node);!t.has(f)&&this.mirror.has(f)&&a.push({id:f,attributes:h})}const c={texts:l,attributes:a,removes:this.removes,adds:e};!c.texts.length&&!c.attributes.length&&!c.removes.length&&!c.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(c))}),y(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));const r=Array.from(I.childNodes(e),i=>I.textContent(i)||"").join("");t.attributes.value=or({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:ar(e),value:r,maskInputFn:this.maskInputFn})}),y(this,"processMutation",e=>{if(!Zr(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const t=I.textContent(e.target);!J(e.target,this.blockClass,this.blockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:Sn(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,Vo(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let r=e.attributeName,i=e.target.getAttribute(r);if(r==="value"){const o=ar(t);i=or({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:o,value:i,maskInputFn:this.maskInputFn})}if(J(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;let n=this.attributeMap.get(e.target);if(t.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!t.contentDocument)r="rr_src";else return;if(n||(n={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e.target,n)),r==="type"&&t.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&t.setAttribute("data-rr-is-password","true"),!bn(t.tagName,r))if(n.attributes[r]=wn(this.doc,$e(t.tagName),$e(r),i),r==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(l){this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");e.oldValue&&o.setAttribute("style",e.oldValue);for(const l of Array.from(t.style)){const a=t.style.getPropertyValue(l),c=t.style.getPropertyPriority(l);a!==o.style.getPropertyValue(l)||c!==o.style.getPropertyPriority(l)?c===""?n.styleDiff[l]=a:n.styleDiff[l]=[a,c]:n._unchangedStyles[l]=[a,c]}for(const l of Array.from(o.style))t.style.getPropertyValue(l)===""&&(n.styleDiff[l]=!1)}else r==="open"&&t.tagName==="DIALOG"&&(t.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":{if(J(e.target,this.blockClass,this.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}for(let o=0;o<e.addedNodes.length;o++)this.genAdds(e.addedNodes[o],e.target);const t=ot(e.target)?this.mirror.getId(I.host(e.target)):this.mirror.getId(e.target);if(J(e.target,this.blockClass,this.blockSelector,!1))return;const r=this.addedSet.has(e.target),i=Ho(e.target,this.mirror),n=ot(e.target)&&at(e.target)?!0:void 0;for(let o=0;o<e.removedNodes.length;o++){const l=e.removedNodes[o],a=this.mirror.getId(l);if(Zr(l,this.mirror,this.slimDOMOptions)||!Rf(l,this.mirror))return;this.addedSet.has(l)?(Ms(this.addedSet,l),this.droppedSet.add(l)):r&&a===-1||i||(this.movedSet.has(l)&&this.movedMap[Ji(a,t)]?Ms(this.movedSet,l):(this.removes.push({parentId:t,id:a,isShadow:n}),Uf(l,this.removesSubTreeCache))),this.mapRemoves.push(l)}break}}}),y(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(Zr(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&r!==-1&&(this.movedMap[Ji(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);if(!J(e,this.blockClass,this.blockSelector,!1)){const r=I.childNodes(e);for(let i=0;i<r.length;i++)this.genAdds(r[i]);if(Rs(e)){const i=I.childNodes(I.shadowRoot(e));for(let n=0;n<i.length;n++){const o=i[n];this.processedNodeManager.add(o,this),this.genAdds(o,e)}}}}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}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 Ms(s,e){s.delete(e);const t=I.childNodes(e);for(let r=0;r<t.length;r++)Ms(s,t[r])}function Uf(s,e){const t=[s];for(;t.length;){const r=t.pop();if(e.has(r))continue;e.add(r);const i=I.childNodes(r);for(let n=0;n<i.length;n++)t.push(i[n])}}function Ki(s,e,t){return s.size===0?!1:zf(s,e)}function zf(s,e,t){const r=I.parentNode(e);return r?s.has(r):!1}function qi(s,e){return s.size===0?!1:qo(s,e)}function qo(s,e){const t=I.parentNode(e);return t?s.has(t)?!0:qo(s,t):!1}const Ee=[];function At(s){try{if("composedPath"in s){const e=s.composedPath();if(e.length)return e[0]}else if("path"in s&&s.path.length)return s.path[0]}catch(e){}return s&&s.target}function Qo(s,e){const t=new Bf;Ee.push(t),t.init(s);const r=new(ln())(O(t.processMutations.bind(t)));return r.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function Wf({mousemoveCb:s,sampling:e,doc:t,mirror:r}){if(e.mousemove===!1)return()=>{};const i=typeof e.mousemove=="number"?e.mousemove:50,n=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let o=[],l;const a=St(O(h=>{const f=Date.now()-l;s(o.map(d=>(d.timeOffset-=f,d)),h),o=[],l=null}),n),c=O(St(O(h=>{const f=At(h),{clientX:d,clientY:g}=Os(h)?h.changedTouches[0]:h;l||(l=wr()),o.push({x:d,y:g,id:r.getId(f),timeOffset:wr()-l}),a(typeof DragEvent!="undefined"&&h instanceof DragEvent?x.Drag:h instanceof MouseEvent?x.MouseMove:x.TouchMove)}),i,{trailing:!1})),u=[Z("mousemove",c,t),Z("touchmove",c,t),Z("drag",c,t)];return O(()=>{u.forEach(h=>h())})}function jf({mouseInteractionCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,sampling:n}){if(n.mouseInteraction===!1)return()=>{};const o=n.mouseInteraction===!0||n.mouseInteraction===void 0?{}:n.mouseInteraction,l=[];let a=null;const c=u=>h=>{const f=At(h);if(J(f,r,i,!0))return;let d=null,g=u;if("pointerType"in h){switch(h.pointerType){case"mouse":d=me.Mouse;break;case"touch":d=me.Touch;break;case"pen":d=me.Pen;break}d===me.Touch?K[u]===K.MouseDown?g="TouchStart":K[u]===K.MouseUp&&(g="TouchEnd"):me.Pen}else Os(h)&&(d=me.Touch);d!==null?(a=d,(g.startsWith("Touch")&&d===me.Touch||g.startsWith("Mouse")&&d===me.Mouse)&&(d=null)):K[u]===K.Click&&(d=a,a=null);const m=Os(h)?h.changedTouches[0]:h;if(!m)return;const p=t.getId(f),{clientX:w,clientY:b}=m;O(s)(A({type:K[g],id:p,x:w,y:b},d!==null&&{pointerType:d}))};return Object.keys(K).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&o[u]!==!1).forEach(u=>{let h=$e(u);const f=c(u);if(window.PointerEvent)switch(K[u]){case K.MouseDown:case K.MouseUp:h=h.replace("mouse","pointer");break;case K.TouchStart:case K.TouchEnd:return}l.push(Z(h,f,e))}),O(()=>{l.forEach(u=>u())})}function ea({scrollCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,sampling:n}){const o=O(St(O(l=>{const a=At(l);if(!a||J(a,r,i,!0))return;const c=t.getId(a);if(a===e&&e.defaultView){const u=Wo(e.defaultView);s({id:c,x:u.left,y:u.top})}else s({id:c,x:a.scrollLeft,y:a.scrollTop})}),n.scroll||100));return Z("scroll",o,e)}function Gf({viewportResizeCb:s},{win:e}){let t=-1,r=-1;const i=O(St(O(()=>{const n=jo(),o=Go();(t!==n||r!==o)&&(s({width:Number(o),height:Number(n)}),t=n,r=o)}),200));return Z("resize",i,e)}const Vf=["INPUT","TEXTAREA","SELECT"],Qi=new WeakMap;function Hf({inputCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,ignoreClass:n,ignoreSelector:o,maskInputOptions:l,maskInputFn:a,sampling:c,userTriggeredOnInput:u}){function h(b){let S=At(b);const M=b.isTrusted,F=S&&S.tagName;if(S&&F==="OPTION"&&(S=I.parentElement(S)),!S||!F||Vf.indexOf(F)<0||J(S,r,i,!0)||S.classList.contains(n)||o&&S.matches(o))return;let j=S.value,G=!1;const P=ar(S)||"";P==="radio"||P==="checkbox"?G=S.checked:(l[F.toLowerCase()]||l[P])&&(j=or({element:S,maskInputOptions:l,tagName:F,type:P,value:j,maskInputFn:a})),f(S,u?{text:j,isChecked:G,userTriggered:M}:{text:j,isChecked:G});const X=S.name;P==="radio"&&X&&G&&e.querySelectorAll(`input[type="radio"][name="${X}"]`).forEach(V=>{if(V!==S){const q=V.value;f(V,u?{text:q,isChecked:!G,userTriggered:!1}:{text:q,isChecked:!G})}})}function f(b,S){const M=Qi.get(b);if(!M||M.text!==S.text||M.isChecked!==S.isChecked){Qi.set(b,S);const F=t.getId(b);O(s)(re(A({},S),{id:F}))}}const g=(c.input==="last"?["change"]:["input","change"]).map(b=>Z(b,O(h),e)),m=e.defaultView;if(!m)return()=>{g.forEach(b=>b())};const p=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),w=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return p&&p.set&&g.push(...w.map(b=>kr(b[0],b[1],{set(){O(h)({target:this,isTrusted:!1})}},!1,m))),O(()=>{g.forEach(b=>b())})}function Sr(s){const e=[];function t(r,i){if(Zt("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Zt("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Zt("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Zt("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(o)}return i}return t(s,e)}function Ce(s,e,t){let r,i;return s?(s.ownerNode?r=e.getId(s.ownerNode):i=t.getId(s),{styleId:i,id:r}):{}}function Yf({styleSheetRuleCb:s,mirror:e,stylesheetManager:t},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:O((u,h,f)=>{const[d,g]=f,{id:m,styleId:p}=Ce(h,e,t.styleMirror);return(m&&m!==-1||p&&p!==-1)&&s({id:m,styleId:p,adds:[{rule:d,index:g}]}),u.apply(h,f)})}),r.CSSStyleSheet.prototype.addRule=function(u,h,f=this.cssRules.length){const d=`${u} { ${h} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[d,f])};const n=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(n,{apply:O((u,h,f)=>{const[d]=f,{id:g,styleId:m}=Ce(h,e,t.styleMirror);return(g&&g!==-1||m&&m!==-1)&&s({id:g,styleId:m,removes:[{index:d}]}),u.apply(h,f)})}),r.CSSStyleSheet.prototype.removeRule=function(u){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[u])};let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:O((u,h,f)=>{const[d]=f,{id:g,styleId:m}=Ce(h,e,t.styleMirror);return(g&&g!==-1||m&&m!==-1)&&s({id:g,styleId:m,replace:d}),u.apply(h,f)})}));let l;r.CSSStyleSheet.prototype.replaceSync&&(l=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:O((u,h,f)=>{const[d]=f,{id:g,styleId:m}=Ce(h,e,t.styleMirror);return(g&&g!==-1||m&&m!==-1)&&s({id:g,styleId:m,replaceSync:d}),u.apply(h,f)})}));const a={};Jt("CSSGroupingRule")?a.CSSGroupingRule=r.CSSGroupingRule:(Jt("CSSMediaRule")&&(a.CSSMediaRule=r.CSSMediaRule),Jt("CSSConditionRule")&&(a.CSSConditionRule=r.CSSConditionRule),Jt("CSSSupportsRule")&&(a.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(a).forEach(([u,h])=>{c[u]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=new Proxy(c[u].insertRule,{apply:O((f,d,g)=>{const[m,p]=g,{id:w,styleId:b}=Ce(d.parentStyleSheet,e,t.styleMirror);return(w&&w!==-1||b&&b!==-1)&&s({id:w,styleId:b,adds:[{rule:m,index:[...Sr(d),p||0]}]}),f.apply(d,g)})}),h.prototype.deleteRule=new Proxy(c[u].deleteRule,{apply:O((f,d,g)=>{const[m]=g,{id:p,styleId:w}=Ce(d.parentStyleSheet,e,t.styleMirror);return(p&&p!==-1||w&&w!==-1)&&s({id:p,styleId:w,removes:[{index:[...Sr(d),m]}]}),f.apply(d,g)})})}),O(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=n,o&&(r.CSSStyleSheet.prototype.replace=o),l&&(r.CSSStyleSheet.prototype.replaceSync=l),Object.entries(a).forEach(([u,h])=>{h.prototype.insertRule=c[u].insertRule,h.prototype.deleteRule=c[u].deleteRule})})}function ta({mirror:s,stylesheetManager:e},t){var r,i,n;let o=null;t.nodeName==="#document"?o=s.getId(t):o=s.getId(I.host(t));const l=t.nodeName==="#document"?(r=t.defaultView)==null?void 0:r.Document:(n=(i=t.ownerDocument)==null?void 0:i.defaultView)==null?void 0:n.ShadowRoot,a=l!=null&&l.prototype?Object.getOwnPropertyDescriptor(l==null?void 0:l.prototype,"adoptedStyleSheets"):void 0;return o===null||o===-1||!l||!a?()=>{}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var c;return(c=a.get)==null?void 0:c.call(this)},set(c){var u;const h=(u=a.set)==null?void 0:u.call(this,c);if(o!==null&&o!==-1)try{e.adoptStyleSheets(c,o)}catch(f){}return h}}),O(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function Zf({styleDeclarationCb:s,mirror:e,ignoreCSSAttributes:t,stylesheetManager:r},{win:i}){const n=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(n,{apply:O((l,a,c)=>{var u;const[h,f,d]=c;if(t.has(h))return n.apply(a,[h,f,d]);const{id:g,styleId:m}=Ce((u=a.parentRule)==null?void 0:u.parentStyleSheet,e,r.styleMirror);return(g&&g!==-1||m&&m!==-1)&&s({id:g,styleId:m,set:{property:h,value:f,priority:d},index:Sr(a.parentRule)}),l.apply(a,c)})});const o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:O((l,a,c)=>{var u;const[h]=c;if(t.has(h))return o.apply(a,[h]);const{id:f,styleId:d}=Ce((u=a.parentRule)==null?void 0:u.parentStyleSheet,e,r.styleMirror);return(f&&f!==-1||d&&d!==-1)&&s({id:f,styleId:d,remove:{property:h},index:Sr(a.parentRule)}),l.apply(a,c)})}),O(()=>{i.CSSStyleDeclaration.prototype.setProperty=n,i.CSSStyleDeclaration.prototype.removeProperty=o})}function Jf({mediaInteractionCb:s,blockClass:e,blockSelector:t,mirror:r,sampling:i,doc:n}){const o=O(a=>St(O(c=>{const u=At(c);if(!u||J(u,e,t,!0))return;const{currentTime:h,volume:f,muted:d,playbackRate:g,loop:m}=u;s({type:a,id:r.getId(u),currentTime:h,volume:f,muted:d,playbackRate:g,loop:m})}),i.media||500)),l=[Z("play",o(Fe.Play),n),Z("pause",o(Fe.Pause),n),Z("seeked",o(Fe.Seeked),n),Z("volumechange",o(Fe.VolumeChange),n),Z("ratechange",o(Fe.RateChange),n)];return O(()=>{l.forEach(a=>a())})}function Xf({fontCb:s,doc:e}){const t=e.defaultView;if(!t)return()=>{};const r=[],i=new WeakMap,n=t.FontFace;t.FontFace=function(a,c,u){const h=new n(a,c,u);return i.set(h,{family:a,buffer:typeof c!="string",descriptors:u,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),h};const o=Ne(e.fonts,"add",function(l){return function(a){return setTimeout(O(()=>{const c=i.get(a);c&&(s(c),i.delete(a))}),0),l.apply(this,[a])}});return r.push(()=>{t.FontFace=n}),r.push(o),O(()=>{r.forEach(l=>l())})}function Kf(s){const{doc:e,mirror:t,blockClass:r,blockSelector:i,selectionCb:n}=s;let o=!0;const l=O(()=>{const a=e.getSelection();if(!a||o&&(a!=null&&a.isCollapsed))return;o=a.isCollapsed||!1;const c=[],u=a.rangeCount||0;for(let h=0;h<u;h++){const f=a.getRangeAt(h),{startContainer:d,startOffset:g,endContainer:m,endOffset:p}=f;J(d,r,i,!0)||J(m,r,i,!0)||c.push({start:t.getId(d),startOffset:g,end:t.getId(m),endOffset:p})}n({ranges:c})});return l(),Z("selectionchange",l)}function qf({doc:s,customElementCb:e}){const t=s.defaultView;return!t||!t.customElements?()=>{}:Ne(t.customElements,"define",function(i){return function(n,o,l){try{e({define:{name:n}})}catch(a){console.warn(`Custom element callback failed for ${n}`)}return i.apply(this,[n,o,l])}})}function Qf(s,e){const{mutationCb:t,mousemoveCb:r,mouseInteractionCb:i,scrollCb:n,viewportResizeCb:o,inputCb:l,mediaInteractionCb:a,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:h,fontCb:f,selectionCb:d,customElementCb:g}=s;s.mutationCb=(...m)=>{e.mutation&&e.mutation(...m),t(...m)},s.mousemoveCb=(...m)=>{e.mousemove&&e.mousemove(...m),r(...m)},s.mouseInteractionCb=(...m)=>{e.mouseInteraction&&e.mouseInteraction(...m),i(...m)},s.scrollCb=(...m)=>{e.scroll&&e.scroll(...m),n(...m)},s.viewportResizeCb=(...m)=>{e.viewportResize&&e.viewportResize(...m),o(...m)},s.inputCb=(...m)=>{e.input&&e.input(...m),l(...m)},s.mediaInteractionCb=(...m)=>{e.mediaInteaction&&e.mediaInteaction(...m),a(...m)},s.styleSheetRuleCb=(...m)=>{e.styleSheetRule&&e.styleSheetRule(...m),c(...m)},s.styleDeclarationCb=(...m)=>{e.styleDeclaration&&e.styleDeclaration(...m),u(...m)},s.canvasMutationCb=(...m)=>{e.canvasMutation&&e.canvasMutation(...m),h(...m)},s.fontCb=(...m)=>{e.font&&e.font(...m),f(...m)},s.selectionCb=(...m)=>{e.selection&&e.selection(...m),d(...m)},s.customElementCb=(...m)=>{e.customElement&&e.customElement(...m),g(...m)}}function ep(s,e={}){const t=s.doc.defaultView;if(!t)return()=>{};Qf(s,e);let r;s.recordDOM&&(r=Qo(s,s.doc));const i=Wf(s),n=jf(s),o=ea(s),l=Gf(s,{win:t}),a=Hf(s),c=Jf(s);let u=()=>{},h=()=>{},f=()=>{},d=()=>{};s.recordDOM&&(u=Yf(s,{win:t}),h=ta(s,s.doc),f=Zf(s,{win:t}),s.collectFonts&&(d=Xf(s)));const g=Kf(s),m=qf(s),p=[];for(const w of s.plugins)p.push(w.observer(w.callback,t,w.options));return O(()=>{Ee.forEach(w=>w.reset()),r==null||r.disconnect(),i(),n(),o(),l(),a(),c(),u(),h(),f(),d(),g(),m(),p.forEach(w=>w())})}function Zt(s){return typeof window[s]!="undefined"}function Jt(s){return!!(typeof window[s]!="undefined"&&window[s].prototype&&"insertRule"in window[s].prototype&&"deleteRule"in window[s].prototype)}var We="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tp=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Xt=0;Xt<We.length;Xt++)tp[We.charCodeAt(Xt)]=Xt;var rp=function(s){var e=new Uint8Array(s),t,r=e.length,i="";for(t=0;t<r;t+=3)i+=We[e[t]>>2],i+=We[(e[t]&3)<<4|e[t+1]>>4],i+=We[(e[t+1]&15)<<2|e[t+2]>>6],i+=We[e[t+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const en=new Map;function sp(s,e){let t=en.get(s);return t||(t=new Map,en.set(s,t)),t.has(e)||t.set(e,[]),t.get(e)}const ra=(s,e,t)=>{if(!s||!(ia(s,e)||typeof s=="object"))return;const r=s.constructor.name,i=sp(t,r);let n=i.indexOf(s);return n===-1&&(n=i.length,i.push(s)),n};function nr(s,e,t){if(s instanceof Array)return s.map(r=>nr(r,e,t));if(s===null)return s;if(s instanceof Float32Array||s instanceof Float64Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Uint8Array||s instanceof Uint16Array||s instanceof Int16Array||s instanceof Int8Array||s instanceof Uint8ClampedArray)return{rr_type:s.constructor.name,args:[Object.values(s)]};if(s instanceof ArrayBuffer){const r=s.constructor.name,i=rp(s);return{rr_type:r,base64:i}}else{if(s instanceof DataView)return{rr_type:s.constructor.name,args:[nr(s.buffer,e,t),s.byteOffset,s.byteLength]};if(s instanceof HTMLImageElement){const r=s.constructor.name,{src:i}=s;return{rr_type:r,src:i}}else if(s instanceof HTMLCanvasElement){const r="HTMLImageElement",i=s.toDataURL();return{rr_type:r,src:i}}else{if(s instanceof ImageData)return{rr_type:s.constructor.name,args:[nr(s.data,e,t),s.width,s.height]};if(ia(s,e)||typeof s=="object"){const r=s.constructor.name,i=ra(s,e,t);return{rr_type:r,index:i}}}}return s}const sa=(s,e,t)=>s.map(r=>nr(r,e,t)),ia=(s,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof e[i]=="function").find(i=>s instanceof e[i]);function ip(s,e,t,r){const i=[],n=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const o of n)try{if(typeof e.CanvasRenderingContext2D.prototype[o]!="function")continue;const l=Ne(e.CanvasRenderingContext2D.prototype,o,function(a){return function(...c){return J(this.canvas,t,r,!0)||setTimeout(()=>{const u=sa(c,e,this);s(this.canvas,{type:Ve["2D"],property:o,args:u})},0),a.apply(this,c)}});i.push(l)}catch(l){const a=kr(e.CanvasRenderingContext2D.prototype,o,{set(c){s(this.canvas,{type:Ve["2D"],property:o,args:[c],setter:!0})}});i.push(a)}return()=>{i.forEach(o=>o())}}function np(s){return s==="experimental-webgl"?"webgl":s}function tn(s,e,t,r){const i=[];try{const n=Ne(s.HTMLCanvasElement.prototype,"getContext",function(o){return function(l,...a){if(!J(this,e,t,!0)){const c=np(l);if("__context"in this||(this.__context=c),r&&["webgl","webgl2"].includes(c))if(a[0]&&typeof a[0]=="object"){const u=a[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return o.apply(this,[l,...a])}});i.push(n)}catch(n){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(n=>n())}}function rn(s,e,t,r,i,n){const o=[],l=Object.getOwnPropertyNames(s);for(const a of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof s[a]!="function")continue;const c=Ne(s,a,function(u){return function(...h){const f=u.apply(this,h);if(ra(f,n,this),"tagName"in this.canvas&&!J(this.canvas,r,i,!0)){const d=sa(h,n,this),g={type:e,property:a,args:d};t(this.canvas,g)}return f}});o.push(c)}catch(c){const u=kr(s,a,{set(h){t(this.canvas,{type:e,property:a,args:[h],setter:!0})}});o.push(u)}return o}function op(s,e,t,r){const i=[];return i.push(...rn(e.WebGLRenderingContext.prototype,Ve.WebGL,s,t,r,e)),typeof e.WebGL2RenderingContext!="undefined"&&i.push(...rn(e.WebGL2RenderingContext.prototype,Ve.WebGL2,s,t,r,e)),()=>{i.forEach(n=>n())}}const na="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",ap=s=>Uint8Array.from(atob(s),e=>e.charCodeAt(0)),sn=typeof self!="undefined"&&self.Blob&&new Blob([ap(na)],{type:"text/javascript;charset=utf-8"});function lp(s){let e;try{if(e=sn&&(self.URL||self.webkitURL).createObjectURL(sn),!e)throw"";const t=new Worker(e,{name:s==null?void 0:s.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(e)}),t}catch(t){return new Worker("data:text/javascript;base64,"+na,{name:s==null?void 0:s.name})}finally{e&&(self.URL||self.webkitURL).revokeObjectURL(e)}}class up{constructor(e){y(this,"pendingCanvasMutations",new Map),y(this,"rafStamps",{latestId:0,invokeId:null}),y(this,"mirror"),y(this,"mutationCb"),y(this,"resetObservers"),y(this,"frozen",!1),y(this,"locked",!1),y(this,"processMutation",(a,c)=>{(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(c)});const{sampling:t="all",win:r,blockClass:i,blockSelector:n,recordCanvas:o,dataURLOptions:l}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&t==="all"&&this.initCanvasMutationObserver(r,i,n),o&&typeof t=="number"&&this.initCanvasFPSObserver(t,r,i,n,{dataURLOptions:l})}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(e,t,r,i,n){const o=tn(t,r,i,!0),l=new Map,a=new lp;a.onmessage=g=>{const{id:m}=g.data;if(l.set(m,!1),!("base64"in g.data))return;const{base64:p,type:w,width:b,height:S}=g.data;this.mutationCb({id:m,type:Ve["2D"],commands:[{property:"clearRect",args:[0,0,b,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:p}],type:w}]},0,0]}]})};const c=1e3/e;let u=0,h;const f=()=>{const g=[];return t.document.querySelectorAll("canvas").forEach(m=>{J(m,r,i,!0)||g.push(m)}),g},d=g=>{if(u&&g-u<c){h=requestAnimationFrame(d);return}u=g,f().forEach(async m=>{var p;const w=this.mirror.getId(m);if(l.get(w)||m.width===0||m.height===0)return;if(l.set(w,!0),["webgl","webgl2"].includes(m.__context)){const S=m.getContext(m.__context);((p=S==null?void 0:S.getContextAttributes())==null?void 0:p.preserveDrawingBuffer)===!1&&S.clear(S.COLOR_BUFFER_BIT)}const b=await createImageBitmap(m);a.postMessage({id:w,bitmap:b,width:m.width,height:m.height,dataURLOptions:n.dataURLOptions},[b])}),h=requestAnimationFrame(d)};h=requestAnimationFrame(d),this.resetObservers=()=>{o(),cancelAnimationFrame(h)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=tn(e,t,r,!1),n=ip(this.processMutation.bind(this),e,t,r),o=op(this.processMutation.bind(this),e,t,r);this.resetObservers=()=>{i(),n(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||t===-1)return;const i=r.map(o=>{const c=o,{type:l}=c;return Pe(c,["type"])}),{type:n}=r[0];this.mutationCb({id:t,type:n,commands:i}),this.pendingCanvasMutations.delete(e)}}class cp{constructor(){y(this,"nodeMap",new WeakMap),y(this,"active",!1)}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some(i=>i!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}class hp{constructor(e){y(this,"shadowDoms",new WeakSet),y(this,"mutationCb"),y(this,"scrollCb"),y(this,"bypassOptions"),y(this,"mirror"),y(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!at(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=Qo(re(A({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(ea(re(A({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(I.host(e))),this.restoreHandlers.push(ta({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Ne(e.prototype,"attachShadow",function(i){return function(n){const o=i.call(this,n),l=I.shadowRoot(this);return l&&Xo(this)&&r.addShadowRoot(l,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class fp{constructor(e){y(this,"trackedLinkElements",new WeakSet),y(this,"mutationCb"),y(this,"adoptedStyleSheetCb"),y(this,"styleMirror",new Ef),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;const r={id:t,styleIds:[]},i=[];for(const n of e){let o;this.styleMirror.has(n)?o=this.styleMirror.getId(n):(o=this.styleMirror.add(n),i.push({styleId:o,rules:Array.from(n.rules||CSSRule,(l,a)=>({rule:pn(l,n.href),index:a}))})),r.styleIds.push(o)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}let U,nt,Jr,ct=!1;try{if(Array.from([1],s=>s*2)[0]!==2){const s=document.createElement("iframe");document.body.appendChild(s),Array.from=((ii=s.contentWindow)==null?void 0:ii.Array.from)||Array.from,document.body.removeChild(s)}}catch(s){Ge()&&console.debug("Unable to override Array.from",s)}const ne=Va();function xe(s={}){const{emit:e,checkoutEveryNms:t,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:n=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskTextClass:a="rr-mask",maskTextSelector:c=null,inlineStylesheet:u=!0,maskAllInputs:h,maskInputOptions:f,slimDOMOptions:d,maskInputFn:g,maskTextFn:m,hooks:p,packFn:w,sampling:b={},dataURLOptions:S={},mousemoveWait:M,recordDOM:F=!0,recordCanvas:j=!1,recordCrossOriginIframes:G=!1,recordAfter:P=s.recordAfter==="DOMContentLoaded"?s.recordAfter:"load",userTriggeredOnInput:X=!1,collectFonts:V=!1,inlineImages:q=!1,plugins:le,keepIframeSrcFn:he=()=>!1,ignoreCSSAttributes:E=new Set([]),errorHandler:qe}=s;kf(qe);const we=G?window.parent===window:!0;let Ae=!1;if(!we)try{window.parent.document&&(Ae=!1)}catch($){Ae=!0}if(we&&!e)throw new Error("emit function is required");if(!we&&!Ae)return()=>{};M!==void 0&&b.mousemove===void 0&&(b.mousemove=M),ne.reset();const z=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:f!==void 0?f:{password:!0},Q=d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:d==="all",headMetaDescKeywords:d==="all",headTitleMutations:d==="all"}:d||{};Mf();let ee,te=0;const Te=$=>{for(const ie of le||[])ie.eventProcessor&&($=ie.eventProcessor($));return w&&!Ae&&($=w($)),$};U=($,ie)=>{var B;const W=$;if(W.timestamp=wr(),(B=Ee[0])!=null&&B.isFrozen()&&W.type!==R.FullSnapshot&&!(W.type===R.IncrementalSnapshot&&W.data.source===x.Mutation)&&Ee.forEach(fe=>fe.unfreeze()),we)e==null||e(Te(W),ie);else if(Ae){const fe={type:"rrweb",event:Te(W),origin:window.location.origin,isCheckout:ie};window.parent.postMessage(fe,"*")}if(W.type===R.FullSnapshot)ee=W,te=0;else if(W.type===R.IncrementalSnapshot){if(W.data.source===x.Mutation&&W.data.isAttachIframe)return;te++;const fe=r&&te>=r,Me=t&&W.timestamp-ee.timestamp>t;(fe||Me)&&nt(!0)}};const be=$=>{U({type:R.IncrementalSnapshot,data:A({source:x.Mutation},$)})},Qs=$=>U({type:R.IncrementalSnapshot,data:A({source:x.Scroll},$)}),ei=$=>U({type:R.IncrementalSnapshot,data:A({source:x.CanvasMutation},$)}),oa=$=>U({type:R.IncrementalSnapshot,data:A({source:x.AdoptedStyleSheet},$)}),Oe=new fp({mutationCb:be,adoptedStyleSheetCb:oa}),Re=new Tf({mirror:ne,mutationCb:be,stylesheetManager:Oe,recordCrossOriginIframes:G,wrappedEmit:U});for(const $ of le||[])$.getMirror&&$.getMirror({nodeMirror:ne,crossOriginIframeMirror:Re.crossOriginIframeMirror,crossOriginIframeStyleMirror:Re.crossOriginIframeStyleMirror});const _r=new cp;Jr=new up({recordCanvas:j,mutationCb:ei,win:window,blockClass:i,blockSelector:n,mirror:ne,sampling:b.canvas,dataURLOptions:S});const Ot=new hp({mutationCb:be,scrollCb:Qs,bypassOptions:{blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:z,dataURLOptions:S,maskTextFn:m,maskInputFn:g,recordCanvas:j,inlineImages:q,sampling:b,slimDOMOptions:Q,iframeManager:Re,stylesheetManager:Oe,canvasManager:Jr,keepIframeSrcFn:he,processedNodeManager:_r},mirror:ne});nt=($=!1)=>{if(!F)return;U({type:R.Meta,data:{href:window.location.href,width:Go(),height:jo()}},$),Oe.reset(),Ot.init(),Ee.forEach(B=>B.lock());const ie=$l(document,{mirror:ne,blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:z,maskTextFn:m,maskInputFn:g,slimDOM:Q,dataURLOptions:S,recordCanvas:j,inlineImages:q,onSerialize:B=>{Yo(B,ne)&&Re.addIframe(B),Zo(B,ne)&&Oe.trackLinkElement(B),Rs(B)&&Ot.addShadowRoot(I.shadowRoot(B),document)},onIframeLoad:(B,W)=>{Re.attachIframe(B,W),Ot.observeAttachShadow(B)},onStylesheetLoad:(B,W)=>{Oe.attachLinkElement(B,W)},keepIframeSrcFn:he});if(!ie){Ge()&&console.warn("Failed to snapshot the document");return}U({type:R.FullSnapshot,data:{node:ie,initialOffset:Wo(window)}},$),Ee.forEach(B=>B.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Oe.adoptStyleSheets(document.adoptedStyleSheets,ne.getId(document))};try{const $=[],ie=Me=>{var Rt;return O(ep)({mutationCb:be,mousemoveCb:(T,Tr)=>U({type:R.IncrementalSnapshot,data:{source:Tr,positions:T}}),mouseInteractionCb:T=>U({type:R.IncrementalSnapshot,data:A({source:x.MouseInteraction},T)}),scrollCb:Qs,viewportResizeCb:T=>U({type:R.IncrementalSnapshot,data:A({source:x.ViewportResize},T)}),inputCb:T=>U({type:R.IncrementalSnapshot,data:A({source:x.Input},T)}),mediaInteractionCb:T=>U({type:R.IncrementalSnapshot,data:A({source:x.MediaInteraction},T)}),styleSheetRuleCb:T=>U({type:R.IncrementalSnapshot,data:A({source:x.StyleSheetRule},T)}),styleDeclarationCb:T=>U({type:R.IncrementalSnapshot,data:A({source:x.StyleDeclaration},T)}),canvasMutationCb:ei,fontCb:T=>U({type:R.IncrementalSnapshot,data:A({source:x.Font},T)}),selectionCb:T=>{U({type:R.IncrementalSnapshot,data:A({source:x.Selection},T)})},customElementCb:T=>{U({type:R.IncrementalSnapshot,data:A({source:x.CustomElement},T)})},blockClass:i,ignoreClass:o,ignoreSelector:l,maskTextClass:a,maskTextSelector:c,maskInputOptions:z,inlineStylesheet:u,sampling:b,recordDOM:F,recordCanvas:j,inlineImages:q,userTriggeredOnInput:X,collectFonts:V,doc:Me,maskInputFn:g,maskTextFn:m,keepIframeSrcFn:he,blockSelector:n,slimDOMOptions:Q,dataURLOptions:S,mirror:ne,iframeManager:Re,stylesheetManager:Oe,shadowDomManager:Ot,processedNodeManager:_r,canvasManager:Jr,ignoreCSSAttributes:E,plugins:((Rt=le==null?void 0:le.filter(T=>T.observer))==null?void 0:Rt.map(T=>({observer:T.observer,options:T.options,callback:Tr=>U({type:R.Plugin,data:{plugin:T.name,payload:Tr}})})))||[]},p)};Re.addLoadListener(Me=>{try{$.push(ie(Me.contentDocument))}catch(Rt){Ge()&&(console.warn("internal error"),console.warn(Rt))}});let B=null;const W=()=>{B=Date.now(),nt(),$.push(ie(document)),ct=!0},fe=()=>{window.removeEventListener("load",fe),!(!ct||B==null)&&(Date.now()-B<=10||nt())};return window.addEventListener("load",fe),document.readyState==="interactive"||document.readyState==="complete"?(document.readyState==="complete"&&window.removeEventListener("load",fe),W()):($.push(Z("DOMContentLoaded",()=>{U({type:R.DomContentLoaded,data:{}}),P==="DOMContentLoaded"&&W()})),$.push(Z("load",()=>{U({type:R.Load,data:{}}),P==="load"&&W()},window))),()=>{$.forEach(Me=>Me()),_r.destroy(),ct=!1,_f()}}catch($){Ge()&&(console.warn("internal error1"),console.warn($))}}xe.addCustomEvent=(s,e)=>{if(!ct)throw new Error("please add custom event after start recording");U({type:R.Custom,data:{tag:s,payload:e}})};xe.freezePage=()=>{Ee.forEach(s=>s.freeze())};xe.takeFullSnapshot=s=>{if(!ct)throw new Error("please take full snapshot after start recording");nt(s)};xe.mirror=ne;var nn;(function(s){s[s.NotStarted=0]="NotStarted",s[s.Running=1]="Running",s[s.Stopped=2]="Stopped"})(nn||(nn={}));const{addCustomEvent:Yp}=xe,{freezePage:Zp}=xe,{takeFullSnapshot:pp}=xe;exports.record=xe;
58
+ or you can use record.mirror to access the mirror instance during recording.`;let Hi={map:{},getId(){return console.error(Be),-1},getNode(){return console.error(Be),null},removeNodeFromMap(){console.error(Be)},has(){return console.error(Be),!1},reset(){console.error(Be)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Hi=new Proxy(Hi,{get(s,e,t){return e==="map"&&console.error(Be),Reflect.get(s,e,t)}}));function Ct(s,e,t={}){let r=null,i=0;return function(...n){const o=Date.now();!i&&t.leading===!1&&(i=o);const a=e-(o-i),l=this;a<=0||a>e?(r&&(clearTimeout(r),r=null),i=o,s.apply(l,n)):!r&&t.trailing!==!1&&(r=setTimeout(()=>{i=t.leading===!1?0:Date.now(),r=null,s.apply(l,n)},a))}}function kr(s,e,t,r,i=window){const n=i.Object.getOwnPropertyDescriptor(s,e);return i.Object.defineProperty(s,e,r?t:{set(o){setTimeout(()=>{t.set.call(this,o)},0),n&&n.set&&n.set.call(this,o)}}),()=>kr(s,e,n||{},!0)}let br=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(br=()=>new Date().getTime());function Wo(s){var e,t,r,i;const n=s.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:s.pageXOffset!==void 0?s.pageXOffset:n.documentElement.scrollLeft||(n==null?void 0:n.body)&&((e=I.parentElement(n.body))==null?void 0:e.scrollLeft)||((t=n==null?void 0:n.body)==null?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:s.pageYOffset!==void 0?s.pageYOffset:(n==null?void 0:n.documentElement.scrollTop)||(n==null?void 0:n.body)&&((r=I.parentElement(n.body))==null?void 0:r.scrollTop)||((i=n==null?void 0:n.body)==null?void 0:i.scrollTop)||0}}function jo(){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 Vo(s){return s?s.nodeType===s.ELEMENT_NODE?s:I.parentElement(s):null}function J(s,e,t,r){if(!s)return!1;const i=Vo(s);if(!i)return!1;try{if(typeof e=="string"){if(i.classList.contains(e)||r&&i.closest("."+e)!==null)return!0}else if(cr(i,e,r))return!0}catch(n){}return!!(t&&(i.matches(t)||r&&i.closest(t)!==null))}function Of(s,e){return e.getId(s)!==-1}function Zr(s,e,t){return s.tagName==="TITLE"&&t.headTitleMutations?!0:e.getId(s)===ft}function Ho(s,e){if(ot(s))return!1;const t=e.getId(s);if(!e.has(t))return!0;const r=I.parentNode(s);return r&&r.nodeType===s.DOCUMENT_NODE?!1:r?Ho(r,e):!0}function Ms(s){return!!s.changedTouches}function Rf(s=window){"NodeList"in s&&!s.NodeList.prototype.forEach&&(s.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in s&&!s.DOMTokenList.prototype.forEach&&(s.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Yo(s,e){return!!(s.nodeName==="IFRAME"&&e.getMeta(s))}function Zo(s,e){return!!(s.nodeName==="LINK"&&s.nodeType===s.ELEMENT_NODE&&s.getAttribute&&s.getAttribute("rel")==="stylesheet"&&e.getMeta(s))}function Os(s){return s?s instanceof qs&&"shadowRoot"in s?!!s.shadowRoot:!!I.shadowRoot(s):!1}class Ef{constructor(){y(this,"id",1),y(this,"styleIDMap",new WeakMap),y(this,"idStyleMap",new Map)}getId(e){var t;return(t=this.styleIDMap.get(e))!=null?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return t===void 0?r=this.id++:r=t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Jo(s){var e;let t=null;return"getRootNode"in s&&((e=I.getRootNode(s))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&I.host(I.getRootNode(s))&&(t=I.host(I.getRootNode(s))),t}function $f(s){let e=s,t;for(;t=Jo(e);)e=t;return e}function Nf(s){const e=s.ownerDocument;if(!e)return!1;const t=$f(s);return I.contains(e,t)}function Xo(s){const e=s.ownerDocument;return e?I.contains(e,s)||Nf(s):!1}let ut;function kf(s){ut=s}function Tf(){ut=void 0}const M=s=>ut?(...t)=>{try{return s(...t)}catch(r){if(ut&&ut(r)===!0)return;throw r}}:s;class Yi{constructor(e){y(this,"iframeIdToRemoteIdMap",new WeakMap),y(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,i){const n=r||this.getIdToRemoteIdMap(e),o=i||this.getRemoteIdToIdMap(e);let a=n.get(t);return a||(a=this.generateIdFn(),n.set(t,a),o.set(a,t)),a}getIds(e,t){const r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(n=>this.getId(e,n,r,i))}getRemoteId(e,t,r){const i=r||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;const n=i.get(t);return n||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map(i=>this.getRemoteId(e,i,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class _f{constructor(e){y(this,"iframes",new WeakMap),y(this,"crossOriginIframeMap",new WeakMap),y(this,"crossOriginIframeMirror",new Yi(yn)),y(this,"crossOriginIframeStyleMirror"),y(this,"crossOriginIframeRootIdMap",new WeakMap),y(this,"mirror"),y(this,"mutationCb"),y(this,"wrappedEmit"),y(this,"loadListener"),y(this,"stylesheetManager"),y(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Yi(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r,i;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((r=e.contentWindow)==null||r.addEventListener("message",this.handleMessage.bind(this))),(i=this.loadListener)==null||i.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if(t.data.type!=="rrweb"||t.origin!==t.data.origin||!e.source)return;const i=this.crossOriginIframeMap.get(e.source);if(!i)return;const n=this.transformCrossOriginEvent(i,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case O.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:O.IncrementalSnapshot,data:{source:x.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case O.Meta:case O.Load:case O.DomContentLoaded:return!1;case O.Plugin:return t;case O.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case O.IncrementalSnapshot:switch(t.data.source){case x.Mutation:return t.data.adds.forEach(i=>{this.replaceIds(i,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(i.node,n)}),t.data.removes.forEach(i=>{this.replaceIds(i,e,["parentId","id"])}),t.data.attributes.forEach(i=>{this.replaceIds(i,e,["id"])}),t.data.texts.forEach(i=>{this.replaceIds(i,e,["id"])}),t;case x.Drag:case x.TouchMove:case x.MouseMove:return t.data.positions.forEach(i=>{this.replaceIds(i,e,["id"])}),t;case x.ViewportResize:return!1;case x.MediaInteraction:case x.MouseInteraction:case x.Scroll:case x.CanvasMutation:case x.Input:return this.replaceIds(t.data,e,["id"]),t;case x.StyleSheetRule:case x.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case x.Font:return t;case x.Selection:return t.data.ranges.forEach(i=>{this.replaceIds(i,e,["start","end"])}),t;case x.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(r=t.data.styles)==null||r.forEach(i=>{this.replaceStyleIds(i,e,["styleId"])}),t}}return!1}replace(e,t,r,i){for(const n of i)!Array.isArray(t[n])&&typeof t[n]!="number"||(Array.isArray(t[n])?t[n]=e.getIds(r,t[n]):t[n]=e.getId(r,t[n]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,t)})}patchRootIdOnNode(e,t){e.type!==on.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,t)})}}const Ge=()=>"_rrweb_is_debug"in window&&window._rrweb_is_debug?window._rrweb_is_debug:!1,ct=(...s)=>{Ge()&&console.log("[recapt:rrweb]",...s)},Ko=class nr{constructor(){if(y(this,"lastFullSnapshot",-1),y(this,"intervalBetweenSnapshots",150),y(this,"debounceTimeout",null),y(this,"debounceTime",10),nr.instance)return nr.instance;nr.instance=this}requestFullSnapshot(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.debounceTimeout=null,this.takeSnapshot()},this.debounceTime)}takeSnapshot(){if(Date.now()-this.lastFullSnapshot<this.intervalBetweenSnapshots){ct("StormSnapshotManager, takeSnapshot: too soon");return}ct("StormSnapshotManager, takeSnapshot: taking full snapshot"),pp(),this.lastFullSnapshot=Date.now()}};y(Ko,"instance");let Pf=Ko;const Lf=new Pf;function Zi(s){return"__ln"in s}class Df{constructor(){y(this,"length",0),y(this,"head",null),y(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(t==null?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Zi(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Zi(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Ji=(s,e)=>`${s}@${e}`,Xi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function Ff(s=8){let e="";for(let t=0;t<s;t++)e+=Xi.charAt(Math.floor(Math.random()*Xi.length));return e}class Bf{constructor(){y(this,"frozen",!1),y(this,"locked",!1),y(this,"texts",[]),y(this,"attributes",[]),y(this,"attributeMap",new WeakMap),y(this,"removes",[]),y(this,"mapRemoves",[]),y(this,"movedMap",{}),y(this,"addedSet",new Set),y(this,"movedSet",new Set),y(this,"droppedSet",new Set),y(this,"removesSubTreeCache",new Set),y(this,"mutationCb"),y(this,"blockClass"),y(this,"blockSelector"),y(this,"maskTextClass"),y(this,"maskTextSelector"),y(this,"inlineStylesheet"),y(this,"maskInputOptions"),y(this,"maskTextFn"),y(this,"maskInputFn"),y(this,"keepIframeSrcFn"),y(this,"recordCanvas"),y(this,"inlineImages"),y(this,"slimDOMOptions"),y(this,"dataURLOptions"),y(this,"doc"),y(this,"mirror"),y(this,"iframeManager"),y(this,"stylesheetManager"),y(this,"shadowDomManager"),y(this,"canvasManager"),y(this,"processedNodeManager"),y(this,"unattachedDoc"),y(this,"bufId",Ge()?Ff():""),y(this,"stormBatches",[]),y(this,"stormInfo",null),y(this,"stormSettings",{batchSize:50,timeout:30,mutationLimit:800}),y(this,"rollingMutTracker",{accumlativeMuts:0,ts:-1,interval:10}),y(this,"handleStormMutations",e=>{const t=Date.now();this.stormInfo==null&&(ct("detected probable mutation storm start","buffer id:",this.bufId),this.stormInfo={startedAt:t,totalMutations:0,timeout:setTimeout(this.handleStormFinish,this.stormSettings.timeout),stormExceededLimit:!1}),this.stormInfo.totalMutations+=e.length,this.stormInfo.totalMutations>=this.stormSettings.mutationLimit?(this.stormInfo.stormExceededLimit=!0,this.stormBatches=[]):this.stormBatches.push({ts:t,mutations:e}),clearTimeout(this.stormInfo.timeout),e.length<this.stormSettings.batchSize?this.handleStormFinish():this.stormInfo.timeout=setTimeout(this.handleStormFinish,this.stormSettings.timeout)}),y(this,"handleStormFinish",()=>{if(!this.stormInfo)return;const{stormExceededLimit:e}=this.stormInfo;if(ct("mutation storm finished","totalMutations:",this.stormInfo.totalMutations,"stormExceededLimit:",e,"storm duration:",Date.now()-this.stormInfo.startedAt,"ms","buffer id:",this.bufId),clearTimeout(this.stormInfo.timeout),this.stormInfo=null,e)this.stormBatches=[],Lf.requestFullSnapshot();else{let t=[];for(const r of this.stormBatches)t.push(...r.mutations);this.stormBatches=[],this.processInternalMutations(t,!0)}}),y(this,"processInternalMutations",(e,t=!1)=>{if(console.log("muts",e.length),!t){if((this.stormInfo!=null||e.length>=this.stormSettings.batchSize)&&this.handleStormMutations(e),this.stormInfo==null){const r=Date.now();this.rollingMutTracker.ts===-1?this.rollingMutTracker.accumlativeMuts=e.length:r-this.rollingMutTracker.ts<=this.rollingMutTracker.interval?(this.rollingMutTracker.accumlativeMuts+=e.length,this.rollingMutTracker.accumlativeMuts>=this.stormSettings.batchSize&&(ct("Mutation storm through rolling detected."),this.handleStormMutations(e),this.rollingMutTracker.accumlativeMuts=0,this.rollingMutTracker.ts=-1)):this.rollingMutTracker.accumlativeMuts=0,this.rollingMutTracker.ts=r}return}for(const r of e)this.processMutation(r);this.emit()}),y(this,"processMutations",e=>{this.processInternalMutations(e)}),y(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new Df,i=u=>{let h=u,f=ft;for(;f===ft;)h=h&&h.nextSibling,f=h&&this.mirror.getId(h);return f},n=u=>{const h=I.parentNode(u);if(!h||!Xo(u))return;let f=!1;if(u.nodeType===Node.TEXT_NODE){const p=h.tagName;if(p==="TEXTAREA")return;p==="STYLE"&&this.addedSet.has(h)&&(f=!0)}const d=ot(h)?this.mirror.getId(Jo(u)):this.mirror.getId(h),g=i(u);if(d===-1||g===-1)return r.addNode(u);const m=ze(u,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{Yo(p,this.mirror)&&this.iframeManager.addIframe(p),Zo(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),Os(u)&&this.shadowDomManager.addShadowRoot(I.shadowRoot(u),this.doc)},onIframeLoad:(p,w)=>{this.iframeManager.attachIframe(p,w),this.shadowDomManager.observeAttachShadow(p)},onStylesheetLoad:(p,w)=>{this.stylesheetManager.attachLinkElement(p,w)},cssCaptured:f});m&&(e.push({parentId:d,nextId:g,node:m}),t.add(m.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const u of this.movedSet)Ki(this.removesSubTreeCache,u,this.mirror)&&!this.movedSet.has(I.parentNode(u))||n(u);for(const u of this.addedSet)!qi(this.droppedSet,u)&&!Ki(this.removesSubTreeCache,u,this.mirror)||qi(this.movedSet,u)?n(u):this.droppedSet.add(u);let o=null;for(;r.length;){let u=null;if(o){const h=this.mirror.getId(I.parentNode(o.value)),f=i(o.value);h!==-1&&f!==-1&&(u=o)}if(!u){let h=r.tail;for(;h;){const f=h;if(h=h.previous,f){const d=this.mirror.getId(I.parentNode(f.value));if(i(f.value)===-1)continue;if(d!==-1){u=f;break}else{const m=f.value,p=I.parentNode(m);if(p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const w=I.host(p);if(this.mirror.getId(w)!==-1){u=f;break}}}}}}if(!u){for(;r.head;)r.removeNode(r.head.value);break}o=u.previous,r.removeNode(u.value),n(u.value)}const a=[];for(const u of this.texts){const h=u.node,f=I.parentNode(h);f&&f.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(f);const d=this.mirror.getId(h);!t.has(d)&&this.mirror.has(d)&&a.push({id:d,value:u.value})}const l=[];for(const u of this.attributes){const{attributes:h}=u;if(typeof h.style=="string"){const d=JSON.stringify(u.styleDiff),g=JSON.stringify(u._unchangedStyles);d.length<h.style.length&&(d+g).split("var(").length===h.style.split("var(").length&&(h.style=u.styleDiff)}const f=this.mirror.getId(u.node);!t.has(f)&&this.mirror.has(f)&&l.push({id:f,attributes:h})}const c={texts:a,attributes:l,removes:this.removes,adds:e};!c.texts.length&&!c.attributes.length&&!c.removes.length&&!c.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(c))}),y(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));const r=Array.from(I.childNodes(e),i=>I.textContent(i)||"").join("");t.attributes.value=lr({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:ar(e),value:r,maskInputFn:this.maskInputFn})}),y(this,"processMutation",e=>{if(!Zr(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const t=I.textContent(e.target);!J(e.target,this.blockClass,this.blockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:Sn(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,Vo(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let r=e.attributeName,i=e.target.getAttribute(r);if(r==="value"){const o=ar(t);i=lr({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:o,value:i,maskInputFn:this.maskInputFn})}if(J(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;let n=this.attributeMap.get(e.target);if(t.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!t.contentDocument)r="rr_src";else return;if(n||(n={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e.target,n)),r==="type"&&t.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&t.setAttribute("data-rr-is-password","true"),!bn(t.tagName,r))if(n.attributes[r]=wn(this.doc,$e(t.tagName),$e(r),i),r==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(a){this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");e.oldValue&&o.setAttribute("style",e.oldValue);for(const a of Array.from(t.style)){const l=t.style.getPropertyValue(a),c=t.style.getPropertyPriority(a);l!==o.style.getPropertyValue(a)||c!==o.style.getPropertyPriority(a)?c===""?n.styleDiff[a]=l:n.styleDiff[a]=[l,c]:n._unchangedStyles[a]=[l,c]}for(const a of Array.from(o.style))t.style.getPropertyValue(a)===""&&(n.styleDiff[a]=!1)}else r==="open"&&t.tagName==="DIALOG"&&(t.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":{if(J(e.target,this.blockClass,this.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}for(let o=0;o<e.addedNodes.length;o++)this.genAdds(e.addedNodes[o],e.target);const t=ot(e.target)?this.mirror.getId(I.host(e.target)):this.mirror.getId(e.target);if(J(e.target,this.blockClass,this.blockSelector,!1))return;const r=this.addedSet.has(e.target),i=Ho(e.target,this.mirror),n=ot(e.target)&&lt(e.target)?!0:void 0;for(let o=0;o<e.removedNodes.length;o++){const a=e.removedNodes[o],l=this.mirror.getId(a);if(Zr(a,this.mirror,this.slimDOMOptions)||!Of(a,this.mirror))return;this.addedSet.has(a)?(Rs(this.addedSet,a),this.droppedSet.add(a)):r&&l===-1||i||(this.movedSet.has(a)&&this.movedMap[Ji(l,t)]?Rs(this.movedSet,a):(this.removes.push({parentId:t,id:l,isShadow:n}),Uf(a,this.removesSubTreeCache))),this.mapRemoves.push(a)}break}}}),y(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(Zr(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&r!==-1&&(this.movedMap[Ji(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);if(!J(e,this.blockClass,this.blockSelector,!1)){const r=I.childNodes(e);for(let i=0;i<r.length;i++)this.genAdds(r[i]);if(Os(e)){const i=I.childNodes(I.shadowRoot(e));for(let n=0;n<i.length;n++){const o=i[n];this.processedNodeManager.add(o,this),this.genAdds(o,e)}}}}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}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 Rs(s,e){s.delete(e);const t=I.childNodes(e);for(let r=0;r<t.length;r++)Rs(s,t[r])}function Uf(s,e){const t=[s];for(;t.length;){const r=t.pop();if(e.has(r))continue;e.add(r);const i=I.childNodes(r);for(let n=0;n<i.length;n++)t.push(i[n])}}function Ki(s,e,t){return s.size===0?!1:zf(s,e)}function zf(s,e,t){const r=I.parentNode(e);return r?s.has(r):!1}function qi(s,e){return s.size===0?!1:qo(s,e)}function qo(s,e){const t=I.parentNode(e);return t?s.has(t)?!0:qo(s,t):!1}const Ee=[];function Mt(s){try{if("composedPath"in s){const e=s.composedPath();if(e.length)return e[0]}else if("path"in s&&s.path.length)return s.path[0]}catch(e){}return s&&s.target}function Qo(s,e){const t=new Bf;Ee.push(t),t.init(s);const r=new(an())(M(t.processMutations.bind(t)));return r.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function Wf({mousemoveCb:s,sampling:e,doc:t,mirror:r}){if(e.mousemove===!1)return()=>{};const i=typeof e.mousemove=="number"?e.mousemove:50,n=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let o=[],a;const l=Ct(M(h=>{const f=Date.now()-a;s(o.map(d=>(d.timeOffset-=f,d)),h),o=[],a=null}),n),c=M(Ct(M(h=>{const f=Mt(h),{clientX:d,clientY:g}=Ms(h)?h.changedTouches[0]:h;a||(a=br()),o.push({x:d,y:g,id:r.getId(f),timeOffset:br()-a}),l(typeof DragEvent!="undefined"&&h instanceof DragEvent?x.Drag:h instanceof MouseEvent?x.MouseMove:x.TouchMove)}),i,{trailing:!1})),u=[Z("mousemove",c,t),Z("touchmove",c,t),Z("drag",c,t)];return M(()=>{u.forEach(h=>h())})}function jf({mouseInteractionCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,sampling:n}){if(n.mouseInteraction===!1)return()=>{};const o=n.mouseInteraction===!0||n.mouseInteraction===void 0?{}:n.mouseInteraction,a=[];let l=null;const c=u=>h=>{const f=Mt(h);if(J(f,r,i,!0))return;let d=null,g=u;if("pointerType"in h){switch(h.pointerType){case"mouse":d=me.Mouse;break;case"touch":d=me.Touch;break;case"pen":d=me.Pen;break}d===me.Touch?K[u]===K.MouseDown?g="TouchStart":K[u]===K.MouseUp&&(g="TouchEnd"):me.Pen}else Ms(h)&&(d=me.Touch);d!==null?(l=d,(g.startsWith("Touch")&&d===me.Touch||g.startsWith("Mouse")&&d===me.Mouse)&&(d=null)):K[u]===K.Click&&(d=l,l=null);const m=Ms(h)?h.changedTouches[0]:h;if(!m)return;const p=t.getId(f),{clientX:w,clientY:b}=m;M(s)(A({type:K[g],id:p,x:w,y:b},d!==null&&{pointerType:d}))};return Object.keys(K).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&o[u]!==!1).forEach(u=>{let h=$e(u);const f=c(u);if(window.PointerEvent)switch(K[u]){case K.MouseDown:case K.MouseUp:h=h.replace("mouse","pointer");break;case K.TouchStart:case K.TouchEnd:return}a.push(Z(h,f,e))}),M(()=>{a.forEach(u=>u())})}function el({scrollCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,sampling:n}){const o=M(Ct(M(a=>{const l=Mt(a);if(!l||J(l,r,i,!0))return;const c=t.getId(l);if(l===e&&e.defaultView){const u=Wo(e.defaultView);s({id:c,x:u.left,y:u.top})}else s({id:c,x:l.scrollLeft,y:l.scrollTop})}),n.scroll||100));return Z("scroll",o,e)}function Gf({viewportResizeCb:s},{win:e}){let t=-1,r=-1;const i=M(Ct(M(()=>{const n=jo(),o=Go();(t!==n||r!==o)&&(s({width:Number(o),height:Number(n)}),t=n,r=o)}),200));return Z("resize",i,e)}const Vf=["INPUT","TEXTAREA","SELECT"],Qi=new WeakMap;function Hf({inputCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,ignoreClass:n,ignoreSelector:o,maskInputOptions:a,maskInputFn:l,sampling:c,userTriggeredOnInput:u}){function h(b){let S=Mt(b);const R=b.isTrusted,F=S&&S.tagName;if(S&&F==="OPTION"&&(S=I.parentElement(S)),!S||!F||Vf.indexOf(F)<0||J(S,r,i,!0)||S.classList.contains(n)||o&&S.matches(o))return;let j=S.value,G=!1;const P=ar(S)||"";P==="radio"||P==="checkbox"?G=S.checked:(a[F.toLowerCase()]||a[P])&&(j=lr({element:S,maskInputOptions:a,tagName:F,type:P,value:j,maskInputFn:l})),f(S,u?{text:j,isChecked:G,userTriggered:R}:{text:j,isChecked:G});const X=S.name;P==="radio"&&X&&G&&e.querySelectorAll(`input[type="radio"][name="${X}"]`).forEach(V=>{if(V!==S){const q=V.value;f(V,u?{text:q,isChecked:!G,userTriggered:!1}:{text:q,isChecked:!G})}})}function f(b,S){const R=Qi.get(b);if(!R||R.text!==S.text||R.isChecked!==S.isChecked){Qi.set(b,S);const F=t.getId(b);M(s)(re(A({},S),{id:F}))}}const g=(c.input==="last"?["change"]:["input","change"]).map(b=>Z(b,M(h),e)),m=e.defaultView;if(!m)return()=>{g.forEach(b=>b())};const p=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),w=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return p&&p.set&&g.push(...w.map(b=>kr(b[0],b[1],{set(){M(h)({target:this,isTrusted:!1})}},!1,m))),M(()=>{g.forEach(b=>b())})}function Sr(s){const e=[];function t(r,i){if(Jt("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Jt("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Jt("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Jt("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(o)}return i}return t(s,e)}function Ce(s,e,t){let r,i;return s?(s.ownerNode?r=e.getId(s.ownerNode):i=t.getId(s),{styleId:i,id:r}):{}}function Yf({styleSheetRuleCb:s,mirror:e,stylesheetManager:t},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:M((u,h,f)=>{const[d,g]=f,{id:m,styleId:p}=Ce(h,e,t.styleMirror);return(m&&m!==-1||p&&p!==-1)&&s({id:m,styleId:p,adds:[{rule:d,index:g}]}),u.apply(h,f)})}),r.CSSStyleSheet.prototype.addRule=function(u,h,f=this.cssRules.length){const d=`${u} { ${h} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[d,f])};const n=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(n,{apply:M((u,h,f)=>{const[d]=f,{id:g,styleId:m}=Ce(h,e,t.styleMirror);return(g&&g!==-1||m&&m!==-1)&&s({id:g,styleId:m,removes:[{index:d}]}),u.apply(h,f)})}),r.CSSStyleSheet.prototype.removeRule=function(u){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[u])};let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:M((u,h,f)=>{const[d]=f,{id:g,styleId:m}=Ce(h,e,t.styleMirror);return(g&&g!==-1||m&&m!==-1)&&s({id:g,styleId:m,replace:d}),u.apply(h,f)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:M((u,h,f)=>{const[d]=f,{id:g,styleId:m}=Ce(h,e,t.styleMirror);return(g&&g!==-1||m&&m!==-1)&&s({id:g,styleId:m,replaceSync:d}),u.apply(h,f)})}));const l={};Xt("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(Xt("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),Xt("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),Xt("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(l).forEach(([u,h])=>{c[u]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=new Proxy(c[u].insertRule,{apply:M((f,d,g)=>{const[m,p]=g,{id:w,styleId:b}=Ce(d.parentStyleSheet,e,t.styleMirror);return(w&&w!==-1||b&&b!==-1)&&s({id:w,styleId:b,adds:[{rule:m,index:[...Sr(d),p||0]}]}),f.apply(d,g)})}),h.prototype.deleteRule=new Proxy(c[u].deleteRule,{apply:M((f,d,g)=>{const[m]=g,{id:p,styleId:w}=Ce(d.parentStyleSheet,e,t.styleMirror);return(p&&p!==-1||w&&w!==-1)&&s({id:p,styleId:w,removes:[{index:[...Sr(d),m]}]}),f.apply(d,g)})})}),M(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=n,o&&(r.CSSStyleSheet.prototype.replace=o),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([u,h])=>{h.prototype.insertRule=c[u].insertRule,h.prototype.deleteRule=c[u].deleteRule})})}function tl({mirror:s,stylesheetManager:e},t){var r,i,n;let o=null;t.nodeName==="#document"?o=s.getId(t):o=s.getId(I.host(t));const a=t.nodeName==="#document"?(r=t.defaultView)==null?void 0:r.Document:(n=(i=t.ownerDocument)==null?void 0:i.defaultView)==null?void 0:n.ShadowRoot,l=a!=null&&a.prototype?Object.getOwnPropertyDescriptor(a==null?void 0:a.prototype,"adoptedStyleSheets"):void 0;return o===null||o===-1||!a||!l?()=>{}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var c;return(c=l.get)==null?void 0:c.call(this)},set(c){var u;const h=(u=l.set)==null?void 0:u.call(this,c);if(o!==null&&o!==-1)try{e.adoptStyleSheets(c,o)}catch(f){}return h}}),M(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function Zf({styleDeclarationCb:s,mirror:e,ignoreCSSAttributes:t,stylesheetManager:r},{win:i}){const n=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(n,{apply:M((a,l,c)=>{var u;const[h,f,d]=c;if(t.has(h))return n.apply(l,[h,f,d]);const{id:g,styleId:m}=Ce((u=l.parentRule)==null?void 0:u.parentStyleSheet,e,r.styleMirror);return(g&&g!==-1||m&&m!==-1)&&s({id:g,styleId:m,set:{property:h,value:f,priority:d},index:Sr(l.parentRule)}),a.apply(l,c)})});const o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:M((a,l,c)=>{var u;const[h]=c;if(t.has(h))return o.apply(l,[h]);const{id:f,styleId:d}=Ce((u=l.parentRule)==null?void 0:u.parentStyleSheet,e,r.styleMirror);return(f&&f!==-1||d&&d!==-1)&&s({id:f,styleId:d,remove:{property:h},index:Sr(l.parentRule)}),a.apply(l,c)})}),M(()=>{i.CSSStyleDeclaration.prototype.setProperty=n,i.CSSStyleDeclaration.prototype.removeProperty=o})}function Jf({mediaInteractionCb:s,blockClass:e,blockSelector:t,mirror:r,sampling:i,doc:n}){const o=M(l=>Ct(M(c=>{const u=Mt(c);if(!u||J(u,e,t,!0))return;const{currentTime:h,volume:f,muted:d,playbackRate:g,loop:m}=u;s({type:l,id:r.getId(u),currentTime:h,volume:f,muted:d,playbackRate:g,loop:m})}),i.media||500)),a=[Z("play",o(Fe.Play),n),Z("pause",o(Fe.Pause),n),Z("seeked",o(Fe.Seeked),n),Z("volumechange",o(Fe.VolumeChange),n),Z("ratechange",o(Fe.RateChange),n)];return M(()=>{a.forEach(l=>l())})}function Xf({fontCb:s,doc:e}){const t=e.defaultView;if(!t)return()=>{};const r=[],i=new WeakMap,n=t.FontFace;t.FontFace=function(l,c,u){const h=new n(l,c,u);return i.set(h,{family:l,buffer:typeof c!="string",descriptors:u,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),h};const o=Ne(e.fonts,"add",function(a){return function(l){return setTimeout(M(()=>{const c=i.get(l);c&&(s(c),i.delete(l))}),0),a.apply(this,[l])}});return r.push(()=>{t.FontFace=n}),r.push(o),M(()=>{r.forEach(a=>a())})}function Kf(s){const{doc:e,mirror:t,blockClass:r,blockSelector:i,selectionCb:n}=s;let o=!0;const a=M(()=>{const l=e.getSelection();if(!l||o&&(l!=null&&l.isCollapsed))return;o=l.isCollapsed||!1;const c=[],u=l.rangeCount||0;for(let h=0;h<u;h++){const f=l.getRangeAt(h),{startContainer:d,startOffset:g,endContainer:m,endOffset:p}=f;J(d,r,i,!0)||J(m,r,i,!0)||c.push({start:t.getId(d),startOffset:g,end:t.getId(m),endOffset:p})}n({ranges:c})});return a(),Z("selectionchange",a)}function qf({doc:s,customElementCb:e}){const t=s.defaultView;return!t||!t.customElements?()=>{}:Ne(t.customElements,"define",function(i){return function(n,o,a){try{e({define:{name:n}})}catch(l){console.warn(`Custom element callback failed for ${n}`)}return i.apply(this,[n,o,a])}})}function Qf(s,e){const{mutationCb:t,mousemoveCb:r,mouseInteractionCb:i,scrollCb:n,viewportResizeCb:o,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:h,fontCb:f,selectionCb:d,customElementCb:g}=s;s.mutationCb=(...m)=>{e.mutation&&e.mutation(...m),t(...m)},s.mousemoveCb=(...m)=>{e.mousemove&&e.mousemove(...m),r(...m)},s.mouseInteractionCb=(...m)=>{e.mouseInteraction&&e.mouseInteraction(...m),i(...m)},s.scrollCb=(...m)=>{e.scroll&&e.scroll(...m),n(...m)},s.viewportResizeCb=(...m)=>{e.viewportResize&&e.viewportResize(...m),o(...m)},s.inputCb=(...m)=>{e.input&&e.input(...m),a(...m)},s.mediaInteractionCb=(...m)=>{e.mediaInteaction&&e.mediaInteaction(...m),l(...m)},s.styleSheetRuleCb=(...m)=>{e.styleSheetRule&&e.styleSheetRule(...m),c(...m)},s.styleDeclarationCb=(...m)=>{e.styleDeclaration&&e.styleDeclaration(...m),u(...m)},s.canvasMutationCb=(...m)=>{e.canvasMutation&&e.canvasMutation(...m),h(...m)},s.fontCb=(...m)=>{e.font&&e.font(...m),f(...m)},s.selectionCb=(...m)=>{e.selection&&e.selection(...m),d(...m)},s.customElementCb=(...m)=>{e.customElement&&e.customElement(...m),g(...m)}}function ep(s,e={}){const t=s.doc.defaultView;if(!t)return()=>{};Qf(s,e);let r;s.recordDOM&&(r=Qo(s,s.doc));const i=Wf(s),n=jf(s),o=el(s),a=Gf(s,{win:t}),l=Hf(s),c=Jf(s);let u=()=>{},h=()=>{},f=()=>{},d=()=>{};s.recordDOM&&(u=Yf(s,{win:t}),h=tl(s,s.doc),f=Zf(s,{win:t}),s.collectFonts&&(d=Xf(s)));const g=Kf(s),m=qf(s),p=[];for(const w of s.plugins)p.push(w.observer(w.callback,t,w.options));return M(()=>{Ee.forEach(w=>w.reset()),r==null||r.disconnect(),i(),n(),o(),a(),l(),c(),u(),h(),f(),d(),g(),m(),p.forEach(w=>w())})}function Jt(s){return typeof window[s]!="undefined"}function Xt(s){return!!(typeof window[s]!="undefined"&&window[s].prototype&&"insertRule"in window[s].prototype&&"deleteRule"in window[s].prototype)}var We="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tp=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Kt=0;Kt<We.length;Kt++)tp[We.charCodeAt(Kt)]=Kt;var rp=function(s){var e=new Uint8Array(s),t,r=e.length,i="";for(t=0;t<r;t+=3)i+=We[e[t]>>2],i+=We[(e[t]&3)<<4|e[t+1]>>4],i+=We[(e[t+1]&15)<<2|e[t+2]>>6],i+=We[e[t+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const en=new Map;function sp(s,e){let t=en.get(s);return t||(t=new Map,en.set(s,t)),t.has(e)||t.set(e,[]),t.get(e)}const rl=(s,e,t)=>{if(!s||!(il(s,e)||typeof s=="object"))return;const r=s.constructor.name,i=sp(t,r);let n=i.indexOf(s);return n===-1&&(n=i.length,i.push(s)),n};function or(s,e,t){if(s instanceof Array)return s.map(r=>or(r,e,t));if(s===null)return s;if(s instanceof Float32Array||s instanceof Float64Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Uint8Array||s instanceof Uint16Array||s instanceof Int16Array||s instanceof Int8Array||s instanceof Uint8ClampedArray)return{rr_type:s.constructor.name,args:[Object.values(s)]};if(s instanceof ArrayBuffer){const r=s.constructor.name,i=rp(s);return{rr_type:r,base64:i}}else{if(s instanceof DataView)return{rr_type:s.constructor.name,args:[or(s.buffer,e,t),s.byteOffset,s.byteLength]};if(s instanceof HTMLImageElement){const r=s.constructor.name,{src:i}=s;return{rr_type:r,src:i}}else if(s instanceof HTMLCanvasElement){const r="HTMLImageElement",i=s.toDataURL();return{rr_type:r,src:i}}else{if(s instanceof ImageData)return{rr_type:s.constructor.name,args:[or(s.data,e,t),s.width,s.height]};if(il(s,e)||typeof s=="object"){const r=s.constructor.name,i=rl(s,e,t);return{rr_type:r,index:i}}}}return s}const sl=(s,e,t)=>s.map(r=>or(r,e,t)),il=(s,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof e[i]=="function").find(i=>s instanceof e[i]);function ip(s,e,t,r){const i=[],n=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const o of n)try{if(typeof e.CanvasRenderingContext2D.prototype[o]!="function")continue;const a=Ne(e.CanvasRenderingContext2D.prototype,o,function(l){return function(...c){return J(this.canvas,t,r,!0)||setTimeout(()=>{const u=sl(c,e,this);s(this.canvas,{type:Ve["2D"],property:o,args:u})},0),l.apply(this,c)}});i.push(a)}catch(a){const l=kr(e.CanvasRenderingContext2D.prototype,o,{set(c){s(this.canvas,{type:Ve["2D"],property:o,args:[c],setter:!0})}});i.push(l)}return()=>{i.forEach(o=>o())}}function np(s){return s==="experimental-webgl"?"webgl":s}function tn(s,e,t,r){const i=[];try{const n=Ne(s.HTMLCanvasElement.prototype,"getContext",function(o){return function(a,...l){if(!J(this,e,t,!0)){const c=np(a);if("__context"in this||(this.__context=c),r&&["webgl","webgl2"].includes(c))if(l[0]&&typeof l[0]=="object"){const u=l[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return o.apply(this,[a,...l])}});i.push(n)}catch(n){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(n=>n())}}function rn(s,e,t,r,i,n){const o=[],a=Object.getOwnPropertyNames(s);for(const l of a)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof s[l]!="function")continue;const c=Ne(s,l,function(u){return function(...h){const f=u.apply(this,h);if(rl(f,n,this),"tagName"in this.canvas&&!J(this.canvas,r,i,!0)){const d=sl(h,n,this),g={type:e,property:l,args:d};t(this.canvas,g)}return f}});o.push(c)}catch(c){const u=kr(s,l,{set(h){t(this.canvas,{type:e,property:l,args:[h],setter:!0})}});o.push(u)}return o}function op(s,e,t,r){const i=[];return i.push(...rn(e.WebGLRenderingContext.prototype,Ve.WebGL,s,t,r,e)),typeof e.WebGL2RenderingContext!="undefined"&&i.push(...rn(e.WebGL2RenderingContext.prototype,Ve.WebGL2,s,t,r,e)),()=>{i.forEach(n=>n())}}const nl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",lp=s=>Uint8Array.from(atob(s),e=>e.charCodeAt(0)),sn=typeof self!="undefined"&&self.Blob&&new Blob([lp(nl)],{type:"text/javascript;charset=utf-8"});function ap(s){let e;try{if(e=sn&&(self.URL||self.webkitURL).createObjectURL(sn),!e)throw"";const t=new Worker(e,{name:s==null?void 0:s.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(e)}),t}catch(t){return new Worker("data:text/javascript;base64,"+nl,{name:s==null?void 0:s.name})}finally{e&&(self.URL||self.webkitURL).revokeObjectURL(e)}}class up{constructor(e){y(this,"pendingCanvasMutations",new Map),y(this,"rafStamps",{latestId:0,invokeId:null}),y(this,"mirror"),y(this,"mutationCb"),y(this,"resetObservers"),y(this,"frozen",!1),y(this,"locked",!1),y(this,"processMutation",(l,c)=>{(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(c)});const{sampling:t="all",win:r,blockClass:i,blockSelector:n,recordCanvas:o,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&t==="all"&&this.initCanvasMutationObserver(r,i,n),o&&typeof t=="number"&&this.initCanvasFPSObserver(t,r,i,n,{dataURLOptions:a})}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(e,t,r,i,n){const o=tn(t,r,i,!0),a=new Map,l=new ap;l.onmessage=g=>{const{id:m}=g.data;if(a.set(m,!1),!("base64"in g.data))return;const{base64:p,type:w,width:b,height:S}=g.data;this.mutationCb({id:m,type:Ve["2D"],commands:[{property:"clearRect",args:[0,0,b,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:p}],type:w}]},0,0]}]})};const c=1e3/e;let u=0,h;const f=()=>{const g=[];return t.document.querySelectorAll("canvas").forEach(m=>{J(m,r,i,!0)||g.push(m)}),g},d=g=>{if(u&&g-u<c){h=requestAnimationFrame(d);return}u=g,f().forEach(async m=>{var p;const w=this.mirror.getId(m);if(a.get(w)||m.width===0||m.height===0)return;if(a.set(w,!0),["webgl","webgl2"].includes(m.__context)){const S=m.getContext(m.__context);((p=S==null?void 0:S.getContextAttributes())==null?void 0:p.preserveDrawingBuffer)===!1&&S.clear(S.COLOR_BUFFER_BIT)}const b=await createImageBitmap(m);l.postMessage({id:w,bitmap:b,width:m.width,height:m.height,dataURLOptions:n.dataURLOptions},[b])}),h=requestAnimationFrame(d)};h=requestAnimationFrame(d),this.resetObservers=()=>{o(),cancelAnimationFrame(h)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=tn(e,t,r,!1),n=ip(this.processMutation.bind(this),e,t,r),o=op(this.processMutation.bind(this),e,t,r);this.resetObservers=()=>{i(),n(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||t===-1)return;const i=r.map(o=>{const c=o,{type:a}=c;return Pe(c,["type"])}),{type:n}=r[0];this.mutationCb({id:t,type:n,commands:i}),this.pendingCanvasMutations.delete(e)}}class cp{constructor(){y(this,"nodeMap",new WeakMap),y(this,"active",!1)}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some(i=>i!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}class hp{constructor(e){y(this,"shadowDoms",new WeakSet),y(this,"mutationCb"),y(this,"scrollCb"),y(this,"bypassOptions"),y(this,"mirror"),y(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!lt(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=Qo(re(A({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(el(re(A({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(I.host(e))),this.restoreHandlers.push(tl({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Ne(e.prototype,"attachShadow",function(i){return function(n){const o=i.call(this,n),a=I.shadowRoot(this);return a&&Xo(this)&&r.addShadowRoot(a,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class fp{constructor(e){y(this,"trackedLinkElements",new WeakSet),y(this,"mutationCb"),y(this,"adoptedStyleSheetCb"),y(this,"styleMirror",new Ef),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;const r={id:t,styleIds:[]},i=[];for(const n of e){let o;this.styleMirror.has(n)?o=this.styleMirror.getId(n):(o=this.styleMirror.add(n),i.push({styleId:o,rules:Array.from(n.rules||CSSRule,(a,l)=>({rule:pn(a,n.href),index:l}))})),r.styleIds.push(o)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}let U,nt,Jr,ht=!1;try{if(Array.from([1],s=>s*2)[0]!==2){const s=document.createElement("iframe");document.body.appendChild(s),Array.from=((ii=s.contentWindow)==null?void 0:ii.Array.from)||Array.from,document.body.removeChild(s)}}catch(s){Ge()&&console.debug("Unable to override Array.from",s)}const ne=Vl();function xe(s={}){const{emit:e,checkoutEveryNms:t,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:n=null,ignoreClass:o="rr-ignore",ignoreSelector:a=null,maskTextClass:l="rr-mask",maskTextSelector:c=null,inlineStylesheet:u=!0,maskAllInputs:h,maskInputOptions:f,slimDOMOptions:d,maskInputFn:g,maskTextFn:m,hooks:p,packFn:w,sampling:b={},dataURLOptions:S={},mousemoveWait:R,recordDOM:F=!0,recordCanvas:j=!1,recordCrossOriginIframes:G=!1,recordAfter:P=s.recordAfter==="DOMContentLoaded"?s.recordAfter:"load",userTriggeredOnInput:X=!1,collectFonts:V=!1,inlineImages:q=!1,plugins:ae,keepIframeSrcFn:he=()=>!1,ignoreCSSAttributes:E=new Set([]),errorHandler:qe}=s;kf(qe);const we=G?window.parent===window:!0;let Ae=!1;if(!we)try{window.parent.document&&(Ae=!1)}catch($){Ae=!0}if(we&&!e)throw new Error("emit function is required");if(!we&&!Ae)return()=>{};R!==void 0&&b.mousemove===void 0&&(b.mousemove=R),ne.reset();const z=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:f!==void 0?f:{password:!0},Q=d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:d==="all",headMetaDescKeywords:d==="all",headTitleMutations:d==="all"}:d||{};Rf();let ee,te=0;const _e=$=>{for(const ie of ae||[])ie.eventProcessor&&($=ie.eventProcessor($));return w&&!Ae&&($=w($)),$};U=($,ie)=>{var B;const W=$;if(W.timestamp=br(),(B=Ee[0])!=null&&B.isFrozen()&&W.type!==O.FullSnapshot&&!(W.type===O.IncrementalSnapshot&&W.data.source===x.Mutation)&&Ee.forEach(fe=>fe.unfreeze()),we)e==null||e(_e(W),ie);else if(Ae){const fe={type:"rrweb",event:_e(W),origin:window.location.origin,isCheckout:ie};window.parent.postMessage(fe,"*")}if(W.type===O.FullSnapshot)ee=W,te=0;else if(W.type===O.IncrementalSnapshot){if(W.data.source===x.Mutation&&W.data.isAttachIframe)return;te++;const fe=r&&te>=r,Re=t&&W.timestamp-ee.timestamp>t;(fe||Re)&&nt(!0)}};const be=$=>{U({type:O.IncrementalSnapshot,data:A({source:x.Mutation},$)})},Qs=$=>U({type:O.IncrementalSnapshot,data:A({source:x.Scroll},$)}),ei=$=>U({type:O.IncrementalSnapshot,data:A({source:x.CanvasMutation},$)}),ol=$=>U({type:O.IncrementalSnapshot,data:A({source:x.AdoptedStyleSheet},$)}),Me=new fp({mutationCb:be,adoptedStyleSheetCb:ol}),Oe=new _f({mirror:ne,mutationCb:be,stylesheetManager:Me,recordCrossOriginIframes:G,wrappedEmit:U});for(const $ of ae||[])$.getMirror&&$.getMirror({nodeMirror:ne,crossOriginIframeMirror:Oe.crossOriginIframeMirror,crossOriginIframeStyleMirror:Oe.crossOriginIframeStyleMirror});const Tr=new cp;Jr=new up({recordCanvas:j,mutationCb:ei,win:window,blockClass:i,blockSelector:n,mirror:ne,sampling:b.canvas,dataURLOptions:S});const Ot=new hp({mutationCb:be,scrollCb:Qs,bypassOptions:{blockClass:i,blockSelector:n,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:z,dataURLOptions:S,maskTextFn:m,maskInputFn:g,recordCanvas:j,inlineImages:q,sampling:b,slimDOMOptions:Q,iframeManager:Oe,stylesheetManager:Me,canvasManager:Jr,keepIframeSrcFn:he,processedNodeManager:Tr},mirror:ne});nt=($=!1)=>{if(!F)return;U({type:O.Meta,data:{href:window.location.href,width:Go(),height:jo()}},$),Me.reset(),Ot.init(),Ee.forEach(B=>B.lock());const ie=$a(document,{mirror:ne,blockClass:i,blockSelector:n,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:z,maskTextFn:m,maskInputFn:g,slimDOM:Q,dataURLOptions:S,recordCanvas:j,inlineImages:q,onSerialize:B=>{Yo(B,ne)&&Oe.addIframe(B),Zo(B,ne)&&Me.trackLinkElement(B),Os(B)&&Ot.addShadowRoot(I.shadowRoot(B),document)},onIframeLoad:(B,W)=>{Oe.attachIframe(B,W),Ot.observeAttachShadow(B)},onStylesheetLoad:(B,W)=>{Me.attachLinkElement(B,W)},keepIframeSrcFn:he});if(!ie){Ge()&&console.warn("Failed to snapshot the document");return}U({type:O.FullSnapshot,data:{node:ie,initialOffset:Wo(window)}},$),Ee.forEach(B=>B.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Me.adoptStyleSheets(document.adoptedStyleSheets,ne.getId(document))};try{const $=[],ie=Re=>{var Rt;return M(ep)({mutationCb:be,mousemoveCb:(_,_r)=>U({type:O.IncrementalSnapshot,data:{source:_r,positions:_}}),mouseInteractionCb:_=>U({type:O.IncrementalSnapshot,data:A({source:x.MouseInteraction},_)}),scrollCb:Qs,viewportResizeCb:_=>U({type:O.IncrementalSnapshot,data:A({source:x.ViewportResize},_)}),inputCb:_=>U({type:O.IncrementalSnapshot,data:A({source:x.Input},_)}),mediaInteractionCb:_=>U({type:O.IncrementalSnapshot,data:A({source:x.MediaInteraction},_)}),styleSheetRuleCb:_=>U({type:O.IncrementalSnapshot,data:A({source:x.StyleSheetRule},_)}),styleDeclarationCb:_=>U({type:O.IncrementalSnapshot,data:A({source:x.StyleDeclaration},_)}),canvasMutationCb:ei,fontCb:_=>U({type:O.IncrementalSnapshot,data:A({source:x.Font},_)}),selectionCb:_=>{U({type:O.IncrementalSnapshot,data:A({source:x.Selection},_)})},customElementCb:_=>{U({type:O.IncrementalSnapshot,data:A({source:x.CustomElement},_)})},blockClass:i,ignoreClass:o,ignoreSelector:a,maskTextClass:l,maskTextSelector:c,maskInputOptions:z,inlineStylesheet:u,sampling:b,recordDOM:F,recordCanvas:j,inlineImages:q,userTriggeredOnInput:X,collectFonts:V,doc:Re,maskInputFn:g,maskTextFn:m,keepIframeSrcFn:he,blockSelector:n,slimDOMOptions:Q,dataURLOptions:S,mirror:ne,iframeManager:Oe,stylesheetManager:Me,shadowDomManager:Ot,processedNodeManager:Tr,canvasManager:Jr,ignoreCSSAttributes:E,plugins:((Rt=ae==null?void 0:ae.filter(_=>_.observer))==null?void 0:Rt.map(_=>({observer:_.observer,options:_.options,callback:_r=>U({type:O.Plugin,data:{plugin:_.name,payload:_r}})})))||[]},p)};Oe.addLoadListener(Re=>{try{$.push(ie(Re.contentDocument))}catch(Rt){Ge()&&(console.warn("internal error"),console.warn(Rt))}});let B=null;const W=()=>{B=Date.now(),nt(),$.push(ie(document)),ht=!0},fe=()=>{window.removeEventListener("load",fe),!(!ht||B==null)&&(Date.now()-B<=10||nt())};return window.addEventListener("load",fe),document.readyState==="interactive"||document.readyState==="complete"?(document.readyState==="complete"&&window.removeEventListener("load",fe),W()):($.push(Z("DOMContentLoaded",()=>{U({type:O.DomContentLoaded,data:{}}),P==="DOMContentLoaded"&&W()})),$.push(Z("load",()=>{U({type:O.Load,data:{}}),P==="load"&&W()},window))),()=>{$.forEach(Re=>Re()),Tr.destroy(),ht=!1,Tf()}}catch($){Ge()&&(console.warn("internal error1"),console.warn($))}}xe.addCustomEvent=(s,e)=>{if(!ht)throw new Error("please add custom event after start recording");U({type:O.Custom,data:{tag:s,payload:e}})};xe.freezePage=()=>{Ee.forEach(s=>s.freeze())};xe.takeFullSnapshot=s=>{if(!ht)throw new Error("please take full snapshot after start recording");nt(s)};xe.mirror=ne;var nn;(function(s){s[s.NotStarted=0]="NotStarted",s[s.Running=1]="Running",s[s.Stopped=2]="Stopped"})(nn||(nn={}));const{addCustomEvent:Yp}=xe,{freezePage:Zp}=xe,{takeFullSnapshot:pp}=xe;exports.record=xe;
59
59
  ;if (typeof module.exports == "object" && typeof exports == "object") {
60
60
  var __cp = (to, from, except, desc) => {
61
61
  if ((from && typeof from === "object") || typeof from === "function") {