@glimt/record 0.0.75 → 0.0.76

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,61 +1,61 @@
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 ma=Object.defineProperty,ga=Object.defineProperties;var ya=Object.getOwnPropertyDescriptors;var Nt=Object.getOwnPropertySymbols;var ai=Object.prototype.hasOwnProperty,li=Object.prototype.propertyIsEnumerable;var oi=(s,e,t)=>e in s?ma(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,M=(s,e)=>{for(var t in e||(e={}))ai.call(e,t)&&oi(s,t,e[t]);if(Nt)for(var t of Nt(e))li.call(e,t)&&oi(s,t,e[t]);return s},te=(s,e)=>ga(s,ya(e));var Pe=(s,e)=>{var t={};for(var r in s)ai.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&Nt)for(var r of Nt(s))e.indexOf(r)<0&&li.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var wa=Object.defineProperty,ba=(s,e,t)=>e in s?wa(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,y=(s,e,t)=>ba(s,typeof e!="symbol"?e+"":e,t),ui,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||{}),q=(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))(q||{}),ge=(s=>(s[s.Mouse=0]="Mouse",s[s.Pen=1]="Pen",s[s.Touch=2]="Touch",s))(ge||{}),Ve=(s=>(s[s["2D"]=0]="2D",s[s.WebGL=1]="WebGL",s[s.WebGL2=2]="WebGL2",s))(Ve||{}),Be=(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))(Be||{}),fn=(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))(fn||{});const ci={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},hi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},kt={},Sa=()=>!!globalThis.Zone;function Ts(s){if(kt[s])return kt[s];const e=globalThis[s],t=e.prototype,r=s in ci?ci[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 hi?hi[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&&!Sa())return kt[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?kt[s]=c:t}catch(l){return t}}const Br={};function ve(s,e,t){var r;const i=`${s}.${String(t)}`;if(Br[i])return Br[i].call(e);const n=Ts(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(Br[i]=o,o.call(e)):e[t]}const Ur={};function dn(s,e,t){const r=`${s}.${String(t)}`;if(Ur[r])return Ur[r].bind(e);const n=Ts(s)[t];return typeof n!="function"?e[t]:(Ur[r]=n,n.bind(e))}function Ca(s){return ve("Node",s,"childNodes")}function va(s){return ve("Node",s,"parentNode")}function Ia(s){return ve("Node",s,"parentElement")}function xa(s){return ve("Node",s,"textContent")}function Ma(s,e){return dn("Node",s,"contains")(e)}function Aa(s){return dn("Node",s,"getRootNode")()}function Oa(s){return!s||!("host"in s)?null:ve("ShadowRoot",s,"host")}function Ra(s){return s.styleSheets}function Ea(s){return!s||!("shadowRoot"in s)?null:ve("Element",s,"shadowRoot")}function $a(s,e){return ve("Element",s,"querySelector")(e)}function Na(s,e){return ve("Element",s,"querySelectorAll")(e)}function pn(){return Ts("MutationObserver").constructor}function Te(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:Ca,parentNode:va,parentElement:Ia,textContent:xa,contains:Ma,getRootNode:Aa,host:Oa,styleSheets:Ra,shadowRoot:Ea,querySelector:$a,querySelectorAll:Na,mutationObserver:pn,patch:Te};var ka=Object.defineProperty,Ta=(s,e,t)=>e in s?ka(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,je=(s,e,t)=>Ta(s,typeof e!="symbol"?e+"":e,t),V=(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))(V||{});const fi={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},di={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Tt={},_a=()=>!!globalThis.Zone;function _s(s){if(Tt[s])return Tt[s];const e=globalThis[s],t=e.prototype,r=s in fi?fi[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 di?di[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&&!_a())return Tt[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?Tt[s]=c:t}catch(l){return t}}const zr={};function Ie(s,e,t){var r;const i=`${s}.${String(t)}`;if(zr[i])return zr[i].call(e);const n=_s(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(zr[i]=o,o.call(e)):e[t]}const Wr={};function mn(s,e,t){const r=`${s}.${String(t)}`;if(Wr[r])return Wr[r].bind(e);const n=_s(s)[t];return typeof n!="function"?e[t]:(Wr[r]=n,n.bind(e))}function La(s){return Ie("Node",s,"childNodes")}function Pa(s){return Ie("Node",s,"parentNode")}function Da(s){return Ie("Node",s,"parentElement")}function Fa(s){return Ie("Node",s,"textContent")}function Ba(s,e){return mn("Node",s,"contains")(e)}function Ua(s){return mn("Node",s,"getRootNode")()}function za(s){return!s||!("host"in s)?null:Ie("ShadowRoot",s,"host")}function Wa(s){return s.styleSheets}function Ga(s){return!s||!("shadowRoot"in s)?null:Ie("Element",s,"shadowRoot")}function ja(s,e){return Ie("Element",s,"querySelector")(e)}function Va(s,e){return Ie("Element",s,"querySelectorAll")(e)}function Ha(){return _s("MutationObserver").constructor}function Ya(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:La,parentNode:Pa,parentElement:Da,textContent:Fa,contains:Ba,getRootNode:Ua,host:za,styleSheets:Wa,shadowRoot:Ga,querySelector:ja,querySelectorAll:Va,mutationObserver:Ha,patch:Ya},gn=()=>!("_rrweb_skip_re_fetching_to_suppress_cors_errors"in window&&window._rrweb_skip_re_fetching_to_suppress_cors_errors===!0),yn=()=>"_rrweb_is_debug"in window&&window._rrweb_is_debug?window._rrweb_is_debug:!1;function wn(s){return s.nodeType===s.ELEMENT_NODE}function at(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 Za(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 Ja(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 Mr(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=>bn(i,t)).join("");return Za(r)}catch(e){return null}}function bn(s,e){if(Ka(s)){let t;try{t=Mr(s.styleSheet)||Ja(s)}catch(r){t=s.cssText}return s.styleSheet.href?dr(t,s.styleSheet.href):t}else{let t=s.cssText;return qa(s)&&s.selectorText.includes(":")&&(t=Xa(t)),e?dr(t,e):t}}function Xa(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function Ka(s){return"styleSheet"in s}function qa(s){return"selectorText"in s}class Sn{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 Qa(){return new Sn}function hr({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let o=i||"";const l=r&&ke(r);return(e[t.toLowerCase()]||l&&e[l])&&(n?o=n(o,s):o="*".repeat(o.length)),o}function ke(s){return s.toLowerCase()}const pi="__rrweb_original__",el=25e4;function tl(s,e){if(s.width*s.height<el)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 rl(s,e){if(s.width===0||s.height===0)return!0;const t=tl(s,e);if(!t)return!0;const r=s.width>512||s.height>512?100:50,i=t.getImageData,n=pi in i?i[pi]: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 fr(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?ke(e):null}function Cn(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 sl(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const il=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,nl=/^(?:[a-z+]+:)?\/\//i,ol=/^www\..*/i,al=/^(data:)([^,]*),(.*)/i;function dr(s,e){return(s||"").replace(il,(t,r,i,n,o,l)=>{const a=i||o||l,c=r||n||"";if(!a)return t;if(nl.test(a)||ol.test(a))return`url(${c}${a}${c})`;if(al.test(a))return`url(${c}${a}${c})`;if(a[0]==="/")return`url(${c}${sl(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 _t(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function ll(s,e,t=!1){const r=Array.from(e.childNodes),i=[];let n=0;if(r.length>1&&s&&typeof s=="string"){let o=_t(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=_t(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),p=o.split(f),g=-1;if(p.length===2)g=p[0].length;else if(p.length>2&&p[0]===""&&r[a-1].textContent!=="")g=o.indexOf(f,1);else if(p.length===1){if(f=f.substring(0,f.length-1),p=o.split(f),p.length<=1)return i.push(s),i;h=u+1}else h===c.length-1&&(g=o.indexOf(f));if(p.length>=2&&h>u){const m=r[a-1].textContent;if(m&&typeof m=="string"){const d=_t(m).length;g=o.indexOf(f,d)}g===-1&&(g=p[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 d=_t(s.substring(0,m),t);if(d.length===g){i.push(s.substring(0,m)),s=s.substring(m),o=o.substring(g);break}else d.length<g?m+=Math.max(1,Math.floor((g-d.length)/l)):m-=Math.max(1,Math.floor((d.length-g)*l))}break}}}}return i.push(s),i}function ul(s,e){return ll(s,e).join("/* rr_split */")}const cl=1e3*30,De="data-recapt-rrweb-link-cloned",hl=["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"],vn=class er{constructor(){if(je(this,"currentHref",null),je(this,"clones",{}),je(this,"cleanTimeout",null),er.instance)return er.instance;er.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=Mr(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(){ut.cleanTimeout=null,ut.removeAllCloneElements()}blowCache(){this.removeAllCloneElements(),this.clones={}}requestClone({forElement:e,requestCssId:t}){if(!gn())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&&hl.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(ut.onCleanTimeout,cl)}getClonedCssTextIfAvailable(e){return e in this.clones&&this.clones[e]!==void 0&&this.clones[e].loaded===!0?this.clones[e].cssText:null}};je(vn,"instance");let fl=vn;const ut=new fl,dl=({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=Mr(i)),n||(n=ut.getClonedCssTextIfAvailable(t.href)),n)delete s.rel,delete s.href,s._cssText=n;else{const o=`css-request-${Math.random().toString(36).slice(2)}`;ut.requestClone({forElement:t,requestCssId:o}),s._requestCssId=o}return s},pl=({attributes:s,n:e})=>{let t=Mr(e.sheet);return t&&(e.childNodes.length>1&&(t=ul(t,e)),s._cssText=t),s},ml=({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=hr({element:e,type:fr(e),tagName:t,value:n,maskInputOptions:r,maskInputFn:i}):o&&(s.checked=o),s},gl=({attributes:s,n:e,maskInputOptions:t})=>(e.selected&&!t.select?s.selected=!0:delete s.selected,s),yl=s=>{"requestIdleCallback"in window?window.requestIdleCallback(s):setTimeout(s,100)},wl=({attributes:s,n:e,dataURLOptions:t,doc:r})=>{let i="getContext"in e?e.getContext("2d"):null;if(i!=null)rl(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,yl(()=>{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},bl=({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},p=()=>{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(gn()){l=new Image,l.src=c,l.crossOrigin="anonymous",l.height=u,l.width=h,l.complete&&l.naturalWidth!==0?p():(l.addEventListener("load",p,{once:!0}),l.addEventListener("error",g,{once:!0}));return}}else yn()&&console.warn(`Cannot inline img src=${c}! Error: ${m}`)}f()}},g=()=>{(l!=null?l:o).removeEventListener("load",p),f()};return o.complete&&o.naturalWidth!==0?p():(o.addEventListener("load",p,{once:!0}),o.addEventListener("error",g,{once:!0})),s},Sl=({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 Cl=1;const vl=new RegExp("[^a-z0-9-_:]"),pt=-2;function In(){return Cl++}function Il(s){if(s instanceof HTMLFormElement)return"form";const e=ke(s.tagName);return vl.test(e)?"div":e}let xl=null,Ml=null;const Al=/^[^ \t\n\r\u000c]+/,Ol=/^[, \t\n\r\u000c]+/;function Rl(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(Ol),!(t>=e.length);){let n=r(Al);if(n.slice(-1)===",")n=ze(s,n.substring(0,n.length-1)),i.push(n);else{let o="";n=ze(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 mi=new WeakMap;function ze(s,e){return!e||e.trim()===""?e:Ls(s,e)}function El(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function Ls(s,e){let t=mi.get(s);if(t||(t=s.createElement("a"),mi.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function xn(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")?ze(s,r):t==="srcset"?Rl(s,r):t==="style"?dr(r,Ls(s)):e==="object"&&t==="data"?ze(s,r):r)}function Mn(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function $l(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 pr(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?pr(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?pr(Y.parentNode(s),e,t):!1}function An(s,e,t,r){let i;if(wn(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(pr(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 Nl(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 kl(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 Tl(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:p,keepIframeSrcFn:g,newlyAddedElement:m=!1,cssCaptured:d=!1}=e,w=_l(t,r);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:V.Document,childNodes:[],compatMode:s.compatMode}:{type:V.Document,childNodes:[]};case s.DOCUMENT_TYPE_NODE:return{type:V.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:w};case s.ELEMENT_NODE:return Pl(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:a,maskInputFn:u,dataURLOptions:h,inlineImages:f,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:m,rootId:w});case s.TEXT_NODE:return Ll(s,{doc:t,needsMask:o,maskTextFn:c,rootId:w,cssCaptured:d});case s.CDATA_SECTION_NODE:return{type:V.CDATA,textContent:"",rootId:w};case s.COMMENT_NODE:return{type:V.Comment,textContent:Y.textContent(s)||"",rootId:w};default:return!1}}function _l(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function Ll(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=dr(a,Ls(e.doc)))),!c&&!u&&a&&t&&(a=r?r(a,Y.parentElement(s)):a.replace(/[\S]/g,"*")),{type:V.Text,textContent:a||"",rootId:i}}function Pl(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:p}=e,g=$l(s,r,i),m=Il(s);let d={};const w=s.attributes.length;for(let S=0;S<w;S++){const R=s.attributes[S];Mn(m,R.name,R.value)||(d[R.name]=xn(t,m,ke(R.name),R.value))}switch(m){case"link":n&&(d=dl({doc:t,attributes:d,n:s}));break;case"style":s.sheet&&(d=pl({attributes:d,n:s}));break;case"input":case"textarea":case"select":d=ml({attributes:d,n:s,tagName:m,maskInputOptions:o,maskInputFn:l});break;case"option":d=gl({attributes:d,n:s,maskInputOptions:o});break;case"dialog":s.open&&(d.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal");break;case"canvas":u&&(d=wl({attributes:d,n:s,dataURLOptions:a,doc:t}));case"img":c&&(d=bl({attributes:d,n:s,canvasService:xl,canvasCtx:Ml,dataURLOptions:a,doc:t}));break;case"audio":case"video":d=Sl({attributes:d,n:s});break}if(f||(s.scrollLeft&&(d.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(d.rr_scrollTop=s.scrollTop)),g){const{width:S,height:R}=s.getBoundingClientRect();d={class:d.class,rr_width:`${S}px`,rr_height:`${R}px`}}m==="iframe"&&!h(d.src)&&(s.contentDocument||(d.rr_src=d.src),delete d.src);let b;try{customElements.get(m)&&(b=!0)}catch(S){}return{type:V.Element,tagName:m,attributes:d,childNodes:[],isSVG:El(s)||void 0,needBlock:g,rootId:p,isCustom:b}}function _(s){return s==null?"":s.toLowerCase()}function Dl(s,e){if(e.comment&&s.type===V.Comment)return!0;if(s.type===V.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"&&Cn(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 $e={index:0,store:{}};function We(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:p,slimDOMOptions:g,dataURLOptions:m={},inlineImages:d=!1,recordCanvas:w=!1,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:R=5e3,onStylesheetLoad:F,stylesheetLoadTimeout:W=5e3,keepIframeSrcFn:G=()=>!1,newlyAddedElement:L=!1,cssCaptured:K=!1}=e;let{needsMask:j}=e,{preserveWhiteSpace:Q=!0}=e;j||(j=An(s,l,a,j===void 0));const oe=Tl(s,{doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:j,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:p,dataURLOptions:m,inlineImages:d,recordCanvas:w,keepIframeSrcFn:G,newlyAddedElement:L,cssCaptured:K});if(!oe)return yn()&&console.warn(s,"not serialized"),null;let he;i.hasNode(s)?he=i.getId(s):Dl(oe,g)||!Q&&oe.type===V.Text&&!oe.textContent.replace(/^\s+|\s+$/gm,"").length?he=pt:he=In();const E=Object.assign(oe,{id:he});if(i.add(s,E),he===pt)return null;b&&b(s);let qe=!c;if(E.type===V.Element){qe=qe&&!E.needBlock,delete E.needBlock;const H=Y.shadowRoot(s);H&&lt(H)&&(E.isShadowHost=!0)}if((E.type===V.Document||E.type===V.Element)&&qe){g.headWhitespace&&E.type===V.Element&&E.tagName==="head"&&(Q=!1);const H={doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:j,maskTextClass:l,maskTextSelector:a,skipChild:c,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m,inlineImages:d,recordCanvas:w,preserveWhiteSpace:Q,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:R,onStylesheetLoad:F,stylesheetLoadTimeout:W,keepIframeSrcFn:G,cssCaptured:!1};if(!(E.type===V.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0)){E.type===V.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText=="string"&&(H.cssCaptured=!0);for(const Ae of Array.from(Y.childNodes(s))){const le=We(Ae,H);le&&E.childNodes.push(le)}}let ae=null;if(wn(s)&&(ae=Y.shadowRoot(s))){const Ae=Y.childNodes(ae);for(let le=0;le<Ae.length;le++){const Et=Ae[le],Se=We(Et,H);Se&&(lt(ae)&&(Se.isShadow=!0),E.childNodes.push(Se))}}}const be=Y.parentNode(s);be&&at(be)&&lt(be)&&(E.isShadow=!0),E.type===V.Element&&E.tagName==="iframe"&&Nl(s,()=>{const H=s.contentDocument;if(H&&S){const ae=We(H,{doc:H,mirror:i,blockClass:n,blockSelector:o,needsMask:j,maskTextClass:l,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m,inlineImages:d,recordCanvas:w,preserveWhiteSpace:Q,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:R,onStylesheetLoad:F,stylesheetLoadTimeout:W,keepIframeSrcFn:G});ae&&S(s,ae)}},R),E.type===V.Element&&E.tagName==="link"&&typeof E.attributes.rel=="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href=="string"&&Cn(E.attributes.href)==="css")&&kl(s,()=>{if(F){const H=We(s,{doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:j,maskTextClass:l,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m,inlineImages:d,recordCanvas:w,preserveWhiteSpace:Q,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:R,onStylesheetLoad:F,stylesheetLoadTimeout:W,keepIframeSrcFn:G});H&&F(s,H)}},W),$e.index++;const Me=Date.now()-t;return s.nodeName in $e.store||($e.store[s.nodeName]=[]),$e.store[s.nodeName].push(Me),$e.index%5e3===0&&($e.index=0,$e.store={}),E}function Fl(s,e){const{mirror:t=new Sn,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:p=!1,dataURLOptions:g,preserveWhiteSpace:m,onSerialize:d,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:R,keepIframeSrcFn:F=()=>!1}=e||{};return We(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:p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:p==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:p===!1?{}:p,dataURLOptions:g,inlineImages:a,recordCanvas:c,preserveWhiteSpace:m,onSerialize:d,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:R,keepIframeSrcFn:F,newlyAddedElement:!1})}function Bl(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Ul(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 Ps={exports:{}},C=String,On=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}};Ps.exports=On();Ps.exports.createColors=On;var zl=Ps.exports;const Wl={},Gl=Object.freeze(Object.defineProperty({__proto__:null,default:Wl},Symbol.toStringTag,{value:"Module"})),ie=Ul(Gl);let gi=zl,yi=ie,es=class Rn 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,Rn)}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=gi.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:f}=gi.createColors(!0);i=p=>u(f(p)),r=p=>h(p),yi&&(n=p=>yi(p))}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,p=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(u.length>160){let m=20,d=Math.max(0,this.column-m),w=Math.max(this.column+m,this.endColumn+m),b=u.slice(d,w),S=r(p.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+r(p)+n(b)+`
2
+ "use strict";var pa=Object.defineProperty,ma=Object.defineProperties;var ga=Object.getOwnPropertyDescriptors;var kt=Object.getOwnPropertySymbols;var oi=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable;var ni=(s,e,t)=>e in s?pa(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,M=(s,e)=>{for(var t in e||(e={}))oi.call(e,t)&&ni(s,t,e[t]);if(kt)for(var t of kt(e))ai.call(e,t)&&ni(s,t,e[t]);return s},ee=(s,e)=>ma(s,ga(e));var De=(s,e)=>{var t={};for(var r in s)oi.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&kt)for(var r of kt(s))e.indexOf(r)<0&&ai.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var ya=Object.defineProperty,wa=(s,e,t)=>e in s?ya(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,y=(s,e,t)=>wa(s,typeof e!="symbol"?e+"":e,t),li,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||{}),I=(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))(I||{}),q=(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))(q||{}),ge=(s=>(s[s.Mouse=0]="Mouse",s[s.Pen=1]="Pen",s[s.Touch=2]="Touch",s))(ge||{}),je=(s=>(s[s["2D"]=0]="2D",s[s.WebGL=1]="WebGL",s[s.WebGL2=2]="WebGL2",s))(je||{}),Be=(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))(Be||{}),hn=(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))(hn||{});const ui={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ci={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Tt={},ba=()=>!!globalThis.Zone;function Ts(s){if(Tt[s])return Tt[s];const e=globalThis[s],t=e.prototype,r=s in ui?ui[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 ci?ci[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&&!ba())return Tt[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?Tt[s]=c:t}catch(l){return t}}const zr={};function xe(s,e,t){var r;const i=`${s}.${String(t)}`;if(zr[i])return zr[i].call(e);const n=Ts(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(zr[i]=o,o.call(e)):e[t]}const Ur={};function fn(s,e,t){const r=`${s}.${String(t)}`;if(Ur[r])return Ur[r].bind(e);const n=Ts(s)[t];return typeof n!="function"?e[t]:(Ur[r]=n,n.bind(e))}function Sa(s){return xe("Node",s,"childNodes")}function Ca(s){return xe("Node",s,"parentNode")}function va(s){return xe("Node",s,"parentElement")}function Ia(s){return xe("Node",s,"textContent")}function xa(s,e){return fn("Node",s,"contains")(e)}function Ma(s){return fn("Node",s,"getRootNode")()}function Oa(s){return!s||!("host"in s)?null:xe("ShadowRoot",s,"host")}function Aa(s){return s.styleSheets}function Ra(s){return!s||!("shadowRoot"in s)?null:xe("Element",s,"shadowRoot")}function Ea(s,e){return xe("Element",s,"querySelector")(e)}function $a(s,e){return xe("Element",s,"querySelectorAll")(e)}function dn(){return Ts("MutationObserver").constructor}function Te(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 x={childNodes:Sa,parentNode:Ca,parentElement:va,textContent:Ia,contains:xa,getRootNode:Ma,host:Oa,styleSheets:Aa,shadowRoot:Ra,querySelector:Ea,querySelectorAll:$a,mutationObserver:dn,patch:Te};var Na=Object.defineProperty,ka=(s,e,t)=>e in s?Na(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Ge=(s,e,t)=>ka(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 hi={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},fi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},_t={},Ta=()=>!!globalThis.Zone;function _s(s){if(_t[s])return _t[s];const e=globalThis[s],t=e.prototype,r=s in hi?hi[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 fi?fi[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&&!Ta())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 Wr={};function Me(s,e,t){var r;const i=`${s}.${String(t)}`;if(Wr[i])return Wr[i].call(e);const n=_s(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(Wr[i]=o,o.call(e)):e[t]}const Gr={};function pn(s,e,t){const r=`${s}.${String(t)}`;if(Gr[r])return Gr[r].bind(e);const n=_s(s)[t];return typeof n!="function"?e[t]:(Gr[r]=n,n.bind(e))}function _a(s){return Me("Node",s,"childNodes")}function La(s){return Me("Node",s,"parentNode")}function Da(s){return Me("Node",s,"parentElement")}function Pa(s){return Me("Node",s,"textContent")}function Fa(s,e){return pn("Node",s,"contains")(e)}function Ba(s){return pn("Node",s,"getRootNode")()}function za(s){return!s||!("host"in s)?null:Me("ShadowRoot",s,"host")}function Ua(s){return s.styleSheets}function Wa(s){return!s||!("shadowRoot"in s)?null:Me("Element",s,"shadowRoot")}function Ga(s,e){return Me("Element",s,"querySelector")(e)}function ja(s,e){return Me("Element",s,"querySelectorAll")(e)}function Va(){return _s("MutationObserver").constructor}function Ha(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:_a,parentNode:La,parentElement:Da,textContent:Pa,contains:Fa,getRootNode:Ba,host:za,styleSheets:Ua,shadowRoot:Wa,querySelector:Ga,querySelectorAll:ja,mutationObserver:Va,patch:Ha},mn=()=>!("_rrweb_skip_re_fetching_to_suppress_cors_errors"in window&&window._rrweb_skip_re_fetching_to_suppress_cors_errors===!0),gn=()=>"_rrweb_is_debug"in window&&window._rrweb_is_debug?window._rrweb_is_debug:!1;function yn(s){return s.nodeType===s.ELEMENT_NODE}function lt(s){const e=s&&"host"in s&&"mode"in s&&Y.host(s)||null;return!!(e&&"shadowRoot"in e&&Y.shadowRoot(e)===s)}function ut(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function Ya(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 Ar(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=>wn(i,t)).join("");return Ya(r)}catch(e){return null}}function wn(s,e){if(Xa(s)){let t;try{t=Ar(s.styleSheet)||Za(s)}catch(r){t=s.cssText}return s.styleSheet.href?mr(t,s.styleSheet.href):t}else{let t=s.cssText;return Ka(s)&&s.selectorText.includes(":")&&(t=Ja(t)),e?mr(t,e):t}}function Ja(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function Xa(s){return"styleSheet"in s}function Ka(s){return"selectorText"in s}class bn{constructor(){Ge(this,"idNodeMap",new Map),Ge(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 qa(){return new bn}function dr({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let o=i||"";const l=r&&ke(r);return(e[t.toLowerCase()]||l&&e[l])&&(n?o=n(o,s):o="*".repeat(o.length)),o}function ke(s){return s.toLowerCase()}const di="__rrweb_original__",Qa=25e4;function el(s,e){if(s.width*s.height<Qa)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 tl(s,e){if(s.width===0||s.height===0)return!0;const t=el(s,e);if(!t)return!0;const r=s.width>512||s.height>512?100:50,i=t.getImageData,n=di in i?i[di]: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 pr(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?ke(e):null}function Sn(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 rl(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const sl=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,il=/^(?:[a-z+]+:)?\/\//i,nl=/^www\..*/i,ol=/^(data:)([^,]*),(.*)/i;function mr(s,e){return(s||"").replace(sl,(t,r,i,n,o,l)=>{const a=i||o||l,c=r||n||"";if(!a)return t;if(il.test(a)||nl.test(a))return`url(${c}${a}${c})`;if(ol.test(a))return`url(${c}${a}${c})`;if(a[0]==="/")return`url(${c}${rl(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 Lt(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function al(s,e,t=!1){const r=Array.from(e.childNodes),i=[];let n=0;if(r.length>1&&s&&typeof s=="string"){let o=Lt(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=Lt(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),p=o.split(f),g=-1;if(p.length===2)g=p[0].length;else if(p.length>2&&p[0]===""&&r[a-1].textContent!=="")g=o.indexOf(f,1);else if(p.length===1){if(f=f.substring(0,f.length-1),p=o.split(f),p.length<=1)return i.push(s),i;h=u+1}else h===c.length-1&&(g=o.indexOf(f));if(p.length>=2&&h>u){const m=r[a-1].textContent;if(m&&typeof m=="string"){const d=Lt(m).length;g=o.indexOf(f,d)}g===-1&&(g=p[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 d=Lt(s.substring(0,m),t);if(d.length===g){i.push(s.substring(0,m)),s=s.substring(m),o=o.substring(g);break}else d.length<g?m+=Math.max(1,Math.floor((g-d.length)/l)):m-=Math.max(1,Math.floor((d.length-g)*l))}break}}}}return i.push(s),i}function ll(s,e){return al(s,e).join("/* rr_split */")}const ul=1e3*30,Pe="data-recapt-rrweb-link-cloned",cl=["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"],Cn=class rr{constructor(){if(Ge(this,"currentHref",null),Ge(this,"clones",{}),Ge(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[${Pe}="${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=Ar(r);if(this.removeCloneNode(e),!i)return;this.clones[e].cssText=i,this.clones[e].loaded=!0;const n=document.querySelector(`link[${Pe}="source-${this.clones[e].cloneNodeAttrId}"]`);n?(n.setAttribute("data-rrweb-mutation",Date.now().toString()),n.removeAttribute(Pe)):(this.clones[e].original.setAttribute("data-rrweb-mutation",Date.now().toString()),this.clones[e].original.removeAttribute(Pe)),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(){ct.cleanTimeout=null,ct.removeAllCloneElements()}blowCache(){this.removeAllCloneElements(),this.clones={}}requestClone({forElement:e,requestCssId:t}){if(!mn())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&&cl.includes(a.trim().toLowerCase()))return}}const i=e.cloneNode(),n=Math.random().toString(36).slice(2);i.setAttribute("crossorigin","anonymous"),i.setAttribute(Pe,n),e.setAttribute(Pe,`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(ct.onCleanTimeout,ul)}getClonedCssTextIfAvailable(e){return e in this.clones&&this.clones[e]!==void 0&&this.clones[e].loaded===!0?this.clones[e].cssText:null}};Ge(Cn,"instance");let hl=Cn;const ct=new hl,fl=({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=Ar(i)),n||(n=ct.getClonedCssTextIfAvailable(t.href)),n)delete s.rel,delete s.href,s._cssText=n;else{const o=`css-request-${Math.random().toString(36).slice(2)}`;ct.requestClone({forElement:t,requestCssId:o}),s._requestCssId=o}return s},dl=({attributes:s,n:e})=>{let t=Ar(e.sheet);return t&&(e.childNodes.length>1&&(t=ll(t,e)),s._cssText=t),s},pl=({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=dr({element:e,type:pr(e),tagName:t,value:n,maskInputOptions:r,maskInputFn:i}):o&&(s.checked=o),s},ml=({attributes:s,n:e,maskInputOptions:t})=>(e.selected&&!t.select?s.selected=!0:delete s.selected,s),gl=s=>{"requestIdleCallback"in window?window.requestIdleCallback(s):setTimeout(s,100)},yl=({attributes:s,n:e,dataURLOptions:t,doc:r})=>{let i="getContext"in e?e.getContext("2d"):null;if(i!=null)tl(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,gl(()=>{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},wl=({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},p=()=>{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(mn()){l=new Image,l.src=c,l.crossOrigin="anonymous",l.height=u,l.width=h,l.complete&&l.naturalWidth!==0?p():(l.addEventListener("load",p,{once:!0}),l.addEventListener("error",g,{once:!0}));return}}else gn()&&console.warn(`Cannot inline img src=${c}! Error: ${m}`)}f()}},g=()=>{(l!=null?l:o).removeEventListener("load",p),f()};return o.complete&&o.naturalWidth!==0?p():(o.addEventListener("load",p,{once:!0}),o.addEventListener("error",g,{once:!0})),s},bl=({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 Sl=1;const Cl=new RegExp("[^a-z0-9-_:]"),pt=-2;function vn(){return Sl++}function vl(s){if(s instanceof HTMLFormElement)return"form";const e=ke(s.tagName);return Cl.test(e)?"div":e}let Il=null,xl=null;const Ml=/^[^ \t\n\r\u000c]+/,Ol=/^[, \t\n\r\u000c]+/;function Al(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(Ol),!(t>=e.length);){let n=r(Ml);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 pi=new WeakMap;function Ue(s,e){return!e||e.trim()===""?e:Ls(s,e)}function Rl(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function Ls(s,e){let t=pi.get(s);if(t||(t=s.createElement("a"),pi.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function In(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"?Al(s,r):t==="style"?mr(r,Ls(s)):e==="object"&&t==="data"?Ue(s,r):r)}function xn(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function El(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 gr(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?gr(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?gr(Y.parentNode(s),e,t):!1}function Mn(s,e,t,r){let i;if(yn(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(gr(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 $l(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 Nl(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 kl(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:p,keepIframeSrcFn:g,newlyAddedElement:m=!1,cssCaptured:d=!1}=e,w=Tl(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 Ll(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:a,maskInputFn:u,dataURLOptions:h,inlineImages:f,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:m,rootId:w});case s.TEXT_NODE:return _l(s,{doc:t,needsMask:o,maskTextFn:c,rootId:w,cssCaptured:d});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 Tl(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function _l(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=mr(a,Ls(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 Ll(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:p}=e,g=El(s,r,i),m=vl(s);let d={};const w=s.attributes.length;for(let S=0;S<w;S++){const R=s.attributes[S];xn(m,R.name,R.value)||(d[R.name]=In(t,m,ke(R.name),R.value))}switch(m){case"link":n&&(d=fl({doc:t,attributes:d,n:s}));break;case"style":s.sheet&&(d=dl({attributes:d,n:s}));break;case"input":case"textarea":case"select":d=pl({attributes:d,n:s,tagName:m,maskInputOptions:o,maskInputFn:l});break;case"option":d=ml({attributes:d,n:s,maskInputOptions:o});break;case"dialog":s.open&&(d.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal");break;case"canvas":u&&(d=yl({attributes:d,n:s,dataURLOptions:a,doc:t}));case"img":c&&(d=wl({attributes:d,n:s,canvasService:Il,canvasCtx:xl,dataURLOptions:a,doc:t}));break;case"audio":case"video":d=bl({attributes:d,n:s});break}if(f||(s.scrollLeft&&(d.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(d.rr_scrollTop=s.scrollTop)),g){const{width:S,height:R}=s.getBoundingClientRect();d={class:d.class,rr_width:`${S}px`,rr_height:`${R}px`}}m==="iframe"&&!h(d.src)&&(s.contentDocument||(d.rr_src=d.src),delete d.src);let b;try{customElements.get(m)&&(b=!0)}catch(S){}return{type:H.Element,tagName:m,attributes:d,childNodes:[],isSVG:Rl(s)||void 0,needBlock:g,rootId:p,isCustom:b}}function T(s){return s==null?"":s.toLowerCase()}function Dl(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"&&Sn(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 Ee={index:0,store:{}};function $e(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:p,slimDOMOptions:g,dataURLOptions:m={},inlineImages:d=!1,recordCanvas:w=!1,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:R=5e3,onStylesheetLoad:B,stylesheetLoadTimeout:U=5e3,keepIframeSrcFn:G=()=>!1,newlyAddedElement:L=!1,cssCaptured:K=!1}=e;let{needsMask:j}=e,{preserveWhiteSpace:Q=!0}=e;j||(j=Mn(s,l,a,j===void 0));const oe=kl(s,{doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:j,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:p,dataURLOptions:m,inlineImages:d,recordCanvas:w,keepIframeSrcFn:G,newlyAddedElement:L,cssCaptured:K});if(!oe)return gn()&&console.warn(s,"not serialized"),null;let ae;i.hasNode(s)?ae=i.getId(s):Dl(oe,g)||!Q&&oe.type===H.Text&&!oe.textContent.replace(/^\s+|\s+$/gm,"").length?ae=pt:ae=vn();const E=Object.assign(oe,{id:ae});if(i.add(s,E),ae===pt)return null;b&&b(s);let Ke=!c;if(E.type===H.Element){Ke=Ke&&!E.needBlock,delete E.needBlock;const V=Y.shadowRoot(s);V&&ut(V)&&(E.isShadowHost=!0)}if((E.type===H.Document||E.type===H.Element)&&Ke){g.headWhitespace&&E.type===H.Element&&E.tagName==="head"&&(Q=!1);const V={doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:j,maskTextClass:l,maskTextSelector:a,skipChild:c,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m,inlineImages:d,recordCanvas:w,preserveWhiteSpace:Q,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:R,onStylesheetLoad:B,stylesheetLoadTimeout:U,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"&&(V.cssCaptured=!0);for(const Re of Array.from(Y.childNodes(s))){const le=$e(Re,V);le&&E.childNodes.push(le)}}let se=null;if(yn(s)&&(se=Y.shadowRoot(s))){const Re=Y.childNodes(se);for(let le=0;le<Re.length;le++){const Et=Re[le],fe=$e(Et,V);fe&&(ut(se)&&(fe.isShadow=!0),E.childNodes.push(fe))}}}const be=Y.parentNode(s);be&&lt(be)&&ut(be)&&(E.isShadow=!0),E.type===H.Element&&E.tagName==="iframe"&&$l(s,()=>{const V=s.contentDocument;if(V&&S){const se=$e(V,{doc:V,mirror:i,blockClass:n,blockSelector:o,needsMask:j,maskTextClass:l,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m,inlineImages:d,recordCanvas:w,preserveWhiteSpace:Q,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:R,onStylesheetLoad:B,stylesheetLoadTimeout:U,keepIframeSrcFn:G});se&&S(s,se)}},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"&&Sn(E.attributes.href)==="css")&&Nl(s,()=>{if(B){const V=$e(s,{doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:j,maskTextClass:l,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m,inlineImages:d,recordCanvas:w,preserveWhiteSpace:Q,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:R,onStylesheetLoad:B,stylesheetLoadTimeout:U,keepIframeSrcFn:G});V&&B(s,V)}},U),Ee.index++;const Ae=Date.now()-t;return s.nodeName in Ee.store||(Ee.store[s.nodeName]=[]),Ee.store[s.nodeName].push(Ae),Ee.index%5e3===0&&(Ee.index=0,Ee.store={}),E}function Pl(s,e){const{mirror:t=new bn,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:p=!1,dataURLOptions:g,preserveWhiteSpace:m,onSerialize:d,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:R,keepIframeSrcFn:B=()=>!1}=e||{};return $e(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:p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:p==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:p===!1?{}:p,dataURLOptions:g,inlineImages:a,recordCanvas:c,preserveWhiteSpace:m,onSerialize:d,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:R,keepIframeSrcFn:B,newlyAddedElement:!1})}function Fl(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Bl(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 Ds={exports:{}},C=String,On=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}};Ds.exports=On();Ds.exports.createColors=On;var zl=Ds.exports;const Ul={},Wl=Object.freeze(Object.defineProperty({__proto__:null,default:Ul},Symbol.toStringTag,{value:"Module"})),ie=Bl(Wl);let mi=zl,gi=ie,es=class An 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,An)}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=mi.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:f}=mi.createColors(!0);i=p=>u(f(p)),r=p=>h(p),gi&&(n=p=>gi(p))}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,p=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(u.length>160){let m=20,d=Math.max(0,this.column-m),w=Math.max(this.column+m,this.endColumn+m),b=u.slice(d,w),S=r(p.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+r(p)+n(b)+`
3
3
  `+S+i("^")}let g=r(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(p)+n(u)+`
4
4
  `+g+i("^")}return" "+r(p)+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 Ds=es;es.default=es;const wi={after:`
8
+ `),this.name+": "+this.message+e}};var Ps=es;es.default=es;const yi={after:`
9
9
  `,beforeClose:`
10
10
  `,beforeComment:`
11
11
  `,beforeDecl:`
12
12
  `,beforeOpen:" ",beforeRule:`
13
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function jl(s){return s[0].toUpperCase()+s.slice(1)}let ts=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 wi[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"+jl(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=wi[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 Gl(s){return s[0].toUpperCase()+s.slice(1)}let ts=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 yi[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"+Gl(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=yi[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 En=ts;ts.default=ts;let Vl=En;function rs(s,e){new Vl(e).stringify(s)}var Ar=rs;rs.default=rs;var xt={};xt.isClean=Symbol("isClean");xt.my=Symbol("my");let Hl=Ds,Yl=En,Zl=Ar,{isClean:et,my:Jl}=xt;function ss(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=>ss(o,t)):(n==="object"&&i!==null&&(i=ss(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 is=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[et]=!1,this[Jl]=!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=ss(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 Hl(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[et]=!0}markDirty(){if(this[et]){this[et]=!1;let e=this;for(;e=e.parent;)e[et]=!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 Yl().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=Zl){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 Or=is;is.default=is;let Xl=Or,ns=class extends Xl{constructor(e){super(e),this.type="comment"}};var Rr=ns;ns.default=ns;let Kl=Or,os=class extends Kl{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=te(M({},e),{value:String(e.value)})),super(e),this.type="decl"}};var Er=os;os.default=os;let $n=Rr,Nn=Er,ql=Or,{isClean:kn,my:Tn}=xt,Fs,_n,Ln,Bs;function Pn(s){return s.map(e=>(e.nodes&&(e.nodes=Pn(e.nodes)),delete e.source,e))}function Dn(s){if(s[kn]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)Dn(e)}let ye=class Fn extends ql{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=Pn(_n(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 Nn(e)]}else if(e.selector||e.selectors)e=[new Bs(e)];else if(e.name)e=[new Fs(e)];else if(e.text)e=[new $n(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Tn]||Fn.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[kn]&&Dn(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=>{_n=s};ye.registerRule=s=>{Bs=s};ye.registerAtRule=s=>{Fs=s};ye.registerRoot=s=>{Ln=s};var _e=ye;ye.default=ye;ye.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Fs.prototype):s.type==="rule"?Object.setPrototypeOf(s,Bs.prototype):s.type==="decl"?Object.setPrototypeOf(s,Nn.prototype):s.type==="comment"?Object.setPrototypeOf(s,$n.prototype):s.type==="root"&&Object.setPrototypeOf(s,Ln.prototype),s[Tn]=!0,s.nodes&&s.nodes.forEach(e=>{ye.rebuild(e)})};let Bn=_e,mr=class extends Bn{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 Us=mr;mr.default=mr;Bn.registerAtRule(mr);let Ql=_e,Un,zn,mt=class extends Ql{constructor(e){super(M({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Un(new zn,this,e).stringify()}};mt.registerLazyResult=s=>{Un=s};mt.registerProcessor=s=>{zn=s};var zs=mt;mt.default=mt;let eu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",tu=(s=21)=>{let e="",t=s|0;for(;t--;)e+=eu[Math.random()*64|0];return e};var ru={nanoid:tu};let{existsSync:su,readFileSync:iu}=ie,{dirname:Gr,join:nu}=ie,{SourceMapConsumer:bi,SourceMapGenerator:Si}=ie;function ou(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let as=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 bi(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 ou(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),su(e))return this.mapFile=e,iu(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 bi)return Si.fromSourceMap(t).toString();if(t instanceof Si)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=nu(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 Wn=as;as.default=as;let{nanoid:au}=ru,{isAbsolute:ls,resolve:us}=ie,{SourceMapConsumer:lu,SourceMapGenerator:uu}=ie,{fileURLToPath:Ci,pathToFileURL:Lt}=ie,vi=Ds,cu=Wn,jr=ie,Vr=Symbol("lineToIndexCache"),hu=!!(lu&&uu),Ii=!!(us&&ls);function xi(s){if(s[Vr])return s[Vr];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[Vr]=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&&(!Ii||/^\w+:\/\//.test(t.from)||ls(t.from)?this.file=t.from:this.file=us(t.from)),Ii&&hu){let r=new cu(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 "+au(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 p=this.fromOffset(a);t=p.line,r=p.col}else t=h.line,r=h.column,a=this.fromLineAndColumn(t,r);if(typeof f.offset=="number"){l=f.offset;let p=this.fromOffset(l);o=p.line,n=p.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 vi(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 vi(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&&(Lt&&(c.input.url=Lt(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return xi(this)[e-1]+t-1}fromOffset(e){let t=xi(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:us(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;ls(o.source)?a=Lt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Lt(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(Ci)c.file=Ci(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=M({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var $r=gr;gr.default=gr;jr&&jr.registerInput&&jr.registerInput(gr);let Gn=_e,jn,Vn,He=class extends Gn{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 jn(new Vn,this,e).stringify()}};He.registerLazyResult=s=>{jn=s};He.registerProcessor=s=>{Vn=s};var Mt=He;He.default=He;Gn.registerRoot(He);let gt={comma(s){return gt.split(s,[","],!0)},space(s){let e=[" ",`
23
- `," "];return gt.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 Hn=gt;gt.default=gt;let Yn=_e,fu=Hn,yr=class extends Yn{get selectors(){return fu.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 Ws=yr;yr.default=yr;Yn.registerRule(yr);let du=Us,pu=Rr,mu=Er,gu=$r,yu=Wn,wu=Mt,bu=Ws;function yt(s,e){if(Array.isArray(s))return s.map(o=>yt(o));let i=s,{inputs:t}=i,r=Pe(i,["inputs"]);if(t){e=[];for(let o of t){let l=te(M({},o),{__proto__:gu.prototype});l.map&&(l.map=te(M({},l.map),{__proto__:yu.prototype})),e.push(l)}}if(r.nodes&&(r.nodes=s.nodes.map(o=>yt(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 wu(r);if(r.type==="decl")return new mu(r);if(r.type==="rule")return new bu(r);if(r.type==="comment")return new pu(r);if(r.type==="atrule")return new du(r);throw new Error("Unknown node type: "+s.type)}var Su=yt;yt.default=yt;let{dirname:tr,relative:Zn,resolve:Jn,sep:Xn}=ie,{SourceMapConsumer:Kn,SourceMapGenerator:rr}=ie,{pathToFileURL:Mi}=ie,Cu=$r,vu=!!(Kn&&rr),Iu=!!(tr&&Jn&&Zn&&Xn),xu=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 Rn=ts;ts.default=ts;let jl=Rn;function rs(s,e){new jl(e).stringify(s)}var Rr=rs;rs.default=rs;var xt={};xt.isClean=Symbol("isClean");xt.my=Symbol("my");let Vl=Ps,Hl=Rn,Yl=Rr,{isClean:et,my:Zl}=xt;function ss(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=>ss(o,t)):(n==="object"&&i!==null&&(i=ss(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 is=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[et]=!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=ss(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 Vl(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[et]=!0}markDirty(){if(this[et]){this[et]=!1;let e=this;for(;e=e.parent;)e[et]=!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 Hl().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=Yl){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 Er=is;is.default=is;let Jl=Er,ns=class extends Jl{constructor(e){super(e),this.type="comment"}};var $r=ns;ns.default=ns;let Xl=Er,os=class extends Xl{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=ee(M({},e),{value:String(e.value)})),super(e),this.type="decl"}};var Nr=os;os.default=os;let En=$r,$n=Nr,Kl=Er,{isClean:Nn,my:kn}=xt,Fs,Tn,_n,Bs;function Ln(s){return s.map(e=>(e.nodes&&(e.nodes=Ln(e.nodes)),delete e.source,e))}function Dn(s){if(s[Nn]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)Dn(e)}let ye=class Pn extends Kl{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=Ln(Tn(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 $n(e)]}else if(e.selector||e.selectors)e=[new Bs(e)];else if(e.name)e=[new Fs(e)];else if(e.text)e=[new En(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[kn]||Pn.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Nn]&&Dn(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=>{Tn=s};ye.registerRule=s=>{Bs=s};ye.registerAtRule=s=>{Fs=s};ye.registerRoot=s=>{_n=s};var _e=ye;ye.default=ye;ye.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Fs.prototype):s.type==="rule"?Object.setPrototypeOf(s,Bs.prototype):s.type==="decl"?Object.setPrototypeOf(s,$n.prototype):s.type==="comment"?Object.setPrototypeOf(s,En.prototype):s.type==="root"&&Object.setPrototypeOf(s,_n.prototype),s[kn]=!0,s.nodes&&s.nodes.forEach(e=>{ye.rebuild(e)})};let Fn=_e,yr=class extends Fn{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 zs=yr;yr.default=yr;Fn.registerAtRule(yr);let ql=_e,Bn,zn,mt=class extends ql{constructor(e){super(M({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Bn(new zn,this,e).stringify()}};mt.registerLazyResult=s=>{Bn=s};mt.registerProcessor=s=>{zn=s};var Us=mt;mt.default=mt;let Ql="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",eu=(s=21)=>{let e="",t=s|0;for(;t--;)e+=Ql[Math.random()*64|0];return e};var tu={nanoid:eu};let{existsSync:ru,readFileSync:su}=ie,{dirname:jr,join:iu}=ie,{SourceMapConsumer:wi,SourceMapGenerator:bi}=ie;function nu(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let as=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=jr(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new wi(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 nu(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=jr(e),ru(e))return this.mapFile=e,su(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 wi)return bi.fromSourceMap(t).toString();if(t instanceof bi)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=iu(jr(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 Un=as;as.default=as;let{nanoid:ou}=tu,{isAbsolute:ls,resolve:us}=ie,{SourceMapConsumer:au,SourceMapGenerator:lu}=ie,{fileURLToPath:Si,pathToFileURL:Dt}=ie,Ci=Ps,uu=Un,Vr=ie,Hr=Symbol("lineToIndexCache"),cu=!!(au&&lu),vi=!!(us&&ls);function Ii(s){if(s[Hr])return s[Hr];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[Hr]=t,t}let wr=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&&(!vi||/^\w+:\/\//.test(t.from)||ls(t.from)?this.file=t.from:this.file=us(t.from)),vi&&cu){let r=new uu(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 "+ou(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 p=this.fromOffset(a);t=p.line,r=p.col}else t=h.line,r=h.column,a=this.fromLineAndColumn(t,r);if(typeof f.offset=="number"){l=f.offset;let p=this.fromOffset(l);o=p.line,n=p.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 Ci(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 Ci(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&&(Dt&&(c.input.url=Dt(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return Ii(this)[e-1]+t-1}fromOffset(e){let t=Ii(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:us(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;ls(o.source)?a=Dt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Dt(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(Si)c.file=Si(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=M({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var kr=wr;wr.default=wr;Vr&&Vr.registerInput&&Vr.registerInput(wr);let Wn=_e,Gn,jn,Ve=class extends Wn{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 Gn(new jn,this,e).stringify()}};Ve.registerLazyResult=s=>{Gn=s};Ve.registerProcessor=s=>{jn=s};var Mt=Ve;Ve.default=Ve;Wn.registerRoot(Ve);let gt={comma(s){return gt.split(s,[","],!0)},space(s){let e=[" ",`
23
+ `," "];return gt.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 Vn=gt;gt.default=gt;let Hn=_e,hu=Vn,br=class extends Hn{get selectors(){return hu.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 Ws=br;br.default=br;Hn.registerRule(br);let fu=zs,du=$r,pu=Nr,mu=kr,gu=Un,yu=Mt,wu=Ws;function yt(s,e){if(Array.isArray(s))return s.map(o=>yt(o));let i=s,{inputs:t}=i,r=De(i,["inputs"]);if(t){e=[];for(let o of t){let l=ee(M({},o),{__proto__:mu.prototype});l.map&&(l.map=ee(M({},l.map),{__proto__:gu.prototype})),e.push(l)}}if(r.nodes&&(r.nodes=s.nodes.map(o=>yt(o,e))),r.source){let n=r.source,{inputId:o}=n,l=De(n,["inputId"]);r.source=l,o!=null&&(r.source.input=e[o])}if(r.type==="root")return new yu(r);if(r.type==="decl")return new pu(r);if(r.type==="rule")return new wu(r);if(r.type==="comment")return new du(r);if(r.type==="atrule")return new fu(r);throw new Error("Unknown node type: "+s.type)}var bu=yt;yt.default=yt;let{dirname:sr,relative:Yn,resolve:Zn,sep:Jn}=ie,{SourceMapConsumer:Xn,SourceMapGenerator:ir}=ie,{pathToFileURL:xi}=ie,Su=kr,Cu=!!(Xn&&ir),vu=!!(sr&&Zn&&Yn&&Jn),Iu=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||tr(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Kn(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(),Iu&&vu&&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=rr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new rr({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 rr({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?tr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=tr(Jn(r,this.mapOpts.annotation)));let i=Zn(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 Cu(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(Mi){let r=Mi(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;Xn==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var qn=xu;const Hr=39,Ai=34,Pt=92,Oi=47,Dt=10,tt=32,Ft=12,Bt=9,Ut=13,Mu=91,Au=93,Ou=40,Ru=41,Eu=123,$u=125,Nu=59,ku=42,Tu=58,_u=64,zt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Wt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Lu=/.[\r\n"'(/\\]/,Ri=/[\da-f]/i;var Pu=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,o,l,a,c,u,h,f,p,g,m=r.length,d=0,w=[],b=[];function S(){return d}function R(L){throw e.error("Unclosed "+L,d)}function F(){return b.length===0&&d>=m}function W(L){if(b.length)return b.pop();if(d>=m)return;let K=L?L.ignoreUnclosed:!1;switch(n=r.charCodeAt(d),n){case Dt:case tt:case Bt:case Ut:case Ft:{a=d;do a+=1,n=r.charCodeAt(a);while(n===tt||n===Dt||n===Bt||n===Ut||n===Ft);u=["space",r.slice(d,a)],d=a-1;break}case Mu:case Au:case Eu:case $u:case Tu:case Nu:case Ru:{let j=String.fromCharCode(n);u=[j,j,d];break}case Ou:{if(g=w.length?w.pop()[1]:"",p=r.charCodeAt(d+1),g==="url"&&p!==Hr&&p!==Ai&&p!==tt&&p!==Dt&&p!==Bt&&p!==Ft&&p!==Ut){a=d;do{if(h=!1,a=r.indexOf(")",a+1),a===-1)if(i||K){a=d;break}else R("bracket");for(f=a;r.charCodeAt(f-1)===Pt;)f-=1,h=!h}while(h);u=["brackets",r.slice(d,a+1),d,a],d=a}else a=r.indexOf(")",d+1),o=r.slice(d,a+1),a===-1||Lu.test(o)?u=["(","(",d]:(u=["brackets",o,d,a],d=a);break}case Hr:case Ai:{c=n===Hr?"'":'"',a=d;do{if(h=!1,a=r.indexOf(c,a+1),a===-1)if(i||K){a=d+1;break}else R("string");for(f=a;r.charCodeAt(f-1)===Pt;)f-=1,h=!h}while(h);u=["string",r.slice(d,a+1),d,a],d=a;break}case _u:{zt.lastIndex=d+1,zt.test(r),zt.lastIndex===0?a=r.length-1:a=zt.lastIndex-2,u=["at-word",r.slice(d,a+1),d,a],d=a;break}case Pt:{for(a=d,l=!0;r.charCodeAt(a+1)===Pt;)a+=1,l=!l;if(n=r.charCodeAt(a+1),l&&n!==Oi&&n!==tt&&n!==Dt&&n!==Bt&&n!==Ut&&n!==Ft&&(a+=1,Ri.test(r.charAt(a)))){for(;Ri.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===tt&&(a+=1)}u=["word",r.slice(d,a+1),d,a],d=a;break}default:{n===Oi&&r.charCodeAt(d+1)===ku?(a=r.indexOf("*/",d+2)+1,a===0&&(i||K?a=r.length:R("comment")),u=["comment",r.slice(d,a+1),d,a],d=a):(Wt.lastIndex=d+1,Wt.test(r),Wt.lastIndex===0?a=r.length-1:a=Wt.lastIndex-2,u=["word",r.slice(d,a+1),d,a],w.push(u),d=a);break}}return d++,u}function G(L){b.push(L)}return{back:G,endOfFile:F,nextToken:W,position:S}};let Du=Us,Fu=Rr,Bu=Er,Uu=Mt,Ei=Ws,zu=Pu;const $i={empty:!0,space:!0};function Wu(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}let Gu=class{constructor(e){this.input=e,this.root=new Uu,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 Du;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 Fu;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=zu(this.input)}decl(e,t){let r=new Bu;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]||Wu(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 p=u[f][0];if(h.trim().startsWith("!")&&p!=="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 Ei;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",!$i[h]&&!$i[u]?a.slice(-1)===","?c=!1:a+=n[1]:c=!1):a+=n[1];if(!c){let f=r.reduce((p,g)=>p+g[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new Ei;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 ju=Gu;let Vu=_e,Hu=$r,Yu=ju;function wr(s,e){let t=new Hu(s,e),r=new Yu(t);try{r.parse()}catch(i){throw i}return r.root}var Gs=wr;wr.default=wr;Vu.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 Qn=cs;cs.default=cs;let Zu=Qn,hs=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 Zu(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var js=hs;hs.default=hs;let Ju=_e,Xu=zs,Ku=qn,qu=Gs,Ni=js,Qu=Mt,ec=Ar,{isClean:ue,my:tc}=xt;const rc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},sc={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},ic={Once:!0,postcssPlugin:!0,prepare:!0},Ye=0;function rt(s){return typeof s=="object"&&typeof s.then=="function"}function eo(s){let e=!1,t=rc[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 ki(s){let e;return s.type==="document"?e=["Document",Ye,"DocumentExit"]:s.type==="root"?e=["Root",Ye,"RootExit"]:e=eo(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function fs(s){return s[ue]=!1,s.nodes&&s.nodes.forEach(e=>fs(e)),s}let ds={},Ze=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=fs(t);else if(t instanceof to||t instanceof Ni)i=fs(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=qu;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[tc]&&Ju.rebuild(i)}this.result=new Ni(e,i,r),this.helpers=te(M({},ds),{postcss:ds,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?M(M({},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(!sc[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ic[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(rt(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=[ki(e)];for(;t.length>0;){let r=this.visitTick(t);if(rt(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 rt(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=ec;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Ku(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(rt(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(rt(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(ki(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=eo(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=>{ds=s};var ro=Ze;Ze.default=Ze;Qu.registerLazyResult(Ze);Xu.registerLazyResult(Ze);let nc=qn,oc=Gs;const ac=js;let lc=Ar;let ps=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=oc;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=lc;this.result=new ac(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new nc(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 uc=ps;ps.default=ps;let cc=zs,hc=ro,fc=uc,dc=Mt,wt=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 fc(this,e,t):new hc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var pc=wt;wt.default=wt;dc.registerProcessor(wt);cc.registerProcessor(wt);let so=Us,io=Rr,mc=_e,gc=Ds,no=Er,oo=zs,yc=Su,wc=$r,bc=ro,Sc=Hn,Cc=Or,vc=Gs,Vs=pc,Ic=js,ao=Mt,lo=Ws,xc=Ar,Mc=Qn;function N(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Vs(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||sr(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Xn(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(),vu&&Cu&&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,(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?sr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=sr(Zn(r,this.mapOpts.annotation)));let i=Yn(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 Su(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(xi){let r=xi(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;Jn==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Kn=Iu;const Yr=39,Mi=34,Pt=92,Oi=47,Ft=10,tt=32,Bt=12,zt=9,Ut=13,xu=91,Mu=93,Ou=40,Au=41,Ru=123,Eu=125,$u=59,Nu=42,ku=58,Tu=64,Wt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Gt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_u=/.[\r\n"'(/\\]/,Ai=/[\da-f]/i;var Lu=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,o,l,a,c,u,h,f,p,g,m=r.length,d=0,w=[],b=[];function S(){return d}function R(L){throw e.error("Unclosed "+L,d)}function B(){return b.length===0&&d>=m}function U(L){if(b.length)return b.pop();if(d>=m)return;let K=L?L.ignoreUnclosed:!1;switch(n=r.charCodeAt(d),n){case Ft:case tt:case zt:case Ut:case Bt:{a=d;do a+=1,n=r.charCodeAt(a);while(n===tt||n===Ft||n===zt||n===Ut||n===Bt);u=["space",r.slice(d,a)],d=a-1;break}case xu:case Mu:case Ru:case Eu:case ku:case $u:case Au:{let j=String.fromCharCode(n);u=[j,j,d];break}case Ou:{if(g=w.length?w.pop()[1]:"",p=r.charCodeAt(d+1),g==="url"&&p!==Yr&&p!==Mi&&p!==tt&&p!==Ft&&p!==zt&&p!==Bt&&p!==Ut){a=d;do{if(h=!1,a=r.indexOf(")",a+1),a===-1)if(i||K){a=d;break}else R("bracket");for(f=a;r.charCodeAt(f-1)===Pt;)f-=1,h=!h}while(h);u=["brackets",r.slice(d,a+1),d,a],d=a}else a=r.indexOf(")",d+1),o=r.slice(d,a+1),a===-1||_u.test(o)?u=["(","(",d]:(u=["brackets",o,d,a],d=a);break}case Yr:case Mi:{c=n===Yr?"'":'"',a=d;do{if(h=!1,a=r.indexOf(c,a+1),a===-1)if(i||K){a=d+1;break}else R("string");for(f=a;r.charCodeAt(f-1)===Pt;)f-=1,h=!h}while(h);u=["string",r.slice(d,a+1),d,a],d=a;break}case Tu:{Wt.lastIndex=d+1,Wt.test(r),Wt.lastIndex===0?a=r.length-1:a=Wt.lastIndex-2,u=["at-word",r.slice(d,a+1),d,a],d=a;break}case Pt:{for(a=d,l=!0;r.charCodeAt(a+1)===Pt;)a+=1,l=!l;if(n=r.charCodeAt(a+1),l&&n!==Oi&&n!==tt&&n!==Ft&&n!==zt&&n!==Ut&&n!==Bt&&(a+=1,Ai.test(r.charAt(a)))){for(;Ai.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===tt&&(a+=1)}u=["word",r.slice(d,a+1),d,a],d=a;break}default:{n===Oi&&r.charCodeAt(d+1)===Nu?(a=r.indexOf("*/",d+2)+1,a===0&&(i||K?a=r.length:R("comment")),u=["comment",r.slice(d,a+1),d,a],d=a):(Gt.lastIndex=d+1,Gt.test(r),Gt.lastIndex===0?a=r.length-1:a=Gt.lastIndex-2,u=["word",r.slice(d,a+1),d,a],w.push(u),d=a);break}}return d++,u}function G(L){b.push(L)}return{back:G,endOfFile:B,nextToken:U,position:S}};let Du=zs,Pu=$r,Fu=Nr,Bu=Mt,Ri=Ws,zu=Lu;const Ei={empty:!0,space:!0};function Uu(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}let Wu=class{constructor(e){this.input=e,this.root=new Bu,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 Du;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 Pu;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=zu(this.input)}decl(e,t){let r=new Fu;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]||Uu(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 p=u[f][0];if(h.trim().startsWith("!")&&p!=="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 Ri;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",!Ei[h]&&!Ei[u]?a.slice(-1)===","?c=!1:a+=n[1]:c=!1):a+=n[1];if(!c){let f=r.reduce((p,g)=>p+g[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new Ri;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 Gu=Wu;let ju=_e,Vu=kr,Hu=Gu;function Sr(s,e){let t=new Vu(s,e),r=new Hu(t);try{r.parse()}catch(i){throw i}return r.root}var Gs=Sr;Sr.default=Sr;ju.registerParse(Sr);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 qn=cs;cs.default=cs;let Yu=qn,hs=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 Yu(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var js=hs;hs.default=hs;let Zu=_e,Ju=Us,Xu=Kn,Ku=Gs,$i=js,qu=Mt,Qu=Rr,{isClean:ce,my:ec}=xt;const tc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rc={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},sc={Once:!0,postcssPlugin:!0,prepare:!0},He=0;function rt(s){return typeof s=="object"&&typeof s.then=="function"}function Qn(s){let e=!1,t=tc[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,He,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,He,t+"Exit"]:[t,t+"Exit"]}function Ni(s){let e;return s.type==="document"?e=["Document",He,"DocumentExit"]:s.type==="root"?e=["Root",He,"RootExit"]:e=Qn(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function fs(s){return s[ce]=!1,s.nodes&&s.nodes.forEach(e=>fs(e)),s}let ds={},Ye=class eo{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=fs(t);else if(t instanceof eo||t instanceof $i)i=fs(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=Ku;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[ec]&&Zu.rebuild(i)}this.result=new $i(e,i,r),this.helpers=ee(M({},ds),{postcss:ds,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?M(M({},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(!rc[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!sc[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(rt(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=[Ni(e)];for(;t.length>0;){let r=this.visitTick(t);if(rt(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 rt(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=Qu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Xu(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(rt(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(rt(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(Ni(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===He){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=Qn(e);for(let r of t)if(r===He)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()}};Ye.registerPostcss=s=>{ds=s};var to=Ye;Ye.default=Ye;qu.registerLazyResult(Ye);Ju.registerLazyResult(Ye);let ic=Kn,nc=Gs;const oc=js;let ac=Rr;let ps=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=nc;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=ac;this.result=new oc(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new ic(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 lc=ps;ps.default=ps;let uc=Us,cc=to,hc=lc,fc=Mt,wt=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 hc(this,e,t):new cc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var dc=wt;wt.default=wt;fc.registerProcessor(wt);uc.registerProcessor(wt);let ro=zs,so=$r,pc=_e,mc=Ps,io=Nr,no=Us,gc=bu,yc=kr,wc=to,bc=Vn,Sc=Er,Cc=Gs,Vs=dc,vc=js,oo=Mt,ao=Ws,Ic=Rr,xc=qn;function N(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Vs(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 Vs().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=xc;N.parse=vc;N.fromJSON=yc;N.list=Sc;N.comment=s=>new io(s);N.atRule=s=>new so(s);N.decl=s=>new no(s);N.rule=s=>new lo(s);N.root=s=>new ao(s);N.document=s=>new oo(s);N.CssSyntaxError=gc;N.Declaration=no;N.Container=mc;N.Processor=Vs;N.Document=oo;N.Comment=io;N.Warning=Mc;N.AtRule=so;N.Result=Ic;N.Input=wc;N.Rule=lo;N.Root=ao;N.Node=Cc;bc.registerPostcss(N);var Ac=N;N.default=N;const P=Bl(Ac);P.stringify;P.fromJSON;P.plugin;P.parse;P.list;P.document;P.comment;P.atRule;P.rule;P.decl;P.root;P.CssSyntaxError;P.Declaration;P.Container;P.Processor;P.Document;P.Comment;P.Warning;P.AtRule;P.Result;P.Input;P.Rule;P.Root;P.Node;var Oc=Object.defineProperty,Rc=(s,e,t)=>e in s?Oc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,re=(s,e,t)=>Rc(s,typeof e!="symbol"?e+"":e,t),Ec=Object.defineProperty,$c=(s,e,t)=>e in s?Ec(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,sr=(s,e,t)=>$c(s,typeof e!="symbol"?e+"":e,t);const Nc=()=>!("_rrweb_skip_re_fetching_to_suppress_cors_errors"in window&&window._rrweb_skip_re_fetching_to_suppress_cors_errors===!0);function kc(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 Tc(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 uo(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=>_c(i,t)).join("");return kc(r)}catch(e){return null}}function _c(s,e){if(Pc(s)){let t;try{t=uo(s.styleSheet)||Tc(s)}catch(r){t=s.cssText}return s.styleSheet.href?Ti(t,s.styleSheet.href):t}else{let t=s.cssText;return Dc(s)&&s.selectorText.includes(":")&&(t=Lc(t)),e?Ti(t,e):t}}function Lc(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function Pc(s){return"styleSheet"in s}function Dc(s){return"selectorText"in s}function Fc(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const Bc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Uc=/^(?:[a-z+]+:)?\/\//i,zc=/^www\..*/i,Wc=/^(data:)([^,]*),(.*)/i;function Ti(s,e){return(s||"").replace(Bc,(t,r,i,n,o,l)=>{const a=i||o||l,c=r||n||"";if(!a)return t;if(Uc.test(a)||zc.test(a))return`url(${c}${a}${c})`;if(Wc.test(a))return`url(${c}${a}${c})`;if(a[0]==="/")return`url(${c}${Fc(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 Gc=1e3*30,Fe="data-recapt-rrweb-link-cloned",jc=["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"],co=class ir{constructor(){if(sr(this,"currentHref",null),sr(this,"clones",{}),sr(this,"cleanTimeout",null),ir.instance)return ir.instance;ir.instance=this}removeCloneNode(e){var t;if(!(e in this.clones)||this.clones[e]===void 0)return;const r=document.querySelector(`link[${Fe}="${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=uo(r);if(this.removeCloneNode(e),!i)return;this.clones[e].cssText=i,this.clones[e].loaded=!0;const n=document.querySelector(`link[${Fe}="source-${this.clones[e].cloneNodeAttrId}"]`);n?(n.setAttribute("data-rrweb-mutation",Date.now().toString()),n.removeAttribute(Fe)):(this.clones[e].original.setAttribute("data-rrweb-mutation",Date.now().toString()),this.clones[e].original.removeAttribute(Fe)),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(){Yr.cleanTimeout=null,Yr.removeAllCloneElements()}blowCache(){this.removeAllCloneElements(),this.clones={}}requestClone({forElement:e,requestCssId:t}){if(!Nc())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&&jc.includes(a.trim().toLowerCase()))return}}const i=e.cloneNode(),n=Math.random().toString(36).slice(2);i.setAttribute("crossorigin","anonymous"),i.setAttribute(Fe,n),e.setAttribute(Fe,`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(Yr.onCleanTimeout,Gc)}getClonedCssTextIfAvailable(e){return e in this.clones&&this.clones[e]!==void 0&&this.clones[e].loaded===!0?this.clones[e].cssText:null}};sr(co,"instance");let Vc=co;const Yr=new Vc;function Hc(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Yc(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 Hs={exports:{}},v=String,ho=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}};Hs.exports=ho();Hs.exports.createColors=ho;var Zc=Hs.exports;const Jc={},Xc=Object.freeze(Object.defineProperty({__proto__:null,default:Jc},Symbol.toStringTag,{value:"Module"})),ne=Yc(Xc);let _i=Zc,Li=ne,ms=class fo 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,fo)}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=_i.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:f}=_i.createColors(!0);i=p=>u(f(p)),r=p=>h(p),Li&&(n=p=>Li(p))}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,p=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(u.length>160){let m=20,d=Math.max(0,this.column-m),w=Math.max(this.column+m,this.endColumn+m),b=u.slice(d,w),S=r(p.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+r(p)+n(b)+`
29
+ https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new Vs().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=Ic;N.parse=Cc;N.fromJSON=gc;N.list=bc;N.comment=s=>new so(s);N.atRule=s=>new ro(s);N.decl=s=>new io(s);N.rule=s=>new ao(s);N.root=s=>new oo(s);N.document=s=>new no(s);N.CssSyntaxError=mc;N.Declaration=io;N.Container=pc;N.Processor=Vs;N.Document=no;N.Comment=so;N.Warning=xc;N.AtRule=ro;N.Result=vc;N.Input=yc;N.Rule=ao;N.Root=oo;N.Node=Sc;wc.registerPostcss(N);var Mc=N;N.default=N;const D=Fl(Mc);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;var Oc=Object.defineProperty,Ac=(s,e,t)=>e in s?Oc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,te=(s,e,t)=>Ac(s,typeof e!="symbol"?e+"":e,t),Rc=Object.defineProperty,Ec=(s,e,t)=>e in s?Rc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,nr=(s,e,t)=>Ec(s,typeof e!="symbol"?e+"":e,t);const $c=()=>!("_rrweb_skip_re_fetching_to_suppress_cors_errors"in window&&window._rrweb_skip_re_fetching_to_suppress_cors_errors===!0);function Nc(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 kc(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 lo(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=>Tc(i,t)).join("");return Nc(r)}catch(e){return null}}function Tc(s,e){if(Lc(s)){let t;try{t=lo(s.styleSheet)||kc(s)}catch(r){t=s.cssText}return s.styleSheet.href?ki(t,s.styleSheet.href):t}else{let t=s.cssText;return Dc(s)&&s.selectorText.includes(":")&&(t=_c(t)),e?ki(t,e):t}}function _c(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function Lc(s){return"styleSheet"in s}function Dc(s){return"selectorText"in s}function Pc(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const Fc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Bc=/^(?:[a-z+]+:)?\/\//i,zc=/^www\..*/i,Uc=/^(data:)([^,]*),(.*)/i;function ki(s,e){return(s||"").replace(Fc,(t,r,i,n,o,l)=>{const a=i||o||l,c=r||n||"";if(!a)return t;if(Bc.test(a)||zc.test(a))return`url(${c}${a}${c})`;if(Uc.test(a))return`url(${c}${a}${c})`;if(a[0]==="/")return`url(${c}${Pc(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 Wc=1e3*30,Fe="data-recapt-rrweb-link-cloned",Gc=["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"],uo=class or{constructor(){if(nr(this,"currentHref",null),nr(this,"clones",{}),nr(this,"cleanTimeout",null),or.instance)return or.instance;or.instance=this}removeCloneNode(e){var t;if(!(e in this.clones)||this.clones[e]===void 0)return;const r=document.querySelector(`link[${Fe}="${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=lo(r);if(this.removeCloneNode(e),!i)return;this.clones[e].cssText=i,this.clones[e].loaded=!0;const n=document.querySelector(`link[${Fe}="source-${this.clones[e].cloneNodeAttrId}"]`);n?(n.setAttribute("data-rrweb-mutation",Date.now().toString()),n.removeAttribute(Fe)):(this.clones[e].original.setAttribute("data-rrweb-mutation",Date.now().toString()),this.clones[e].original.removeAttribute(Fe)),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(){Zr.cleanTimeout=null,Zr.removeAllCloneElements()}blowCache(){this.removeAllCloneElements(),this.clones={}}requestClone({forElement:e,requestCssId:t}){if(!$c())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&&Gc.includes(a.trim().toLowerCase()))return}}const i=e.cloneNode(),n=Math.random().toString(36).slice(2);i.setAttribute("crossorigin","anonymous"),i.setAttribute(Fe,n),e.setAttribute(Fe,`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(Zr.onCleanTimeout,Wc)}getClonedCssTextIfAvailable(e){return e in this.clones&&this.clones[e]!==void 0&&this.clones[e].loaded===!0?this.clones[e].cssText:null}};nr(uo,"instance");let jc=uo;const Zr=new jc;function Vc(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Hc(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 Hs={exports:{}},v=String,co=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}};Hs.exports=co();Hs.exports.createColors=co;var Yc=Hs.exports;const Zc={},Jc=Object.freeze(Object.defineProperty({__proto__:null,default:Zc},Symbol.toStringTag,{value:"Module"})),ne=Hc(Jc);let Ti=Yc,_i=ne,ms=class ho 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,ho)}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=Ti.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:f}=Ti.createColors(!0);i=p=>u(f(p)),r=p=>h(p),_i&&(n=p=>_i(p))}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,p=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(u.length>160){let m=20,d=Math.max(0,this.column-m),w=Math.max(this.column+m,this.endColumn+m),b=u.slice(d,w),S=r(p.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+r(p)+n(b)+`
30
30
  `+S+i("^")}let g=r(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(p)+n(u)+`
31
31
  `+g+i("^")}return" "+r(p)+n(u)}).join(`
32
32
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
33
33
 
34
34
  `+e+`
35
- `),this.name+": "+this.message+e}};var Ys=ms;ms.default=ms;const Pi={after:`
35
+ `),this.name+": "+this.message+e}};var Ys=ms;ms.default=ms;const Li={after:`
36
36
  `,beforeClose:`
37
37
  `,beforeComment:`
38
38
  `,beforeDecl:`
39
39
  `,beforeOpen:" ",beforeRule:`
40
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Kc(s){return s[0].toUpperCase()+s.slice(1)}let gs=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 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"+Kc(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(`
40
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Xc(s){return s[0].toUpperCase()+s.slice(1)}let gs=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 Li[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"+Xc(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=Li[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 po=gs;gs.default=gs;let qc=po;function ys(s,e){new qc(e).stringify(s)}var Nr=ys;ys.default=ys;var At={};At.isClean=Symbol("isClean");At.my=Symbol("my");let Qc=Ys,eh=po,th=Nr,{isClean:st,my:rh}=At;function ws(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=>ws(o,t)):(n==="object"&&i!==null&&(i=ws(i)),t[r]=i)}return t}function me(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 bs=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[st]=!1,this[rh]=!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=ws(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 Qc(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[st]=!0}markDirty(){if(this[st]){this[st]=!1;let e=this;for(;e=e.parent;)e[st]=!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(me(r,this.source.start),me(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=me(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:me(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:me(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let o=t.slice(me(t,this.source.start),me(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:me(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:me(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 eh().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=th){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 kr=bs;bs.default=bs;let sh=kr,Ss=class extends sh{constructor(e){super(e),this.type="comment"}};var Tr=Ss;Ss.default=Ss;let ih=kr,Cs=class extends ih{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=te(M({},e),{value:String(e.value)})),super(e),this.type="decl"}};var _r=Cs;Cs.default=Cs;let mo=Tr,go=_r,nh=kr,{isClean:yo,my:wo}=At,Zs,bo,So,Js;function Co(s){return s.map(e=>(e.nodes&&(e.nodes=Co(e.nodes)),delete e.source,e))}function vo(s){if(s[yo]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)vo(e)}let we=class Io extends nh{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=Co(bo(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 go(e)]}else if(e.selector||e.selectors)e=[new Js(e)];else if(e.name)e=[new Zs(e)];else if(e.text)e=[new mo(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[wo]||Io.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[yo]&&vo(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)}))}};we.registerParse=s=>{bo=s};we.registerRule=s=>{Js=s};we.registerAtRule=s=>{Zs=s};we.registerRoot=s=>{So=s};var Le=we;we.default=we;we.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Zs.prototype):s.type==="rule"?Object.setPrototypeOf(s,Js.prototype):s.type==="decl"?Object.setPrototypeOf(s,go.prototype):s.type==="comment"?Object.setPrototypeOf(s,mo.prototype):s.type==="root"&&Object.setPrototypeOf(s,So.prototype),s[wo]=!0,s.nodes&&s.nodes.forEach(e=>{we.rebuild(e)})};let xo=Le,br=class extends xo{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 Xs=br;br.default=br;xo.registerAtRule(br);let oh=Le,Mo,Ao,bt=class extends oh{constructor(e){super(M({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Mo(new Ao,this,e).stringify()}};bt.registerLazyResult=s=>{Mo=s};bt.registerProcessor=s=>{Ao=s};var Ks=bt;bt.default=bt;let ah="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",lh=(s=21)=>{let e="",t=s|0;for(;t--;)e+=ah[Math.random()*64|0];return e};var uh={nanoid:lh};let{existsSync:ch,readFileSync:hh}=ne,{dirname:Zr,join:fh}=ne,{SourceMapConsumer:Di,SourceMapGenerator:Fi}=ne;function dh(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let vs=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=Zr(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 dh(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=Zr(e),ch(e))return this.mapFile=e,hh(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 Fi.fromSourceMap(t).toString();if(t instanceof Fi)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=fh(Zr(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 Oo=vs;vs.default=vs;let{nanoid:ph}=uh,{isAbsolute:Is,resolve:xs}=ne,{SourceMapConsumer:mh,SourceMapGenerator:gh}=ne,{fileURLToPath:Bi,pathToFileURL:Gt}=ne,Ui=Ys,yh=Oo,Jr=ne,Xr=Symbol("lineToIndexCache"),wh=!!(mh&&gh),zi=!!(xs&&Is);function Wi(s){if(s[Xr])return s[Xr];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[Xr]=t,t}let Sr=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&&(!zi||/^\w+:\/\//.test(t.from)||Is(t.from)?this.file=t.from:this.file=xs(t.from)),zi&&wh){let r=new yh(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 "+ph(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 p=this.fromOffset(a);t=p.line,r=p.col}else t=h.line,r=h.column,a=this.fromLineAndColumn(t,r);if(typeof f.offset=="number"){l=f.offset;let p=this.fromOffset(l);o=p.line,n=p.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 Ui(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 Ui(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&&(Gt&&(c.input.url=Gt(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return Wi(this)[e-1]+t-1}fromOffset(e){let t=Wi(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:xs(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=Gt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Gt(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(Bi)c.file=Bi(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=M({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Lr=Sr;Sr.default=Sr;Jr&&Jr.registerInput&&Jr.registerInput(Sr);let Ro=Le,Eo,$o,Je=class extends Ro{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 Eo(new $o,this,e).stringify()}};Je.registerLazyResult=s=>{Eo=s};Je.registerProcessor=s=>{$o=s};var Ot=Je;Je.default=Je;Ro.registerRoot(Je);let St={comma(s){return St.split(s,[","],!0)},space(s){let e=[" ",`
50
- `," "];return St.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 No=St;St.default=St;let ko=Le,bh=No,Cr=class extends ko{get selectors(){return bh.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 qs=Cr;Cr.default=Cr;ko.registerRule(Cr);let Sh=Xs,Ch=Tr,vh=_r,Ih=Lr,xh=Oo,Mh=Ot,Ah=qs;function Ct(s,e){if(Array.isArray(s))return s.map(o=>Ct(o));let i=s,{inputs:t}=i,r=Pe(i,["inputs"]);if(t){e=[];for(let o of t){let l=te(M({},o),{__proto__:Ih.prototype});l.map&&(l.map=te(M({},l.map),{__proto__:xh.prototype})),e.push(l)}}if(r.nodes&&(r.nodes=s.nodes.map(o=>Ct(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 Mh(r);if(r.type==="decl")return new vh(r);if(r.type==="rule")return new Ah(r);if(r.type==="comment")return new Ch(r);if(r.type==="atrule")return new Sh(r);throw new Error("Unknown node type: "+s.type)}var Oh=Ct;Ct.default=Ct;let{dirname:nr,relative:To,resolve:_o,sep:Lo}=ne,{SourceMapConsumer:Po,SourceMapGenerator:or}=ne,{pathToFileURL:Gi}=ne,Rh=Lr,Eh=!!(Po&&or),$h=!!(nr&&_o&&To&&Lo),Nh=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 fo=gs;gs.default=gs;let Kc=fo;function ys(s,e){new Kc(e).stringify(s)}var Tr=ys;ys.default=ys;var Ot={};Ot.isClean=Symbol("isClean");Ot.my=Symbol("my");let qc=Ys,Qc=fo,eh=Tr,{isClean:st,my:th}=Ot;function ws(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=>ws(o,t)):(n==="object"&&i!==null&&(i=ws(i)),t[r]=i)}return t}function me(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 bs=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[st]=!1,this[th]=!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=ws(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 qc(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[st]=!0}markDirty(){if(this[st]){this[st]=!1;let e=this;for(;e=e.parent;)e[st]=!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(me(r,this.source.start),me(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=me(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:me(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:me(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let o=t.slice(me(t,this.source.start),me(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:me(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:me(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 Qc().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=eh){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 _r=bs;bs.default=bs;let rh=_r,Ss=class extends rh{constructor(e){super(e),this.type="comment"}};var Lr=Ss;Ss.default=Ss;let sh=_r,Cs=class extends sh{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=ee(M({},e),{value:String(e.value)})),super(e),this.type="decl"}};var Dr=Cs;Cs.default=Cs;let po=Lr,mo=Dr,ih=_r,{isClean:go,my:yo}=Ot,Zs,wo,bo,Js;function So(s){return s.map(e=>(e.nodes&&(e.nodes=So(e.nodes)),delete e.source,e))}function Co(s){if(s[go]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)Co(e)}let we=class vo extends ih{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=So(wo(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 mo(e)]}else if(e.selector||e.selectors)e=[new Js(e)];else if(e.name)e=[new Zs(e)];else if(e.text)e=[new po(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[yo]||vo.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[go]&&Co(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)}))}};we.registerParse=s=>{wo=s};we.registerRule=s=>{Js=s};we.registerAtRule=s=>{Zs=s};we.registerRoot=s=>{bo=s};var Le=we;we.default=we;we.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Zs.prototype):s.type==="rule"?Object.setPrototypeOf(s,Js.prototype):s.type==="decl"?Object.setPrototypeOf(s,mo.prototype):s.type==="comment"?Object.setPrototypeOf(s,po.prototype):s.type==="root"&&Object.setPrototypeOf(s,bo.prototype),s[yo]=!0,s.nodes&&s.nodes.forEach(e=>{we.rebuild(e)})};let Io=Le,Cr=class extends Io{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 Xs=Cr;Cr.default=Cr;Io.registerAtRule(Cr);let nh=Le,xo,Mo,bt=class extends nh{constructor(e){super(M({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new xo(new Mo,this,e).stringify()}};bt.registerLazyResult=s=>{xo=s};bt.registerProcessor=s=>{Mo=s};var Ks=bt;bt.default=bt;let oh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ah=(s=21)=>{let e="",t=s|0;for(;t--;)e+=oh[Math.random()*64|0];return e};var lh={nanoid:ah};let{existsSync:uh,readFileSync:ch}=ne,{dirname:Jr,join:hh}=ne,{SourceMapConsumer:Di,SourceMapGenerator:Pi}=ne;function fh(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let vs=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=Jr(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 fh(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=Jr(e),uh(e))return this.mapFile=e,ch(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 Pi.fromSourceMap(t).toString();if(t instanceof Pi)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=hh(Jr(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 Oo=vs;vs.default=vs;let{nanoid:dh}=lh,{isAbsolute:Is,resolve:xs}=ne,{SourceMapConsumer:ph,SourceMapGenerator:mh}=ne,{fileURLToPath:Fi,pathToFileURL:jt}=ne,Bi=Ys,gh=Oo,Xr=ne,Kr=Symbol("lineToIndexCache"),yh=!!(ph&&mh),zi=!!(xs&&Is);function Ui(s){if(s[Kr])return s[Kr];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[Kr]=t,t}let vr=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&&(!zi||/^\w+:\/\//.test(t.from)||Is(t.from)?this.file=t.from:this.file=xs(t.from)),zi&&yh){let r=new gh(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 "+dh(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 p=this.fromOffset(a);t=p.line,r=p.col}else t=h.line,r=h.column,a=this.fromLineAndColumn(t,r);if(typeof f.offset=="number"){l=f.offset;let p=this.fromOffset(l);o=p.line,n=p.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 Bi(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 Bi(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&&(jt&&(c.input.url=jt(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return Ui(this)[e-1]+t-1}fromOffset(e){let t=Ui(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:xs(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=jt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||jt(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(Fi)c.file=Fi(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=M({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Pr=vr;vr.default=vr;Xr&&Xr.registerInput&&Xr.registerInput(vr);let Ao=Le,Ro,Eo,Ze=class extends Ao{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 Ro(new Eo,this,e).stringify()}};Ze.registerLazyResult=s=>{Ro=s};Ze.registerProcessor=s=>{Eo=s};var At=Ze;Ze.default=Ze;Ao.registerRoot(Ze);let St={comma(s){return St.split(s,[","],!0)},space(s){let e=[" ",`
50
+ `," "];return St.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 $o=St;St.default=St;let No=Le,wh=$o,Ir=class extends No{get selectors(){return wh.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 qs=Ir;Ir.default=Ir;No.registerRule(Ir);let bh=Xs,Sh=Lr,Ch=Dr,vh=Pr,Ih=Oo,xh=At,Mh=qs;function Ct(s,e){if(Array.isArray(s))return s.map(o=>Ct(o));let i=s,{inputs:t}=i,r=De(i,["inputs"]);if(t){e=[];for(let o of t){let l=ee(M({},o),{__proto__:vh.prototype});l.map&&(l.map=ee(M({},l.map),{__proto__:Ih.prototype})),e.push(l)}}if(r.nodes&&(r.nodes=s.nodes.map(o=>Ct(o,e))),r.source){let n=r.source,{inputId:o}=n,l=De(n,["inputId"]);r.source=l,o!=null&&(r.source.input=e[o])}if(r.type==="root")return new xh(r);if(r.type==="decl")return new Ch(r);if(r.type==="rule")return new Mh(r);if(r.type==="comment")return new Sh(r);if(r.type==="atrule")return new bh(r);throw new Error("Unknown node type: "+s.type)}var Oh=Ct;Ct.default=Ct;let{dirname:ar,relative:ko,resolve:To,sep:_o}=ne,{SourceMapConsumer:Lo,SourceMapGenerator:lr}=ne,{pathToFileURL:Wi}=ne,Ah=Pr,Rh=!!(Lo&&lr),Eh=!!(ar&&To&&ko&&_o),$h=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||nr(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Po(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(),$h&&Eh&&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=or.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new or({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 or({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?nr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=nr(_o(r,this.mapOpts.annotation)));let i=To(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 Rh(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(Gi){let r=Gi(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;Lo==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Do=Nh;const Kr=39,ji=34,jt=92,Vi=47,Vt=10,it=32,Ht=12,Yt=9,Zt=13,kh=91,Th=93,_h=40,Lh=41,Ph=123,Dh=125,Fh=59,Bh=42,Uh=58,zh=64,Jt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Xt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Wh=/.[\r\n"'(/\\]/,Hi=/[\da-f]/i;var Gh=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,o,l,a,c,u,h,f,p,g,m=r.length,d=0,w=[],b=[];function S(){return d}function R(L){throw e.error("Unclosed "+L,d)}function F(){return b.length===0&&d>=m}function W(L){if(b.length)return b.pop();if(d>=m)return;let K=L?L.ignoreUnclosed:!1;switch(n=r.charCodeAt(d),n){case Vt:case it:case Yt:case Zt:case Ht:{a=d;do a+=1,n=r.charCodeAt(a);while(n===it||n===Vt||n===Yt||n===Zt||n===Ht);u=["space",r.slice(d,a)],d=a-1;break}case kh:case Th:case Ph:case Dh:case Uh:case Fh:case Lh:{let j=String.fromCharCode(n);u=[j,j,d];break}case _h:{if(g=w.length?w.pop()[1]:"",p=r.charCodeAt(d+1),g==="url"&&p!==Kr&&p!==ji&&p!==it&&p!==Vt&&p!==Yt&&p!==Ht&&p!==Zt){a=d;do{if(h=!1,a=r.indexOf(")",a+1),a===-1)if(i||K){a=d;break}else R("bracket");for(f=a;r.charCodeAt(f-1)===jt;)f-=1,h=!h}while(h);u=["brackets",r.slice(d,a+1),d,a],d=a}else a=r.indexOf(")",d+1),o=r.slice(d,a+1),a===-1||Wh.test(o)?u=["(","(",d]:(u=["brackets",o,d,a],d=a);break}case Kr:case ji:{c=n===Kr?"'":'"',a=d;do{if(h=!1,a=r.indexOf(c,a+1),a===-1)if(i||K){a=d+1;break}else R("string");for(f=a;r.charCodeAt(f-1)===jt;)f-=1,h=!h}while(h);u=["string",r.slice(d,a+1),d,a],d=a;break}case zh:{Jt.lastIndex=d+1,Jt.test(r),Jt.lastIndex===0?a=r.length-1:a=Jt.lastIndex-2,u=["at-word",r.slice(d,a+1),d,a],d=a;break}case jt:{for(a=d,l=!0;r.charCodeAt(a+1)===jt;)a+=1,l=!l;if(n=r.charCodeAt(a+1),l&&n!==Vi&&n!==it&&n!==Vt&&n!==Yt&&n!==Zt&&n!==Ht&&(a+=1,Hi.test(r.charAt(a)))){for(;Hi.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===it&&(a+=1)}u=["word",r.slice(d,a+1),d,a],d=a;break}default:{n===Vi&&r.charCodeAt(d+1)===Bh?(a=r.indexOf("*/",d+2)+1,a===0&&(i||K?a=r.length:R("comment")),u=["comment",r.slice(d,a+1),d,a],d=a):(Xt.lastIndex=d+1,Xt.test(r),Xt.lastIndex===0?a=r.length-1:a=Xt.lastIndex-2,u=["word",r.slice(d,a+1),d,a],w.push(u),d=a);break}}return d++,u}function G(L){b.push(L)}return{back:G,endOfFile:F,nextToken:W,position:S}};let jh=Xs,Vh=Tr,Hh=_r,Yh=Ot,Yi=qs,Zh=Gh;const Zi={empty:!0,space:!0};function Jh(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}let Xh=class{constructor(e){this.input=e,this.root=new Yh,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 jh;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 Vh;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=Zh(this.input)}decl(e,t){let r=new Hh;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]||Jh(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 p=u[f][0];if(h.trim().startsWith("!")&&p!=="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 Yi;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",!Zi[h]&&!Zi[u]?a.slice(-1)===","?c=!1:a+=n[1]:c=!1):a+=n[1];if(!c){let f=r.reduce((p,g)=>p+g[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new Yi;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 Kh=Xh;let qh=Le,Qh=Lr,ef=Kh;function vr(s,e){let t=new Qh(s,e),r=new ef(t);try{r.parse()}catch(i){throw i}return r.root}var Qs=vr;vr.default=vr;qh.registerParse(vr);let Ms=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 Fo=Ms;Ms.default=Ms;let tf=Fo,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 tf(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var ei=As;As.default=As;let rf=Le,sf=Ks,nf=Do,of=Qs,Ji=ei,af=Ot,lf=Nr,{isClean:ce,my:uf}=At;const cf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},hf={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},ff={Once:!0,postcssPlugin:!0,prepare:!0},Xe=0;function nt(s){return typeof s=="object"&&typeof s.then=="function"}function Bo(s){let e=!1,t=cf[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 Xi(s){let e;return s.type==="document"?e=["Document",Xe,"DocumentExit"]:s.type==="root"?e=["Root",Xe,"RootExit"]:e=Bo(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function Os(s){return s[ce]=!1,s.nodes&&s.nodes.forEach(e=>Os(e)),s}let Rs={},Ke=class Uo{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=Os(t);else if(t instanceof Uo||t instanceof Ji)i=Os(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=of;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[uf]&&rf.rebuild(i)}this.result=new Ji(e,i,r),this.helpers=te(M({},Rs),{postcss:Rs,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?M(M({},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(!hf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ff[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(nt(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=[Xi(e)];for(;t.length>0;){let r=this.visitTick(t);if(nt(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 nt(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=lf;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new nf(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(nt(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(nt(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(Xi(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=Bo(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=>{Rs=s};var zo=Ke;Ke.default=Ke;af.registerLazyResult(Ke);sf.registerLazyResult(Ke);let df=Do,pf=Qs;const mf=ei;let gf=Nr;let Es=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=pf;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=gf;this.result=new mf(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new df(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 yf=Es;Es.default=Es;let wf=Ks,bf=zo,Sf=yf,Cf=Ot,vt=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 Sf(this,e,t):new bf(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var vf=vt;vt.default=vt;Cf.registerProcessor(vt);wf.registerProcessor(vt);let Wo=Xs,Go=Tr,If=Le,xf=Ys,jo=_r,Vo=Ks,Mf=Oh,Af=Lr,Of=zo,Rf=No,Ef=kr,$f=Qs,ti=vf,Nf=ei,Ho=Ot,Yo=qs,kf=Nr,Tf=Fo;function k(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new ti(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||ar(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Lo(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(),Eh&&Rh&&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=lr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new lr({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 lr({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?ar(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=ar(To(r,this.mapOpts.annotation)));let i=ko(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 Ah(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(Wi){let r=Wi(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;_o==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Do=$h;const qr=39,Gi=34,Vt=92,ji=47,Ht=10,it=32,Yt=12,Zt=9,Jt=13,Nh=91,kh=93,Th=40,_h=41,Lh=123,Dh=125,Ph=59,Fh=42,Bh=58,zh=64,Xt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Kt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Uh=/.[\r\n"'(/\\]/,Vi=/[\da-f]/i;var Wh=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,o,l,a,c,u,h,f,p,g,m=r.length,d=0,w=[],b=[];function S(){return d}function R(L){throw e.error("Unclosed "+L,d)}function B(){return b.length===0&&d>=m}function U(L){if(b.length)return b.pop();if(d>=m)return;let K=L?L.ignoreUnclosed:!1;switch(n=r.charCodeAt(d),n){case Ht:case it:case Zt:case Jt:case Yt:{a=d;do a+=1,n=r.charCodeAt(a);while(n===it||n===Ht||n===Zt||n===Jt||n===Yt);u=["space",r.slice(d,a)],d=a-1;break}case Nh:case kh:case Lh:case Dh:case Bh:case Ph:case _h:{let j=String.fromCharCode(n);u=[j,j,d];break}case Th:{if(g=w.length?w.pop()[1]:"",p=r.charCodeAt(d+1),g==="url"&&p!==qr&&p!==Gi&&p!==it&&p!==Ht&&p!==Zt&&p!==Yt&&p!==Jt){a=d;do{if(h=!1,a=r.indexOf(")",a+1),a===-1)if(i||K){a=d;break}else R("bracket");for(f=a;r.charCodeAt(f-1)===Vt;)f-=1,h=!h}while(h);u=["brackets",r.slice(d,a+1),d,a],d=a}else a=r.indexOf(")",d+1),o=r.slice(d,a+1),a===-1||Uh.test(o)?u=["(","(",d]:(u=["brackets",o,d,a],d=a);break}case qr:case Gi:{c=n===qr?"'":'"',a=d;do{if(h=!1,a=r.indexOf(c,a+1),a===-1)if(i||K){a=d+1;break}else R("string");for(f=a;r.charCodeAt(f-1)===Vt;)f-=1,h=!h}while(h);u=["string",r.slice(d,a+1),d,a],d=a;break}case zh:{Xt.lastIndex=d+1,Xt.test(r),Xt.lastIndex===0?a=r.length-1:a=Xt.lastIndex-2,u=["at-word",r.slice(d,a+1),d,a],d=a;break}case Vt:{for(a=d,l=!0;r.charCodeAt(a+1)===Vt;)a+=1,l=!l;if(n=r.charCodeAt(a+1),l&&n!==ji&&n!==it&&n!==Ht&&n!==Zt&&n!==Jt&&n!==Yt&&(a+=1,Vi.test(r.charAt(a)))){for(;Vi.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===it&&(a+=1)}u=["word",r.slice(d,a+1),d,a],d=a;break}default:{n===ji&&r.charCodeAt(d+1)===Fh?(a=r.indexOf("*/",d+2)+1,a===0&&(i||K?a=r.length:R("comment")),u=["comment",r.slice(d,a+1),d,a],d=a):(Kt.lastIndex=d+1,Kt.test(r),Kt.lastIndex===0?a=r.length-1:a=Kt.lastIndex-2,u=["word",r.slice(d,a+1),d,a],w.push(u),d=a);break}}return d++,u}function G(L){b.push(L)}return{back:G,endOfFile:B,nextToken:U,position:S}};let Gh=Xs,jh=Lr,Vh=Dr,Hh=At,Hi=qs,Yh=Wh;const Yi={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 Jh=class{constructor(e){this.input=e,this.root=new Hh,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 Gh;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 jh;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=Yh(this.input)}decl(e,t){let r=new Vh;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 p=u[f][0];if(h.trim().startsWith("!")&&p!=="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 Hi;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",!Yi[h]&&!Yi[u]?a.slice(-1)===","?c=!1:a+=n[1]:c=!1):a+=n[1];if(!c){let f=r.reduce((p,g)=>p+g[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new Hi;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 Xh=Jh;let Kh=Le,qh=Pr,Qh=Xh;function xr(s,e){let t=new qh(s,e),r=new Qh(t);try{r.parse()}catch(i){throw i}return r.root}var Qs=xr;xr.default=xr;Kh.registerParse(xr);let Ms=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 Po=Ms;Ms.default=Ms;let ef=Po,Os=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 ef(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var ei=Os;Os.default=Os;let tf=Le,rf=Ks,sf=Do,nf=Qs,Zi=ei,of=At,af=Tr,{isClean:he,my:lf}=Ot;const uf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},cf={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},hf={Once:!0,postcssPlugin:!0,prepare:!0},Je=0;function nt(s){return typeof s=="object"&&typeof s.then=="function"}function Fo(s){let e=!1,t=uf[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,Je,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,Je,t+"Exit"]:[t,t+"Exit"]}function Ji(s){let e;return s.type==="document"?e=["Document",Je,"DocumentExit"]:s.type==="root"?e=["Root",Je,"RootExit"]:e=Fo(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function As(s){return s[he]=!1,s.nodes&&s.nodes.forEach(e=>As(e)),s}let Rs={},Xe=class Bo{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 Bo||t instanceof Zi)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=nf;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[lf]&&tf.rebuild(i)}this.result=new Zi(e,i,r),this.helpers=ee(M({},Rs),{postcss:Rs,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?M(M({},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(!cf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!hf[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(nt(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[he];){e[he]=!0;let t=[Ji(e)];for(;t.length>0;){let r=this.visitTick(t);if(nt(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 nt(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=af;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new sf(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(nt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[he];)e[he]=!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(nt(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[he]){l[he]=!0,e.push(Ji(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===Je){r.nodes&&r.nodes.length&&(r[he]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[he]=!0;let t=Fo(e);for(let r of t)if(r===Je)e.nodes&&e.each(i=>{i[he]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Xe.registerPostcss=s=>{Rs=s};var zo=Xe;Xe.default=Xe;of.registerLazyResult(Xe);rf.registerLazyResult(Xe);let ff=Do,df=Qs;const pf=ei;let mf=Tr;let Es=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=df;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=mf;this.result=new pf(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new ff(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 gf=Es;Es.default=Es;let yf=Ks,wf=zo,bf=gf,Sf=At,vt=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 bf(this,e,t):new wf(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Cf=vt;vt.default=vt;Sf.registerProcessor(vt);yf.registerProcessor(vt);let Uo=Xs,Wo=Lr,vf=Le,If=Ys,Go=Dr,jo=Ks,xf=Oh,Mf=Pr,Of=zo,Af=$o,Rf=_r,Ef=Qs,ti=Cf,$f=ei,Vo=At,Ho=qs,Nf=Tr,kf=Po;function k(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new ti(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 ti().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=kf;k.parse=$f;k.fromJSON=Mf;k.list=Rf;k.comment=s=>new Go(s);k.atRule=s=>new Wo(s);k.decl=s=>new jo(s);k.rule=s=>new Yo(s);k.root=s=>new Ho(s);k.document=s=>new Vo(s);k.CssSyntaxError=xf;k.Declaration=jo;k.Container=If;k.Processor=ti;k.Document=Vo;k.Comment=Go;k.Warning=Tf;k.AtRule=Wo;k.Result=Nf;k.Input=Af;k.Rule=Yo;k.Root=Ho;k.Node=Ef;Of.registerPostcss(k);var _f=k;k.default=k;const D=Hc(_f);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 ri{constructor(...e){re(this,"parentElement",null),re(this,"parentNode",null),re(this,"ownerDocument"),re(this,"firstChild",null),re(this,"lastChild",null),re(this,"previousSibling",null),re(this,"nextSibling",null),re(this,"ELEMENT_NODE",1),re(this,"TEXT_NODE",3),re(this,"nodeType"),re(this,"nodeName"),re(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 ri){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 J(s,e,t=document){const r={capture:!0,passive:!0};return t.addEventListener(s,e,r),()=>t.removeEventListener(s,e,r)}const Ue=`Please stop import mirror directly. Instead of that,\r
56
+ https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new ti().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=Nf;k.parse=Ef;k.fromJSON=xf;k.list=Af;k.comment=s=>new Wo(s);k.atRule=s=>new Uo(s);k.decl=s=>new Go(s);k.rule=s=>new Ho(s);k.root=s=>new Vo(s);k.document=s=>new jo(s);k.CssSyntaxError=If;k.Declaration=Go;k.Container=vf;k.Processor=ti;k.Document=jo;k.Comment=Wo;k.Warning=kf;k.AtRule=Uo;k.Result=$f;k.Input=Mf;k.Rule=Ho;k.Root=Vo;k.Node=Rf;Of.registerPostcss(k);var Tf=k;k.default=k;const P=Vc(Tf);P.stringify;P.fromJSON;P.plugin;P.parse;P.list;P.document;P.comment;P.atRule;P.rule;P.decl;P.root;P.CssSyntaxError;P.Declaration;P.Container;P.Processor;P.Document;P.Comment;P.Warning;P.AtRule;P.Result;P.Input;P.Rule;P.Root;P.Node;class ri{constructor(...e){te(this,"parentElement",null),te(this,"parentNode",null),te(this,"ownerDocument"),te(this,"firstChild",null),te(this,"lastChild",null),te(this,"previousSibling",null),te(this,"nextSibling",null),te(this,"ELEMENT_NODE",1),te(this,"TEXT_NODE",3),te(this,"nodeType"),te(this,"nodeName"),te(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 ri){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 J(s,e,t=document){const r={capture:!0,passive:!0};return t.addEventListener(s,e,r),()=>t.removeEventListener(s,e,r)}const ze=`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 Ki={map:{},getId(){return console.error(Ue),-1},getNode(){return console.error(Ue),null},removeNodeFromMap(){console.error(Ue)},has(){return console.error(Ue),!1},reset(){console.error(Ue)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Ki=new Proxy(Ki,{get(s,e,t){return e==="map"&&console.error(Ue),Reflect.get(s,e,t)}}));function It(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 Pr(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)}}),()=>Pr(s,e,n||{},!0)}let Ir=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Ir=()=>new Date().getTime());function Zo(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 Xo(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ko(s){return s?s.nodeType===s.ELEMENT_NODE?s:I.parentElement(s):null}function X(s,e,t,r){if(!s)return!1;const i=Ko(s);if(!i)return!1;try{if(typeof e=="string"){if(i.classList.contains(e)||r&&i.closest("."+e)!==null)return!0}else if(pr(i,e,r))return!0}catch(n){}return!!(t&&(i.matches(t)||r&&i.closest(t)!==null))}function Lf(s,e){return e.getId(s)!==-1}function qr(s,e,t){return s.tagName==="TITLE"&&t.headTitleMutations?!0:e.getId(s)===pt}function qo(s,e){if(at(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?qo(r,e):!0}function $s(s){return!!s.changedTouches}function Pf(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 Qo(s,e){return!!(s.nodeName==="IFRAME"&&e.getMeta(s))}function ea(s,e){return!!(s.nodeName==="LINK"&&s.nodeType===s.ELEMENT_NODE&&s.getAttribute&&s.getAttribute("rel")==="stylesheet"&&e.getMeta(s))}function Ns(s){return s?s instanceof ri&&"shadowRoot"in s?!!s.shadowRoot:!!I.shadowRoot(s):!1}class Df{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 ta(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 Ff(s){let e=s,t;for(;t=ta(e);)e=t;return e}function Bf(s){const e=s.ownerDocument;if(!e)return!1;const t=Ff(s);return I.contains(e,t)}function ra(s){const e=s.ownerDocument;return e?I.contains(e,s)||Bf(s):!1}const ct=()=>"_rrweb_is_debug"in window&&window._rrweb_is_debug?window._rrweb_is_debug:!1,Z=(...s)=>{ct()&&console.log("[recapt:rrweb]",...s)},qi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function si(s=8){let e="";for(let t=0;t<s;t++)e+=qi.charAt(Math.floor(Math.random()*qi.length));return e}let ht;function Uf(s){ht=s}function zf(){ht=void 0}const A=s=>ht?(...t)=>{try{return s(...t)}catch(r){if(ht&&ht(r)===!0)return;throw r}}:s;class Qi{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 Wf{constructor(e){y(this,"iframes",new WeakMap),y(this,"crossOriginIframeMap",new WeakMap),y(this,"crossOriginIframeMirror",new Qi(In)),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 Qi(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!==fn.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,t)})}}const sa=class ar{constructor(){if(y(this,"docsObservers",new WeakMap),y(this,"shadowRootsObserved",new WeakMap),ar.instance)return ar.instance;ar.instance=this}canObserveDoc(e){return!this.docsObservers.has(e)}canObserveShadowRoot(e){return!this.shadowRootsObserved.has(e)}observerAttached(e,t){if(Z("[doc] attaching observer to doc",e),this.docsObservers.has(e)){Z("[doc] detected existing observer, cleaning up old observer");const r=this.docsObservers.get(e);r==null||r()}this.docsObservers.set(e,t)}observerAttachedToShadow(e,t){if(Z("[shadow] attaching observer to shadowRoot",e),this.shadowRootsObserved.has(e)){Z("[shadow] detected existing observer, cleaning up old observer");const r=this.shadowRootsObserved.get(e);r==null||r()}this.shadowRootsObserved.set(e,t)}destroy(){this.docsObservers=new WeakMap,this.shadowRootsObserved=new WeakMap}};y(sa,"instance");let Gf=sa;const ft=new Gf,ia=class lr{constructor(){if(y(this,"mutTracker"),y(this,"exitMutTracker"),y(this,"interval",50),y(this,"exitInterval",100),y(this,"mutThreshold",100),y(this,"inGlobalStorm",!1),y(this,"currentStormStartedAt",-1),y(this,"stormTimeLimit",5e3),y(this,"debounceTimeout",null),y(this,"debounceTimeoutMs",250),y(this,"handleStormFinishMethods",{}),lr.instance)return lr.instance;lr.instance=this,Z("MutationRateLimiter, init"),this.reset()}resetTracker(){this.mutTracker={muts:0,ts:-1}}resetExitTracker(){this.exitMutTracker={muts:0,requested:-1}}reset(){this.resetTracker(),this.resetExitTracker(),this.currentStormStartedAt=-1}stormStopped(e){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.inGlobalStorm=!1,this.reset();for(const[t,r]of Object.entries(this.handleStormFinishMethods))t!==e&&r();this.handleStormFinishMethods={}}handleStormExit(e,t){const r=Date.now();if(this.exitMutTracker.requested===-1)this.exitMutTracker={requested:r,muts:e};else if(this.exitMutTracker.muts+=e,r-this.exitMutTracker.requested>this.exitInterval)return this.exitMutTracker.muts>=this.mutThreshold?(Z("MutationRateLimiter, exit cooldown failed, continuing with storm",{mutTracker:this.mutTracker,exitMutTracker:this.exitMutTracker}),this.mutTracker.ts=r,this.mutTracker.muts+=this.exitMutTracker.muts,this.resetExitTracker(),!0):(Z("MutationRateLimiter, detected global storm exit.",{mutTracker:this.mutTracker,exitMutTracker:this.exitMutTracker}),this.stormStopped(t),!1);return!0}isInGlobalStorm(){return this.inGlobalStorm}doDebounce(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.inGlobalStorm&&(this.debounceTimeout=setTimeout(()=>{this.debounceTimeout=null,Z("MutationRateLimiter, stopping storm because of debounce"),this.stormStopped()},this.debounceTimeoutMs))}isStorming(e,t){t.bufId in this.handleStormFinishMethods||(this.handleStormFinishMethods[t.bufId]=t.handleStormFinish.bind(t));const r=Date.now();if(this.inGlobalStorm)return this.doDebounce(),r-this.currentStormStartedAt>this.stormTimeLimit?(Z("MutationRateLimiter, storm time limit reached, stopping storm"),this.stormStopped(t.bufId),!1):r-this.mutTracker.ts>this.interval?this.handleStormExit(e,t.bufId):(this.mutTracker.muts+=e,this.mutTracker.ts=r,!0);if(this.mutTracker.ts===-1)this.mutTracker.muts=e;else if(r-this.mutTracker.ts<=this.interval&&(this.mutTracker.muts+=e,this.mutTracker.muts>=this.mutThreshold))return this.inGlobalStorm=!0,Z("MutationRateLimiter, detected global rolling storm"),this.currentStormStartedAt=r,this.doDebounce(),!0;return this.mutTracker.ts=r,!1}};y(ia,"instance");let jf=ia;const en=new jf,na=class ur{constructor(){if(y(this,"lastFullSnapshot",-1),y(this,"intervalBetweenSnapshots",150),y(this,"debounceTimeout",null),y(this,"debounceTime",10),ur.instance)return ur.instance;ur.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){Z("StormSnapshotManager, takeSnapshot: too soon");return}Z("StormSnapshotManager, takeSnapshot: taking full snapshot"),vd(),this.lastFullSnapshot=Date.now()}};y(na,"instance");let Vf=na;const Hf=new Vf;function tn(s){return"__ln"in s}class Yf{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&&tn(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&&tn(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 rn=(s,e)=>`${s}@${e}`;class Zf{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",si()),y(this,"stormBatches",[]),y(this,"stormInfo",null),y(this,"stormSettings",{batchSize:50,timeout:50,mutationLimit:800}),y(this,"debounceStormFinish",()=>{this.stormInfo&&(en.isInGlobalStorm()||(this.stormInfo.timeout=setTimeout(this.handleStormFinish,this.stormSettings.timeout)))}),y(this,"handleStormMutations",(e,t=!0)=>{const r=Date.now();this.stormInfo==null&&(Z("detected probable mutation storm start","buffer id:",this.bufId),this.stormInfo={startedAt:r,totalMutations:0,stormExceededLimit:!1},t&&this.debounceStormFinish()),this.stormInfo.totalMutations+=e.length,this.stormInfo.totalMutations>=this.stormSettings.mutationLimit?(this.stormInfo.stormExceededLimit=!0,this.stormBatches=[]):this.stormBatches.push({ts:r,mutations:e}),clearTimeout(this.stormInfo.timeout),t&&e.length<this.stormSettings.batchSize?this.handleStormFinish():this.debounceStormFinish()}),y(this,"handleStormFinish",()=>{if(!this.stormInfo)return;const{stormExceededLimit:e}=this.stormInfo;if(Z("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=[],Hf.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(!t){if(en.isStorming(e.length,this)){this.handleStormMutations(e,!1);return}(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 Yf,i=u=>{let h=u,f=pt;for(;f===pt;)h=h&&h.nextSibling,f=h&&this.mirror.getId(h);return f},n=u=>{const h=I.parentNode(u);if(!h||!ra(u))return;let f=!1;if(u.nodeType===Node.TEXT_NODE){const d=h.tagName;if(d==="TEXTAREA")return;d==="STYLE"&&this.addedSet.has(h)&&(f=!0)}const p=at(h)?this.mirror.getId(ta(u)):this.mirror.getId(h),g=i(u);if(p===-1||g===-1)return r.addNode(u);const m=We(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:d=>{Qo(d,this.mirror)&&this.iframeManager.addIframe(d),ea(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),Ns(u)&&this.shadowDomManager.addShadowRoot(I.shadowRoot(u),this.doc)},onIframeLoad:(d,w)=>{this.iframeManager.attachIframe(d,w),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,w)=>{this.stylesheetManager.attachLinkElement(d,w)},cssCaptured:f});m&&(e.push({parentId:p,nextId:g,node:m}),t.add(m.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const u of this.movedSet)sn(this.removesSubTreeCache,u,this.mirror)&&!this.movedSet.has(I.parentNode(u))||n(u);for(const u of this.addedSet)!nn(this.droppedSet,u)&&!sn(this.removesSubTreeCache,u,this.mirror)||nn(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 p=this.mirror.getId(I.parentNode(f.value));if(i(f.value)===-1)continue;if(p!==-1){u=f;break}else{const m=f.value,d=I.parentNode(m);if(d&&d.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const w=I.host(d);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 p=this.mirror.getId(h);!t.has(p)&&this.mirror.has(p)&&l.push({id:p,value:u.value})}const a=[];for(const u of this.attributes){const{attributes:h}=u;if(typeof h.style=="string"){const p=JSON.stringify(u.styleDiff),g=JSON.stringify(u._unchangedStyles);p.length<h.style.length&&(p+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=hr({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:fr(e),value:r,maskInputFn:this.maskInputFn})}),y(this,"processMutation",e=>{if(!qr(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const t=I.textContent(e.target);!X(e.target,this.blockClass,this.blockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:An(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,Ko(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=fr(t);i=hr({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:o,value:i,maskInputFn:this.maskInputFn})}if(X(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"),!Mn(t.tagName,r))if(n.attributes[r]=xn(this.doc,ke(t.tagName),ke(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(X(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=at(e.target)?this.mirror.getId(I.host(e.target)):this.mirror.getId(e.target);if(X(e.target,this.blockClass,this.blockSelector,!1))return;const r=this.addedSet.has(e.target),i=qo(e.target,this.mirror),n=at(e.target)&&lt(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(qr(l,this.mirror,this.slimDOMOptions)||!Lf(l,this.mirror))return;this.addedSet.has(l)?(ks(this.addedSet,l),this.droppedSet.add(l)):r&&a===-1||i||(this.movedSet.has(l)&&this.movedMap[rn(a,t)]?ks(this.movedSet,l):(this.removes.push({parentId:t,id:a,isShadow:n}),Jf(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(qr(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[rn(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);if(!X(e,this.blockClass,this.blockSelector,!1)){const r=I.childNodes(e);for(let i=0;i<r.length;i++)this.genAdds(r[i]);if(Ns(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 ks(s,e){s.delete(e);const t=I.childNodes(e);for(let r=0;r<t.length;r++)ks(s,t[r])}function Jf(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 sn(s,e,t){return s.size===0?!1:Xf(s,e)}function Xf(s,e,t){const r=I.parentNode(e);return r?s.has(r):!1}function nn(s,e){return s.size===0?!1:oa(s,e)}function oa(s,e){const t=I.parentNode(e);return t?s.has(t)?!0:oa(s,t):!1}const Ne=[];function Rt(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 aa(s,e){const t=new Zf;Ne.push(t),t.init(s);const r=new(pn())(A(t.processMutations.bind(t)));return r.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function Kf({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=It(A(h=>{const f=Date.now()-l;s(o.map(p=>(p.timeOffset-=f,p)),h),o=[],l=null}),n),c=A(It(A(h=>{const f=Rt(h),{clientX:p,clientY:g}=$s(h)?h.changedTouches[0]:h;l||(l=Ir()),o.push({x:p,y:g,id:r.getId(f),timeOffset:Ir()-l}),a(typeof DragEvent!="undefined"&&h instanceof DragEvent?x.Drag:h instanceof MouseEvent?x.MouseMove:x.TouchMove)}),i,{trailing:!1})),u=[J("mousemove",c,t),J("touchmove",c,t),J("drag",c,t)];return A(()=>{u.forEach(h=>h())})}function qf({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=Rt(h);if(X(f,r,i,!0))return;let p=null,g=u;if("pointerType"in h){switch(h.pointerType){case"mouse":p=ge.Mouse;break;case"touch":p=ge.Touch;break;case"pen":p=ge.Pen;break}p===ge.Touch?q[u]===q.MouseDown?g="TouchStart":q[u]===q.MouseUp&&(g="TouchEnd"):ge.Pen}else $s(h)&&(p=ge.Touch);p!==null?(a=p,(g.startsWith("Touch")&&p===ge.Touch||g.startsWith("Mouse")&&p===ge.Mouse)&&(p=null)):q[u]===q.Click&&(p=a,a=null);const m=$s(h)?h.changedTouches[0]:h;if(!m)return;const d=t.getId(f),{clientX:w,clientY:b}=m;A(s)(M({type:q[g],id:d,x:w,y:b},p!==null&&{pointerType:p}))};return Object.keys(q).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&o[u]!==!1).forEach(u=>{let h=ke(u);const f=c(u);if(window.PointerEvent)switch(q[u]){case q.MouseDown:case q.MouseUp:h=h.replace("mouse","pointer");break;case q.TouchStart:case q.TouchEnd:return}l.push(J(h,f,e))}),A(()=>{l.forEach(u=>u())})}function la({scrollCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,sampling:n}){const o=A(It(A(l=>{const a=Rt(l);if(!a||X(a,r,i,!0))return;const c=t.getId(a);if(a===e&&e.defaultView){const u=Zo(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 J("scroll",o,e)}function Qf({viewportResizeCb:s},{win:e}){let t=-1,r=-1;const i=A(It(A(()=>{const n=Jo(),o=Xo();(t!==n||r!==o)&&(s({width:Number(o),height:Number(n)}),t=n,r=o)}),200));return J("resize",i,e)}const ed=["INPUT","TEXTAREA","SELECT"],on=new WeakMap;function td({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=Rt(b);const R=b.isTrusted,F=S&&S.tagName;if(S&&F==="OPTION"&&(S=I.parentElement(S)),!S||!F||ed.indexOf(F)<0||X(S,r,i,!0)||S.classList.contains(n)||o&&S.matches(o))return;let W=S.value,G=!1;const L=fr(S)||"";L==="radio"||L==="checkbox"?G=S.checked:(l[F.toLowerCase()]||l[L])&&(W=hr({element:S,maskInputOptions:l,tagName:F,type:L,value:W,maskInputFn:a})),f(S,u?{text:W,isChecked:G,userTriggered:R}:{text:W,isChecked:G});const K=S.name;L==="radio"&&K&&G&&e.querySelectorAll(`input[type="radio"][name="${K}"]`).forEach(j=>{if(j!==S){const Q=j.value;f(j,u?{text:Q,isChecked:!G,userTriggered:!1}:{text:Q,isChecked:!G})}})}function f(b,S){const R=on.get(b);if(!R||R.text!==S.text||R.isChecked!==S.isChecked){on.set(b,S);const F=t.getId(b);A(s)(te(M({},S),{id:F}))}}const g=(c.input==="last"?["change"]:["input","change"]).map(b=>J(b,A(h),e)),m=e.defaultView;if(!m)return()=>{g.forEach(b=>b())};const d=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 d&&d.set&&g.push(...w.map(b=>Pr(b[0],b[1],{set(){A(h)({target:this,isTrusted:!1})}},!1,m))),A(()=>{g.forEach(b=>b())})}function xr(s){const e=[];function t(r,i){if(Kt("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Kt("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Kt("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Kt("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 rd({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:A((u,h,f)=>{const[p,g]=f,{id:m,styleId:d}=Ce(h,e,t.styleMirror);return(m&&m!==-1||d&&d!==-1)&&s({id:m,styleId:d,adds:[{rule:p,index:g}]}),u.apply(h,f)})}),r.CSSStyleSheet.prototype.addRule=function(u,h,f=this.cssRules.length){const p=`${u} { ${h} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[p,f])};const n=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(n,{apply:A((u,h,f)=>{const[p]=f,{id:g,styleId:m}=Ce(h,e,t.styleMirror);return(g&&g!==-1||m&&m!==-1)&&s({id:g,styleId:m,removes:[{index:p}]}),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:A((u,h,f)=>{const[p]=f,{id:g,styleId:m}=Ce(h,e,t.styleMirror);return(g&&g!==-1||m&&m!==-1)&&s({id:g,styleId:m,replace:p}),u.apply(h,f)})}));let l;r.CSSStyleSheet.prototype.replaceSync&&(l=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:A((u,h,f)=>{const[p]=f,{id:g,styleId:m}=Ce(h,e,t.styleMirror);return(g&&g!==-1||m&&m!==-1)&&s({id:g,styleId:m,replaceSync:p}),u.apply(h,f)})}));const a={};qt("CSSGroupingRule")?a.CSSGroupingRule=r.CSSGroupingRule:(qt("CSSMediaRule")&&(a.CSSMediaRule=r.CSSMediaRule),qt("CSSConditionRule")&&(a.CSSConditionRule=r.CSSConditionRule),qt("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:A((f,p,g)=>{const[m,d]=g,{id:w,styleId:b}=Ce(p.parentStyleSheet,e,t.styleMirror);return(w&&w!==-1||b&&b!==-1)&&s({id:w,styleId:b,adds:[{rule:m,index:[...xr(p),d||0]}]}),f.apply(p,g)})}),h.prototype.deleteRule=new Proxy(c[u].deleteRule,{apply:A((f,p,g)=>{const[m]=g,{id:d,styleId:w}=Ce(p.parentStyleSheet,e,t.styleMirror);return(d&&d!==-1||w&&w!==-1)&&s({id:d,styleId:w,removes:[{index:[...xr(p),m]}]}),f.apply(p,g)})})}),A(()=>{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 ua({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}}),A(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function sd({styleDeclarationCb:s,mirror:e,ignoreCSSAttributes:t,stylesheetManager:r},{win:i}){const n=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(n,{apply:A((l,a,c)=>{var u;const[h,f,p]=c;if(t.has(h))return n.apply(a,[h,f,p]);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:p},index:xr(a.parentRule)}),l.apply(a,c)})});const o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:A((l,a,c)=>{var u;const[h]=c;if(t.has(h))return o.apply(a,[h]);const{id:f,styleId:p}=Ce((u=a.parentRule)==null?void 0:u.parentStyleSheet,e,r.styleMirror);return(f&&f!==-1||p&&p!==-1)&&s({id:f,styleId:p,remove:{property:h},index:xr(a.parentRule)}),l.apply(a,c)})}),A(()=>{i.CSSStyleDeclaration.prototype.setProperty=n,i.CSSStyleDeclaration.prototype.removeProperty=o})}function id({mediaInteractionCb:s,blockClass:e,blockSelector:t,mirror:r,sampling:i,doc:n}){const o=A(a=>It(A(c=>{const u=Rt(c);if(!u||X(u,e,t,!0))return;const{currentTime:h,volume:f,muted:p,playbackRate:g,loop:m}=u;s({type:a,id:r.getId(u),currentTime:h,volume:f,muted:p,playbackRate:g,loop:m})}),i.media||500)),l=[J("play",o(Be.Play),n),J("pause",o(Be.Pause),n),J("seeked",o(Be.Seeked),n),J("volumechange",o(Be.VolumeChange),n),J("ratechange",o(Be.RateChange),n)];return A(()=>{l.forEach(a=>a())})}function nd({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=Te(e.fonts,"add",function(l){return function(a){return setTimeout(A(()=>{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),A(()=>{r.forEach(l=>l())})}function od(s){const{doc:e,mirror:t,blockClass:r,blockSelector:i,selectionCb:n}=s;let o=!0;const l=A(()=>{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:p,startOffset:g,endContainer:m,endOffset:d}=f;X(p,r,i,!0)||X(m,r,i,!0)||c.push({start:t.getId(p),startOffset:g,end:t.getId(m),endOffset:d})}n({ranges:c})});return l(),J("selectionchange",l)}function ad({doc:s,customElementCb:e}){const t=s.defaultView;return!t||!t.customElements?()=>{}:Te(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 ld(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:p,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),p(...m)},s.customElementCb=(...m)=>{e.customElement&&e.customElement(...m),g(...m)}}function ud(s,e={}){const t=s.doc.defaultView;if(!t)return()=>{};ld(s,e);let r;s.recordDOM&&(r=aa(s,s.doc));const i=Kf(s),n=qf(s),o=la(s),l=Qf(s,{win:t}),a=td(s),c=id(s);let u=()=>{},h=()=>{},f=()=>{},p=()=>{};s.recordDOM&&(u=rd(s,{win:t}),h=ua(s,s.doc),f=sd(s,{win:t}),s.collectFonts&&(p=nd(s)));const g=od(s),m=ad(s),d=[];for(const w of s.plugins)d.push(w.observer(w.callback,t,w.options));return A(()=>{Ne.forEach(w=>w.reset()),r==null||r.disconnect(),i(),n(),o(),l(),a(),c(),u(),h(),f(),p(),g(),m(),d.forEach(w=>w())})}function Kt(s){return typeof window[s]!="undefined"}function qt(s){return!!(typeof window[s]!="undefined"&&window[s].prototype&&"insertRule"in window[s].prototype&&"deleteRule"in window[s].prototype)}var Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cd=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Qt=0;Qt<Ge.length;Qt++)cd[Ge.charCodeAt(Qt)]=Qt;var hd=function(s){var e=new Uint8Array(s),t,r=e.length,i="";for(t=0;t<r;t+=3)i+=Ge[e[t]>>2],i+=Ge[(e[t]&3)<<4|e[t+1]>>4],i+=Ge[(e[t+1]&15)<<2|e[t+2]>>6],i+=Ge[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 an=new Map;function fd(s,e){let t=an.get(s);return t||(t=new Map,an.set(s,t)),t.has(e)||t.set(e,[]),t.get(e)}const ca=(s,e,t)=>{if(!s||!(fa(s,e)||typeof s=="object"))return;const r=s.constructor.name,i=fd(t,r);let n=i.indexOf(s);return n===-1&&(n=i.length,i.push(s)),n};function cr(s,e,t){if(s instanceof Array)return s.map(r=>cr(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=hd(s);return{rr_type:r,base64:i}}else{if(s instanceof DataView)return{rr_type:s.constructor.name,args:[cr(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:[cr(s.data,e,t),s.width,s.height]};if(fa(s,e)||typeof s=="object"){const r=s.constructor.name,i=ca(s,e,t);return{rr_type:r,index:i}}}}return s}const ha=(s,e,t)=>s.map(r=>cr(r,e,t)),fa=(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 dd(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=Te(e.CanvasRenderingContext2D.prototype,o,function(a){return function(...c){return X(this.canvas,t,r,!0)||setTimeout(()=>{const u=ha(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=Pr(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 pd(s){return s==="experimental-webgl"?"webgl":s}function ln(s,e,t,r){const i=[];try{const n=Te(s.HTMLCanvasElement.prototype,"getContext",function(o){return function(l,...a){if(!X(this,e,t,!0)){const c=pd(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 un(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=Te(s,a,function(u){return function(...h){const f=u.apply(this,h);if(ca(f,n,this),"tagName"in this.canvas&&!X(this.canvas,r,i,!0)){const p=ha(h,n,this),g={type:e,property:a,args:p};t(this.canvas,g)}return f}});o.push(c)}catch(c){const u=Pr(s,a,{set(h){t(this.canvas,{type:e,property:a,args:[h],setter:!0})}});o.push(u)}return o}function md(s,e,t,r){const i=[];return i.push(...un(e.WebGLRenderingContext.prototype,Ve.WebGL,s,t,r,e)),typeof e.WebGL2RenderingContext!="undefined"&&i.push(...un(e.WebGL2RenderingContext.prototype,Ve.WebGL2,s,t,r,e)),()=>{i.forEach(n=>n())}}const da="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",gd=s=>Uint8Array.from(atob(s),e=>e.charCodeAt(0)),cn=typeof self!="undefined"&&self.Blob&&new Blob([gd(da)],{type:"text/javascript;charset=utf-8"});function yd(s){let e;try{if(e=cn&&(self.URL||self.webkitURL).createObjectURL(cn),!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,"+da,{name:s==null?void 0:s.name})}finally{e&&(self.URL||self.webkitURL).revokeObjectURL(e)}}class wd{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=ln(t,r,i,!0),l=new Map,a=new yd;a.onmessage=g=>{const{id:m}=g.data;if(l.set(m,!1),!("base64"in g.data))return;const{base64:d,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:d}],type:w}]},0,0]}]})};const c=1e3/e;let u=0,h;const f=()=>{const g=[];return t.document.querySelectorAll("canvas").forEach(m=>{X(m,r,i,!0)||g.push(m)}),g},p=g=>{if(u&&g-u<c){h=requestAnimationFrame(p);return}u=g,f().forEach(async m=>{var d;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);((d=S==null?void 0:S.getContextAttributes())==null?void 0:d.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(p)};h=requestAnimationFrame(p),this.resetObservers=()=>{o(),cancelAnimationFrame(h)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=ln(e,t,r,!1),n=dd(this.processMutation.bind(this),e,t,r),o=md(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 bd{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 Sd{constructor(e){y(this,"shadowDoms",new WeakSet),y(this,"mutationCb"),y(this,"scrollCb"),y(this,"bypassOptions"),y(this,"mirror"),y(this,"restoreHandlers",[]),y(this,"mappedRestoreHandlers",{}),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)||!ft.canObserveShadowRoot(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),Z(`Adding mutation observer for shadowRoot ${e.host}`);const r=si(),i=aa(te(M({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.mappedRestoreHandlers[r]=[()=>i.disconnect(),la(te(M({},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.mappedRestoreHandlers[r].push(ua({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0),ft.observerAttachedToShadow(e,()=>{const n=this.mappedRestoreHandlers[r];if(n)for(const o of n)try{o()}catch(l){}delete this.mappedRestoreHandlers[r]})}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Te(e.prototype,"attachShadow",function(i){return function(n){const o=i.call(this,n),l=I.shadowRoot(this);return l&&ra(this)&&r.addShadowRoot(l,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),Object.values(this.mappedRestoreHandlers).forEach(e=>{for(const t of e)try{t()}catch(r){}}),this.mappedRestoreHandlers={},this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class Cd{constructor(e){y(this,"trackedLinkElements",new WeakSet),y(this,"mutationCb"),y(this,"adoptedStyleSheetCb"),y(this,"styleMirror",new Df),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:bn(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 B,ot,Qr,dt=!1;try{if(Array.from([1],s=>s*2)[0]!==2){const s=document.createElement("iframe");document.body.appendChild(s),Array.from=((ui=s.contentWindow)==null?void 0:ui.Array.from)||Array.from,document.body.removeChild(s)}}catch(s){ct()&&console.debug("Unable to override Array.from",s)}const se=Qa();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:p,maskInputFn:g,maskTextFn:m,hooks:d,packFn:w,sampling:b={},dataURLOptions:S={},mousemoveWait:R,recordDOM:F=!0,recordCanvas:W=!1,recordCrossOriginIframes:G=!1,recordAfter:L=s.recordAfter==="DOMContentLoaded"?s.recordAfter:"load",userTriggeredOnInput:K=!1,collectFonts:j=!1,inlineImages:Q=!1,plugins:oe,keepIframeSrcFn:he=()=>!1,ignoreCSSAttributes:E=new Set([]),errorHandler:qe}=s;Uf(qe);const be=G?window.parent===window:!0;let Me=!1;if(!be)try{window.parent.document&&(Me=!1)}catch($){Me=!0}if(be&&!e)throw new Error("emit function is required");if(!be&&!Me)return()=>{};R!==void 0&&b.mousemove===void 0&&(b.mousemove=R),se.reset();const H=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:f!==void 0?f:{password:!0},ae=p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:p==="all",headMetaDescKeywords:p==="all",headTitleMutations:p==="all"}:p||{};Pf();let Ae,le=0;const Et=$=>{for(const ee of oe||[])ee.eventProcessor&&($=ee.eventProcessor($));return w&&!Me&&($=w($)),$};B=($,ee)=>{var U;const z=$;if(z.timestamp=Ir(),(U=Ne[0])!=null&&U.isFrozen()&&z.type!==O.FullSnapshot&&!(z.type===O.IncrementalSnapshot&&z.data.source===x.Mutation)&&Ne.forEach(fe=>fe.unfreeze()),be)e==null||e(Et(z),ee);else if(Me){const fe={type:"rrweb",event:Et(z),origin:window.location.origin,isCheckout:ee};window.parent.postMessage(fe,"*")}if(z.type===O.FullSnapshot)Ae=z,le=0;else if(z.type===O.IncrementalSnapshot){if(z.data.source===x.Mutation&&z.data.isAttachIframe)return;le++;const fe=r&&le>=r,Qe=t&&z.timestamp-Ae.timestamp>t;(fe||Qe)&&ot(!0)}};const Se=$=>{B({type:O.IncrementalSnapshot,data:M({source:x.Mutation},$)})},ii=$=>B({type:O.IncrementalSnapshot,data:M({source:x.Scroll},$)}),ni=$=>B({type:O.IncrementalSnapshot,data:M({source:x.CanvasMutation},$)}),pa=$=>B({type:O.IncrementalSnapshot,data:M({source:x.AdoptedStyleSheet},$)}),Oe=new Cd({mutationCb:Se,adoptedStyleSheetCb:pa}),Re=new Wf({mirror:se,mutationCb:Se,stylesheetManager:Oe,recordCrossOriginIframes:G,wrappedEmit:B});for(const $ of oe||[])$.getMirror&&$.getMirror({nodeMirror:se,crossOriginIframeMirror:Re.crossOriginIframeMirror,crossOriginIframeStyleMirror:Re.crossOriginIframeStyleMirror});const Dr=new bd;Qr=new wd({recordCanvas:W,mutationCb:ni,win:window,blockClass:i,blockSelector:n,mirror:se,sampling:b.canvas,dataURLOptions:S});const $t=new Sd({mutationCb:Se,scrollCb:ii,bypassOptions:{blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:H,dataURLOptions:S,maskTextFn:m,maskInputFn:g,recordCanvas:W,inlineImages:Q,sampling:b,slimDOMOptions:ae,iframeManager:Re,stylesheetManager:Oe,canvasManager:Qr,keepIframeSrcFn:he,processedNodeManager:Dr},mirror:se});ot=($=!1)=>{if(!F)return;B({type:O.Meta,data:{href:window.location.href,width:Xo(),height:Jo()}},$),Oe.reset(),$t.init(),Ne.forEach(U=>U.lock());const ee=Fl(document,{mirror:se,blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:H,maskTextFn:m,maskInputFn:g,slimDOM:ae,dataURLOptions:S,recordCanvas:W,inlineImages:Q,onSerialize:U=>{Qo(U,se)&&Re.addIframe(U),ea(U,se)&&Oe.trackLinkElement(U),Ns(U)&&$t.addShadowRoot(I.shadowRoot(U),document)},onIframeLoad:(U,z)=>{Re.attachIframe(U,z),$t.observeAttachShadow(U)},onStylesheetLoad:(U,z)=>{Oe.attachLinkElement(U,z)},keepIframeSrcFn:he});if(!ee){ct()&&console.warn("Failed to snapshot the document");return}B({type:O.FullSnapshot,data:{node:ee,initialOffset:Zo(window)}},$),Ne.forEach(U=>U.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Oe.adoptStyleSheets(document.adoptedStyleSheets,se.getId(document))};try{const $=[],ee={},U=de=>{var Ee;return A(ud)({mutationCb:Se,mousemoveCb:(T,Fr)=>B({type:O.IncrementalSnapshot,data:{source:Fr,positions:T}}),mouseInteractionCb:T=>B({type:O.IncrementalSnapshot,data:M({source:x.MouseInteraction},T)}),scrollCb:ii,viewportResizeCb:T=>B({type:O.IncrementalSnapshot,data:M({source:x.ViewportResize},T)}),inputCb:T=>B({type:O.IncrementalSnapshot,data:M({source:x.Input},T)}),mediaInteractionCb:T=>B({type:O.IncrementalSnapshot,data:M({source:x.MediaInteraction},T)}),styleSheetRuleCb:T=>B({type:O.IncrementalSnapshot,data:M({source:x.StyleSheetRule},T)}),styleDeclarationCb:T=>B({type:O.IncrementalSnapshot,data:M({source:x.StyleDeclaration},T)}),canvasMutationCb:ni,fontCb:T=>B({type:O.IncrementalSnapshot,data:M({source:x.Font},T)}),selectionCb:T=>{B({type:O.IncrementalSnapshot,data:M({source:x.Selection},T)})},customElementCb:T=>{B({type:O.IncrementalSnapshot,data:M({source:x.CustomElement},T)})},blockClass:i,ignoreClass:o,ignoreSelector:l,maskTextClass:a,maskTextSelector:c,maskInputOptions:H,inlineStylesheet:u,sampling:b,recordDOM:F,recordCanvas:W,inlineImages:Q,userTriggeredOnInput:K,collectFonts:j,doc:de,maskInputFn:g,maskTextFn:m,keepIframeSrcFn:he,blockSelector:n,slimDOMOptions:ae,dataURLOptions:S,mirror:se,iframeManager:Re,stylesheetManager:Oe,shadowDomManager:$t,processedNodeManager:Dr,canvasManager:Qr,ignoreCSSAttributes:E,plugins:((Ee=oe==null?void 0:oe.filter(T=>T.observer))==null?void 0:Ee.map(T=>({observer:T.observer,options:T.options,callback:Fr=>B({type:O.Plugin,data:{plugin:T.name,payload:Fr}})})))||[]},d)};Re.addLoadListener(de=>{try{if(!ft.canObserveDoc(de.contentDocument))return;const Ee=U(de.contentDocument),T=si();ee[T]=Ee,ft.observerAttached(de.contentDocument,()=>{Ee(),delete ee[T]})}catch(Ee){ct()&&(console.warn("internal error"),console.warn(Ee))}});let z=null;const fe=()=>{z=Date.now(),ot(),$.push(U(document)),dt=!0},Qe=()=>{window.removeEventListener("load",Qe),!(!dt||z==null)&&(Date.now()-z<=10||ot())};return window.addEventListener("load",Qe),document.readyState==="interactive"||document.readyState==="complete"?(document.readyState==="complete"&&window.removeEventListener("load",Qe),fe()):($.push(J("DOMContentLoaded",()=>{B({type:O.DomContentLoaded,data:{}}),L==="DOMContentLoaded"&&fe()})),$.push(J("load",()=>{B({type:O.Load,data:{}}),L==="load"&&fe()},window))),()=>{$.forEach(de=>de()),Object.values(ee).forEach(de=>de()),Dr.destroy(),ft.destroy(),dt=!1,zf()}}catch($){ct()&&(console.warn("internal error1"),console.warn($))}}xe.addCustomEvent=(s,e)=>{if(!dt)throw new Error("please add custom event after start recording");B({type:O.Custom,data:{tag:s,payload:e}})};xe.freezePage=()=>{Ne.forEach(s=>s.freeze())};xe.takeFullSnapshot=s=>{if(!dt)throw new Error("please take full snapshot after start recording");ot(s)};xe.mirror=se;var hn;(function(s){s[s.NotStarted=0]="NotStarted",s[s.Running=1]="Running",s[s.Stopped=2]="Stopped"})(hn||(hn={}));const{addCustomEvent:rp}=xe,{freezePage:sp}=xe,{takeFullSnapshot:vd}=xe;exports.record=xe;
58
+ or you can use record.mirror to access the mirror instance during recording.`;let Xi={map:{},getId(){return console.error(ze),-1},getNode(){return console.error(ze),null},removeNodeFromMap(){console.error(ze)},has(){return console.error(ze),!1},reset(){console.error(ze)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Xi=new Proxy(Xi,{get(s,e,t){return e==="map"&&console.error(ze),Reflect.get(s,e,t)}}));function It(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 Fr(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)}}),()=>Fr(s,e,n||{},!0)}let Mr=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Mr=()=>new Date().getTime());function Yo(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=x.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=x.parentElement(n.body))==null?void 0:r.scrollTop)||((i=n==null?void 0:n.body)==null?void 0:i.scrollTop)||0}}function Zo(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Jo(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Xo(s){return s?s.nodeType===s.ELEMENT_NODE?s:x.parentElement(s):null}function X(s,e,t,r){if(!s)return!1;const i=Xo(s);if(!i)return!1;try{if(typeof e=="string"){if(i.classList.contains(e)||r&&i.closest("."+e)!==null)return!0}else if(gr(i,e,r))return!0}catch(n){}return!!(t&&(i.matches(t)||r&&i.closest(t)!==null))}function _f(s,e){return e.getId(s)!==-1}function Qr(s,e,t){return s.tagName==="TITLE"&&t.headTitleMutations?!0:e.getId(s)===pt}function Ko(s,e){if(lt(s))return!1;const t=e.getId(s);if(!e.has(t))return!0;const r=x.parentNode(s);return r&&r.nodeType===s.DOCUMENT_NODE?!1:r?Ko(r,e):!0}function $s(s){return!!s.changedTouches}function Lf(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 qo(s,e){return!!(s.nodeName==="IFRAME"&&e.getMeta(s))}function Qo(s,e){return!!(s.nodeName==="LINK"&&s.nodeType===s.ELEMENT_NODE&&s.getAttribute&&s.getAttribute("rel")==="stylesheet"&&e.getMeta(s))}function Ns(s){return s?s instanceof ri&&"shadowRoot"in s?!!s.shadowRoot:!!x.shadowRoot(s):!1}class Df{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 ea(s){var e;let t=null;return"getRootNode"in s&&((e=x.getRootNode(s))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&x.host(x.getRootNode(s))&&(t=x.host(x.getRootNode(s))),t}function Pf(s){let e=s,t;for(;t=ea(e);)e=t;return e}function Ff(s){const e=s.ownerDocument;if(!e)return!1;const t=Pf(s);return x.contains(e,t)}function ta(s){const e=s.ownerDocument;return e?x.contains(e,s)||Ff(s):!1}const ht=()=>"_rrweb_is_debug"in window&&window._rrweb_is_debug?window._rrweb_is_debug:!1,Z=(...s)=>{ht()&&console.log("[recapt:rrweb]",...s)},Ki="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function Bf(s=8){let e="";for(let t=0;t<s;t++)e+=Ki.charAt(Math.floor(Math.random()*Ki.length));return e}let ft;function zf(s){ft=s}function Uf(){ft=void 0}const A=s=>ft?(...t)=>{try{return s(...t)}catch(r){if(ft&&ft(r)===!0)return;throw r}}:s;class qi{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 Wf{constructor(e){y(this,"iframes",new WeakMap),y(this,"crossOriginIframeMap",new WeakMap),y(this,"crossOriginIframeMirror",new qi(vn)),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 qi(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:I.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 I.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 I.Drag:case I.TouchMove:case I.MouseMove:return t.data.positions.forEach(i=>{this.replaceIds(i,e,["id"])}),t;case I.ViewportResize:return!1;case I.MediaInteraction:case I.MouseInteraction:case I.Scroll:case I.CanvasMutation:case I.Input:return this.replaceIds(t.data,e,["id"]),t;case I.StyleSheetRule:case I.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case I.Font:return t;case I.Selection:return t.data.ranges.forEach(i=>{this.replaceIds(i,e,["start","end"])}),t;case I.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!==hn.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,t)})}}const ra=class ur{constructor(){if(y(this,"docsObservers",new WeakSet),y(this,"shadowRootsObservers",new WeakMap),y(this,"mutationOptions"),y(this,"emitter",null),ur.instance)return ur.instance;ur.instance=this}setEmitter(e){this.emitter=e}setMutationOptions(e){this.mutationOptions=e}get usable(){const e=this.emitter!=null;return e||Z("observerManager: emitter is null"),e}serializeDoc(e){var t,r,i;if(!((t=this.mutationOptions)!=null&&t.mirror))return null;const n=$e(e,ee(M({},this.mutationOptions),{doc:e,skipChild:!1,maskTextFn:(r=this.mutationOptions)==null?void 0:r.maskTextFn,maskInputFn:(i=this.mutationOptions)==null?void 0:i.maskInputFn}));return n||(Z("snapshotDoc: no serialized node"),null)}emitDoc(e){!this.emitter||!e||this.emitter({type:O.FullSnapshot,data:{node:e,initialOffset:{left:0,top:0}}})}emitShadowRoot(e,t){var r;if(!this.emitter||!e||!((r=this.mutationOptions)!=null&&r.mirror))return;const i=this.mutationOptions.mirror.getId(t.host),n=this.mutationOptions.mirror.getId(t);this.emitter({type:O.IncrementalSnapshot,data:{source:I.Mutation,adds:[{parentId:i,nextId:null,node:e}],removes:[{id:n,parentId:i}],attributes:[],texts:[]}})}serializeAndEmitDoc(e){const t=this.serializeDoc(e);this.emitDoc(t)}serializeAndEmitShadowRoot(e){const t=this.serializeDoc(e.ownerDocument);this.emitShadowRoot(t,e)}onDocObserver(e){return this.usable?this.docsObservers.has(e)?(Z("onDocObserver: doc already observed, emitting full snapshot for doc",e),this.serializeAndEmitDoc(e),!1):!0:!1}onShadowRootObserver(e){return this.usable?this.shadowRootsObservers.has(e)?(Z("onShadowRootObserver: shadowRoot already observed, emitting full snapshot for shadowRoot",e),this.serializeAndEmitShadowRoot(e),!1):!0:!1}destroy(){this.docsObservers=new WeakSet,this.shadowRootsObservers=new WeakMap}};y(ra,"instance");let Gf=ra;const ot=new Gf,sa=class cr{constructor(){if(y(this,"mutTracker"),y(this,"exitMutTracker"),y(this,"interval",50),y(this,"exitInterval",100),y(this,"mutThreshold",100),y(this,"inGlobalStorm",!1),y(this,"currentStormStartedAt",-1),y(this,"stormTimeLimit",5e3),y(this,"debounceTimeout",null),y(this,"debounceTimeoutMs",250),y(this,"handleStormFinishMethods",{}),cr.instance)return cr.instance;cr.instance=this,Z("MutationRateLimiter, init"),this.reset()}resetTracker(){this.mutTracker={muts:0,ts:-1}}resetExitTracker(){this.exitMutTracker={muts:0,requested:-1}}reset(){this.resetTracker(),this.resetExitTracker(),this.currentStormStartedAt=-1}stormStopped(e){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.inGlobalStorm=!1,this.reset();for(const[t,r]of Object.entries(this.handleStormFinishMethods))t!==e&&r();this.handleStormFinishMethods={}}handleStormExit(e,t){const r=Date.now();if(this.exitMutTracker.requested===-1)this.exitMutTracker={requested:r,muts:e};else if(this.exitMutTracker.muts+=e,r-this.exitMutTracker.requested>this.exitInterval)return this.exitMutTracker.muts>=this.mutThreshold?(Z("MutationRateLimiter, exit cooldown failed, continuing with storm",{mutTracker:this.mutTracker,exitMutTracker:this.exitMutTracker}),this.mutTracker.ts=r,this.mutTracker.muts+=this.exitMutTracker.muts,this.resetExitTracker(),!0):(Z("MutationRateLimiter, detected global storm exit.",{mutTracker:this.mutTracker,exitMutTracker:this.exitMutTracker}),this.stormStopped(t),!1);return!0}isInGlobalStorm(){return this.inGlobalStorm}doDebounce(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.inGlobalStorm&&(this.debounceTimeout=setTimeout(()=>{this.debounceTimeout=null,Z("MutationRateLimiter, stopping storm because of debounce"),this.stormStopped()},this.debounceTimeoutMs))}isStorming(e,t){t.bufId in this.handleStormFinishMethods||(this.handleStormFinishMethods[t.bufId]=t.handleStormFinish.bind(t));const r=Date.now();if(this.inGlobalStorm)return this.doDebounce(),r-this.currentStormStartedAt>this.stormTimeLimit?(Z("MutationRateLimiter, storm time limit reached, stopping storm"),this.stormStopped(t.bufId),!1):r-this.mutTracker.ts>this.interval?this.handleStormExit(e,t.bufId):(this.mutTracker.muts+=e,this.mutTracker.ts=r,!0);if(this.mutTracker.ts===-1)this.mutTracker.muts=e;else if(r-this.mutTracker.ts<=this.interval&&(this.mutTracker.muts+=e,this.mutTracker.muts>=this.mutThreshold))return this.inGlobalStorm=!0,Z("MutationRateLimiter, detected global rolling storm"),this.currentStormStartedAt=r,this.doDebounce(),!0;return this.mutTracker.ts=r,!1}};y(sa,"instance");let jf=sa;const Qi=new jf,ia=class hr{constructor(){if(y(this,"lastFullSnapshot",-1),y(this,"intervalBetweenSnapshots",150),y(this,"debounceTimeout",null),y(this,"debounceTime",10),hr.instance)return hr.instance;hr.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){Z("StormSnapshotManager, takeSnapshot: too soon");return}Z("StormSnapshotManager, takeSnapshot: taking full snapshot"),vd(),this.lastFullSnapshot=Date.now()}};y(ia,"instance");let Vf=ia;const Hf=new Vf;function en(s){return"__ln"in s}class Yf{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&&en(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&&en(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 tn=(s,e)=>`${s}@${e}`;class Zf{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",Bf()),y(this,"stormBatches",[]),y(this,"stormInfo",null),y(this,"stormSettings",{batchSize:50,timeout:50,mutationLimit:800}),y(this,"debounceStormFinish",()=>{this.stormInfo&&(Qi.isInGlobalStorm()||(this.stormInfo.timeout=setTimeout(this.handleStormFinish,this.stormSettings.timeout)))}),y(this,"handleStormMutations",(e,t=!0)=>{const r=Date.now();this.stormInfo==null&&(Z("detected probable mutation storm start","buffer id:",this.bufId),this.stormInfo={startedAt:r,totalMutations:0,stormExceededLimit:!1},t&&this.debounceStormFinish()),this.stormInfo.totalMutations+=e.length,this.stormInfo.totalMutations>=this.stormSettings.mutationLimit?(this.stormInfo.stormExceededLimit=!0,this.stormBatches=[]):this.stormBatches.push({ts:r,mutations:e}),clearTimeout(this.stormInfo.timeout),t&&e.length<this.stormSettings.batchSize?this.handleStormFinish():this.debounceStormFinish()}),y(this,"handleStormFinish",()=>{if(!this.stormInfo)return;const{stormExceededLimit:e}=this.stormInfo;if(Z("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=[],Hf.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(!t){if(Qi.isStorming(e.length,this)){this.handleStormMutations(e,!1);return}(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 Yf,i=u=>{let h=u,f=pt;for(;f===pt;)h=h&&h.nextSibling,f=h&&this.mirror.getId(h);return f},n=u=>{const h=x.parentNode(u);if(!h||!ta(u))return;let f=!1;if(u.nodeType===Node.TEXT_NODE){const d=h.tagName;if(d==="TEXTAREA")return;d==="STYLE"&&this.addedSet.has(h)&&(f=!0)}const p=lt(h)?this.mirror.getId(ea(u)):this.mirror.getId(h),g=i(u);if(p===-1||g===-1)return r.addNode(u);const m=$e(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:d=>{qo(d,this.mirror)&&this.iframeManager.addIframe(d),Qo(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),Ns(u)&&this.shadowDomManager.addShadowRoot(x.shadowRoot(u),this.doc)},onIframeLoad:(d,w)=>{this.iframeManager.attachIframe(d,w),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,w)=>{this.stylesheetManager.attachLinkElement(d,w)},cssCaptured:f});m&&(e.push({parentId:p,nextId:g,node:m}),t.add(m.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const u of this.movedSet)rn(this.removesSubTreeCache,u,this.mirror)&&!this.movedSet.has(x.parentNode(u))||n(u);for(const u of this.addedSet)!sn(this.droppedSet,u)&&!rn(this.removesSubTreeCache,u,this.mirror)||sn(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(x.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 p=this.mirror.getId(x.parentNode(f.value));if(i(f.value)===-1)continue;if(p!==-1){u=f;break}else{const m=f.value,d=x.parentNode(m);if(d&&d.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const w=x.host(d);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=x.parentNode(h);f&&f.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(f);const p=this.mirror.getId(h);!t.has(p)&&this.mirror.has(p)&&l.push({id:p,value:u.value})}const a=[];for(const u of this.attributes){const{attributes:h}=u;if(typeof h.style=="string"){const p=JSON.stringify(u.styleDiff),g=JSON.stringify(u._unchangedStyles);p.length<h.style.length&&(p+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(x.childNodes(e),i=>x.textContent(i)||"").join("");t.attributes.value=dr({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:pr(e),value:r,maskInputFn:this.maskInputFn})}),y(this,"processMutation",e=>{if(!Qr(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const t=x.textContent(e.target);!X(e.target,this.blockClass,this.blockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:Mn(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,Xo(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=pr(t);i=dr({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:o,value:i,maskInputFn:this.maskInputFn})}if(X(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"),!xn(t.tagName,r))if(n.attributes[r]=In(this.doc,ke(t.tagName),ke(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(X(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=lt(e.target)?this.mirror.getId(x.host(e.target)):this.mirror.getId(e.target);if(X(e.target,this.blockClass,this.blockSelector,!1))return;const r=this.addedSet.has(e.target),i=Ko(e.target,this.mirror),n=lt(e.target)&&ut(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(Qr(l,this.mirror,this.slimDOMOptions)||!_f(l,this.mirror))return;this.addedSet.has(l)?(ks(this.addedSet,l),this.droppedSet.add(l)):r&&a===-1||i||(this.movedSet.has(l)&&this.movedMap[tn(a,t)]?ks(this.movedSet,l):(this.removes.push({parentId:t,id:a,isShadow:n}),Jf(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(Qr(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[tn(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);if(!X(e,this.blockClass,this.blockSelector,!1)){const r=x.childNodes(e);for(let i=0;i<r.length;i++)this.genAdds(r[i]);if(Ns(e)){const i=x.childNodes(x.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 ks(s,e){s.delete(e);const t=x.childNodes(e);for(let r=0;r<t.length;r++)ks(s,t[r])}function Jf(s,e){const t=[s];for(;t.length;){const r=t.pop();if(e.has(r))continue;e.add(r);const i=x.childNodes(r);for(let n=0;n<i.length;n++)t.push(i[n])}}function rn(s,e,t){return s.size===0?!1:Xf(s,e)}function Xf(s,e,t){const r=x.parentNode(e);return r?s.has(r):!1}function sn(s,e){return s.size===0?!1:na(s,e)}function na(s,e){const t=x.parentNode(e);return t?s.has(t)?!0:na(s,t):!1}const Ne=[];function Rt(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 oa(s,e){const t=new Zf;Ne.push(t),t.init(s);const r=new(dn())(A(t.processMutations.bind(t)));return r.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function Kf({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=It(A(h=>{const f=Date.now()-l;s(o.map(p=>(p.timeOffset-=f,p)),h),o=[],l=null}),n),c=A(It(A(h=>{const f=Rt(h),{clientX:p,clientY:g}=$s(h)?h.changedTouches[0]:h;l||(l=Mr()),o.push({x:p,y:g,id:r.getId(f),timeOffset:Mr()-l}),a(typeof DragEvent!="undefined"&&h instanceof DragEvent?I.Drag:h instanceof MouseEvent?I.MouseMove:I.TouchMove)}),i,{trailing:!1})),u=[J("mousemove",c,t),J("touchmove",c,t),J("drag",c,t)];return A(()=>{u.forEach(h=>h())})}function qf({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=Rt(h);if(X(f,r,i,!0))return;let p=null,g=u;if("pointerType"in h){switch(h.pointerType){case"mouse":p=ge.Mouse;break;case"touch":p=ge.Touch;break;case"pen":p=ge.Pen;break}p===ge.Touch?q[u]===q.MouseDown?g="TouchStart":q[u]===q.MouseUp&&(g="TouchEnd"):ge.Pen}else $s(h)&&(p=ge.Touch);p!==null?(a=p,(g.startsWith("Touch")&&p===ge.Touch||g.startsWith("Mouse")&&p===ge.Mouse)&&(p=null)):q[u]===q.Click&&(p=a,a=null);const m=$s(h)?h.changedTouches[0]:h;if(!m)return;const d=t.getId(f),{clientX:w,clientY:b}=m;A(s)(M({type:q[g],id:d,x:w,y:b},p!==null&&{pointerType:p}))};return Object.keys(q).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&o[u]!==!1).forEach(u=>{let h=ke(u);const f=c(u);if(window.PointerEvent)switch(q[u]){case q.MouseDown:case q.MouseUp:h=h.replace("mouse","pointer");break;case q.TouchStart:case q.TouchEnd:return}l.push(J(h,f,e))}),A(()=>{l.forEach(u=>u())})}function aa({scrollCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,sampling:n}){const o=A(It(A(l=>{const a=Rt(l);if(!a||X(a,r,i,!0))return;const c=t.getId(a);if(a===e&&e.defaultView){const u=Yo(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 J("scroll",o,e)}function Qf({viewportResizeCb:s},{win:e}){let t=-1,r=-1;const i=A(It(A(()=>{const n=Zo(),o=Jo();(t!==n||r!==o)&&(s({width:Number(o),height:Number(n)}),t=n,r=o)}),200));return J("resize",i,e)}const ed=["INPUT","TEXTAREA","SELECT"],nn=new WeakMap;function td({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=Rt(b);const R=b.isTrusted,B=S&&S.tagName;if(S&&B==="OPTION"&&(S=x.parentElement(S)),!S||!B||ed.indexOf(B)<0||X(S,r,i,!0)||S.classList.contains(n)||o&&S.matches(o))return;let U=S.value,G=!1;const L=pr(S)||"";L==="radio"||L==="checkbox"?G=S.checked:(l[B.toLowerCase()]||l[L])&&(U=dr({element:S,maskInputOptions:l,tagName:B,type:L,value:U,maskInputFn:a})),f(S,u?{text:U,isChecked:G,userTriggered:R}:{text:U,isChecked:G});const K=S.name;L==="radio"&&K&&G&&e.querySelectorAll(`input[type="radio"][name="${K}"]`).forEach(j=>{if(j!==S){const Q=j.value;f(j,u?{text:Q,isChecked:!G,userTriggered:!1}:{text:Q,isChecked:!G})}})}function f(b,S){const R=nn.get(b);if(!R||R.text!==S.text||R.isChecked!==S.isChecked){nn.set(b,S);const B=t.getId(b);A(s)(ee(M({},S),{id:B}))}}const g=(c.input==="last"?["change"]:["input","change"]).map(b=>J(b,A(h),e)),m=e.defaultView;if(!m)return()=>{g.forEach(b=>b())};const d=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 d&&d.set&&g.push(...w.map(b=>Fr(b[0],b[1],{set(){A(h)({target:this,isTrusted:!1})}},!1,m))),A(()=>{g.forEach(b=>b())})}function Or(s){const e=[];function t(r,i){if(qt("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||qt("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||qt("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||qt("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 Ie(s,e,t){let r,i;return s?(s.ownerNode?r=e.getId(s.ownerNode):i=t.getId(s),{styleId:i,id:r}):{}}function rd({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:A((u,h,f)=>{const[p,g]=f,{id:m,styleId:d}=Ie(h,e,t.styleMirror);return(m&&m!==-1||d&&d!==-1)&&s({id:m,styleId:d,adds:[{rule:p,index:g}]}),u.apply(h,f)})}),r.CSSStyleSheet.prototype.addRule=function(u,h,f=this.cssRules.length){const p=`${u} { ${h} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[p,f])};const n=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(n,{apply:A((u,h,f)=>{const[p]=f,{id:g,styleId:m}=Ie(h,e,t.styleMirror);return(g&&g!==-1||m&&m!==-1)&&s({id:g,styleId:m,removes:[{index:p}]}),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:A((u,h,f)=>{const[p]=f,{id:g,styleId:m}=Ie(h,e,t.styleMirror);return(g&&g!==-1||m&&m!==-1)&&s({id:g,styleId:m,replace:p}),u.apply(h,f)})}));let l;r.CSSStyleSheet.prototype.replaceSync&&(l=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:A((u,h,f)=>{const[p]=f,{id:g,styleId:m}=Ie(h,e,t.styleMirror);return(g&&g!==-1||m&&m!==-1)&&s({id:g,styleId:m,replaceSync:p}),u.apply(h,f)})}));const a={};Qt("CSSGroupingRule")?a.CSSGroupingRule=r.CSSGroupingRule:(Qt("CSSMediaRule")&&(a.CSSMediaRule=r.CSSMediaRule),Qt("CSSConditionRule")&&(a.CSSConditionRule=r.CSSConditionRule),Qt("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:A((f,p,g)=>{const[m,d]=g,{id:w,styleId:b}=Ie(p.parentStyleSheet,e,t.styleMirror);return(w&&w!==-1||b&&b!==-1)&&s({id:w,styleId:b,adds:[{rule:m,index:[...Or(p),d||0]}]}),f.apply(p,g)})}),h.prototype.deleteRule=new Proxy(c[u].deleteRule,{apply:A((f,p,g)=>{const[m]=g,{id:d,styleId:w}=Ie(p.parentStyleSheet,e,t.styleMirror);return(d&&d!==-1||w&&w!==-1)&&s({id:d,styleId:w,removes:[{index:[...Or(p),m]}]}),f.apply(p,g)})})}),A(()=>{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 la({mirror:s,stylesheetManager:e},t){var r,i,n;let o=null;t.nodeName==="#document"?o=s.getId(t):o=s.getId(x.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}}),A(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function sd({styleDeclarationCb:s,mirror:e,ignoreCSSAttributes:t,stylesheetManager:r},{win:i}){const n=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(n,{apply:A((l,a,c)=>{var u;const[h,f,p]=c;if(t.has(h))return n.apply(a,[h,f,p]);const{id:g,styleId:m}=Ie((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:p},index:Or(a.parentRule)}),l.apply(a,c)})});const o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:A((l,a,c)=>{var u;const[h]=c;if(t.has(h))return o.apply(a,[h]);const{id:f,styleId:p}=Ie((u=a.parentRule)==null?void 0:u.parentStyleSheet,e,r.styleMirror);return(f&&f!==-1||p&&p!==-1)&&s({id:f,styleId:p,remove:{property:h},index:Or(a.parentRule)}),l.apply(a,c)})}),A(()=>{i.CSSStyleDeclaration.prototype.setProperty=n,i.CSSStyleDeclaration.prototype.removeProperty=o})}function id({mediaInteractionCb:s,blockClass:e,blockSelector:t,mirror:r,sampling:i,doc:n}){const o=A(a=>It(A(c=>{const u=Rt(c);if(!u||X(u,e,t,!0))return;const{currentTime:h,volume:f,muted:p,playbackRate:g,loop:m}=u;s({type:a,id:r.getId(u),currentTime:h,volume:f,muted:p,playbackRate:g,loop:m})}),i.media||500)),l=[J("play",o(Be.Play),n),J("pause",o(Be.Pause),n),J("seeked",o(Be.Seeked),n),J("volumechange",o(Be.VolumeChange),n),J("ratechange",o(Be.RateChange),n)];return A(()=>{l.forEach(a=>a())})}function nd({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=Te(e.fonts,"add",function(l){return function(a){return setTimeout(A(()=>{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),A(()=>{r.forEach(l=>l())})}function od(s){const{doc:e,mirror:t,blockClass:r,blockSelector:i,selectionCb:n}=s;let o=!0;const l=A(()=>{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:p,startOffset:g,endContainer:m,endOffset:d}=f;X(p,r,i,!0)||X(m,r,i,!0)||c.push({start:t.getId(p),startOffset:g,end:t.getId(m),endOffset:d})}n({ranges:c})});return l(),J("selectionchange",l)}function ad({doc:s,customElementCb:e}){const t=s.defaultView;return!t||!t.customElements?()=>{}:Te(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 ld(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:p,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),p(...m)},s.customElementCb=(...m)=>{e.customElement&&e.customElement(...m),g(...m)}}function ud(s,e={}){const t=s.doc.defaultView;if(!t)return()=>{};ld(s,e);let r;s.recordDOM&&(r=oa(s,s.doc));const i=Kf(s),n=qf(s),o=aa(s),l=Qf(s,{win:t}),a=td(s),c=id(s);let u=()=>{},h=()=>{},f=()=>{},p=()=>{};s.recordDOM&&(u=rd(s,{win:t}),h=la(s,s.doc),f=sd(s,{win:t}),s.collectFonts&&(p=nd(s)));const g=od(s),m=ad(s),d=[];for(const w of s.plugins)d.push(w.observer(w.callback,t,w.options));return A(()=>{Ne.forEach(w=>w.reset()),r==null||r.disconnect(),i(),n(),o(),l(),a(),c(),u(),h(),f(),p(),g(),m(),d.forEach(w=>w())})}function qt(s){return typeof window[s]!="undefined"}function Qt(s){return!!(typeof window[s]!="undefined"&&window[s].prototype&&"insertRule"in window[s].prototype&&"deleteRule"in window[s].prototype)}var We="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cd=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var er=0;er<We.length;er++)cd[We.charCodeAt(er)]=er;var hd=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 on=new Map;function fd(s,e){let t=on.get(s);return t||(t=new Map,on.set(s,t)),t.has(e)||t.set(e,[]),t.get(e)}const ua=(s,e,t)=>{if(!s||!(ha(s,e)||typeof s=="object"))return;const r=s.constructor.name,i=fd(t,r);let n=i.indexOf(s);return n===-1&&(n=i.length,i.push(s)),n};function fr(s,e,t){if(s instanceof Array)return s.map(r=>fr(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=hd(s);return{rr_type:r,base64:i}}else{if(s instanceof DataView)return{rr_type:s.constructor.name,args:[fr(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:[fr(s.data,e,t),s.width,s.height]};if(ha(s,e)||typeof s=="object"){const r=s.constructor.name,i=ua(s,e,t);return{rr_type:r,index:i}}}}return s}const ca=(s,e,t)=>s.map(r=>fr(r,e,t)),ha=(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 dd(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=Te(e.CanvasRenderingContext2D.prototype,o,function(a){return function(...c){return X(this.canvas,t,r,!0)||setTimeout(()=>{const u=ca(c,e,this);s(this.canvas,{type:je["2D"],property:o,args:u})},0),a.apply(this,c)}});i.push(l)}catch(l){const a=Fr(e.CanvasRenderingContext2D.prototype,o,{set(c){s(this.canvas,{type:je["2D"],property:o,args:[c],setter:!0})}});i.push(a)}return()=>{i.forEach(o=>o())}}function pd(s){return s==="experimental-webgl"?"webgl":s}function an(s,e,t,r){const i=[];try{const n=Te(s.HTMLCanvasElement.prototype,"getContext",function(o){return function(l,...a){if(!X(this,e,t,!0)){const c=pd(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 ln(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=Te(s,a,function(u){return function(...h){const f=u.apply(this,h);if(ua(f,n,this),"tagName"in this.canvas&&!X(this.canvas,r,i,!0)){const p=ca(h,n,this),g={type:e,property:a,args:p};t(this.canvas,g)}return f}});o.push(c)}catch(c){const u=Fr(s,a,{set(h){t(this.canvas,{type:e,property:a,args:[h],setter:!0})}});o.push(u)}return o}function md(s,e,t,r){const i=[];return i.push(...ln(e.WebGLRenderingContext.prototype,je.WebGL,s,t,r,e)),typeof e.WebGL2RenderingContext!="undefined"&&i.push(...ln(e.WebGL2RenderingContext.prototype,je.WebGL2,s,t,r,e)),()=>{i.forEach(n=>n())}}const fa="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",gd=s=>Uint8Array.from(atob(s),e=>e.charCodeAt(0)),un=typeof self!="undefined"&&self.Blob&&new Blob([gd(fa)],{type:"text/javascript;charset=utf-8"});function yd(s){let e;try{if(e=un&&(self.URL||self.webkitURL).createObjectURL(un),!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,"+fa,{name:s==null?void 0:s.name})}finally{e&&(self.URL||self.webkitURL).revokeObjectURL(e)}}class wd{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=an(t,r,i,!0),l=new Map,a=new yd;a.onmessage=g=>{const{id:m}=g.data;if(l.set(m,!1),!("base64"in g.data))return;const{base64:d,type:w,width:b,height:S}=g.data;this.mutationCb({id:m,type:je["2D"],commands:[{property:"clearRect",args:[0,0,b,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:d}],type:w}]},0,0]}]})};const c=1e3/e;let u=0,h;const f=()=>{const g=[];return t.document.querySelectorAll("canvas").forEach(m=>{X(m,r,i,!0)||g.push(m)}),g},p=g=>{if(u&&g-u<c){h=requestAnimationFrame(p);return}u=g,f().forEach(async m=>{var d;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);((d=S==null?void 0:S.getContextAttributes())==null?void 0:d.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(p)};h=requestAnimationFrame(p),this.resetObservers=()=>{o(),cancelAnimationFrame(h)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=an(e,t,r,!1),n=dd(this.processMutation.bind(this),e,t,r),o=md(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 De(c,["type"])}),{type:n}=r[0];this.mutationCb({id:t,type:n,commands:i}),this.pendingCanvasMutations.delete(e)}}class bd{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 Sd{constructor(e){y(this,"shadowDoms",new WeakSet),y(this,"mutationCb"),y(this,"scrollCb"),y(this,"bypassOptions"),y(this,"mirror"),y(this,"restoreHandlers",[]),y(this,"mappedRestoreHandlers",{}),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(!ut(e)||!ot.onShadowRootObserver(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),Z(`Adding mutation observer for shadowRoot ${e.host}`);const r=oa(ee(M({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(aa(ee(M({},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(x.host(e))),this.restoreHandlers.push(la({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(Te(e.prototype,"attachShadow",function(i){return function(n){const o=i.call(this,n),l=x.shadowRoot(this);return l&&ta(this)&&r.addShadowRoot(l,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),Object.values(this.mappedRestoreHandlers).forEach(e=>{for(const t of e)try{t()}catch(r){}}),this.mappedRestoreHandlers={},this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class Cd{constructor(e){y(this,"trackedLinkElements",new WeakSet),y(this,"mutationCb"),y(this,"adoptedStyleSheetCb"),y(this,"styleMirror",new Df),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:wn(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 F,at,tr,dt=!1;try{if(Array.from([1],s=>s*2)[0]!==2){const s=document.createElement("iframe");document.body.appendChild(s),Array.from=((li=s.contentWindow)==null?void 0:li.Array.from)||Array.from,document.body.removeChild(s)}}catch(s){ht()&&console.debug("Unable to override Array.from",s)}const re=qa();function Oe(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:p,maskInputFn:g,maskTextFn:m,hooks:d,packFn:w,sampling:b={},dataURLOptions:S={},mousemoveWait:R,recordDOM:B=!0,recordCanvas:U=!1,recordCrossOriginIframes:G=!1,recordAfter:L=s.recordAfter==="DOMContentLoaded"?s.recordAfter:"load",userTriggeredOnInput:K=!1,collectFonts:j=!1,inlineImages:Q=!1,plugins:oe,keepIframeSrcFn:ae=()=>!1,ignoreCSSAttributes:E=new Set([]),errorHandler:Ke}=s;zf(Ke);const be=G?window.parent===window:!0;let Ae=!1;if(!be)try{window.parent.document&&(Ae=!1)}catch($){Ae=!0}if(be&&!e)throw new Error("emit function is required");if(!be&&!Ae)return()=>{};R!==void 0&&b.mousemove===void 0&&(b.mousemove=R),re.reset();const V=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},se=p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:p==="all",headMetaDescKeywords:p==="all",headTitleMutations:p==="all"}:p||{};Lf();let Re,le=0;const Et=$=>{for(const ue of oe||[])ue.eventProcessor&&($=ue.eventProcessor($));return w&&!Ae&&($=w($)),$};F=($,ue)=>{var z;const W=$;if(W.timestamp=Mr(),(z=Ne[0])!=null&&z.isFrozen()&&W.type!==O.FullSnapshot&&!(W.type===O.IncrementalSnapshot&&W.data.source===I.Mutation)&&Ne.forEach(de=>de.unfreeze()),be)e==null||e(Et(W),ue);else if(Ae){const de={type:"rrweb",event:Et(W),origin:window.location.origin,isCheckout:ue};window.parent.postMessage(de,"*")}if(W.type===O.FullSnapshot)Re=W,le=0;else if(W.type===O.IncrementalSnapshot){if(W.data.source===I.Mutation&&W.data.isAttachIframe)return;le++;const de=r&&le>=r,Qe=t&&W.timestamp-Re.timestamp>t;(de||Qe)&&at(!0)}};const fe=$=>{F({type:O.IncrementalSnapshot,data:M({source:I.Mutation},$)})},si=$=>F({type:O.IncrementalSnapshot,data:M({source:I.Scroll},$)}),ii=$=>F({type:O.IncrementalSnapshot,data:M({source:I.CanvasMutation},$)}),da=$=>F({type:O.IncrementalSnapshot,data:M({source:I.AdoptedStyleSheet},$)}),Se=new Cd({mutationCb:fe,adoptedStyleSheetCb:da}),Ce=new Wf({mirror:re,mutationCb:fe,stylesheetManager:Se,recordCrossOriginIframes:G,wrappedEmit:F});for(const $ of oe||[])$.getMirror&&$.getMirror({nodeMirror:re,crossOriginIframeMirror:Ce.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ce.crossOriginIframeStyleMirror});const $t=new bd;tr=new wd({recordCanvas:U,mutationCb:ii,win:window,blockClass:i,blockSelector:n,mirror:re,sampling:b.canvas,dataURLOptions:S});const qe=new Sd({mutationCb:fe,scrollCb:si,bypassOptions:{blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:V,dataURLOptions:S,maskTextFn:m,maskInputFn:g,recordCanvas:U,inlineImages:Q,sampling:b,slimDOMOptions:se,iframeManager:Ce,stylesheetManager:Se,canvasManager:tr,keepIframeSrcFn:ae,processedNodeManager:$t},mirror:re});ot.setEmitter(F),ot.setMutationOptions({blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:V,maskTextFn:m,maskInputFn:g,slimDOMOptions:se,dataURLOptions:S,canvasManager:tr,stylesheetManager:Se,shadowDomManager:qe,recordCanvas:U,inlineImages:Q,mirror:re,iframeManager:Ce,keepIframeSrcFn:ae,mutationCb:fe,processedNodeManager:$t}),at=($=!1)=>{if(!B)return;F({type:O.Meta,data:{href:window.location.href,width:Jo(),height:Zo()}},$),Se.reset(),qe.init(),Ne.forEach(z=>z.lock());const ue=Pl(document,{mirror:re,blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:V,maskTextFn:m,maskInputFn:g,slimDOM:se,dataURLOptions:S,recordCanvas:U,inlineImages:Q,onSerialize:z=>{qo(z,re)&&Ce.addIframe(z),Qo(z,re)&&Se.trackLinkElement(z),Ns(z)&&qe.addShadowRoot(x.shadowRoot(z),document)},onIframeLoad:(z,W)=>{Ce.attachIframe(z,W),qe.observeAttachShadow(z)},onStylesheetLoad:(z,W)=>{Se.attachLinkElement(z,W)},keepIframeSrcFn:ae});if(!ue){ht()&&console.warn("Failed to snapshot the document");return}F({type:O.FullSnapshot,data:{node:ue,initialOffset:Yo(window)}},$),Ne.forEach(z=>z.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Se.adoptStyleSheets(document.adoptedStyleSheets,re.getId(document))};try{const $=[],ue={},z=ve=>{var Nt;return A(ud)({mutationCb:fe,mousemoveCb:(_,Br)=>F({type:O.IncrementalSnapshot,data:{source:Br,positions:_}}),mouseInteractionCb:_=>F({type:O.IncrementalSnapshot,data:M({source:I.MouseInteraction},_)}),scrollCb:si,viewportResizeCb:_=>F({type:O.IncrementalSnapshot,data:M({source:I.ViewportResize},_)}),inputCb:_=>F({type:O.IncrementalSnapshot,data:M({source:I.Input},_)}),mediaInteractionCb:_=>F({type:O.IncrementalSnapshot,data:M({source:I.MediaInteraction},_)}),styleSheetRuleCb:_=>F({type:O.IncrementalSnapshot,data:M({source:I.StyleSheetRule},_)}),styleDeclarationCb:_=>F({type:O.IncrementalSnapshot,data:M({source:I.StyleDeclaration},_)}),canvasMutationCb:ii,fontCb:_=>F({type:O.IncrementalSnapshot,data:M({source:I.Font},_)}),selectionCb:_=>{F({type:O.IncrementalSnapshot,data:M({source:I.Selection},_)})},customElementCb:_=>{F({type:O.IncrementalSnapshot,data:M({source:I.CustomElement},_)})},blockClass:i,ignoreClass:o,ignoreSelector:l,maskTextClass:a,maskTextSelector:c,maskInputOptions:V,inlineStylesheet:u,sampling:b,recordDOM:B,recordCanvas:U,inlineImages:Q,userTriggeredOnInput:K,collectFonts:j,doc:ve,maskInputFn:g,maskTextFn:m,keepIframeSrcFn:ae,blockSelector:n,slimDOMOptions:se,dataURLOptions:S,mirror:re,iframeManager:Ce,stylesheetManager:Se,shadowDomManager:qe,processedNodeManager:$t,canvasManager:tr,ignoreCSSAttributes:E,plugins:((Nt=oe==null?void 0:oe.filter(_=>_.observer))==null?void 0:Nt.map(_=>({observer:_.observer,options:_.options,callback:Br=>F({type:O.Plugin,data:{plugin:_.name,payload:Br}})})))||[]},d)};Ce.addLoadListener(ve=>{try{if(!ot.onDocObserver(ve.contentDocument))return;$.push(z(ve.contentDocument))}catch(Nt){ht()&&(console.warn("internal error"),console.warn(Nt))}});let W=null;const de=()=>{W=Date.now(),at(),$.push(z(document)),dt=!0},Qe=()=>{window.removeEventListener("load",Qe),!(!dt||W==null)&&(Date.now()-W<=10||at())};return window.addEventListener("load",Qe),document.readyState==="interactive"||document.readyState==="complete"?(document.readyState==="complete"&&window.removeEventListener("load",Qe),de()):($.push(J("DOMContentLoaded",()=>{F({type:O.DomContentLoaded,data:{}}),L==="DOMContentLoaded"&&de()})),$.push(J("load",()=>{F({type:O.Load,data:{}}),L==="load"&&de()},window))),()=>{$.forEach(ve=>ve()),Object.values(ue).forEach(ve=>ve()),$t.destroy(),ot.destroy(),dt=!1,Uf()}}catch($){ht()&&(console.warn("internal error1"),console.warn($))}}Oe.addCustomEvent=(s,e)=>{if(!dt)throw new Error("please add custom event after start recording");F({type:O.Custom,data:{tag:s,payload:e}})};Oe.freezePage=()=>{Ne.forEach(s=>s.freeze())};Oe.takeFullSnapshot=s=>{if(!dt)throw new Error("please take full snapshot after start recording");at(s)};Oe.mirror=re;var cn;(function(s){s[s.NotStarted=0]="NotStarted",s[s.Running=1]="Running",s[s.Stopped=2]="Stopped"})(cn||(cn={}));const{addCustomEvent:rp}=Oe,{freezePage:sp}=Oe,{takeFullSnapshot:vd}=Oe;exports.record=Oe;
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") {