@posthog/rrweb-record 0.0.39 → 0.0.41

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,11 +1,11 @@
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 _n=Object.defineProperty,kn=Object.defineProperties;var Ln=Object.getOwnPropertyDescriptors;var Ye=Object.getOwnPropertySymbols;var is=Object.prototype.hasOwnProperty,ns=Object.prototype.propertyIsEnumerable;var ss=(e,t,s)=>t in e?_n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,L=(e,t)=>{for(var s in t||(t={}))is.call(t,s)&&ss(e,s,t[s]);if(Ye)for(var s of Ye(t))ns.call(t,s)&&ss(e,s,t[s]);return e},le=(e,t)=>kn(e,Ln(t));var Ne=(e,t)=>{var s={};for(var o in e)is.call(e,o)&&t.indexOf(o)<0&&(s[o]=e[o]);if(e!=null&&Ye)for(var o of Ye(e))t.indexOf(o)<0&&ns.call(e,o)&&(s[o]=e[o]);return s};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Dn=Object.defineProperty,Tn=(e,t,s)=>t in e?Dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,P=(e,t,s)=>Tn(e,typeof t!="symbol"?t+"":t,s),os,Fn=Object.defineProperty,$n=(e,t,s)=>t in e?Fn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,as=(e,t,s)=>$n(e,typeof t!="symbol"?t+"":t,s),Z=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Z||{});const ls={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},us={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ze={};function Bn(e){var t,s;const o=(s=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:s.call(t,e);if(o&&globalThis[o])return globalThis[o]}function Tr(e){if(Ze[e])return Ze[e];const t=Bn(e)||globalThis[e],s=t.prototype,o=e in ls?ls[e]:void 0,i=!!(o&&o.every(d=>{var m,h;return!!((h=(m=Object.getOwnPropertyDescriptor(s,d))==null?void 0:m.get)!=null&&h.toString().includes("[native code]"))})),a=e in us?us[e]:void 0,c=!!(a&&a.every(d=>{var m;return typeof s[d]=="function"&&((m=s[d])==null?void 0:m.toString().includes("[native code]"))}));if(i&&c)return Ze[e]=t.prototype,t.prototype;try{const d=document.createElement("iframe");document.body.appendChild(d);const m=d.contentWindow;if(!m)return t.prototype;const h=m[e].prototype;return document.body.removeChild(d),h?Ze[e]=h:s}catch(d){return s}}const xt={};function ve(e,t,s){var o;const i=`${e}.${String(s)}`;if(xt[i])return xt[i].call(t);const a=Tr(e),c=(o=Object.getOwnPropertyDescriptor(a,s))==null?void 0:o.get;return c?(xt[i]=c,c.call(t)):t[s]}const Rt={};function Fi(e,t,s){const o=`${e}.${String(s)}`;if(Rt[o])return Rt[o].bind(t);const a=Tr(e)[s];return typeof a!="function"?t[s]:(Rt[o]=a,a.bind(t))}function Un(e){return ve("Node",e,"childNodes")}function Wn(e){return ve("Node",e,"parentNode")}function zn(e){return ve("Node",e,"parentElement")}function qn(e){return ve("Node",e,"textContent")}function jn(e,t){return Fi("Node",e,"contains")(t)}function Hn(e){return Fi("Node",e,"getRootNode")()}function Vn(e){return!e||!("host"in e)?null:ve("ShadowRoot",e,"host")}function Gn(e){return e.styleSheets}function Jn(e){return!e||!("shadowRoot"in e)?null:ve("Element",e,"shadowRoot")}function Yn(e,t){return ve("Element",e,"querySelector")(t)}function Zn(e,t){return ve("Element",e,"querySelectorAll")(t)}function Qn(){return Tr("MutationObserver").constructor}function Xn(e,t,s){try{if(!(t in e))return()=>{};const o=e[t],i=s(o);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=i,()=>{e[t]=o}}catch(o){return()=>{}}}const Q={childNodes:Un,parentNode:Wn,parentElement:zn,textContent:qn,contains:jn,getRootNode:Hn,host:Vn,styleSheets:Gn,shadowRoot:Jn,querySelector:Yn,querySelectorAll:Zn,mutationObserver:Qn,patch:Xn};function Fr(e){return e.nodeType===e.ELEMENT_NODE}function Be(e){const t=e&&"host"in e&&"mode"in e&&Q.host(e)||null;return!!(t&&"shadowRoot"in t&&Q.shadowRoot(t)===e)}function Ue(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Kn(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function eo(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const s=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?s.push("layer"):e.layerName&&s.push(`layer(${e.layerName})`),e.supportsText&&s.push(`supports(${e.supportsText})`),e.media.length&&s.push(e.media.mediaText),s.join(" ")+";"}function at(e){try{const t=e.rules||e.cssRules;if(!t)return null;let s=e.href;!s&&e.ownerNode&&(s=e.ownerNode.baseURI);const o=Array.from(t,i=>$i(i,s)).join("");return Kn(o)}catch(t){return null}}function $i(e,t){var s;if(ro(e)){let o;try{o=at(e.styleSheet)||eo(e)}catch(i){o=e.cssText}try{if(o&&((s=e.styleSheet)!=null&&s.href))return lt(o,e.styleSheet.href)}catch(i){}return o}else{let o=e.cssText;return so(e)&&e.selectorText.includes(":")&&(o=to(o)),t?lt(o,t):o}}function to(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function ro(e){return"styleSheet"in e}function so(e){return"selectorText"in e}class Bi{constructor(){as(this,"idNodeMap",new Map),as(this,"nodeMetaMap",new WeakMap)}getId(t){var s;if(!t)return-1;const o=(s=this.getMeta(t))==null?void 0:s.id;return o!=null?o:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const s=this.getId(t);if(this.idNodeMap.delete(s),t.childNodes&&t.childNodes.forEach(o=>this.removeNodeFromMap(o)),Fr(t)){const o=Q.shadowRoot(t);o&&this.removeNodeFromMap(o),t.nodeName==="IFRAME"&&t.contentDocument&&this.removeNodeFromMap(t.contentDocument)}}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,s){const o=s.id;this.idNodeMap.set(o,t),this.nodeMetaMap.set(t,s)}replace(t,s){const o=this.getNode(t);if(o){const i=this.nodeMetaMap.get(o);i&&this.nodeMetaMap.set(s,i)}this.idNodeMap.set(t,s)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function io(){return new Bi}function $r({element:e,maskInputOptions:t,tagName:s,type:o,value:i,maskInputFn:a}){let c=i||"";const d=o&&Oe(o);return(t[s.toLowerCase()]||d&&t[d])&&(a?c=a(c,e):c="*".repeat(c.length)),c}function Oe(e){return e.toLowerCase()}const cs="__rrweb_original__";function no(e){const t=e.getContext("2d");if(!t)return!0;const s=50;for(let o=0;o<e.width;o+=s)for(let i=0;i<e.height;i+=s){const a=t.getImageData,c=cs in a?a[cs]:a;if(new Uint32Array(c.call(t,o,i,Math.min(s,e.width-o),Math.min(s,e.height-i)).data.buffer).some(m=>m!==0))return!1}return!0}function Br(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Oe(t):null}function Ui(e,t){var a;let s;try{s=new URL(e,t!=null?t:window.location.href)}catch(c){return null}const o=/\.([0-9a-z]+)(?:$)/i,i=s.pathname.match(o);return(a=i==null?void 0:i[1])!=null?a:null}function oo(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const ao=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,lo=/^(?:[a-z+]+:)?\/\//i,uo=/^www\..*/i,co=/^(data:)([^,]*),(.*)/i;function lt(e,t){return(e||"").replace(ao,(s,o,i,a,c,d)=>{const m=i||c||d,h=o||a||"";if(!m)return s;if(lo.test(m)||uo.test(m))return`url(${h}${m}${h})`;if(co.test(m))return`url(${h}${m}${h})`;if(m[0]==="/")return`url(${h}${oo(t)+m}${h})`;const r=t.split("/"),u=m.split("/");r.pop();for(const l of u)l!=="."&&(l===".."?r.pop():r.push(l));return`url(${h}${r.join("/")}${h})`})}const ho="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==",hs=4096;function fo(e,t,s,o){if(!e.complete||e.naturalWidth===0||e.naturalWidth>hs||e.naturalHeight>hs)return t;try{const i=document.createElement("canvas");i.width=e.naturalWidth,i.height=e.naturalHeight;const a=i.getContext("2d");return a?(a.drawImage(e,0,0),i.toDataURL(s||"image/webp",o!=null?o:.4)):t}catch(i){return t}}function po(e,t){return!t||e.length<=t?e:ho}let mo=1;const go=new RegExp("[^a-z0-9-_:]"),ze=-2;function Wi(){return mo++}function yo(e){if(e instanceof HTMLFormElement)return"form";const t=Oe(e.tagName);return go.test(t)?"div":t}let _e,fs;const wo=/^[^ \t\n\r\u000c]+/,bo=/^[, \t\n\r\u000c]+/;function So(e,t){if(t.trim()==="")return t;let s=0;function o(a){let c;const d=a.exec(t.substring(s));return d?(c=d[0],s+=c.length,c):""}const i=[];for(;o(bo),!(s>=t.length);){let a=o(wo);if(a.slice(-1)===",")a=De(e,a.substring(0,a.length-1)),i.push(a);else{let c="";a=De(e,a);let d=!1;for(;;){const m=t.charAt(s);if(m===""){i.push((a+c).trim());break}else if(d)m===")"&&(d=!1);else if(m===","){s+=1,i.push((a+c).trim());break}else m==="("&&(d=!0);c+=m,s+=1}}}return i.join(", ")}const ps=new WeakMap;function De(e,t){return!t||t.trim()===""?t:Ur(e,t)}function vo(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Ur(e,t){let s=ps.get(e);if(s||(s=e.createElement("a"),ps.set(e,s)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return s.setAttribute("href",t),s.href}function zi(e,t,s,o,i,a){if(!o)return o;if(s==="src"||s==="href"&&!(t==="use"&&o[0]==="#")){const c=De(e,o);if(t==="img"&&c.startsWith("data:")&&i){const d=i;let m=c;return(a!=null&&a.type||(a==null?void 0:a.quality)!==void 0)&&(m=fo(d,c,a.type,a.quality)),a!=null&&a.maxBase64ImageLength&&(m=po(m,a.maxBase64ImageLength)),m}return c}else{if(s==="xlink:href"&&o[0]!=="#")return De(e,o);if(s==="background"&&(t==="table"||t==="td"||t==="th"))return De(e,o);if(s==="srcset")return So(e,o);if(s==="style")return lt(o,Ur(e));if(t==="object"&&s==="data")return De(e,o)}return o}function qi(e,t,s){return(e==="video"||e==="audio")&&t==="autoplay"}function Co(e,t,s){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const i=e.classList[o];if(t.test(i))return!0}if(s)return e.matches(s)}catch(o){}return!1}function ut(e,t,s){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return s?ut(Q.parentNode(e),t,s):!1;for(let o=e.classList.length;o--;){const i=e.classList[o];if(t.test(i))return!0}return s?ut(Q.parentNode(e),t,s):!1}function ji(e,t,s,o){let i;if(Fr(e)){if(i=e,!Q.childNodes(i).length)return!1}else{if(Q.parentElement(e)===null)return!1;i=Q.parentElement(e)}try{if(typeof t=="string"){if(o){if(i.closest(`.${t}`))return!0}else if(i.classList.contains(t))return!0}else if(ut(i,t,o))return!0;if(s){if(o){if(i.closest(s))return!0}else if(i.matches(s))return!0}}catch(a){}return!1}function xo(e,t,s){const o=e.contentWindow;if(!o)return;let i=!1,a;try{a=o.document.readyState}catch(d){return}if(a!=="complete"){const d=setTimeout(()=>{i||(t(),i=!0)},s);e.addEventListener("load",()=>{clearTimeout(d),i=!0,t()});return}const c="about:blank";if(o.location.href!==c||e.src===c||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Ro(e,t,s){let o=!1,i;try{i=e.sheet}catch(c){return}if(i)return;const a=setTimeout(()=>{o||(t(),o=!0)},s);e.addEventListener("load",()=>{clearTimeout(a),o=!0,t()})}function Oo(e,t){const{doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:c,inlineStylesheet:d,maskInputOptions:m={},maskTextFn:h,maskInputFn:r,dataURLOptions:u={},inlineImages:l,recordCanvas:n,keepIframeSrcFn:p,newlyAddedElement:f=!1}=t,g=Io(s,o);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Z.Document,childNodes:[],compatMode:e.compatMode}:{type:Z.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Z.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return Ao(e,{doc:s,blockClass:i,blockSelector:a,inlineStylesheet:d,maskInputOptions:m,maskInputFn:r,dataURLOptions:u,inlineImages:l,recordCanvas:n,keepIframeSrcFn:p,newlyAddedElement:f,rootId:g});case e.TEXT_NODE:return Mo(e,{doc:s,needsMask:c,maskTextFn:h,rootId:g});case e.CDATA_SECTION_NODE:return{type:Z.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:Z.Comment,textContent:Q.textContent(e)||"",rootId:g};default:return!1}}function Io(e,t){if(!t.hasNode(e))return;const s=t.getId(e);return s===1?void 0:s}function Mo(e,t){var s;const{needsMask:o,maskTextFn:i,rootId:a}=t,c=Q.parentNode(e),d=c&&c.tagName;let m=Q.textContent(e);const h=d==="STYLE"?!0:void 0,r=d==="SCRIPT"?!0:void 0;if(h&&m){try{e.nextSibling||e.previousSibling||(s=c.sheet)!=null&&s.cssRules&&(m=at(c.sheet))}catch(u){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${u}`,e)}m=lt(m,Ur(t.doc))}return r&&(m="SCRIPT_PLACEHOLDER"),!h&&!r&&m&&o&&(m=i?i(m,Q.parentElement(e)):m.replace(/[\S]/g,"*")),{type:Z.Text,textContent:m||"",isStyle:h,rootId:a}}function ds(e,t){return Array.from(e.styleSheets).find(s=>s.href===t)}function Eo(e){return e.href}function Ao(e,t){var s,o;const{doc:i,blockClass:a,blockSelector:c,inlineStylesheet:d,maskInputOptions:m={},maskInputFn:h,dataURLOptions:r={},inlineImages:u,recordCanvas:l,keepIframeSrcFn:n,newlyAddedElement:p=!1,rootId:f}=t,g=Co(e,a,c),S=yo(e);let w={};const v=e.attributes.length;for(let y=0;y<v;y++){const b=e.attributes[y];qi(S,b.name,b.value)||(w[b.name]=zi(i,S,Oe(b.name),b.value,e,r))}if(S==="link"&&d){const y=Eo(e);if(y){let b=ds(i,y);if(!b&&y.includes(".css")){const R=window.location.origin,M=y.replace(window.location.href,""),O=R+"/"+M;b=ds(i,O)}let C=null;b&&(C=at(b)),C&&(delete w.rel,delete w.href,w._cssText=C)}}if(S==="style"&&e.sheet&&!(e.innerText||Q.textContent(e)||"").trim().length){const y=at(e.sheet);y&&(w._cssText=y)}if(S==="input"||S==="textarea"||S==="select"){const y=e.value,b=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&y?w.value=$r({element:e,type:Br(e),tagName:S,value:y,maskInputOptions:m,maskInputFn:h}):b&&(w.checked=b)}if(S==="option"&&(e.selected&&!m.select?w.selected=!0:delete w.selected),S==="dialog"&&e.open)try{w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(y){w.rr_open_mode="modal",w.ph_rr_could_not_detect_modal=!0}if(S==="canvas"&&l){if(e.__context==="2d")no(e)||(w.rr_dataURL=e.toDataURL(r.type,r.quality));else if(!("__context"in e)){const y=e.toDataURL(r.type,r.quality),b=i.createElement("canvas");b.width=e.width,b.height=e.height;const C=b.toDataURL(r.type,r.quality);y!==C&&(w.rr_dataURL=y)}}if(S==="img"&&u){_e||(_e=i.createElement("canvas"),fs=_e.getContext("2d"));const y=e,b=y.currentSrc||y.getAttribute("src")||"<unknown-src>",C=y.crossOrigin,R=()=>{y.removeEventListener("load",R);try{_e.width=y.naturalWidth,_e.height=y.naturalHeight,fs.drawImage(y,0,0),w.rr_dataURL=_e.toDataURL(r.type,r.quality)}catch(M){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?R():y.addEventListener("load",R);return}else console.warn(`Cannot inline img src=${b}! Error: ${M}`)}y.crossOrigin==="anonymous"&&(C?w.crossOrigin=C:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?R():y.addEventListener("load",R)}if(S==="audio"||S==="video"){const y=w;y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime,y.rr_mediaPlaybackRate=e.playbackRate,y.rr_mediaMuted=e.muted,y.rr_mediaLoop=e.loop,y.rr_mediaVolume=e.volume}if(p||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),g){const{width:y,height:b,left:C,top:R}=e.getBoundingClientRect();w={class:w.class,rr_width:`${y}px`,rr_height:`${b}px`,rr_left:`${Math.floor(C+(((s=i.defaultView)==null?void 0:s.scrollX)||0))}px`,rr_top:`${Math.floor(R+(((o=i.defaultView)==null?void 0:o.scrollY)||0))}px`}}S==="iframe"&&!n(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);let x;try{customElements.get(S)&&(x=!0)}catch(y){}return{type:Z.Element,tagName:S,attributes:w,childNodes:[],isSVG:vo(e)||void 0,needBlock:g,rootId:f,isCustom:x}}function U(e){return e==null?"":e.toLowerCase()}function Po(e,t){if(t.comment&&e.type===Z.Comment)return!0;if(e.type===Z.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ui(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(U(e.attributes.name).match(/^msapplication-tile(image|color)$/)||U(e.attributes.name)==="application-name"||U(e.attributes.rel)==="icon"||U(e.attributes.rel)==="apple-touch-icon"||U(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&U(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(U(e.attributes.property).match(/^(og|twitter|fb):/)||U(e.attributes.name).match(/^(og|twitter):/)||U(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(U(e.attributes.name)==="robots"||U(e.attributes.name)==="googlebot"||U(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(U(e.attributes.name)==="author"||U(e.attributes.name)==="generator"||U(e.attributes.name)==="framework"||U(e.attributes.name)==="publisher"||U(e.attributes.name)==="progid"||U(e.attributes.property).match(/^article:/)||U(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(U(e.attributes.name)==="google-site-verification"||U(e.attributes.name)==="yandex-verification"||U(e.attributes.name)==="csrf-token"||U(e.attributes.name)==="p:domain_verify"||U(e.attributes.name)==="verify-v1"||U(e.attributes.name)==="verification"||U(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Te(e,t){const{doc:s,mirror:o,blockClass:i,blockSelector:a,maskTextClass:c,maskTextSelector:d,skipChild:m=!1,inlineStylesheet:h=!0,maskInputOptions:r={},maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:p={},inlineImages:f=!1,recordCanvas:g=!1,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:v=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:y=5e3,keepIframeSrcFn:b=()=>!1,newlyAddedElement:C=!1}=t;let{needsMask:R}=t,{preserveWhiteSpace:M=!0}=t;R||(R=ji(e,c,d,R===void 0));const O=Oo(e,{doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:R,inlineStylesheet:h,maskInputOptions:r,maskTextFn:u,maskInputFn:l,dataURLOptions:p,inlineImages:f,recordCanvas:g,keepIframeSrcFn:b,newlyAddedElement:C});if(!O)return console.warn(e,"not serialized"),null;let N;o.hasNode(e)?N=o.getId(e):Po(O,n)||!M&&O.type===Z.Text&&!O.isStyle&&!O.textContent.replace(/^\s+|\s+$/gm,"").length?N=ze:N=Wi();const A=Object.assign(O,{id:N});if(o.add(e,A),N===ze)return null;S&&S(e);let ee=!m;if(A.type===Z.Element){ee=ee&&!A.needBlock,delete A.needBlock;const I=Q.shadowRoot(e);I&&Ue(I)&&(A.isShadowHost=!0)}if((A.type===Z.Document||A.type===Z.Element)&&ee){n.headWhitespace&&A.type===Z.Element&&A.tagName==="head"&&(M=!1);const I={doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:R,maskTextClass:c,maskTextSelector:d,skipChild:m,inlineStylesheet:h,maskInputOptions:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:p,inlineImages:f,recordCanvas:g,preserveWhiteSpace:M,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:v,onStylesheetLoad:x,stylesheetLoadTimeout:y,keepIframeSrcFn:b};if(!(A.type===Z.Element&&A.tagName==="textarea"&&A.attributes.value!==void 0))for(const T of Array.from(Q.childNodes(e))){const B=Te(T,I);B&&A.childNodes.push(B)}let X=null;if(Fr(e)&&(X=Q.shadowRoot(e)))for(const T of Array.from(Q.childNodes(X))){const B=Te(T,I);B&&(Ue(X)&&(B.isShadow=!0),A.childNodes.push(B))}}const te=Q.parentNode(e);return te&&Be(te)&&Ue(te)&&(A.isShadow=!0),A.type===Z.Element&&A.tagName==="iframe"&&xo(e,()=>{const I=e.contentDocument;if(I&&w){const X=Te(I,{doc:I,mirror:o,blockClass:i,blockSelector:a,needsMask:R,maskTextClass:c,maskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:p,inlineImages:f,recordCanvas:g,preserveWhiteSpace:M,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:v,onStylesheetLoad:x,stylesheetLoadTimeout:y,keepIframeSrcFn:b});X&&w(e,X)}},v),A.type===Z.Element&&A.tagName==="link"&&typeof A.attributes.rel=="string"&&(A.attributes.rel==="stylesheet"||A.attributes.rel==="preload"&&typeof A.attributes.href=="string"&&Ui(A.attributes.href)==="css")&&Ro(e,()=>{if(x){const I=Te(e,{doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:R,maskTextClass:c,maskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:p,inlineImages:f,recordCanvas:g,preserveWhiteSpace:M,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:v,onStylesheetLoad:x,stylesheetLoadTimeout:y,keepIframeSrcFn:b});I&&x(e,I)}},y),A}function No(e,t){const{mirror:s=new Bi,blockClass:o="rr-block",blockSelector:i=null,maskTextClass:a="rr-mask",maskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:m=!1,recordCanvas:h=!1,maskAllInputs:r=!1,maskTextFn:u,maskInputFn:l,slimDOM:n=!1,dataURLOptions:p,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:x,keepIframeSrcFn:y=()=>!1}=t||{};return Te(e,{doc:e,mirror:s,blockClass:o,blockSelector:i,maskTextClass:a,maskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:r===!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}:r===!1?{password:!0}:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n===!0||n==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:n==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:n===!1?{}:n,dataURLOptions:p,inlineImages:m,recordCanvas:h,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:x,keepIframeSrcFn:y,newlyAddedElement:!1})}function _o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ko(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var s=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),s}var Qe={exports:{}},ms;function Lo(){if(ms)return Qe.exports;ms=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return Qe.exports=t(),Qe.exports.createColors=t,Qe.exports}const Do={},To=Object.freeze(Object.defineProperty({__proto__:null,default:Do},Symbol.toStringTag,{value:"Module"})),pe=ko(To);var Ot,gs;function Wr(){if(gs)return Ot;gs=1;let e=Lo(),t=pe;class s extends Error{constructor(i,a,c,d,m,h){super(i),this.name="CssSyntaxError",this.reason=i,m&&(this.file=m),d&&(this.source=d),h&&(this.plugin=h),typeof a!="undefined"&&typeof c!="undefined"&&(typeof a=="number"?(this.line=a,this.column=c):(this.line=a.line,this.column=a.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}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(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported);let c=n=>n,d=n=>n,m=n=>n;if(i){let{bold:n,gray:p,red:f}=e.createColors(!0);d=g=>n(f(g)),c=g=>p(g),t&&(m=g=>t(g))}let h=a.split(/\r?\n/),r=Math.max(this.line-3,0),u=Math.min(this.line+2,h.length),l=String(u).length;return h.slice(r,u).map((n,p)=>{let f=r+1+p,g=" "+(" "+f).slice(-l)+" | ";if(f===this.line){if(n.length>160){let w=20,v=Math.max(0,this.column-w),x=Math.max(this.column+w,this.endColumn+w),y=n.slice(v,x),b=c(g.replace(/\d/g," "))+n.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return d(">")+c(g)+m(y)+`
2
+ "use strict";var kn=Object.defineProperty,Dn=Object.defineProperties;var Ln=Object.getOwnPropertyDescriptors;var Ye=Object.getOwnPropertySymbols;var is=Object.prototype.hasOwnProperty,ns=Object.prototype.propertyIsEnumerable;var ss=(e,t,s)=>t in e?kn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,T=(e,t)=>{for(var s in t||(t={}))is.call(t,s)&&ss(e,s,t[s]);if(Ye)for(var s of Ye(t))ns.call(t,s)&&ss(e,s,t[s]);return e},le=(e,t)=>Dn(e,Ln(t));var Ne=(e,t)=>{var s={};for(var o in e)is.call(e,o)&&t.indexOf(o)<0&&(s[o]=e[o]);if(e!=null&&Ye)for(var o of Ye(e))t.indexOf(o)<0&&ns.call(e,o)&&(s[o]=e[o]);return s};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Tn=Object.defineProperty,Fn=(e,t,s)=>t in e?Tn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,A=(e,t,s)=>Fn(e,typeof t!="symbol"?t+"":t,s),os,$n=Object.defineProperty,Bn=(e,t,s)=>t in e?$n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,as=(e,t,s)=>Bn(e,typeof t!="symbol"?t+"":t,s),Q=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Q||{});const ls={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},us={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ze={};function Un(e){var t,s;const o=(s=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:s.call(t,e);if(o&&globalThis[o])return globalThis[o]}function Tr(e){if(Ze[e])return Ze[e];const t=Un(e)||globalThis[e],s=t.prototype,o=e in ls?ls[e]:void 0,i=!!(o&&o.every(d=>{var m,h;return!!((h=(m=Object.getOwnPropertyDescriptor(s,d))==null?void 0:m.get)!=null&&h.toString().includes("[native code]"))})),a=e in us?us[e]:void 0,c=!!(a&&a.every(d=>{var m;return typeof s[d]=="function"&&((m=s[d])==null?void 0:m.toString().includes("[native code]"))}));if(i&&c)return Ze[e]=t.prototype,t.prototype;try{const d=document.createElement("iframe");document.body.appendChild(d);const m=d.contentWindow;if(!m)return t.prototype;const h=m[e].prototype;return document.body.removeChild(d),h?Ze[e]=h:s}catch(d){return s}}const xt={};function ve(e,t,s){var o;const i=`${e}.${String(s)}`;if(xt[i])return xt[i].call(t);const a=Tr(e),c=(o=Object.getOwnPropertyDescriptor(a,s))==null?void 0:o.get;return c?(xt[i]=c,c.call(t)):t[s]}const Rt={};function $i(e,t,s){const o=`${e}.${String(s)}`;if(Rt[o])return Rt[o].bind(t);const a=Tr(e)[s];return typeof a!="function"?t[s]:(Rt[o]=a,a.bind(t))}function Wn(e){return ve("Node",e,"childNodes")}function zn(e){return ve("Node",e,"parentNode")}function qn(e){return ve("Node",e,"parentElement")}function jn(e){return ve("Node",e,"textContent")}function Hn(e,t){return $i("Node",e,"contains")(t)}function Vn(e){return $i("Node",e,"getRootNode")()}function Gn(e){return!e||!("host"in e)?null:ve("ShadowRoot",e,"host")}function Jn(e){return e.styleSheets}function Yn(e){return!e||!("shadowRoot"in e)?null:ve("Element",e,"shadowRoot")}function Zn(e,t){return ve("Element",e,"querySelector")(t)}function Xn(e,t){return ve("Element",e,"querySelectorAll")(t)}function Qn(){return Tr("MutationObserver").constructor}function Kn(e,t,s){try{if(!(t in e))return()=>{};const o=e[t],i=s(o);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=i,()=>{e[t]=o}}catch(o){return()=>{}}}const K={childNodes:Wn,parentNode:zn,parentElement:qn,textContent:jn,contains:Hn,getRootNode:Vn,host:Gn,styleSheets:Jn,shadowRoot:Yn,querySelector:Zn,querySelectorAll:Xn,mutationObserver:Qn,patch:Kn};function Fr(e){return e.nodeType===e.ELEMENT_NODE}function Be(e){const t=e&&"host"in e&&"mode"in e&&K.host(e)||null;return!!(t&&"shadowRoot"in t&&K.shadowRoot(t)===e)}function Ue(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function eo(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function to(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const s=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?s.push("layer"):e.layerName&&s.push(`layer(${e.layerName})`),e.supportsText&&s.push(`supports(${e.supportsText})`),e.media.length&&s.push(e.media.mediaText),s.join(" ")+";"}function at(e){try{const t=e.rules||e.cssRules;if(!t)return null;let s=e.href;!s&&e.ownerNode&&(s=e.ownerNode.baseURI);const o=Array.from(t,i=>Bi(i,s)).join("");return eo(o)}catch(t){return null}}function Bi(e,t){var s;if(so(e)){let o;try{o=at(e.styleSheet)||to(e)}catch(i){o=e.cssText}try{if(o&&((s=e.styleSheet)!=null&&s.href))return lt(o,e.styleSheet.href)}catch(i){}return o}else{let o=e.cssText;return io(e)&&e.selectorText.includes(":")&&(o=ro(o)),t?lt(o,t):o}}function ro(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function so(e){return"styleSheet"in e}function io(e){return"selectorText"in e}class Ui{constructor(){as(this,"idNodeMap",new Map),as(this,"nodeMetaMap",new WeakMap)}getId(t){var s;if(!t)return-1;const o=(s=this.getMeta(t))==null?void 0:s.id;return o!=null?o:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const s=this.getId(t);if(this.idNodeMap.delete(s),t.childNodes&&t.childNodes.forEach(o=>this.removeNodeFromMap(o)),Fr(t)){const o=K.shadowRoot(t);o&&this.removeNodeFromMap(o),t.nodeName==="IFRAME"&&t.contentDocument&&this.removeNodeFromMap(t.contentDocument)}}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,s){const o=s.id;this.idNodeMap.set(o,t),this.nodeMetaMap.set(t,s)}replace(t,s){const o=this.getNode(t);if(o){const i=this.nodeMetaMap.get(o);i&&this.nodeMetaMap.set(s,i)}this.idNodeMap.set(t,s)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function no(){return new Ui}function $r({element:e,maskInputOptions:t,tagName:s,type:o,value:i,maskInputFn:a}){let c=i||"";const d=o&&Oe(o);return(t[s.toLowerCase()]||d&&t[d])&&(a?c=a(c,e):c="*".repeat(c.length)),c}function Oe(e){return e.toLowerCase()}const cs="__rrweb_original__";function oo(e){const t=e.getContext("2d");if(!t)return!0;const s=50;for(let o=0;o<e.width;o+=s)for(let i=0;i<e.height;i+=s){const a=t.getImageData,c=cs in a?a[cs]:a;if(new Uint32Array(c.call(t,o,i,Math.min(s,e.width-o),Math.min(s,e.height-i)).data.buffer).some(m=>m!==0))return!1}return!0}function Br(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Oe(t):null}function Wi(e,t){var a;let s;try{s=new URL(e,t!=null?t:window.location.href)}catch(c){return null}const o=/\.([0-9a-z]+)(?:$)/i,i=s.pathname.match(o);return(a=i==null?void 0:i[1])!=null?a:null}function ao(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const lo=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,uo=/^(?:[a-z+]+:)?\/\//i,co=/^www\..*/i,ho=/^(data:)([^,]*),(.*)/i;function lt(e,t){return(e||"").replace(lo,(s,o,i,a,c,d)=>{const m=i||c||d,h=o||a||"";if(!m)return s;if(uo.test(m)||co.test(m))return`url(${h}${m}${h})`;if(ho.test(m))return`url(${h}${m}${h})`;if(m[0]==="/")return`url(${h}${ao(t)+m}${h})`;const r=t.split("/"),u=m.split("/");r.pop();for(const l of u)l!=="."&&(l===".."?r.pop():r.push(l));return`url(${h}${r.join("/")}${h})`})}const fo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==",hs=4096;function po(e,t,s,o){if(!e.complete||e.naturalWidth===0||e.naturalWidth>hs||e.naturalHeight>hs)return t;try{const i=document.createElement("canvas");i.width=e.naturalWidth,i.height=e.naturalHeight;const a=i.getContext("2d");return a?(a.drawImage(e,0,0),i.toDataURL(s||"image/webp",o!=null?o:.4)):t}catch(i){return t}}function mo(e,t){return!t||e.length<=t?e:fo}let go=1;const yo=new RegExp("[^a-z0-9-_:]"),ze=-2;function zi(){return go++}function wo(e){if(e instanceof HTMLFormElement)return"form";const t=Oe(e.tagName);return yo.test(t)?"div":t}let _e,fs;const bo=/^[^ \t\n\r\u000c]+/,So=/^[, \t\n\r\u000c]+/;function vo(e,t){if(t.trim()==="")return t;let s=0;function o(a){let c;const d=a.exec(t.substring(s));return d?(c=d[0],s+=c.length,c):""}const i=[];for(;o(So),!(s>=t.length);){let a=o(bo);if(a.slice(-1)===",")a=Le(e,a.substring(0,a.length-1)),i.push(a);else{let c="";a=Le(e,a);let d=!1;for(;;){const m=t.charAt(s);if(m===""){i.push((a+c).trim());break}else if(d)m===")"&&(d=!1);else if(m===","){s+=1,i.push((a+c).trim());break}else m==="("&&(d=!0);c+=m,s+=1}}}return i.join(", ")}const ps=new WeakMap;function Le(e,t){return!t||t.trim()===""?t:Ur(e,t)}function Co(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Ur(e,t){let s=ps.get(e);if(s||(s=e.createElement("a"),ps.set(e,s)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return s.setAttribute("href",t),s.href}function qi(e,t,s,o,i,a){if(!o)return o;if(s==="src"||s==="href"&&!(t==="use"&&o[0]==="#")){const c=Le(e,o);if(t==="img"&&c.startsWith("data:")&&i){const d=i;let m=c;return(a!=null&&a.type||(a==null?void 0:a.quality)!==void 0)&&(m=po(d,c,a.type,a.quality)),a!=null&&a.maxBase64ImageLength&&(m=mo(m,a.maxBase64ImageLength)),m}return c}else{if(s==="xlink:href"&&o[0]!=="#")return Le(e,o);if(s==="background"&&(t==="table"||t==="td"||t==="th"))return Le(e,o);if(s==="srcset")return vo(e,o);if(s==="style")return lt(o,Ur(e));if(t==="object"&&s==="data")return Le(e,o)}return o}function ji(e,t,s){return(e==="video"||e==="audio")&&t==="autoplay"}function xo(e,t,s){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const i=e.classList[o];if(t.test(i))return!0}if(s)return e.matches(s)}catch(o){}return!1}function ut(e,t,s){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return s?ut(K.parentNode(e),t,s):!1;for(let o=e.classList.length;o--;){const i=e.classList[o];if(t.test(i))return!0}return s?ut(K.parentNode(e),t,s):!1}function Hi(e,t,s,o){let i;if(Fr(e)){if(i=e,!K.childNodes(i).length)return!1}else{if(K.parentElement(e)===null)return!1;i=K.parentElement(e)}try{if(typeof t=="string"){if(o){if(i.closest(`.${t}`))return!0}else if(i.classList.contains(t))return!0}else if(ut(i,t,o))return!0;if(s){if(o){if(i.closest(s))return!0}else if(i.matches(s))return!0}}catch(a){}return!1}function Ro(e,t,s){const o=e.contentWindow;if(!o)return;let i=!1,a;try{a=o.document.readyState}catch(d){return}if(a!=="complete"){const d=setTimeout(()=>{i||(t(),i=!0)},s);e.addEventListener("load",()=>{clearTimeout(d),i=!0,t()});return}const c="about:blank";if(o.location.href!==c||e.src===c||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Oo(e,t,s){let o=!1,i;try{i=e.sheet}catch(c){return}if(i)return;const a=setTimeout(()=>{o||(t(),o=!0)},s);e.addEventListener("load",()=>{clearTimeout(a),o=!0,t()})}function Io(e,t){const{doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:c,inlineStylesheet:d,maskInputOptions:m={},maskTextFn:h,maskInputFn:r,dataURLOptions:u={},inlineImages:l,recordCanvas:n,keepIframeSrcFn:p,newlyAddedElement:f=!1}=t,g=Mo(s,o);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Q.Document,childNodes:[],compatMode:e.compatMode}:{type:Q.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Q.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return Po(e,{doc:s,blockClass:i,blockSelector:a,inlineStylesheet:d,maskInputOptions:m,maskInputFn:r,dataURLOptions:u,inlineImages:l,recordCanvas:n,keepIframeSrcFn:p,newlyAddedElement:f,rootId:g});case e.TEXT_NODE:return Eo(e,{doc:s,needsMask:c,maskTextFn:h,rootId:g});case e.CDATA_SECTION_NODE:return{type:Q.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:Q.Comment,textContent:K.textContent(e)||"",rootId:g};default:return!1}}function Mo(e,t){if(!t.hasNode(e))return;const s=t.getId(e);return s===1?void 0:s}function Eo(e,t){var s;const{needsMask:o,maskTextFn:i,rootId:a}=t,c=K.parentNode(e),d=c&&c.tagName;let m=K.textContent(e);const h=d==="STYLE"?!0:void 0,r=d==="SCRIPT"?!0:void 0;if(h&&m){try{e.nextSibling||e.previousSibling||(s=c.sheet)!=null&&s.cssRules&&(m=at(c.sheet))}catch(u){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${u}`,e)}m=lt(m,Ur(t.doc))}return r&&(m="SCRIPT_PLACEHOLDER"),!h&&!r&&m&&o&&(m=i?i(m,K.parentElement(e)):m.replace(/[\S]/g,"*")),{type:Q.Text,textContent:m||"",isStyle:h,rootId:a}}function ds(e,t){return Array.from(e.styleSheets).find(s=>s.href===t)}function Ao(e){return e.href}function Po(e,t){var s,o;const{doc:i,blockClass:a,blockSelector:c,inlineStylesheet:d,maskInputOptions:m={},maskInputFn:h,dataURLOptions:r={},inlineImages:u,recordCanvas:l,keepIframeSrcFn:n,newlyAddedElement:p=!1,rootId:f}=t,g=xo(e,a,c),S=wo(e);let w={};const v=e.attributes.length;for(let y=0;y<v;y++){const b=e.attributes[y];ji(S,b.name,b.value)||(w[b.name]=qi(i,S,Oe(b.name),b.value,e,r))}if(S==="link"&&d){const y=Ao(e);if(y){let b=ds(i,y);if(!b&&y.includes(".css")){const R=window.location.origin,M=y.replace(window.location.href,""),O=R+"/"+M;b=ds(i,O)}let C=null;b&&(C=at(b)),C&&(delete w.rel,delete w.href,w._cssText=C)}}if(S==="style"&&e.sheet&&!(e.innerText||K.textContent(e)||"").trim().length){const y=at(e.sheet);y&&(w._cssText=y)}if(S==="input"||S==="textarea"||S==="select"){const y=e.value,b=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&y?w.value=$r({element:e,type:Br(e),tagName:S,value:y,maskInputOptions:m,maskInputFn:h}):b&&(w.checked=b)}if(S==="option"&&(e.selected&&!m.select?w.selected=!0:delete w.selected),S==="dialog"&&e.open)try{w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(y){w.rr_open_mode="modal",w.ph_rr_could_not_detect_modal=!0}if(S==="canvas"&&l){if(e.__context==="2d")oo(e)||(w.rr_dataURL=e.toDataURL(r.type,r.quality));else if(!("__context"in e)){const y=e.toDataURL(r.type,r.quality),b=i.createElement("canvas");b.width=e.width,b.height=e.height;const C=b.toDataURL(r.type,r.quality);y!==C&&(w.rr_dataURL=y)}}if(S==="img"&&u){_e||(_e=i.createElement("canvas"),fs=_e.getContext("2d"));const y=e,b=y.currentSrc||y.getAttribute("src")||"<unknown-src>",C=y.crossOrigin,R=()=>{y.removeEventListener("load",R);try{_e.width=y.naturalWidth,_e.height=y.naturalHeight,fs.drawImage(y,0,0),w.rr_dataURL=_e.toDataURL(r.type,r.quality)}catch(M){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?R():y.addEventListener("load",R);return}else console.warn(`Cannot inline img src=${b}! Error: ${M}`)}y.crossOrigin==="anonymous"&&(C?w.crossOrigin=C:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?R():y.addEventListener("load",R)}if(S==="audio"||S==="video"){const y=w;y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime,y.rr_mediaPlaybackRate=e.playbackRate,y.rr_mediaMuted=e.muted,y.rr_mediaLoop=e.loop,y.rr_mediaVolume=e.volume}if(p||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),g){const{width:y,height:b,left:C,top:R}=e.getBoundingClientRect();w={class:w.class,rr_width:`${y}px`,rr_height:`${b}px`,rr_left:`${Math.floor(C+(((s=i.defaultView)==null?void 0:s.scrollX)||0))}px`,rr_top:`${Math.floor(R+(((o=i.defaultView)==null?void 0:o.scrollY)||0))}px`}}S==="iframe"&&!n(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);let x;try{customElements.get(S)&&(x=!0)}catch(y){}return{type:Q.Element,tagName:S,attributes:w,childNodes:[],isSVG:Co(e)||void 0,needBlock:g,rootId:f,isCustom:x}}function z(e){return e==null?"":e.toLowerCase()}function No(e,t){if(t.comment&&e.type===Q.Comment)return!0;if(e.type===Q.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Wi(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(z(e.attributes.name).match(/^msapplication-tile(image|color)$/)||z(e.attributes.name)==="application-name"||z(e.attributes.rel)==="icon"||z(e.attributes.rel)==="apple-touch-icon"||z(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&z(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(z(e.attributes.property).match(/^(og|twitter|fb):/)||z(e.attributes.name).match(/^(og|twitter):/)||z(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(z(e.attributes.name)==="robots"||z(e.attributes.name)==="googlebot"||z(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(z(e.attributes.name)==="author"||z(e.attributes.name)==="generator"||z(e.attributes.name)==="framework"||z(e.attributes.name)==="publisher"||z(e.attributes.name)==="progid"||z(e.attributes.property).match(/^article:/)||z(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(z(e.attributes.name)==="google-site-verification"||z(e.attributes.name)==="yandex-verification"||z(e.attributes.name)==="csrf-token"||z(e.attributes.name)==="p:domain_verify"||z(e.attributes.name)==="verify-v1"||z(e.attributes.name)==="verification"||z(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}const _o=50;let ms=!1;function Te(e,t){const{doc:s,mirror:o,blockClass:i,blockSelector:a,maskTextClass:c,maskTextSelector:d,skipChild:m=!1,inlineStylesheet:h=!0,maskInputOptions:r={},maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:p={},inlineImages:f=!1,recordCanvas:g=!1,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:v=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:y=5e3,keepIframeSrcFn:b=()=>!1,newlyAddedElement:C=!1,depth:R=0,maxDepth:M=_o}=t;let{needsMask:O}=t,{preserveWhiteSpace:N=!0}=t;if(R>=M)return ms||(ms=!0,console.warn(`[rrweb-snapshot] DOM tree depth exceeded max depth of ${M}. Children beyond this depth will not be recorded. This may indicate deeply nested DOM structures.`)),null;O||(O=Hi(e,c,d,O===void 0));const P=Io(e,{doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:O,inlineStylesheet:h,maskInputOptions:r,maskTextFn:u,maskInputFn:l,dataURLOptions:p,inlineImages:f,recordCanvas:g,keepIframeSrcFn:b,newlyAddedElement:C});if(!P)return console.warn(e,"not serialized"),null;let ee;o.hasNode(e)?ee=o.getId(e):No(P,n)||!N&&P.type===Q.Text&&!P.isStyle&&!P.textContent.replace(/^\s+|\s+$/gm,"").length?ee=ze:ee=zi();const D=Object.assign(P,{id:ee});if(o.add(e,D),ee===ze)return null;S&&S(e);let I=!m;if(D.type===Q.Element){I=I&&!D.needBlock,delete D.needBlock;const _=K.shadowRoot(e);_&&Ue(_)&&(D.isShadowHost=!0)}if((D.type===Q.Document||D.type===Q.Element)&&I){n.headWhitespace&&D.type===Q.Element&&D.tagName==="head"&&(N=!1);const _={doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:O,maskTextClass:c,maskTextSelector:d,skipChild:m,inlineStylesheet:h,maskInputOptions:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:p,inlineImages:f,recordCanvas:g,preserveWhiteSpace:N,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:v,onStylesheetLoad:x,stylesheetLoadTimeout:y,keepIframeSrcFn:b,depth:R+1,maxDepth:M};if(!(D.type===Q.Element&&D.tagName==="textarea"&&D.attributes.value!==void 0))for(const J of Array.from(K.childNodes(e))){const W=Te(J,_);W&&D.childNodes.push(W)}let U=null;if(Fr(e)&&(U=K.shadowRoot(e)))for(const J of Array.from(K.childNodes(U))){const W=Te(J,_);W&&(Ue(U)&&(W.isShadow=!0),D.childNodes.push(W))}}const ie=K.parentNode(e);return ie&&Be(ie)&&Ue(ie)&&(D.isShadow=!0),D.type===Q.Element&&D.tagName==="iframe"&&Ro(e,()=>{const _=e.contentDocument;if(_&&w){const U=Te(_,{doc:_,mirror:o,blockClass:i,blockSelector:a,needsMask:O,maskTextClass:c,maskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:p,inlineImages:f,recordCanvas:g,preserveWhiteSpace:N,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:v,onStylesheetLoad:x,stylesheetLoadTimeout:y,keepIframeSrcFn:b,depth:R+1,maxDepth:M});U&&w(e,U)}},v),D.type===Q.Element&&D.tagName==="link"&&typeof D.attributes.rel=="string"&&(D.attributes.rel==="stylesheet"||D.attributes.rel==="preload"&&typeof D.attributes.href=="string"&&Wi(D.attributes.href)==="css")&&Oo(e,()=>{if(x){const _=Te(e,{doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:O,maskTextClass:c,maskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:p,inlineImages:f,recordCanvas:g,preserveWhiteSpace:N,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:v,onStylesheetLoad:x,stylesheetLoadTimeout:y,keepIframeSrcFn:b,depth:R,maxDepth:M});_&&x(e,_)}},y),D}function ko(e,t){const{mirror:s=new Ui,blockClass:o="rr-block",blockSelector:i=null,maskTextClass:a="rr-mask",maskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:m=!1,recordCanvas:h=!1,maskAllInputs:r=!1,maskTextFn:u,maskInputFn:l,slimDOM:n=!1,dataURLOptions:p,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:x,keepIframeSrcFn:y=()=>!1,maxDepth:b}=t||{};return Te(e,{doc:e,mirror:s,blockClass:o,blockSelector:i,maskTextClass:a,maskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:r===!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}:r===!1?{password:!0}:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n===!0||n==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:n==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:n===!1?{}:n,dataURLOptions:p,inlineImages:m,recordCanvas:h,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:x,keepIframeSrcFn:y,newlyAddedElement:!1,maxDepth:b})}function Do(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lo(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var s=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),s}var Xe={exports:{}},gs;function To(){if(gs)return Xe.exports;gs=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return Xe.exports=t(),Xe.exports.createColors=t,Xe.exports}const Fo={},$o=Object.freeze(Object.defineProperty({__proto__:null,default:Fo},Symbol.toStringTag,{value:"Module"})),pe=Lo($o);var Ot,ys;function Wr(){if(ys)return Ot;ys=1;let e=To(),t=pe;class s extends Error{constructor(i,a,c,d,m,h){super(i),this.name="CssSyntaxError",this.reason=i,m&&(this.file=m),d&&(this.source=d),h&&(this.plugin=h),typeof a!="undefined"&&typeof c!="undefined"&&(typeof a=="number"?(this.line=a,this.column=c):(this.line=a.line,this.column=a.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}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(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported);let c=n=>n,d=n=>n,m=n=>n;if(i){let{bold:n,gray:p,red:f}=e.createColors(!0);d=g=>n(f(g)),c=g=>p(g),t&&(m=g=>t(g))}let h=a.split(/\r?\n/),r=Math.max(this.line-3,0),u=Math.min(this.line+2,h.length),l=String(u).length;return h.slice(r,u).map((n,p)=>{let f=r+1+p,g=" "+(" "+f).slice(-l)+" | ";if(f===this.line){if(n.length>160){let w=20,v=Math.max(0,this.column-w),x=Math.max(this.column+w,this.endColumn+w),y=n.slice(v,x),b=c(g.replace(/\d/g," "))+n.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return d(">")+c(g)+m(y)+`
3
3
  `+b+d("^")}let S=c(g.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return d(">")+c(g)+m(n)+`
4
4
  `+S+d("^")}return" "+c(g)+m(n)}).join(`
5
5
  `)}toString(){let i=this.showSourceCode();return i&&(i=`
6
6
 
7
7
  `+i+`
8
- `),this.name+": "+this.message+i}}return Ot=s,s.default=s,Ot}var It,ys;function Hi(){if(ys)return It;ys=1;const e={after:`
8
+ `),this.name+": "+this.message+i}}return Ot=s,s.default=s,Ot}var It,ws;function Vi(){if(ws)return It;ws=1;const e={after:`
9
9
  `,beforeClose:`
10
10
  `,beforeComment:`
11
11
  `,beforeDecl:`
@@ -16,23 +16,23 @@
16
16
  `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c=="undefined"?c=this.raw(a,null,"beforeDecl"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeDecl(i,a){let c;return i.walkDecls(d=>{if(typeof d.raws.before!="undefined")return c=d.raws.before,c.includes(`
17
17
  `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c=="undefined"?c=this.raw(a,null,"beforeRule"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeOpen(i){let a;return i.walk(c=>{if(c.type!=="decl"&&(a=c.raws.between,typeof a!="undefined"))return!1}),a}rawBeforeRule(i){let a;return i.walk(c=>{if(c.nodes&&(c.parent!==i||i.first!==c)&&typeof c.raws.before!="undefined")return a=c.raws.before,a.includes(`
18
18
  `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(c=>{if(typeof c.raws.between!="undefined")return a=c.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(c=>{if(c.nodes&&c.nodes.length===0&&(a=c.raws.after,typeof a!="undefined"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(c=>{let d=c.parent;if(d&&d!==i&&d.parent&&d.parent===i&&typeof c.raws.before!="undefined"){let m=c.raws.before.split(`
19
- `);return a=m[m.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(a=c.raws.semicolon,typeof a!="undefined"))return!1}),a}rawValue(i,a){let c=i[a],d=i.raws[a];return d&&d.value===c?d.raw:c}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return It=s,s.default=s,It}var Mt,ws;function pt(){if(ws)return Mt;ws=1;let e=Hi();function t(s,o){new e(o).stringify(s)}return Mt=t,t.default=t,Mt}var Xe={},bs;function zr(){return bs||(bs=1,Xe.isClean=Symbol("isClean"),Xe.my=Symbol("my")),Xe}var Et,Ss;function dt(){if(Ss)return Et;Ss=1;let e=Wr(),t=Hi(),s=pt(),{isClean:o,my:i}=zr();function a(m,h){let r=new m.constructor;for(let u in m){if(!Object.prototype.hasOwnProperty.call(m,u)||u==="proxyCache")continue;let l=m[u],n=typeof l;u==="parent"&&n==="object"?h&&(r[u]=h):u==="source"?r[u]=l:Array.isArray(l)?r[u]=l.map(p=>a(p,r)):(n==="object"&&l!==null&&(l=a(l)),r[u]=l)}return r}function c(m,h){if(h&&typeof h.offset!="undefined")return h.offset;let r=1,u=1,l=0;for(let n=0;n<m.length;n++){if(u===h.line&&r===h.column){l=n;break}m[n]===`
19
+ `);return a=m[m.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(a=c.raws.semicolon,typeof a!="undefined"))return!1}),a}rawValue(i,a){let c=i[a],d=i.raws[a];return d&&d.value===c?d.raw:c}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return It=s,s.default=s,It}var Mt,bs;function pt(){if(bs)return Mt;bs=1;let e=Vi();function t(s,o){new e(o).stringify(s)}return Mt=t,t.default=t,Mt}var Qe={},Ss;function zr(){return Ss||(Ss=1,Qe.isClean=Symbol("isClean"),Qe.my=Symbol("my")),Qe}var Et,vs;function dt(){if(vs)return Et;vs=1;let e=Wr(),t=Vi(),s=pt(),{isClean:o,my:i}=zr();function a(m,h){let r=new m.constructor;for(let u in m){if(!Object.prototype.hasOwnProperty.call(m,u)||u==="proxyCache")continue;let l=m[u],n=typeof l;u==="parent"&&n==="object"?h&&(r[u]=h):u==="source"?r[u]=l:Array.isArray(l)?r[u]=l.map(p=>a(p,r)):(n==="object"&&l!==null&&(l=a(l)),r[u]=l)}return r}function c(m,h){if(h&&typeof h.offset!="undefined")return h.offset;let r=1,u=1,l=0;for(let n=0;n<m.length;n++){if(u===h.line&&r===h.column){l=n;break}m[n]===`
20
20
  `?(r=1,u+=1):r+=1}return l}class d{get proxyOf(){return this}constructor(h={}){this.raws={},this[o]=!1,this[i]=!0;for(let r in h)if(r==="nodes"){this.nodes=[];for(let u of h[r])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[r]=h[r]}addToError(h){if(h.postcssNode=this,h.stack&&this.source&&/\n\s{4}at /.test(h.stack)){let r=this.source;h.stack=h.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return h}after(h){return this.parent.insertAfter(this,h),this}assign(h={}){for(let r in h)this[r]=h[r];return this}before(h){return this.parent.insertBefore(this,h),this}cleanRaws(h){delete this.raws.before,delete this.raws.after,h||delete this.raws.between}clone(h={}){let r=a(this);for(let u in h)r[u]=h[u];return r}cloneAfter(h={}){let r=this.clone(h);return this.parent.insertAfter(this,r),r}cloneBefore(h={}){let r=this.clone(h);return this.parent.insertBefore(this,r),r}error(h,r={}){if(this.source){let{end:u,start:l}=this.rangeBy(r);return this.source.input.error(h,{column:l.column,line:l.line},{column:u.column,line:u.line},r)}return new e(h)}getProxyProcessor(){return{get(h,r){return r==="proxyOf"?h:r==="root"?()=>h.root().toProxy():h[r]},set(h,r,u){return h[r]===u||(h[r]=u,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&h.markDirty()),!0}}}markClean(){this[o]=!0}markDirty(){if(this[o]){this[o]=!1;let h=this;for(;h=h.parent;)h[o]=!1}}next(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h+1]}positionBy(h={}){let r=this.source.start;if(h.index)r=this.positionInside(h.index);else if(h.word){let u="document"in this.source.input?this.source.input.document:this.source.input.css,n=u.slice(c(u,this.source.start),c(u,this.source.end)).indexOf(h.word);n!==-1&&(r=this.positionInside(n))}return r}positionInside(h){let r=this.source.start.column,u=this.source.start.line,l="document"in this.source.input?this.source.input.document:this.source.input.css,n=c(l,this.source.start),p=n+h;for(let f=n;f<p;f++)l[f]===`
21
- `?(r=1,u+=1):r+=1;return{column:r,line:u,offset:p}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,u={column:this.source.start.column,line:this.source.start.line,offset:c(r,this.source.start)},l=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:c(r,this.source.end)+1}:{column:u.column+1,line:u.line,offset:u.offset+1};if(h.word){let p=r.slice(c(r,this.source.start),c(r,this.source.end)).indexOf(h.word);p!==-1&&(u=this.positionInside(p),l=this.positionInside(p+h.word.length))}else h.start?u={column:h.start.column,line:h.start.line,offset:c(r,h.start)}:h.index&&(u=this.positionInside(h.index)),h.end?l={column:h.end.column,line:h.end.line,offset:c(r,h.end)}:typeof h.endIndex=="number"?l=this.positionInside(h.endIndex):h.index&&(l=this.positionInside(h.index+1));return(l.line<u.line||l.line===u.line&&l.column<=u.column)&&(l={column:u.column+1,line:u.line,offset:u.offset+1}),{end:l,start:u}}raw(h,r){return new t().raw(this,h,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let r=this,u=!1;for(let l of h)l===this?u=!0:u?(this.parent.insertAfter(r,l),r=l):this.parent.insertBefore(r,l);u||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,r){let u={},l=r==null;r=r||new Map;let n=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let f=this[p];if(Array.isArray(f))u[p]=f.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,r):g);else if(typeof f=="object"&&f.toJSON)u[p]=f.toJSON(null,r);else if(p==="source"){if(f==null)continue;let g=r.get(f.input);g==null&&(g=n,r.set(f.input,n),n++),u[p]={end:f.end,inputId:g,start:f.start}}else u[p]=f}return l&&(u.inputs=[...r.keys()].map(p=>p.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=s){h.stringify&&(h=h.stringify);let r="";return h(this,u=>{r+=u}),r}warn(h,r,u={}){let l={node:this};for(let n in u)l[n]=u[n];return h.warn(r,l)}}return Et=d,d.default=d,Et}var At,vs;function je(){if(vs)return At;vs=1;let e=dt();class t extends e{constructor(o){super(o),this.type="comment"}}return At=t,t.default=t,At}var Pt,Cs;function mt(){if(Cs)return Pt;Cs=1;let e=dt();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(o){o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=le(L({},o),{value:String(o.value)})),super(o),this.type="decl"}}return Pt=t,t.default=t,Pt}var Nt,xs;function Ie(){if(xs)return Nt;xs=1;let e=je(),t=mt(),s=dt(),{isClean:o,my:i}=zr(),a,c,d,m;function h(l){return l.map(n=>(n.nodes&&(n.nodes=h(n.nodes)),delete n.source,n))}function r(l){if(l[o]=!1,l.proxyOf.nodes)for(let n of l.proxyOf.nodes)r(n)}class u extends s{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(...n){for(let p of n){let f=this.normalize(p,this.last);for(let g of f)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let p of this.nodes)p.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let p=this.getIterator(),f,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(f=this.indexes[p],g=n(this.proxyOf.nodes[f],f),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,p){return p==="proxyOf"?n:n[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...f)=>n[p](...f.map(g=>typeof g=="function"?(S,w)=>g(S.toProxy(),w):g)):p==="every"||p==="some"?f=>n[p]((g,...S)=>f(g.toProxy(),...S)):p==="root"?()=>n.root().toProxy():p==="nodes"?n.nodes.map(f=>f.toProxy()):p==="first"||p==="last"?n[p].toProxy():n[p]:n[p]},set(n,p,f){return n[p]===f||(n[p]=f,(p==="name"||p==="params"||p==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,p){let f=this.index(n),g=this.normalize(p,this.proxyOf.nodes[f]).reverse();f=this.index(n);for(let w of g)this.proxyOf.nodes.splice(f+1,0,w);let S;for(let w in this.indexes)S=this.indexes[w],f<S&&(this.indexes[w]=S+g.length);return this.markDirty(),this}insertBefore(n,p){let f=this.index(n),g=f===0?"prepend":!1,S=this.normalize(p,this.proxyOf.nodes[f],g).reverse();f=this.index(n);for(let v of S)this.proxyOf.nodes.splice(f,0,v);let w;for(let v in this.indexes)w=this.indexes[v],f<=w&&(this.indexes[v]=w+S.length);return this.markDirty(),this}normalize(n,p){if(typeof n=="string")n=h(c(n).nodes);else if(typeof n=="undefined")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value=="undefined")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new t(n)]}else if(n.selector||n.selectors)n=[new m(n)];else if(n.name)n=[new a(n)];else if(n.text)n=[new e(n)];else throw new Error("Unknown node type in node creation");return n.map(g=>(g[i]||u.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[o]&&r(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...n){n=n.reverse();for(let p of n){let f=this.normalize(p,this.first,"prepend").reverse();for(let g of f)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+f.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let p;for(let f in this.indexes)p=this.indexes[f],p>=n&&(this.indexes[f]=p-1);return this.markDirty(),this}replaceValues(n,p,f){return f||(f=p,p={}),this.walkDecls(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(n,f))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((p,f)=>{let g;try{g=n(p,f)}catch(S){throw p.addToError(S)}return g!==!1&&p.walk&&(g=p.walk(n)),g})}walkAtRules(n,p){return p?n instanceof RegExp?this.walk((f,g)=>{if(f.type==="atrule"&&n.test(f.name))return p(f,g)}):this.walk((f,g)=>{if(f.type==="atrule"&&f.name===n)return p(f,g)}):(p=n,this.walk((f,g)=>{if(f.type==="atrule")return p(f,g)}))}walkComments(n){return this.walk((p,f)=>{if(p.type==="comment")return n(p,f)})}walkDecls(n,p){return p?n instanceof RegExp?this.walk((f,g)=>{if(f.type==="decl"&&n.test(f.prop))return p(f,g)}):this.walk((f,g)=>{if(f.type==="decl"&&f.prop===n)return p(f,g)}):(p=n,this.walk((f,g)=>{if(f.type==="decl")return p(f,g)}))}walkRules(n,p){return p?n instanceof RegExp?this.walk((f,g)=>{if(f.type==="rule"&&n.test(f.selector))return p(f,g)}):this.walk((f,g)=>{if(f.type==="rule"&&f.selector===n)return p(f,g)}):(p=n,this.walk((f,g)=>{if(f.type==="rule")return p(f,g)}))}}return u.registerParse=l=>{c=l},u.registerRule=l=>{m=l},u.registerAtRule=l=>{a=l},u.registerRoot=l=>{d=l},Nt=u,u.default=u,u.rebuild=l=>{l.type==="atrule"?Object.setPrototypeOf(l,a.prototype):l.type==="rule"?Object.setPrototypeOf(l,m.prototype):l.type==="decl"?Object.setPrototypeOf(l,t.prototype):l.type==="comment"?Object.setPrototypeOf(l,e.prototype):l.type==="root"&&Object.setPrototypeOf(l,d.prototype),l[i]=!0,l.nodes&&l.nodes.forEach(n=>{u.rebuild(n)})},Nt}var _t,Rs;function qr(){if(Rs)return _t;Rs=1;let e=Ie();class t extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return _t=t,t.default=t,e.registerAtRule(t),_t}var kt,Os;function jr(){if(Os)return kt;Os=1;let e=Ie(),t,s;class o extends e{constructor(a){super(L({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new s,this,a).stringify()}}return o.registerLazyResult=i=>{t=i},o.registerProcessor=i=>{s=i},kt=o,o.default=o,kt}var Lt,Is;function Fo(){if(Is)return Lt;Is=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Lt={nanoid:(o=21)=>{let i="",a=o|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(o,i=21)=>(a=i)=>{let c="",d=a|0;for(;d--;)c+=o[Math.random()*o.length|0];return c}},Lt}var Dt,Ms;function Vi(){if(Ms)return Dt;Ms=1;let{existsSync:e,readFileSync:t}=pe,{dirname:s,join:o}=pe,{SourceMapConsumer:i,SourceMapGenerator:a}=pe;function c(m){return Buffer?Buffer.from(m,"base64").toString():window.atob(m)}class d{constructor(h,r){if(r.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let u=r.map?r.map.prev:void 0,l=this.loadMap(r.from,u);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=s(this.mapFile)),l&&(this.text=l)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(h){let r=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,l=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,p=h.match(l)||h.match(n);if(p)return decodeURIComponent(h.substr(p[0].length));let f=h.match(r)||h.match(u);if(f)return c(h.substr(f[0].length));let g=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let r=h.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let u=h.lastIndexOf(r.pop()),l=h.indexOf("*/",u);u>-1&&l>-1&&(this.annotation=this.getAnnotationURL(h.substring(u,l)))}loadFile(h){if(this.root=s(h),e(h))return this.mapFile=h,t(h,"utf-8").toString().trim()}loadMap(h,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let u=r(h);if(u){let l=this.loadFile(u);if(!l)throw new Error("Unable to load previous source map: "+u.toString());return l}}else{if(r instanceof i)return a.fromSourceMap(r).toString();if(r instanceof a)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return h&&(u=o(s(h),u)),this.loadFile(u)}}}startWith(h,r){return h?h.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Dt=d,d.default=d,Dt}var Tt,Es;function gt(){if(Es)return Tt;Es=1;let{nanoid:e}=Fo(),{isAbsolute:t,resolve:s}=pe,{SourceMapConsumer:o,SourceMapGenerator:i}=pe,{fileURLToPath:a,pathToFileURL:c}=pe,d=Wr(),m=Vi(),h=pe,r=Symbol("lineToIndexCache"),u=!!(o&&i),l=!!(s&&t);function n(f){if(f[r])return f[r];let g=f.css.split(`
22
- `),S=new Array(g.length),w=0;for(let v=0,x=g.length;v<x;v++)S[v]=w,w+=g[v].length+1;return f[r]=S,S}class p{get from(){return this.file||this.id}constructor(g,S={}){if(g===null||typeof g=="undefined"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.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,S.document&&(this.document=S.document.toString()),S.from&&(!l||/^\w+:\/\//.test(S.from)||t(S.from)?this.file=S.from:this.file=s(S.from)),l&&u){let w=new m(this.css,S);if(w.text){this.map=w;let v=w.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(g,S,w,v={}){let x,y,b,C,R;if(S&&typeof S=="object"){let O=S,N=w;if(typeof O.offset=="number"){C=O.offset;let A=this.fromOffset(C);S=A.line,w=A.col}else S=O.line,w=O.column,C=this.fromLineAndColumn(S,w);if(typeof N.offset=="number"){b=N.offset;let A=this.fromOffset(b);y=A.line,x=A.col}else y=N.line,x=N.column,b=this.fromLineAndColumn(N.line,N.column)}else if(w)C=this.fromLineAndColumn(S,w);else{C=S;let O=this.fromOffset(C);S=O.line,w=O.col}let M=this.origin(S,w,y,x);return M?R=new d(g,M.endLine===void 0?M.line:{column:M.column,line:M.line},M.endLine===void 0?M.column:{column:M.endColumn,line:M.endLine},M.source,M.file,v.plugin):R=new d(g,y===void 0?S:{column:w,line:S},y===void 0?w:{column:x,line:y},this.css,this.file,v.plugin),R.input={column:w,endColumn:x,endLine:y,endOffset:b,line:S,offset:C,source:this.css},this.file&&(c&&(R.input.url=c(this.file).toString()),R.input.file=this.file),R}fromLineAndColumn(g,S){return n(this)[g-1]+S-1}fromOffset(g){let S=n(this),w=S[S.length-1],v=0;if(g>=w)v=S.length-1;else{let x=S.length-2,y;for(;v<x;)if(y=v+(x-v>>1),g<S[y])x=y-1;else if(g>=S[y+1])v=y+1;else{v=y;break}}return{col:g-S[v]+1,line:v+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:s(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,S,w,v){if(!this.map)return!1;let x=this.map.consumer(),y=x.originalPositionFor({column:S,line:g});if(!y.source)return!1;let b;typeof w=="number"&&(b=x.originalPositionFor({column:v,line:w}));let C;t(y.source)?C=c(y.source):C=new URL(y.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let R={column:y.column,endColumn:b&&b.column,endLine:b&&b.line,line:y.line,url:C.toString()};if(C.protocol==="file:")if(a)R.file=a(C);else throw new Error("file: protocol is not available in this PostCSS build");let M=x.sourceContentFor(y.source);return M&&(R.source=M),R}toJSON(){let g={};for(let S of["hasBOM","css","file","id"])this[S]!=null&&(g[S]=this[S]);return this.map&&(g.map=L({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Tt=p,p.default=p,h&&h.registerInput&&h.registerInput(p),Tt}var Ft,As;function He(){if(As)return Ft;As=1;let e=Ie(),t,s;class o extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,c,d){let m=super.normalize(a);if(c){if(d==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let h of m)h.raws.before=c.raws.before}return m}removeChild(a,c){let d=this.index(a);return!c&&d===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[d].raws.before),super.removeChild(a)}toResult(a={}){return new t(new s,this,a).stringify()}}return o.registerLazyResult=i=>{t=i},o.registerProcessor=i=>{s=i},Ft=o,o.default=o,e.registerRoot(o),Ft}var $t,Ps;function Gi(){if(Ps)return $t;Ps=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let s=[" ",`
23
- `," "];return e.split(t,s)},split(t,s,o){let i=[],a="",c=!1,d=0,m=!1,h="",r=!1;for(let u of t)r?r=!1:u==="\\"?r=!0:m?u===h&&(m=!1):u==='"'||u==="'"?(m=!0,h=u):u==="("?d+=1:u===")"?d>0&&(d-=1):d===0&&s.includes(u)&&(c=!0),c?(a!==""&&i.push(a.trim()),a="",c=!1):a+=u;return(o||a!=="")&&i.push(a.trim()),i}};return $t=e,e.default=e,$t}var Bt,Ns;function Hr(){if(Ns)return Bt;Ns=1;let e=Ie(),t=Gi();class s extends e{get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,c=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(c)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return Bt=s,s.default=s,e.registerRule(s),Bt}var Ut,_s;function $o(){if(_s)return Ut;_s=1;let e=qr(),t=je(),s=mt(),o=gt(),i=Vi(),a=He(),c=Hr();function d(m,h){if(Array.isArray(m))return m.map(p=>d(p));let l=m,{inputs:r}=l,u=Ne(l,["inputs"]);if(r){h=[];for(let p of r){let f=le(L({},p),{__proto__:o.prototype});f.map&&(f.map=le(L({},f.map),{__proto__:i.prototype})),h.push(f)}}if(u.nodes&&(u.nodes=m.nodes.map(p=>d(p,h))),u.source){let n=u.source,{inputId:p}=n,f=Ne(n,["inputId"]);u.source=f,p!=null&&(u.source.input=h[p])}if(u.type==="root")return new a(u);if(u.type==="decl")return new s(u);if(u.type==="rule")return new c(u);if(u.type==="comment")return new t(u);if(u.type==="atrule")return new e(u);throw new Error("Unknown node type: "+m.type)}return Ut=d,d.default=d,Ut}var Wt,ks;function Ji(){if(ks)return Wt;ks=1;let{dirname:e,relative:t,resolve:s,sep:o}=pe,{SourceMapConsumer:i,SourceMapGenerator:a}=pe,{pathToFileURL:c}=pe,d=gt(),m=!!(i&&a),h=!!(e&&s&&t&&o);class r{constructor(l,n,p,f){this.stringify=l,this.mapOpts=p.map||{},this.root=n,this.opts=p,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let l;this.isInline()?l="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?l=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?l=this.mapOpts.annotation(this.opts.to,this.root):l=this.outputFile()+".map";let n=`
21
+ `?(r=1,u+=1):r+=1;return{column:r,line:u,offset:p}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,u={column:this.source.start.column,line:this.source.start.line,offset:c(r,this.source.start)},l=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:c(r,this.source.end)+1}:{column:u.column+1,line:u.line,offset:u.offset+1};if(h.word){let p=r.slice(c(r,this.source.start),c(r,this.source.end)).indexOf(h.word);p!==-1&&(u=this.positionInside(p),l=this.positionInside(p+h.word.length))}else h.start?u={column:h.start.column,line:h.start.line,offset:c(r,h.start)}:h.index&&(u=this.positionInside(h.index)),h.end?l={column:h.end.column,line:h.end.line,offset:c(r,h.end)}:typeof h.endIndex=="number"?l=this.positionInside(h.endIndex):h.index&&(l=this.positionInside(h.index+1));return(l.line<u.line||l.line===u.line&&l.column<=u.column)&&(l={column:u.column+1,line:u.line,offset:u.offset+1}),{end:l,start:u}}raw(h,r){return new t().raw(this,h,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let r=this,u=!1;for(let l of h)l===this?u=!0:u?(this.parent.insertAfter(r,l),r=l):this.parent.insertBefore(r,l);u||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,r){let u={},l=r==null;r=r||new Map;let n=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let f=this[p];if(Array.isArray(f))u[p]=f.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,r):g);else if(typeof f=="object"&&f.toJSON)u[p]=f.toJSON(null,r);else if(p==="source"){if(f==null)continue;let g=r.get(f.input);g==null&&(g=n,r.set(f.input,n),n++),u[p]={end:f.end,inputId:g,start:f.start}}else u[p]=f}return l&&(u.inputs=[...r.keys()].map(p=>p.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=s){h.stringify&&(h=h.stringify);let r="";return h(this,u=>{r+=u}),r}warn(h,r,u={}){let l={node:this};for(let n in u)l[n]=u[n];return h.warn(r,l)}}return Et=d,d.default=d,Et}var At,Cs;function je(){if(Cs)return At;Cs=1;let e=dt();class t extends e{constructor(o){super(o),this.type="comment"}}return At=t,t.default=t,At}var Pt,xs;function mt(){if(xs)return Pt;xs=1;let e=dt();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(o){o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=le(T({},o),{value:String(o.value)})),super(o),this.type="decl"}}return Pt=t,t.default=t,Pt}var Nt,Rs;function Ie(){if(Rs)return Nt;Rs=1;let e=je(),t=mt(),s=dt(),{isClean:o,my:i}=zr(),a,c,d,m;function h(l){return l.map(n=>(n.nodes&&(n.nodes=h(n.nodes)),delete n.source,n))}function r(l){if(l[o]=!1,l.proxyOf.nodes)for(let n of l.proxyOf.nodes)r(n)}class u extends s{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(...n){for(let p of n){let f=this.normalize(p,this.last);for(let g of f)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let p of this.nodes)p.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let p=this.getIterator(),f,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(f=this.indexes[p],g=n(this.proxyOf.nodes[f],f),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,p){return p==="proxyOf"?n:n[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...f)=>n[p](...f.map(g=>typeof g=="function"?(S,w)=>g(S.toProxy(),w):g)):p==="every"||p==="some"?f=>n[p]((g,...S)=>f(g.toProxy(),...S)):p==="root"?()=>n.root().toProxy():p==="nodes"?n.nodes.map(f=>f.toProxy()):p==="first"||p==="last"?n[p].toProxy():n[p]:n[p]},set(n,p,f){return n[p]===f||(n[p]=f,(p==="name"||p==="params"||p==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,p){let f=this.index(n),g=this.normalize(p,this.proxyOf.nodes[f]).reverse();f=this.index(n);for(let w of g)this.proxyOf.nodes.splice(f+1,0,w);let S;for(let w in this.indexes)S=this.indexes[w],f<S&&(this.indexes[w]=S+g.length);return this.markDirty(),this}insertBefore(n,p){let f=this.index(n),g=f===0?"prepend":!1,S=this.normalize(p,this.proxyOf.nodes[f],g).reverse();f=this.index(n);for(let v of S)this.proxyOf.nodes.splice(f,0,v);let w;for(let v in this.indexes)w=this.indexes[v],f<=w&&(this.indexes[v]=w+S.length);return this.markDirty(),this}normalize(n,p){if(typeof n=="string")n=h(c(n).nodes);else if(typeof n=="undefined")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value=="undefined")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new t(n)]}else if(n.selector||n.selectors)n=[new m(n)];else if(n.name)n=[new a(n)];else if(n.text)n=[new e(n)];else throw new Error("Unknown node type in node creation");return n.map(g=>(g[i]||u.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[o]&&r(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...n){n=n.reverse();for(let p of n){let f=this.normalize(p,this.first,"prepend").reverse();for(let g of f)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+f.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let p;for(let f in this.indexes)p=this.indexes[f],p>=n&&(this.indexes[f]=p-1);return this.markDirty(),this}replaceValues(n,p,f){return f||(f=p,p={}),this.walkDecls(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(n,f))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((p,f)=>{let g;try{g=n(p,f)}catch(S){throw p.addToError(S)}return g!==!1&&p.walk&&(g=p.walk(n)),g})}walkAtRules(n,p){return p?n instanceof RegExp?this.walk((f,g)=>{if(f.type==="atrule"&&n.test(f.name))return p(f,g)}):this.walk((f,g)=>{if(f.type==="atrule"&&f.name===n)return p(f,g)}):(p=n,this.walk((f,g)=>{if(f.type==="atrule")return p(f,g)}))}walkComments(n){return this.walk((p,f)=>{if(p.type==="comment")return n(p,f)})}walkDecls(n,p){return p?n instanceof RegExp?this.walk((f,g)=>{if(f.type==="decl"&&n.test(f.prop))return p(f,g)}):this.walk((f,g)=>{if(f.type==="decl"&&f.prop===n)return p(f,g)}):(p=n,this.walk((f,g)=>{if(f.type==="decl")return p(f,g)}))}walkRules(n,p){return p?n instanceof RegExp?this.walk((f,g)=>{if(f.type==="rule"&&n.test(f.selector))return p(f,g)}):this.walk((f,g)=>{if(f.type==="rule"&&f.selector===n)return p(f,g)}):(p=n,this.walk((f,g)=>{if(f.type==="rule")return p(f,g)}))}}return u.registerParse=l=>{c=l},u.registerRule=l=>{m=l},u.registerAtRule=l=>{a=l},u.registerRoot=l=>{d=l},Nt=u,u.default=u,u.rebuild=l=>{l.type==="atrule"?Object.setPrototypeOf(l,a.prototype):l.type==="rule"?Object.setPrototypeOf(l,m.prototype):l.type==="decl"?Object.setPrototypeOf(l,t.prototype):l.type==="comment"?Object.setPrototypeOf(l,e.prototype):l.type==="root"&&Object.setPrototypeOf(l,d.prototype),l[i]=!0,l.nodes&&l.nodes.forEach(n=>{u.rebuild(n)})},Nt}var _t,Os;function qr(){if(Os)return _t;Os=1;let e=Ie();class t extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return _t=t,t.default=t,e.registerAtRule(t),_t}var kt,Is;function jr(){if(Is)return kt;Is=1;let e=Ie(),t,s;class o extends e{constructor(a){super(T({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new s,this,a).stringify()}}return o.registerLazyResult=i=>{t=i},o.registerProcessor=i=>{s=i},kt=o,o.default=o,kt}var Dt,Ms;function Bo(){if(Ms)return Dt;Ms=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Dt={nanoid:(o=21)=>{let i="",a=o|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(o,i=21)=>(a=i)=>{let c="",d=a|0;for(;d--;)c+=o[Math.random()*o.length|0];return c}},Dt}var Lt,Es;function Gi(){if(Es)return Lt;Es=1;let{existsSync:e,readFileSync:t}=pe,{dirname:s,join:o}=pe,{SourceMapConsumer:i,SourceMapGenerator:a}=pe;function c(m){return Buffer?Buffer.from(m,"base64").toString():window.atob(m)}class d{constructor(h,r){if(r.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let u=r.map?r.map.prev:void 0,l=this.loadMap(r.from,u);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=s(this.mapFile)),l&&(this.text=l)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(h){let r=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,l=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,p=h.match(l)||h.match(n);if(p)return decodeURIComponent(h.substr(p[0].length));let f=h.match(r)||h.match(u);if(f)return c(h.substr(f[0].length));let g=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let r=h.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let u=h.lastIndexOf(r.pop()),l=h.indexOf("*/",u);u>-1&&l>-1&&(this.annotation=this.getAnnotationURL(h.substring(u,l)))}loadFile(h){if(this.root=s(h),e(h))return this.mapFile=h,t(h,"utf-8").toString().trim()}loadMap(h,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let u=r(h);if(u){let l=this.loadFile(u);if(!l)throw new Error("Unable to load previous source map: "+u.toString());return l}}else{if(r instanceof i)return a.fromSourceMap(r).toString();if(r instanceof a)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return h&&(u=o(s(h),u)),this.loadFile(u)}}}startWith(h,r){return h?h.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Lt=d,d.default=d,Lt}var Tt,As;function gt(){if(As)return Tt;As=1;let{nanoid:e}=Bo(),{isAbsolute:t,resolve:s}=pe,{SourceMapConsumer:o,SourceMapGenerator:i}=pe,{fileURLToPath:a,pathToFileURL:c}=pe,d=Wr(),m=Gi(),h=pe,r=Symbol("lineToIndexCache"),u=!!(o&&i),l=!!(s&&t);function n(f){if(f[r])return f[r];let g=f.css.split(`
22
+ `),S=new Array(g.length),w=0;for(let v=0,x=g.length;v<x;v++)S[v]=w,w+=g[v].length+1;return f[r]=S,S}class p{get from(){return this.file||this.id}constructor(g,S={}){if(g===null||typeof g=="undefined"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.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,S.document&&(this.document=S.document.toString()),S.from&&(!l||/^\w+:\/\//.test(S.from)||t(S.from)?this.file=S.from:this.file=s(S.from)),l&&u){let w=new m(this.css,S);if(w.text){this.map=w;let v=w.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(g,S,w,v={}){let x,y,b,C,R;if(S&&typeof S=="object"){let O=S,N=w;if(typeof O.offset=="number"){C=O.offset;let P=this.fromOffset(C);S=P.line,w=P.col}else S=O.line,w=O.column,C=this.fromLineAndColumn(S,w);if(typeof N.offset=="number"){b=N.offset;let P=this.fromOffset(b);y=P.line,x=P.col}else y=N.line,x=N.column,b=this.fromLineAndColumn(N.line,N.column)}else if(w)C=this.fromLineAndColumn(S,w);else{C=S;let O=this.fromOffset(C);S=O.line,w=O.col}let M=this.origin(S,w,y,x);return M?R=new d(g,M.endLine===void 0?M.line:{column:M.column,line:M.line},M.endLine===void 0?M.column:{column:M.endColumn,line:M.endLine},M.source,M.file,v.plugin):R=new d(g,y===void 0?S:{column:w,line:S},y===void 0?w:{column:x,line:y},this.css,this.file,v.plugin),R.input={column:w,endColumn:x,endLine:y,endOffset:b,line:S,offset:C,source:this.css},this.file&&(c&&(R.input.url=c(this.file).toString()),R.input.file=this.file),R}fromLineAndColumn(g,S){return n(this)[g-1]+S-1}fromOffset(g){let S=n(this),w=S[S.length-1],v=0;if(g>=w)v=S.length-1;else{let x=S.length-2,y;for(;v<x;)if(y=v+(x-v>>1),g<S[y])x=y-1;else if(g>=S[y+1])v=y+1;else{v=y;break}}return{col:g-S[v]+1,line:v+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:s(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,S,w,v){if(!this.map)return!1;let x=this.map.consumer(),y=x.originalPositionFor({column:S,line:g});if(!y.source)return!1;let b;typeof w=="number"&&(b=x.originalPositionFor({column:v,line:w}));let C;t(y.source)?C=c(y.source):C=new URL(y.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let R={column:y.column,endColumn:b&&b.column,endLine:b&&b.line,line:y.line,url:C.toString()};if(C.protocol==="file:")if(a)R.file=a(C);else throw new Error("file: protocol is not available in this PostCSS build");let M=x.sourceContentFor(y.source);return M&&(R.source=M),R}toJSON(){let g={};for(let S of["hasBOM","css","file","id"])this[S]!=null&&(g[S]=this[S]);return this.map&&(g.map=T({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Tt=p,p.default=p,h&&h.registerInput&&h.registerInput(p),Tt}var Ft,Ps;function He(){if(Ps)return Ft;Ps=1;let e=Ie(),t,s;class o extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,c,d){let m=super.normalize(a);if(c){if(d==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let h of m)h.raws.before=c.raws.before}return m}removeChild(a,c){let d=this.index(a);return!c&&d===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[d].raws.before),super.removeChild(a)}toResult(a={}){return new t(new s,this,a).stringify()}}return o.registerLazyResult=i=>{t=i},o.registerProcessor=i=>{s=i},Ft=o,o.default=o,e.registerRoot(o),Ft}var $t,Ns;function Ji(){if(Ns)return $t;Ns=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let s=[" ",`
23
+ `," "];return e.split(t,s)},split(t,s,o){let i=[],a="",c=!1,d=0,m=!1,h="",r=!1;for(let u of t)r?r=!1:u==="\\"?r=!0:m?u===h&&(m=!1):u==='"'||u==="'"?(m=!0,h=u):u==="("?d+=1:u===")"?d>0&&(d-=1):d===0&&s.includes(u)&&(c=!0),c?(a!==""&&i.push(a.trim()),a="",c=!1):a+=u;return(o||a!=="")&&i.push(a.trim()),i}};return $t=e,e.default=e,$t}var Bt,_s;function Hr(){if(_s)return Bt;_s=1;let e=Ie(),t=Ji();class s extends e{get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,c=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(c)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return Bt=s,s.default=s,e.registerRule(s),Bt}var Ut,ks;function Uo(){if(ks)return Ut;ks=1;let e=qr(),t=je(),s=mt(),o=gt(),i=Gi(),a=He(),c=Hr();function d(m,h){if(Array.isArray(m))return m.map(p=>d(p));let l=m,{inputs:r}=l,u=Ne(l,["inputs"]);if(r){h=[];for(let p of r){let f=le(T({},p),{__proto__:o.prototype});f.map&&(f.map=le(T({},f.map),{__proto__:i.prototype})),h.push(f)}}if(u.nodes&&(u.nodes=m.nodes.map(p=>d(p,h))),u.source){let n=u.source,{inputId:p}=n,f=Ne(n,["inputId"]);u.source=f,p!=null&&(u.source.input=h[p])}if(u.type==="root")return new a(u);if(u.type==="decl")return new s(u);if(u.type==="rule")return new c(u);if(u.type==="comment")return new t(u);if(u.type==="atrule")return new e(u);throw new Error("Unknown node type: "+m.type)}return Ut=d,d.default=d,Ut}var Wt,Ds;function Yi(){if(Ds)return Wt;Ds=1;let{dirname:e,relative:t,resolve:s,sep:o}=pe,{SourceMapConsumer:i,SourceMapGenerator:a}=pe,{pathToFileURL:c}=pe,d=gt(),m=!!(i&&a),h=!!(e&&s&&t&&o);class r{constructor(l,n,p,f){this.stringify=l,this.mapOpts=p.map||{},this.root=n,this.opts=p,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let l;this.isInline()?l="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?l=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?l=this.mapOpts.annotation(this.opts.to,this.root):l=this.outputFile()+".map";let n=`
24
24
  `;this.css.includes(`\r
25
25
  `)&&(n=`\r
26
26
  `),this.css+=n+"/*# sourceMappingURL="+l+" */"}applyPrevMaps(){for(let l of this.previous()){let n=this.toUrl(this.path(l.file)),p=l.root||e(l.file),f;this.mapOpts.sourcesContent===!1?(f=new i(l.text),f.sourcesContent&&(f.sourcesContent=null)):f=l.consumer(),this.map.applySourceMap(f,n,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let l;for(let n=this.root.nodes.length-1;n>=0;n--)l=this.root.nodes[n],l.type==="comment"&&l.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&m&&this.isMap())return this.generateMap();{let l="";return this.stringify(this.root,n=>{l+=n}),[l]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let l=this.previous()[0].consumer();l.file=this.outputFile(),this.map=a.fromSourceMap(l,{ignoreInvalidMapping:!0})}else this.map=new a({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 a({file:this.outputFile(),ignoreInvalidMapping:!0});let l=1,n=1,p="<no source>",f={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,S;this.stringify(this.root,(w,v,x)=>{if(this.css+=w,v&&x!=="end"&&(f.generated.line=l,f.generated.column=n-1,v.source&&v.source.start?(f.source=this.sourcePath(v),f.original.line=v.source.start.line,f.original.column=v.source.start.column-1,this.map.addMapping(f)):(f.source=p,f.original.line=1,f.original.column=0,this.map.addMapping(f))),S=w.match(/\n/g),S?(l+=S.length,g=w.lastIndexOf(`
27
- `),n=w.length-g):n+=w.length,v&&x!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(f.source=this.sourcePath(v),f.original.line=v.source.end.line,f.original.column=v.source.end.column-1,f.generated.line=l,f.generated.column=n-2,this.map.addMapping(f)):(f.source=p,f.original.line=1,f.original.column=0,f.generated.line=l,f.generated.column=n-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(l=>l.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let l=this.mapOpts.annotation;return typeof l!="undefined"&&l!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(l=>l.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(l){if(this.mapOpts.absolute||l.charCodeAt(0)===60||/^\w+:\/\//.test(l))return l;let n=this.memoizedPaths.get(l);if(n)return n;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(s(p,this.mapOpts.annotation)));let f=t(p,l);return this.memoizedPaths.set(l,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(l=>{if(l.source&&l.source.input.map){let n=l.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let l=new d(this.originalCSS,this.opts);l.map&&this.previousMaps.push(l.map)}return this.previousMaps}setSourcesContent(){let l={};if(this.root)this.root.walk(n=>{if(n.source){let p=n.source.input.from;if(p&&!l[p]){l[p]=!0;let f=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(f,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(l){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(l.source.input.from):this.toUrl(this.path(l.source.input.from))}toBase64(l){return Buffer?Buffer.from(l).toString("base64"):window.btoa(unescape(encodeURIComponent(l)))}toFileUrl(l){let n=this.memoizedFileURLs.get(l);if(n)return n;if(c){let p=c(l).toString();return this.memoizedFileURLs.set(l,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(l){let n=this.memoizedURLs.get(l);if(n)return n;o==="\\"&&(l=l.replace(/\\/g,"/"));let p=encodeURI(l).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(l,p),p}}return Wt=r,Wt}var zt,Ls;function Yi(){if(Ls)return zt;Ls=1;const e=39,t=34,s=92,o=47,i=10,a=32,c=12,d=9,m=13,h=91,r=93,u=40,l=41,n=123,p=125,f=59,g=42,S=58,w=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return zt=function(R,M={}){let O=R.css.valueOf(),N=M.ignoreErrors,A,ee,te,I,X,T,B,K,V,be,me=O.length,E=0,oe=[],ae=[];function Ae(){return E}function ge(Y){throw R.error("Unclosed "+Y,E)}function he(){return ae.length===0&&E>=me}function re(Y){if(ae.length)return ae.pop();if(E>=me)return;let _=Y?Y.ignoreUnclosed:!1;switch(A=O.charCodeAt(E),A){case i:case a:case d:case m:case c:{I=E;do I+=1,A=O.charCodeAt(I);while(A===a||A===i||A===d||A===m||A===c);T=["space",O.slice(E,I)],E=I-1;break}case h:case r:case n:case p:case S:case f:case l:{let G=String.fromCharCode(A);T=[G,G,E];break}case u:{if(be=oe.length?oe.pop()[1]:"",V=O.charCodeAt(E+1),be==="url"&&V!==e&&V!==t&&V!==a&&V!==i&&V!==d&&V!==c&&V!==m){I=E;do{if(B=!1,I=O.indexOf(")",I+1),I===-1)if(N||_){I=E;break}else ge("bracket");for(K=I;O.charCodeAt(K-1)===s;)K-=1,B=!B}while(B);T=["brackets",O.slice(E,I+1),E,I],E=I}else I=O.indexOf(")",E+1),ee=O.slice(E,I+1),I===-1||y.test(ee)?T=["(","(",E]:(T=["brackets",ee,E,I],E=I);break}case e:case t:{X=A===e?"'":'"',I=E;do{if(B=!1,I=O.indexOf(X,I+1),I===-1)if(N||_){I=E+1;break}else ge("string");for(K=I;O.charCodeAt(K-1)===s;)K-=1,B=!B}while(B);T=["string",O.slice(E,I+1),E,I],E=I;break}case w:{v.lastIndex=E+1,v.test(O),v.lastIndex===0?I=O.length-1:I=v.lastIndex-2,T=["at-word",O.slice(E,I+1),E,I],E=I;break}case s:{for(I=E,te=!0;O.charCodeAt(I+1)===s;)I+=1,te=!te;if(A=O.charCodeAt(I+1),te&&A!==o&&A!==a&&A!==i&&A!==d&&A!==m&&A!==c&&(I+=1,b.test(O.charAt(I)))){for(;b.test(O.charAt(I+1));)I+=1;O.charCodeAt(I+1)===a&&(I+=1)}T=["word",O.slice(E,I+1),E,I],E=I;break}default:{A===o&&O.charCodeAt(E+1)===g?(I=O.indexOf("*/",E+2)+1,I===0&&(N||_?I=O.length:ge("comment")),T=["comment",O.slice(E,I+1),E,I],E=I):(x.lastIndex=E+1,x.test(O),x.lastIndex===0?I=O.length-1:I=x.lastIndex-2,T=["word",O.slice(E,I+1),E,I],oe.push(T),E=I);break}}return E++,T}function Re(Y){ae.push(Y)}return{back:Re,endOfFile:he,nextToken:re,position:Ae}},zt}var qt,Ds;function Zi(){if(Ds)return qt;Ds=1;let e=qr(),t=je(),s=mt(),o=He(),i=Hr(),a=Yi();const c={empty:!0,space:!0};function d(h){for(let r=h.length-1;r>=0;r--){let u=h[r],l=u[3]||u[2];if(l)return l}}class m{constructor(r){this.input=r,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}atrule(r){let u=new e;u.name=r[1].slice(1),u.name===""&&this.unnamedAtrule(u,r),this.init(u,r[2]);let l,n,p,f=!1,g=!1,S=[],w=[];for(;!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),l=r[0],l==="("||l==="["?w.push(l==="("?")":"]"):l==="{"&&w.length>0?w.push("}"):l===w[w.length-1]&&w.pop(),w.length===0)if(l===";"){u.source.end=this.getPosition(r[2]),u.source.end.offset++,this.semicolon=!0;break}else if(l==="{"){g=!0;break}else if(l==="}"){if(S.length>0){for(p=S.length-1,n=S[p];n&&n[0]==="space";)n=S[--p];n&&(u.source.end=this.getPosition(n[3]||n[2]),u.source.end.offset++)}this.end(r);break}else S.push(r);else S.push(r);if(this.tokenizer.endOfFile()){f=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(u.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(u,"params",S),f&&(r=S[S.length-1],u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),g&&(u.nodes=[],this.current=u)}checkMissedSemicolon(r){let u=this.colon(r);if(u===!1)return;let l=0,n;for(let p=u-1;p>=0&&(n=r[p],!(n[0]!=="space"&&(l+=1,l===2)));p--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(r){let u=0,l,n,p;for(let[f,g]of r.entries()){if(n=g,p=n[0],p==="("&&(u+=1),p===")"&&(u-=1),u===0&&p===":")if(!l)this.doubleColon(n);else{if(l[0]==="word"&&l[1]==="progid")continue;return f}l=n}return!1}comment(r){let u=new t;this.init(u,r[2]),u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++;let l=r[1].slice(2,-2);if(/^\s*$/.test(l))u.text="",u.raws.left=l,u.raws.right="";else{let n=l.match(/^(\s*)([^]*\S)(\s*)$/);u.text=n[2],u.raws.left=n[1],u.raws.right=n[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(r,u){let l=new s;this.init(l,r[0][2]);let n=r[r.length-1];for(n[0]===";"&&(this.semicolon=!0,r.pop()),l.source.end=this.getPosition(n[3]||n[2]||d(r)),l.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),l.raws.before+=r.shift()[1];for(l.source.start=this.getPosition(r[0][2]),l.prop="";r.length;){let w=r[0][0];if(w===":"||w==="space"||w==="comment")break;l.prop+=r.shift()[1]}l.raws.between="";let p;for(;r.length;)if(p=r.shift(),p[0]===":"){l.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),l.raws.between+=p[1];(l.prop[0]==="_"||l.prop[0]==="*")&&(l.raws.before+=l.prop[0],l.prop=l.prop.slice(1));let f=[],g;for(;r.length&&(g=r[0][0],!(g!=="space"&&g!=="comment"));)f.push(r.shift());this.precheckMissedSemicolon(r);for(let w=r.length-1;w>=0;w--){if(p=r[w],p[1].toLowerCase()==="!important"){l.important=!0;let v=this.stringFrom(r,w);v=this.spacesFromEnd(r)+v,v!==" !important"&&(l.raws.important=v);break}else if(p[1].toLowerCase()==="important"){let v=r.slice(0),x="";for(let y=w;y>0;y--){let b=v[y][0];if(x.trim().startsWith("!")&&b!=="space")break;x=v.pop()[1]+x}x.trim().startsWith("!")&&(l.important=!0,l.raws.important=x,r=v)}if(p[0]!=="space"&&p[0]!=="comment")break}r.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(l.raws.between+=f.map(w=>w[1]).join(""),f=[]),this.raw(l,"value",f.concat(r),u),l.value.includes(":")&&!u&&this.checkMissedSemicolon(r)}doubleColon(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})}emptyRule(r){let u=new i;this.init(u,r[2]),u.selector="",u.raws.between="",this.current=u}end(r){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(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)}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(r){if(this.spaces+=r[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(r[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(r){let u=this.input.fromOffset(r);return{column:u.col,line:u.line,offset:r}}init(r,u){this.current.push(r),r.source={input:this.input,start:this.getPosition(u)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)}other(r){let u=!1,l=null,n=!1,p=null,f=[],g=r[1].startsWith("--"),S=[],w=r;for(;w;){if(l=w[0],S.push(w),l==="("||l==="[")p||(p=w),f.push(l==="("?")":"]");else if(g&&n&&l==="{")p||(p=w),f.push("}");else if(f.length===0)if(l===";")if(n){this.decl(S,g);return}else break;else if(l==="{"){this.rule(S);return}else if(l==="}"){this.tokenizer.back(S.pop()),u=!0;break}else l===":"&&(n=!0);else l===f[f.length-1]&&(f.pop(),f.length===0&&(p=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),f.length>0&&this.unclosedBracket(p),u&&n){if(!g)for(;S.length&&(w=S[S.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,g)}else this.unknownWord(S)}parse(){let r;for(;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()}precheckMissedSemicolon(){}raw(r,u,l,n){let p,f,g=l.length,S="",w=!0,v,x;for(let y=0;y<g;y+=1)p=l[y],f=p[0],f==="space"&&y===g-1&&!n?w=!1:f==="comment"?(x=l[y-1]?l[y-1][0]:"empty",v=l[y+1]?l[y+1][0]:"empty",!c[x]&&!c[v]?S.slice(-1)===","?w=!1:S+=p[1]:w=!1):S+=p[1];if(!w){let y=l.reduce((b,C)=>b+C[1],"");r.raws[u]={raw:y,value:S}}r[u]=S}rule(r){r.pop();let u=new i;this.init(u,r[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(u,"selector",r),this.current=u}spacesAndCommentsFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],!(u!=="space"&&u!=="comment"));)l=r.pop()[1]+l;return l}spacesAndCommentsFromStart(r){let u,l="";for(;r.length&&(u=r[0][0],!(u!=="space"&&u!=="comment"));)l+=r.shift()[1];return l}spacesFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],u==="space");)l=r.pop()[1]+l;return l}stringFrom(r,u){let l="";for(let n=u;n<r.length;n++)l+=r[n][1];return r.splice(u,r.length-u),l}unclosedBlock(){let r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)}unclosedBracket(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})}unexpectedClose(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})}unknownWord(r){throw this.input.error("Unknown word "+r[0][1],{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})}unnamedAtrule(r,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return qt=m,qt}var jt,Ts;function Vr(){if(Ts)return jt;Ts=1;let e=Ie(),t=gt(),s=Zi();function o(i,a){let c=new t(i,a),d=new s(c);try{d.parse()}catch(m){throw m}return d.root}return jt=o,o.default=o,e.registerParse(o),jt}var Ht,Fs;function Qi(){if(Fs)return Ht;Fs=1;class e{constructor(s,o={}){if(this.type="warning",this.text=s,o.node&&o.node.source){let i=o.node.rangeBy(o);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in o)this[i]=o[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ht=e,e.default=e,Ht}var Vt,$s;function Gr(){if($s)return Vt;$s=1;let e=Qi();class t{get content(){return this.css}constructor(o,i,a){this.processor=o,this.messages=[],this.root=i,this.opts=a,this.css="",this.map=void 0}toString(){return this.css}warn(o,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(o,i);return this.messages.push(a),a}warnings(){return this.messages.filter(o=>o.type==="warning")}}return Vt=t,t.default=t,Vt}var Gt,Bs;function Xi(){if(Bs)return Gt;Bs=1;let e={};return Gt=function(s){e[s]||(e[s]=!0,typeof console!="undefined"&&console.warn&&console.warn(s))},Gt}var Jt,Us;function Ki(){if(Us)return Jt;Us=1;let e=Ie(),t=jr(),s=Ji(),o=Vr(),i=Gr(),a=He(),c=pt(),{isClean:d,my:m}=zr(),h=Xi();const r={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},l={Once:!0,postcssPlugin:!0,prepare:!0},n=0;function p(x){return typeof x=="object"&&typeof x.then=="function"}function f(x){let y=!1,b=r[x.type];return x.type==="decl"?y=x.prop.toLowerCase():x.type==="atrule"&&(y=x.name.toLowerCase()),y&&x.append?[b,b+"-"+y,n,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:x.append?[b,n,b+"Exit"]:[b,b+"Exit"]}function g(x){let y;return x.type==="document"?y=["Document",n,"DocumentExit"]:x.type==="root"?y=["Root",n,"RootExit"]:y=f(x),{eventIndex:0,events:y,iterator:0,node:x,visitorIndex:0,visitors:[]}}function S(x){return x[d]=!1,x.nodes&&x.nodes.forEach(y=>S(y)),x}let w={};class v{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(y,b,C){this.stringified=!1,this.processed=!1;let R;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))R=S(b);else if(b instanceof v||b instanceof i)R=S(b.root),b.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=b.map);else{let M=o;C.syntax&&(M=C.syntax.parse),C.parser&&(M=C.parser),M.parse&&(M=M.parse);try{R=M(b,C)}catch(O){this.processed=!0,this.error=O}R&&!R[m]&&e.rebuild(R)}this.result=new i(y,R,C),this.helpers=le(L({},w),{postcss:w,result:this.result}),this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?L(L({},M),M.prepare(this.result)):M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let C=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=C.postcssPlugin,y.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return y}prepareVisitors(){this.listeners={};let y=(b,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([b,R])};for(let b of this.plugins)if(typeof b=="object")for(let C in b){if(!u[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!l[C])if(typeof b[C]=="object")for(let R in b[C])R==="*"?y(b,C,b[C][R]):y(b,C+"-"+R.toLowerCase(),b[C][R]);else typeof b[C]=="function"&&y(b,C,b[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],C=this.runOnRoot(b);if(p(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];){y[d]=!0;let b=[g(y)];for(;b.length>0;){let C=this.visitTick(b);if(p(C))try{await C}catch(R){let M=b[b.length-1].node;throw this.handleError(R,M)}}}if(this.listeners.OnceExit)for(let[b,C]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let R=y.nodes.map(M=>C(M,this.helpers));await Promise.all(R)}else await C(y,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(C=>y.Once(C,this.helpers));return p(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=c;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let R=new s(b,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[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 y of this.plugins){let b=this.runOnRoot(y);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];)y[d]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[C,R]of y){this.result.lastPlugin=C;let M;try{M=R(b,this.helpers)}catch(O){throw this.handleError(O,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(M))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:C,visitors:R}=b;if(C.type!=="root"&&C.type!=="document"&&!C.parent){y.pop();return}if(R.length>0&&b.visitorIndex<R.length){let[O,N]=R[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===R.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=O;try{return N(C.toProxy(),this.helpers)}catch(A){throw this.handleError(A,C)}}if(b.iterator!==0){let O=b.iterator,N;for(;N=C.nodes[C.indexes[O]];)if(C.indexes[O]+=1,!N[d]){N[d]=!0,y.push(g(N));return}b.iterator=0,delete C.indexes[O]}let M=b.events;for(;b.eventIndex<M.length;){let O=M[b.eventIndex];if(b.eventIndex+=1,O===n){C.nodes&&C.nodes.length&&(C[d]=!0,b.iterator=C.getIterator());return}else if(this.listeners[O]){b.visitors=this.listeners[O];return}}y.pop()}walkSync(y){y[d]=!0;let b=f(y);for(let C of b)if(C===n)y.nodes&&y.each(R=>{R[d]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return v.registerPostcss=x=>{w=x},Jt=v,v.default=v,a.registerLazyResult(v),t.registerLazyResult(v),Jt}var Yt,Ws;function Bo(){if(Ws)return Yt;Ws=1;let e=Ji(),t=Vr();const s=Gr();let o=pt(),i=Xi();class a{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 d,m=t;try{d=m(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=d,d}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(d,m,h){m=m.toString(),this.stringified=!1,this._processor=d,this._css=m,this._opts=h,this._map=void 0;let r,u=o;this.result=new s(this._processor,r,this._opts),this.result.css=m;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let n=new e(u,r,this._opts,m);if(n.isMap()){let[p,f]=n.generate();p&&(this.result.css=p),f&&(this.result.map=f)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(d){return this.async().catch(d)}finally(d){return this.async().then(d,d)}sync(){if(this.error)throw this.error;return this.result}then(d,m){return this.async().then(d,m)}toString(){return this._css}warnings(){return[]}}return Yt=a,a.default=a,Yt}var Zt,zs;function Uo(){if(zs)return Zt;zs=1;let e=jr(),t=Ki(),s=Bo(),o=He();class i{constructor(c=[]){this.version="8.5.6",this.plugins=this.normalize(c)}normalize(c){let d=[];for(let m of c)if(m.postcss===!0?m=m():m.postcss&&(m=m.postcss),typeof m=="object"&&Array.isArray(m.plugins))d=d.concat(m.plugins);else if(typeof m=="object"&&m.postcssPlugin)d.push(m);else if(typeof m=="function")d.push(m);else if(!(typeof m=="object"&&(m.parse||m.stringify)))throw new Error(m+" is not a PostCSS plugin");return d}process(c,d={}){return!this.plugins.length&&!d.parser&&!d.stringifier&&!d.syntax?new s(this,c,d):new t(this,c,d)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return Zt=i,i.default=i,o.registerProcessor(i),e.registerProcessor(i),Zt}var Qt,qs;function en(){if(qs)return Qt;qs=1;let e=qr(),t=je(),s=Ie(),o=Wr(),i=mt(),a=jr(),c=$o(),d=gt(),m=Ki(),h=Gi(),r=dt(),u=Vr(),l=Uo(),n=Gr(),p=He(),f=Hr(),g=pt(),S=Qi();function w(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new l(v)}return w.plugin=function(x,y){let b=!1;function C(...M){console&&console.warn&&!b&&(b=!0,console.warn(x+`: postcss.plugin was deprecated. Migration guide:
27
+ `),n=w.length-g):n+=w.length,v&&x!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(f.source=this.sourcePath(v),f.original.line=v.source.end.line,f.original.column=v.source.end.column-1,f.generated.line=l,f.generated.column=n-2,this.map.addMapping(f)):(f.source=p,f.original.line=1,f.original.column=0,f.generated.line=l,f.generated.column=n-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(l=>l.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let l=this.mapOpts.annotation;return typeof l!="undefined"&&l!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(l=>l.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(l){if(this.mapOpts.absolute||l.charCodeAt(0)===60||/^\w+:\/\//.test(l))return l;let n=this.memoizedPaths.get(l);if(n)return n;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(s(p,this.mapOpts.annotation)));let f=t(p,l);return this.memoizedPaths.set(l,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(l=>{if(l.source&&l.source.input.map){let n=l.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let l=new d(this.originalCSS,this.opts);l.map&&this.previousMaps.push(l.map)}return this.previousMaps}setSourcesContent(){let l={};if(this.root)this.root.walk(n=>{if(n.source){let p=n.source.input.from;if(p&&!l[p]){l[p]=!0;let f=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(f,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(l){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(l.source.input.from):this.toUrl(this.path(l.source.input.from))}toBase64(l){return Buffer?Buffer.from(l).toString("base64"):window.btoa(unescape(encodeURIComponent(l)))}toFileUrl(l){let n=this.memoizedFileURLs.get(l);if(n)return n;if(c){let p=c(l).toString();return this.memoizedFileURLs.set(l,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(l){let n=this.memoizedURLs.get(l);if(n)return n;o==="\\"&&(l=l.replace(/\\/g,"/"));let p=encodeURI(l).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(l,p),p}}return Wt=r,Wt}var zt,Ls;function Zi(){if(Ls)return zt;Ls=1;const e=39,t=34,s=92,o=47,i=10,a=32,c=12,d=9,m=13,h=91,r=93,u=40,l=41,n=123,p=125,f=59,g=42,S=58,w=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return zt=function(R,M={}){let O=R.css.valueOf(),N=M.ignoreErrors,P,ee,D,I,ie,_,U,J,W,be,me=O.length,E=0,oe=[],ae=[];function Ae(){return E}function ge(X){throw R.error("Unclosed "+X,E)}function he(){return ae.length===0&&E>=me}function te(X){if(ae.length)return ae.pop();if(E>=me)return;let k=X?X.ignoreUnclosed:!1;switch(P=O.charCodeAt(E),P){case i:case a:case d:case m:case c:{I=E;do I+=1,P=O.charCodeAt(I);while(P===a||P===i||P===d||P===m||P===c);_=["space",O.slice(E,I)],E=I-1;break}case h:case r:case n:case p:case S:case f:case l:{let Y=String.fromCharCode(P);_=[Y,Y,E];break}case u:{if(be=oe.length?oe.pop()[1]:"",W=O.charCodeAt(E+1),be==="url"&&W!==e&&W!==t&&W!==a&&W!==i&&W!==d&&W!==c&&W!==m){I=E;do{if(U=!1,I=O.indexOf(")",I+1),I===-1)if(N||k){I=E;break}else ge("bracket");for(J=I;O.charCodeAt(J-1)===s;)J-=1,U=!U}while(U);_=["brackets",O.slice(E,I+1),E,I],E=I}else I=O.indexOf(")",E+1),ee=O.slice(E,I+1),I===-1||y.test(ee)?_=["(","(",E]:(_=["brackets",ee,E,I],E=I);break}case e:case t:{ie=P===e?"'":'"',I=E;do{if(U=!1,I=O.indexOf(ie,I+1),I===-1)if(N||k){I=E+1;break}else ge("string");for(J=I;O.charCodeAt(J-1)===s;)J-=1,U=!U}while(U);_=["string",O.slice(E,I+1),E,I],E=I;break}case w:{v.lastIndex=E+1,v.test(O),v.lastIndex===0?I=O.length-1:I=v.lastIndex-2,_=["at-word",O.slice(E,I+1),E,I],E=I;break}case s:{for(I=E,D=!0;O.charCodeAt(I+1)===s;)I+=1,D=!D;if(P=O.charCodeAt(I+1),D&&P!==o&&P!==a&&P!==i&&P!==d&&P!==m&&P!==c&&(I+=1,b.test(O.charAt(I)))){for(;b.test(O.charAt(I+1));)I+=1;O.charCodeAt(I+1)===a&&(I+=1)}_=["word",O.slice(E,I+1),E,I],E=I;break}default:{P===o&&O.charCodeAt(E+1)===g?(I=O.indexOf("*/",E+2)+1,I===0&&(N||k?I=O.length:ge("comment")),_=["comment",O.slice(E,I+1),E,I],E=I):(x.lastIndex=E+1,x.test(O),x.lastIndex===0?I=O.length-1:I=x.lastIndex-2,_=["word",O.slice(E,I+1),E,I],oe.push(_),E=I);break}}return E++,_}function Re(X){ae.push(X)}return{back:Re,endOfFile:he,nextToken:te,position:Ae}},zt}var qt,Ts;function Xi(){if(Ts)return qt;Ts=1;let e=qr(),t=je(),s=mt(),o=He(),i=Hr(),a=Zi();const c={empty:!0,space:!0};function d(h){for(let r=h.length-1;r>=0;r--){let u=h[r],l=u[3]||u[2];if(l)return l}}class m{constructor(r){this.input=r,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}atrule(r){let u=new e;u.name=r[1].slice(1),u.name===""&&this.unnamedAtrule(u,r),this.init(u,r[2]);let l,n,p,f=!1,g=!1,S=[],w=[];for(;!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),l=r[0],l==="("||l==="["?w.push(l==="("?")":"]"):l==="{"&&w.length>0?w.push("}"):l===w[w.length-1]&&w.pop(),w.length===0)if(l===";"){u.source.end=this.getPosition(r[2]),u.source.end.offset++,this.semicolon=!0;break}else if(l==="{"){g=!0;break}else if(l==="}"){if(S.length>0){for(p=S.length-1,n=S[p];n&&n[0]==="space";)n=S[--p];n&&(u.source.end=this.getPosition(n[3]||n[2]),u.source.end.offset++)}this.end(r);break}else S.push(r);else S.push(r);if(this.tokenizer.endOfFile()){f=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(u.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(u,"params",S),f&&(r=S[S.length-1],u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),g&&(u.nodes=[],this.current=u)}checkMissedSemicolon(r){let u=this.colon(r);if(u===!1)return;let l=0,n;for(let p=u-1;p>=0&&(n=r[p],!(n[0]!=="space"&&(l+=1,l===2)));p--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(r){let u=0,l,n,p;for(let[f,g]of r.entries()){if(n=g,p=n[0],p==="("&&(u+=1),p===")"&&(u-=1),u===0&&p===":")if(!l)this.doubleColon(n);else{if(l[0]==="word"&&l[1]==="progid")continue;return f}l=n}return!1}comment(r){let u=new t;this.init(u,r[2]),u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++;let l=r[1].slice(2,-2);if(/^\s*$/.test(l))u.text="",u.raws.left=l,u.raws.right="";else{let n=l.match(/^(\s*)([^]*\S)(\s*)$/);u.text=n[2],u.raws.left=n[1],u.raws.right=n[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(r,u){let l=new s;this.init(l,r[0][2]);let n=r[r.length-1];for(n[0]===";"&&(this.semicolon=!0,r.pop()),l.source.end=this.getPosition(n[3]||n[2]||d(r)),l.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),l.raws.before+=r.shift()[1];for(l.source.start=this.getPosition(r[0][2]),l.prop="";r.length;){let w=r[0][0];if(w===":"||w==="space"||w==="comment")break;l.prop+=r.shift()[1]}l.raws.between="";let p;for(;r.length;)if(p=r.shift(),p[0]===":"){l.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),l.raws.between+=p[1];(l.prop[0]==="_"||l.prop[0]==="*")&&(l.raws.before+=l.prop[0],l.prop=l.prop.slice(1));let f=[],g;for(;r.length&&(g=r[0][0],!(g!=="space"&&g!=="comment"));)f.push(r.shift());this.precheckMissedSemicolon(r);for(let w=r.length-1;w>=0;w--){if(p=r[w],p[1].toLowerCase()==="!important"){l.important=!0;let v=this.stringFrom(r,w);v=this.spacesFromEnd(r)+v,v!==" !important"&&(l.raws.important=v);break}else if(p[1].toLowerCase()==="important"){let v=r.slice(0),x="";for(let y=w;y>0;y--){let b=v[y][0];if(x.trim().startsWith("!")&&b!=="space")break;x=v.pop()[1]+x}x.trim().startsWith("!")&&(l.important=!0,l.raws.important=x,r=v)}if(p[0]!=="space"&&p[0]!=="comment")break}r.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(l.raws.between+=f.map(w=>w[1]).join(""),f=[]),this.raw(l,"value",f.concat(r),u),l.value.includes(":")&&!u&&this.checkMissedSemicolon(r)}doubleColon(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})}emptyRule(r){let u=new i;this.init(u,r[2]),u.selector="",u.raws.between="",this.current=u}end(r){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(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)}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(r){if(this.spaces+=r[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(r[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(r){let u=this.input.fromOffset(r);return{column:u.col,line:u.line,offset:r}}init(r,u){this.current.push(r),r.source={input:this.input,start:this.getPosition(u)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)}other(r){let u=!1,l=null,n=!1,p=null,f=[],g=r[1].startsWith("--"),S=[],w=r;for(;w;){if(l=w[0],S.push(w),l==="("||l==="[")p||(p=w),f.push(l==="("?")":"]");else if(g&&n&&l==="{")p||(p=w),f.push("}");else if(f.length===0)if(l===";")if(n){this.decl(S,g);return}else break;else if(l==="{"){this.rule(S);return}else if(l==="}"){this.tokenizer.back(S.pop()),u=!0;break}else l===":"&&(n=!0);else l===f[f.length-1]&&(f.pop(),f.length===0&&(p=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),f.length>0&&this.unclosedBracket(p),u&&n){if(!g)for(;S.length&&(w=S[S.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,g)}else this.unknownWord(S)}parse(){let r;for(;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()}precheckMissedSemicolon(){}raw(r,u,l,n){let p,f,g=l.length,S="",w=!0,v,x;for(let y=0;y<g;y+=1)p=l[y],f=p[0],f==="space"&&y===g-1&&!n?w=!1:f==="comment"?(x=l[y-1]?l[y-1][0]:"empty",v=l[y+1]?l[y+1][0]:"empty",!c[x]&&!c[v]?S.slice(-1)===","?w=!1:S+=p[1]:w=!1):S+=p[1];if(!w){let y=l.reduce((b,C)=>b+C[1],"");r.raws[u]={raw:y,value:S}}r[u]=S}rule(r){r.pop();let u=new i;this.init(u,r[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(u,"selector",r),this.current=u}spacesAndCommentsFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],!(u!=="space"&&u!=="comment"));)l=r.pop()[1]+l;return l}spacesAndCommentsFromStart(r){let u,l="";for(;r.length&&(u=r[0][0],!(u!=="space"&&u!=="comment"));)l+=r.shift()[1];return l}spacesFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],u==="space");)l=r.pop()[1]+l;return l}stringFrom(r,u){let l="";for(let n=u;n<r.length;n++)l+=r[n][1];return r.splice(u,r.length-u),l}unclosedBlock(){let r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)}unclosedBracket(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})}unexpectedClose(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})}unknownWord(r){throw this.input.error("Unknown word "+r[0][1],{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})}unnamedAtrule(r,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return qt=m,qt}var jt,Fs;function Vr(){if(Fs)return jt;Fs=1;let e=Ie(),t=gt(),s=Xi();function o(i,a){let c=new t(i,a),d=new s(c);try{d.parse()}catch(m){throw m}return d.root}return jt=o,o.default=o,e.registerParse(o),jt}var Ht,$s;function Qi(){if($s)return Ht;$s=1;class e{constructor(s,o={}){if(this.type="warning",this.text=s,o.node&&o.node.source){let i=o.node.rangeBy(o);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in o)this[i]=o[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ht=e,e.default=e,Ht}var Vt,Bs;function Gr(){if(Bs)return Vt;Bs=1;let e=Qi();class t{get content(){return this.css}constructor(o,i,a){this.processor=o,this.messages=[],this.root=i,this.opts=a,this.css="",this.map=void 0}toString(){return this.css}warn(o,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(o,i);return this.messages.push(a),a}warnings(){return this.messages.filter(o=>o.type==="warning")}}return Vt=t,t.default=t,Vt}var Gt,Us;function Ki(){if(Us)return Gt;Us=1;let e={};return Gt=function(s){e[s]||(e[s]=!0,typeof console!="undefined"&&console.warn&&console.warn(s))},Gt}var Jt,Ws;function en(){if(Ws)return Jt;Ws=1;let e=Ie(),t=jr(),s=Yi(),o=Vr(),i=Gr(),a=He(),c=pt(),{isClean:d,my:m}=zr(),h=Ki();const r={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},l={Once:!0,postcssPlugin:!0,prepare:!0},n=0;function p(x){return typeof x=="object"&&typeof x.then=="function"}function f(x){let y=!1,b=r[x.type];return x.type==="decl"?y=x.prop.toLowerCase():x.type==="atrule"&&(y=x.name.toLowerCase()),y&&x.append?[b,b+"-"+y,n,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:x.append?[b,n,b+"Exit"]:[b,b+"Exit"]}function g(x){let y;return x.type==="document"?y=["Document",n,"DocumentExit"]:x.type==="root"?y=["Root",n,"RootExit"]:y=f(x),{eventIndex:0,events:y,iterator:0,node:x,visitorIndex:0,visitors:[]}}function S(x){return x[d]=!1,x.nodes&&x.nodes.forEach(y=>S(y)),x}let w={};class v{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(y,b,C){this.stringified=!1,this.processed=!1;let R;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))R=S(b);else if(b instanceof v||b instanceof i)R=S(b.root),b.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=b.map);else{let M=o;C.syntax&&(M=C.syntax.parse),C.parser&&(M=C.parser),M.parse&&(M=M.parse);try{R=M(b,C)}catch(O){this.processed=!0,this.error=O}R&&!R[m]&&e.rebuild(R)}this.result=new i(y,R,C),this.helpers=le(T({},w),{postcss:w,result:this.result}),this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?T(T({},M),M.prepare(this.result)):M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let C=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=C.postcssPlugin,y.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return y}prepareVisitors(){this.listeners={};let y=(b,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([b,R])};for(let b of this.plugins)if(typeof b=="object")for(let C in b){if(!u[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!l[C])if(typeof b[C]=="object")for(let R in b[C])R==="*"?y(b,C,b[C][R]):y(b,C+"-"+R.toLowerCase(),b[C][R]);else typeof b[C]=="function"&&y(b,C,b[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],C=this.runOnRoot(b);if(p(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];){y[d]=!0;let b=[g(y)];for(;b.length>0;){let C=this.visitTick(b);if(p(C))try{await C}catch(R){let M=b[b.length-1].node;throw this.handleError(R,M)}}}if(this.listeners.OnceExit)for(let[b,C]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let R=y.nodes.map(M=>C(M,this.helpers));await Promise.all(R)}else await C(y,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(C=>y.Once(C,this.helpers));return p(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=c;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let R=new s(b,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[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 y of this.plugins){let b=this.runOnRoot(y);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];)y[d]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[C,R]of y){this.result.lastPlugin=C;let M;try{M=R(b,this.helpers)}catch(O){throw this.handleError(O,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(M))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:C,visitors:R}=b;if(C.type!=="root"&&C.type!=="document"&&!C.parent){y.pop();return}if(R.length>0&&b.visitorIndex<R.length){let[O,N]=R[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===R.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=O;try{return N(C.toProxy(),this.helpers)}catch(P){throw this.handleError(P,C)}}if(b.iterator!==0){let O=b.iterator,N;for(;N=C.nodes[C.indexes[O]];)if(C.indexes[O]+=1,!N[d]){N[d]=!0,y.push(g(N));return}b.iterator=0,delete C.indexes[O]}let M=b.events;for(;b.eventIndex<M.length;){let O=M[b.eventIndex];if(b.eventIndex+=1,O===n){C.nodes&&C.nodes.length&&(C[d]=!0,b.iterator=C.getIterator());return}else if(this.listeners[O]){b.visitors=this.listeners[O];return}}y.pop()}walkSync(y){y[d]=!0;let b=f(y);for(let C of b)if(C===n)y.nodes&&y.each(R=>{R[d]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return v.registerPostcss=x=>{w=x},Jt=v,v.default=v,a.registerLazyResult(v),t.registerLazyResult(v),Jt}var Yt,zs;function Wo(){if(zs)return Yt;zs=1;let e=Yi(),t=Vr();const s=Gr();let o=pt(),i=Ki();class a{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 d,m=t;try{d=m(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=d,d}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(d,m,h){m=m.toString(),this.stringified=!1,this._processor=d,this._css=m,this._opts=h,this._map=void 0;let r,u=o;this.result=new s(this._processor,r,this._opts),this.result.css=m;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let n=new e(u,r,this._opts,m);if(n.isMap()){let[p,f]=n.generate();p&&(this.result.css=p),f&&(this.result.map=f)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(d){return this.async().catch(d)}finally(d){return this.async().then(d,d)}sync(){if(this.error)throw this.error;return this.result}then(d,m){return this.async().then(d,m)}toString(){return this._css}warnings(){return[]}}return Yt=a,a.default=a,Yt}var Zt,qs;function zo(){if(qs)return Zt;qs=1;let e=jr(),t=en(),s=Wo(),o=He();class i{constructor(c=[]){this.version="8.5.6",this.plugins=this.normalize(c)}normalize(c){let d=[];for(let m of c)if(m.postcss===!0?m=m():m.postcss&&(m=m.postcss),typeof m=="object"&&Array.isArray(m.plugins))d=d.concat(m.plugins);else if(typeof m=="object"&&m.postcssPlugin)d.push(m);else if(typeof m=="function")d.push(m);else if(!(typeof m=="object"&&(m.parse||m.stringify)))throw new Error(m+" is not a PostCSS plugin");return d}process(c,d={}){return!this.plugins.length&&!d.parser&&!d.stringifier&&!d.syntax?new s(this,c,d):new t(this,c,d)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return Zt=i,i.default=i,o.registerProcessor(i),e.registerProcessor(i),Zt}var Xt,js;function tn(){if(js)return Xt;js=1;let e=qr(),t=je(),s=Ie(),o=Wr(),i=mt(),a=jr(),c=Uo(),d=gt(),m=en(),h=Ji(),r=dt(),u=Vr(),l=zo(),n=Gr(),p=He(),f=Hr(),g=pt(),S=Qi();function w(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new l(v)}return w.plugin=function(x,y){let b=!1;function C(...M){console&&console.warn&&!b&&(b=!0,console.warn(x+`: 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(x+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
29
- https://www.w3ctech.com/topic/2226`));let O=y(...M);return O.postcssPlugin=x,O.postcssVersion=new l().version,O}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(M,O,N){return w([C(N)]).process(M,O)},C},w.stringify=g,w.parse=u,w.fromJSON=c,w.list=h,w.comment=v=>new t(v),w.atRule=v=>new e(v),w.decl=v=>new i(v),w.rule=v=>new f(v),w.root=v=>new p(v),w.document=v=>new a(v),w.CssSyntaxError=o,w.Declaration=i,w.Container=s,w.Processor=l,w.Document=a,w.Comment=t,w.Warning=S,w.AtRule=e,w.Result=n,w.Input=d,w.Rule=f,w.Root=p,w.Node=r,m.registerPostcss(w),Qt=w,w.default=w,Qt}var Xt,js;function Wo(){if(js)return Xt;js=1;let e=je(),t=Zi(),s=Yi();class o extends t{checkMissedSemicolon(){}comment(a){let c=new e;this.init(c,a[2]);let d=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);c.source.end={column:d.col,line:d.line,offset:a[3]+1};let m=a[1].slice(2);if(m.slice(-2)==="*/"&&(m=m.slice(0,-2)),/^\s*$/.test(m))c.text="",c.raws.left=m,c.raws.right="";else{let h=m.match(/^(\s*)([^]*\S)(\s*)$/);c.text=h[2],c.raws.left=h[1],c.raws.right=h[3]}}createTokenizer(){this.tokenizer=s(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(c=>c[0]==="word")&&super.decl(a)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(a){let c=this.colon(a);if(c===!1)return;let d,m;for(d=c-1;d>=0&&a[d][0]!=="word";d--);if(d===0||d<0)return;for(m=d-1;m>=0;m--)if(a[m][0]!=="space"){m+=1;break}let h=a.slice(d),r=a.slice(m,d);a.splice(m,a.length-m),this.spaces=r.map(u=>u[1]).join(""),this.decl(h)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(c=>c[1]).join("")}unnamedAtrule(a){a.name=""}}return Xt=o,Xt}var Kt,Hs;function zo(){if(Hs)return Kt;Hs=1;let{Input:e}=en(),t=Wo();return Kt=function(o,i){let a=new e(o,i),c=new t(a);return c.parse(),c.root},Kt}zo();var qo=en();const q=_o(qo);q.stringify;q.fromJSON;q.plugin;q.parse;q.list;q.document;q.comment;q.atRule;q.rule;q.decl;q.root;q.CssSyntaxError;q.Declaration;q.Container;q.Processor;q.Document;q.Comment;q.Warning;q.AtRule;q.Result;q.Input;q.Rule;q.Root;q.Node;var jo=Object.defineProperty,Ho=(e,t,s)=>t in e?jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,ue=(e,t,s)=>Ho(e,typeof t!="symbol"?t+"":t,s);function Vo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Go(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var s=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),s}var Ke={exports:{}},Vs;function Jo(){if(Vs)return Ke.exports;Vs=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return Ke.exports=t(),Ke.exports.createColors=t,Ke.exports}const Yo={},Zo=Object.freeze(Object.defineProperty({__proto__:null,default:Yo},Symbol.toStringTag,{value:"Module"})),de=Go(Zo);var er,Gs;function Jr(){if(Gs)return er;Gs=1;let e=Jo(),t=de;class s extends Error{constructor(i,a,c,d,m,h){super(i),this.name="CssSyntaxError",this.reason=i,m&&(this.file=m),d&&(this.source=d),h&&(this.plugin=h),typeof a!="undefined"&&typeof c!="undefined"&&(typeof a=="number"?(this.line=a,this.column=c):(this.line=a.line,this.column=a.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}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(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported);let c=n=>n,d=n=>n,m=n=>n;if(i){let{bold:n,gray:p,red:f}=e.createColors(!0);d=g=>n(f(g)),c=g=>p(g),t&&(m=g=>t(g))}let h=a.split(/\r?\n/),r=Math.max(this.line-3,0),u=Math.min(this.line+2,h.length),l=String(u).length;return h.slice(r,u).map((n,p)=>{let f=r+1+p,g=" "+(" "+f).slice(-l)+" | ";if(f===this.line){if(n.length>160){let w=20,v=Math.max(0,this.column-w),x=Math.max(this.column+w,this.endColumn+w),y=n.slice(v,x),b=c(g.replace(/\d/g," "))+n.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return d(">")+c(g)+m(y)+`
29
+ https://www.w3ctech.com/topic/2226`));let O=y(...M);return O.postcssPlugin=x,O.postcssVersion=new l().version,O}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(M,O,N){return w([C(N)]).process(M,O)},C},w.stringify=g,w.parse=u,w.fromJSON=c,w.list=h,w.comment=v=>new t(v),w.atRule=v=>new e(v),w.decl=v=>new i(v),w.rule=v=>new f(v),w.root=v=>new p(v),w.document=v=>new a(v),w.CssSyntaxError=o,w.Declaration=i,w.Container=s,w.Processor=l,w.Document=a,w.Comment=t,w.Warning=S,w.AtRule=e,w.Result=n,w.Input=d,w.Rule=f,w.Root=p,w.Node=r,m.registerPostcss(w),Xt=w,w.default=w,Xt}var Qt,Hs;function qo(){if(Hs)return Qt;Hs=1;let e=je(),t=Xi(),s=Zi();class o extends t{checkMissedSemicolon(){}comment(a){let c=new e;this.init(c,a[2]);let d=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);c.source.end={column:d.col,line:d.line,offset:a[3]+1};let m=a[1].slice(2);if(m.slice(-2)==="*/"&&(m=m.slice(0,-2)),/^\s*$/.test(m))c.text="",c.raws.left=m,c.raws.right="";else{let h=m.match(/^(\s*)([^]*\S)(\s*)$/);c.text=h[2],c.raws.left=h[1],c.raws.right=h[3]}}createTokenizer(){this.tokenizer=s(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(c=>c[0]==="word")&&super.decl(a)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(a){let c=this.colon(a);if(c===!1)return;let d,m;for(d=c-1;d>=0&&a[d][0]!=="word";d--);if(d===0||d<0)return;for(m=d-1;m>=0;m--)if(a[m][0]!=="space"){m+=1;break}let h=a.slice(d),r=a.slice(m,d);a.splice(m,a.length-m),this.spaces=r.map(u=>u[1]).join(""),this.decl(h)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(c=>c[1]).join("")}unnamedAtrule(a){a.name=""}}return Qt=o,Qt}var Kt,Vs;function jo(){if(Vs)return Kt;Vs=1;let{Input:e}=tn(),t=qo();return Kt=function(o,i){let a=new e(o,i),c=new t(a);return c.parse(),c.root},Kt}jo();var Ho=tn();const H=Do(Ho);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;var Vo=Object.defineProperty,Go=(e,t,s)=>t in e?Vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,ue=(e,t,s)=>Go(e,typeof t!="symbol"?t+"":t,s);function Jo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yo(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var s=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),s}var Ke={exports:{}},Gs;function Zo(){if(Gs)return Ke.exports;Gs=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return Ke.exports=t(),Ke.exports.createColors=t,Ke.exports}const Xo={},Qo=Object.freeze(Object.defineProperty({__proto__:null,default:Xo},Symbol.toStringTag,{value:"Module"})),de=Yo(Qo);var er,Js;function Jr(){if(Js)return er;Js=1;let e=Zo(),t=de;class s extends Error{constructor(i,a,c,d,m,h){super(i),this.name="CssSyntaxError",this.reason=i,m&&(this.file=m),d&&(this.source=d),h&&(this.plugin=h),typeof a!="undefined"&&typeof c!="undefined"&&(typeof a=="number"?(this.line=a,this.column=c):(this.line=a.line,this.column=a.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}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(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported);let c=n=>n,d=n=>n,m=n=>n;if(i){let{bold:n,gray:p,red:f}=e.createColors(!0);d=g=>n(f(g)),c=g=>p(g),t&&(m=g=>t(g))}let h=a.split(/\r?\n/),r=Math.max(this.line-3,0),u=Math.min(this.line+2,h.length),l=String(u).length;return h.slice(r,u).map((n,p)=>{let f=r+1+p,g=" "+(" "+f).slice(-l)+" | ";if(f===this.line){if(n.length>160){let w=20,v=Math.max(0,this.column-w),x=Math.max(this.column+w,this.endColumn+w),y=n.slice(v,x),b=c(g.replace(/\d/g," "))+n.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return d(">")+c(g)+m(y)+`
30
30
  `+b+d("^")}let S=c(g.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return d(">")+c(g)+m(n)+`
31
31
  `+S+d("^")}return" "+c(g)+m(n)}).join(`
32
32
  `)}toString(){let i=this.showSourceCode();return i&&(i=`
33
33
 
34
34
  `+i+`
35
- `),this.name+": "+this.message+i}}return er=s,s.default=s,er}var tr,Js;function tn(){if(Js)return tr;Js=1;const e={after:`
35
+ `),this.name+": "+this.message+i}}return er=s,s.default=s,er}var tr,Ys;function rn(){if(Ys)return tr;Ys=1;const e={after:`
36
36
  `,beforeClose:`
37
37
  `,beforeComment:`
38
38
  `,beforeDecl:`
@@ -43,19 +43,19 @@ https://www.w3ctech.com/topic/2226`));let O=y(...M);return O.postcssPlugin=x,O.p
43
43
  `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c=="undefined"?c=this.raw(a,null,"beforeDecl"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeDecl(i,a){let c;return i.walkDecls(d=>{if(typeof d.raws.before!="undefined")return c=d.raws.before,c.includes(`
44
44
  `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c=="undefined"?c=this.raw(a,null,"beforeRule"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeOpen(i){let a;return i.walk(c=>{if(c.type!=="decl"&&(a=c.raws.between,typeof a!="undefined"))return!1}),a}rawBeforeRule(i){let a;return i.walk(c=>{if(c.nodes&&(c.parent!==i||i.first!==c)&&typeof c.raws.before!="undefined")return a=c.raws.before,a.includes(`
45
45
  `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(c=>{if(typeof c.raws.between!="undefined")return a=c.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(c=>{if(c.nodes&&c.nodes.length===0&&(a=c.raws.after,typeof a!="undefined"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(c=>{let d=c.parent;if(d&&d!==i&&d.parent&&d.parent===i&&typeof c.raws.before!="undefined"){let m=c.raws.before.split(`
46
- `);return a=m[m.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(a=c.raws.semicolon,typeof a!="undefined"))return!1}),a}rawValue(i,a){let c=i[a],d=i.raws[a];return d&&d.value===c?d.raw:c}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return tr=s,s.default=s,tr}var rr,Ys;function yt(){if(Ys)return rr;Ys=1;let e=tn();function t(s,o){new e(o).stringify(s)}return rr=t,t.default=t,rr}var et={},Zs;function Yr(){return Zs||(Zs=1,et.isClean=Symbol("isClean"),et.my=Symbol("my")),et}var sr,Qs;function wt(){if(Qs)return sr;Qs=1;let e=Jr(),t=tn(),s=yt(),{isClean:o,my:i}=Yr();function a(m,h){let r=new m.constructor;for(let u in m){if(!Object.prototype.hasOwnProperty.call(m,u)||u==="proxyCache")continue;let l=m[u],n=typeof l;u==="parent"&&n==="object"?h&&(r[u]=h):u==="source"?r[u]=l:Array.isArray(l)?r[u]=l.map(p=>a(p,r)):(n==="object"&&l!==null&&(l=a(l)),r[u]=l)}return r}function c(m,h){if(h&&typeof h.offset!="undefined")return h.offset;let r=1,u=1,l=0;for(let n=0;n<m.length;n++){if(u===h.line&&r===h.column){l=n;break}m[n]===`
46
+ `);return a=m[m.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(a=c.raws.semicolon,typeof a!="undefined"))return!1}),a}rawValue(i,a){let c=i[a],d=i.raws[a];return d&&d.value===c?d.raw:c}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return tr=s,s.default=s,tr}var rr,Zs;function yt(){if(Zs)return rr;Zs=1;let e=rn();function t(s,o){new e(o).stringify(s)}return rr=t,t.default=t,rr}var et={},Xs;function Yr(){return Xs||(Xs=1,et.isClean=Symbol("isClean"),et.my=Symbol("my")),et}var sr,Qs;function wt(){if(Qs)return sr;Qs=1;let e=Jr(),t=rn(),s=yt(),{isClean:o,my:i}=Yr();function a(m,h){let r=new m.constructor;for(let u in m){if(!Object.prototype.hasOwnProperty.call(m,u)||u==="proxyCache")continue;let l=m[u],n=typeof l;u==="parent"&&n==="object"?h&&(r[u]=h):u==="source"?r[u]=l:Array.isArray(l)?r[u]=l.map(p=>a(p,r)):(n==="object"&&l!==null&&(l=a(l)),r[u]=l)}return r}function c(m,h){if(h&&typeof h.offset!="undefined")return h.offset;let r=1,u=1,l=0;for(let n=0;n<m.length;n++){if(u===h.line&&r===h.column){l=n;break}m[n]===`
47
47
  `?(r=1,u+=1):r+=1}return l}class d{get proxyOf(){return this}constructor(h={}){this.raws={},this[o]=!1,this[i]=!0;for(let r in h)if(r==="nodes"){this.nodes=[];for(let u of h[r])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[r]=h[r]}addToError(h){if(h.postcssNode=this,h.stack&&this.source&&/\n\s{4}at /.test(h.stack)){let r=this.source;h.stack=h.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return h}after(h){return this.parent.insertAfter(this,h),this}assign(h={}){for(let r in h)this[r]=h[r];return this}before(h){return this.parent.insertBefore(this,h),this}cleanRaws(h){delete this.raws.before,delete this.raws.after,h||delete this.raws.between}clone(h={}){let r=a(this);for(let u in h)r[u]=h[u];return r}cloneAfter(h={}){let r=this.clone(h);return this.parent.insertAfter(this,r),r}cloneBefore(h={}){let r=this.clone(h);return this.parent.insertBefore(this,r),r}error(h,r={}){if(this.source){let{end:u,start:l}=this.rangeBy(r);return this.source.input.error(h,{column:l.column,line:l.line},{column:u.column,line:u.line},r)}return new e(h)}getProxyProcessor(){return{get(h,r){return r==="proxyOf"?h:r==="root"?()=>h.root().toProxy():h[r]},set(h,r,u){return h[r]===u||(h[r]=u,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&h.markDirty()),!0}}}markClean(){this[o]=!0}markDirty(){if(this[o]){this[o]=!1;let h=this;for(;h=h.parent;)h[o]=!1}}next(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h+1]}positionBy(h={}){let r=this.source.start;if(h.index)r=this.positionInside(h.index);else if(h.word){let u="document"in this.source.input?this.source.input.document:this.source.input.css,n=u.slice(c(u,this.source.start),c(u,this.source.end)).indexOf(h.word);n!==-1&&(r=this.positionInside(n))}return r}positionInside(h){let r=this.source.start.column,u=this.source.start.line,l="document"in this.source.input?this.source.input.document:this.source.input.css,n=c(l,this.source.start),p=n+h;for(let f=n;f<p;f++)l[f]===`
48
- `?(r=1,u+=1):r+=1;return{column:r,line:u,offset:p}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,u={column:this.source.start.column,line:this.source.start.line,offset:c(r,this.source.start)},l=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:c(r,this.source.end)+1}:{column:u.column+1,line:u.line,offset:u.offset+1};if(h.word){let p=r.slice(c(r,this.source.start),c(r,this.source.end)).indexOf(h.word);p!==-1&&(u=this.positionInside(p),l=this.positionInside(p+h.word.length))}else h.start?u={column:h.start.column,line:h.start.line,offset:c(r,h.start)}:h.index&&(u=this.positionInside(h.index)),h.end?l={column:h.end.column,line:h.end.line,offset:c(r,h.end)}:typeof h.endIndex=="number"?l=this.positionInside(h.endIndex):h.index&&(l=this.positionInside(h.index+1));return(l.line<u.line||l.line===u.line&&l.column<=u.column)&&(l={column:u.column+1,line:u.line,offset:u.offset+1}),{end:l,start:u}}raw(h,r){return new t().raw(this,h,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let r=this,u=!1;for(let l of h)l===this?u=!0:u?(this.parent.insertAfter(r,l),r=l):this.parent.insertBefore(r,l);u||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,r){let u={},l=r==null;r=r||new Map;let n=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let f=this[p];if(Array.isArray(f))u[p]=f.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,r):g);else if(typeof f=="object"&&f.toJSON)u[p]=f.toJSON(null,r);else if(p==="source"){if(f==null)continue;let g=r.get(f.input);g==null&&(g=n,r.set(f.input,n),n++),u[p]={end:f.end,inputId:g,start:f.start}}else u[p]=f}return l&&(u.inputs=[...r.keys()].map(p=>p.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=s){h.stringify&&(h=h.stringify);let r="";return h(this,u=>{r+=u}),r}warn(h,r,u={}){let l={node:this};for(let n in u)l[n]=u[n];return h.warn(r,l)}}return sr=d,d.default=d,sr}var ir,Xs;function Ve(){if(Xs)return ir;Xs=1;let e=wt();class t extends e{constructor(o){super(o),this.type="comment"}}return ir=t,t.default=t,ir}var nr,Ks;function bt(){if(Ks)return nr;Ks=1;let e=wt();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(o){o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=le(L({},o),{value:String(o.value)})),super(o),this.type="decl"}}return nr=t,t.default=t,nr}var or,ei;function Me(){if(ei)return or;ei=1;let e=Ve(),t=bt(),s=wt(),{isClean:o,my:i}=Yr(),a,c,d,m;function h(l){return l.map(n=>(n.nodes&&(n.nodes=h(n.nodes)),delete n.source,n))}function r(l){if(l[o]=!1,l.proxyOf.nodes)for(let n of l.proxyOf.nodes)r(n)}class u extends s{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(...n){for(let p of n){let f=this.normalize(p,this.last);for(let g of f)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let p of this.nodes)p.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let p=this.getIterator(),f,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(f=this.indexes[p],g=n(this.proxyOf.nodes[f],f),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,p){return p==="proxyOf"?n:n[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...f)=>n[p](...f.map(g=>typeof g=="function"?(S,w)=>g(S.toProxy(),w):g)):p==="every"||p==="some"?f=>n[p]((g,...S)=>f(g.toProxy(),...S)):p==="root"?()=>n.root().toProxy():p==="nodes"?n.nodes.map(f=>f.toProxy()):p==="first"||p==="last"?n[p].toProxy():n[p]:n[p]},set(n,p,f){return n[p]===f||(n[p]=f,(p==="name"||p==="params"||p==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,p){let f=this.index(n),g=this.normalize(p,this.proxyOf.nodes[f]).reverse();f=this.index(n);for(let w of g)this.proxyOf.nodes.splice(f+1,0,w);let S;for(let w in this.indexes)S=this.indexes[w],f<S&&(this.indexes[w]=S+g.length);return this.markDirty(),this}insertBefore(n,p){let f=this.index(n),g=f===0?"prepend":!1,S=this.normalize(p,this.proxyOf.nodes[f],g).reverse();f=this.index(n);for(let v of S)this.proxyOf.nodes.splice(f,0,v);let w;for(let v in this.indexes)w=this.indexes[v],f<=w&&(this.indexes[v]=w+S.length);return this.markDirty(),this}normalize(n,p){if(typeof n=="string")n=h(c(n).nodes);else if(typeof n=="undefined")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value=="undefined")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new t(n)]}else if(n.selector||n.selectors)n=[new m(n)];else if(n.name)n=[new a(n)];else if(n.text)n=[new e(n)];else throw new Error("Unknown node type in node creation");return n.map(g=>(g[i]||u.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[o]&&r(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...n){n=n.reverse();for(let p of n){let f=this.normalize(p,this.first,"prepend").reverse();for(let g of f)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+f.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let p;for(let f in this.indexes)p=this.indexes[f],p>=n&&(this.indexes[f]=p-1);return this.markDirty(),this}replaceValues(n,p,f){return f||(f=p,p={}),this.walkDecls(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(n,f))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((p,f)=>{let g;try{g=n(p,f)}catch(S){throw p.addToError(S)}return g!==!1&&p.walk&&(g=p.walk(n)),g})}walkAtRules(n,p){return p?n instanceof RegExp?this.walk((f,g)=>{if(f.type==="atrule"&&n.test(f.name))return p(f,g)}):this.walk((f,g)=>{if(f.type==="atrule"&&f.name===n)return p(f,g)}):(p=n,this.walk((f,g)=>{if(f.type==="atrule")return p(f,g)}))}walkComments(n){return this.walk((p,f)=>{if(p.type==="comment")return n(p,f)})}walkDecls(n,p){return p?n instanceof RegExp?this.walk((f,g)=>{if(f.type==="decl"&&n.test(f.prop))return p(f,g)}):this.walk((f,g)=>{if(f.type==="decl"&&f.prop===n)return p(f,g)}):(p=n,this.walk((f,g)=>{if(f.type==="decl")return p(f,g)}))}walkRules(n,p){return p?n instanceof RegExp?this.walk((f,g)=>{if(f.type==="rule"&&n.test(f.selector))return p(f,g)}):this.walk((f,g)=>{if(f.type==="rule"&&f.selector===n)return p(f,g)}):(p=n,this.walk((f,g)=>{if(f.type==="rule")return p(f,g)}))}}return u.registerParse=l=>{c=l},u.registerRule=l=>{m=l},u.registerAtRule=l=>{a=l},u.registerRoot=l=>{d=l},or=u,u.default=u,u.rebuild=l=>{l.type==="atrule"?Object.setPrototypeOf(l,a.prototype):l.type==="rule"?Object.setPrototypeOf(l,m.prototype):l.type==="decl"?Object.setPrototypeOf(l,t.prototype):l.type==="comment"?Object.setPrototypeOf(l,e.prototype):l.type==="root"&&Object.setPrototypeOf(l,d.prototype),l[i]=!0,l.nodes&&l.nodes.forEach(n=>{u.rebuild(n)})},or}var ar,ti;function Zr(){if(ti)return ar;ti=1;let e=Me();class t extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return ar=t,t.default=t,e.registerAtRule(t),ar}var lr,ri;function Qr(){if(ri)return lr;ri=1;let e=Me(),t,s;class o extends e{constructor(a){super(L({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new s,this,a).stringify()}}return o.registerLazyResult=i=>{t=i},o.registerProcessor=i=>{s=i},lr=o,o.default=o,lr}var ur,si;function Qo(){if(si)return ur;si=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return ur={nanoid:(o=21)=>{let i="",a=o|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(o,i=21)=>(a=i)=>{let c="",d=a|0;for(;d--;)c+=o[Math.random()*o.length|0];return c}},ur}var cr,ii;function rn(){if(ii)return cr;ii=1;let{existsSync:e,readFileSync:t}=de,{dirname:s,join:o}=de,{SourceMapConsumer:i,SourceMapGenerator:a}=de;function c(m){return Buffer?Buffer.from(m,"base64").toString():window.atob(m)}class d{constructor(h,r){if(r.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let u=r.map?r.map.prev:void 0,l=this.loadMap(r.from,u);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=s(this.mapFile)),l&&(this.text=l)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(h){let r=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,l=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,p=h.match(l)||h.match(n);if(p)return decodeURIComponent(h.substr(p[0].length));let f=h.match(r)||h.match(u);if(f)return c(h.substr(f[0].length));let g=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let r=h.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let u=h.lastIndexOf(r.pop()),l=h.indexOf("*/",u);u>-1&&l>-1&&(this.annotation=this.getAnnotationURL(h.substring(u,l)))}loadFile(h){if(this.root=s(h),e(h))return this.mapFile=h,t(h,"utf-8").toString().trim()}loadMap(h,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let u=r(h);if(u){let l=this.loadFile(u);if(!l)throw new Error("Unable to load previous source map: "+u.toString());return l}}else{if(r instanceof i)return a.fromSourceMap(r).toString();if(r instanceof a)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return h&&(u=o(s(h),u)),this.loadFile(u)}}}startWith(h,r){return h?h.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return cr=d,d.default=d,cr}var hr,ni;function St(){if(ni)return hr;ni=1;let{nanoid:e}=Qo(),{isAbsolute:t,resolve:s}=de,{SourceMapConsumer:o,SourceMapGenerator:i}=de,{fileURLToPath:a,pathToFileURL:c}=de,d=Jr(),m=rn(),h=de,r=Symbol("lineToIndexCache"),u=!!(o&&i),l=!!(s&&t);function n(f){if(f[r])return f[r];let g=f.css.split(`
49
- `),S=new Array(g.length),w=0;for(let v=0,x=g.length;v<x;v++)S[v]=w,w+=g[v].length+1;return f[r]=S,S}class p{get from(){return this.file||this.id}constructor(g,S={}){if(g===null||typeof g=="undefined"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.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,S.document&&(this.document=S.document.toString()),S.from&&(!l||/^\w+:\/\//.test(S.from)||t(S.from)?this.file=S.from:this.file=s(S.from)),l&&u){let w=new m(this.css,S);if(w.text){this.map=w;let v=w.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(g,S,w,v={}){let x,y,b,C,R;if(S&&typeof S=="object"){let O=S,N=w;if(typeof O.offset=="number"){C=O.offset;let A=this.fromOffset(C);S=A.line,w=A.col}else S=O.line,w=O.column,C=this.fromLineAndColumn(S,w);if(typeof N.offset=="number"){b=N.offset;let A=this.fromOffset(b);y=A.line,x=A.col}else y=N.line,x=N.column,b=this.fromLineAndColumn(N.line,N.column)}else if(w)C=this.fromLineAndColumn(S,w);else{C=S;let O=this.fromOffset(C);S=O.line,w=O.col}let M=this.origin(S,w,y,x);return M?R=new d(g,M.endLine===void 0?M.line:{column:M.column,line:M.line},M.endLine===void 0?M.column:{column:M.endColumn,line:M.endLine},M.source,M.file,v.plugin):R=new d(g,y===void 0?S:{column:w,line:S},y===void 0?w:{column:x,line:y},this.css,this.file,v.plugin),R.input={column:w,endColumn:x,endLine:y,endOffset:b,line:S,offset:C,source:this.css},this.file&&(c&&(R.input.url=c(this.file).toString()),R.input.file=this.file),R}fromLineAndColumn(g,S){return n(this)[g-1]+S-1}fromOffset(g){let S=n(this),w=S[S.length-1],v=0;if(g>=w)v=S.length-1;else{let x=S.length-2,y;for(;v<x;)if(y=v+(x-v>>1),g<S[y])x=y-1;else if(g>=S[y+1])v=y+1;else{v=y;break}}return{col:g-S[v]+1,line:v+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:s(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,S,w,v){if(!this.map)return!1;let x=this.map.consumer(),y=x.originalPositionFor({column:S,line:g});if(!y.source)return!1;let b;typeof w=="number"&&(b=x.originalPositionFor({column:v,line:w}));let C;t(y.source)?C=c(y.source):C=new URL(y.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let R={column:y.column,endColumn:b&&b.column,endLine:b&&b.line,line:y.line,url:C.toString()};if(C.protocol==="file:")if(a)R.file=a(C);else throw new Error("file: protocol is not available in this PostCSS build");let M=x.sourceContentFor(y.source);return M&&(R.source=M),R}toJSON(){let g={};for(let S of["hasBOM","css","file","id"])this[S]!=null&&(g[S]=this[S]);return this.map&&(g.map=L({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return hr=p,p.default=p,h&&h.registerInput&&h.registerInput(p),hr}var fr,oi;function Ge(){if(oi)return fr;oi=1;let e=Me(),t,s;class o extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,c,d){let m=super.normalize(a);if(c){if(d==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let h of m)h.raws.before=c.raws.before}return m}removeChild(a,c){let d=this.index(a);return!c&&d===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[d].raws.before),super.removeChild(a)}toResult(a={}){return new t(new s,this,a).stringify()}}return o.registerLazyResult=i=>{t=i},o.registerProcessor=i=>{s=i},fr=o,o.default=o,e.registerRoot(o),fr}var pr,ai;function sn(){if(ai)return pr;ai=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let s=[" ",`
50
- `," "];return e.split(t,s)},split(t,s,o){let i=[],a="",c=!1,d=0,m=!1,h="",r=!1;for(let u of t)r?r=!1:u==="\\"?r=!0:m?u===h&&(m=!1):u==='"'||u==="'"?(m=!0,h=u):u==="("?d+=1:u===")"?d>0&&(d-=1):d===0&&s.includes(u)&&(c=!0),c?(a!==""&&i.push(a.trim()),a="",c=!1):a+=u;return(o||a!=="")&&i.push(a.trim()),i}};return pr=e,e.default=e,pr}var dr,li;function Xr(){if(li)return dr;li=1;let e=Me(),t=sn();class s extends e{get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,c=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(c)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return dr=s,s.default=s,e.registerRule(s),dr}var mr,ui;function Xo(){if(ui)return mr;ui=1;let e=Zr(),t=Ve(),s=bt(),o=St(),i=rn(),a=Ge(),c=Xr();function d(m,h){if(Array.isArray(m))return m.map(p=>d(p));let l=m,{inputs:r}=l,u=Ne(l,["inputs"]);if(r){h=[];for(let p of r){let f=le(L({},p),{__proto__:o.prototype});f.map&&(f.map=le(L({},f.map),{__proto__:i.prototype})),h.push(f)}}if(u.nodes&&(u.nodes=m.nodes.map(p=>d(p,h))),u.source){let n=u.source,{inputId:p}=n,f=Ne(n,["inputId"]);u.source=f,p!=null&&(u.source.input=h[p])}if(u.type==="root")return new a(u);if(u.type==="decl")return new s(u);if(u.type==="rule")return new c(u);if(u.type==="comment")return new t(u);if(u.type==="atrule")return new e(u);throw new Error("Unknown node type: "+m.type)}return mr=d,d.default=d,mr}var gr,ci;function nn(){if(ci)return gr;ci=1;let{dirname:e,relative:t,resolve:s,sep:o}=de,{SourceMapConsumer:i,SourceMapGenerator:a}=de,{pathToFileURL:c}=de,d=St(),m=!!(i&&a),h=!!(e&&s&&t&&o);class r{constructor(l,n,p,f){this.stringify=l,this.mapOpts=p.map||{},this.root=n,this.opts=p,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let l;this.isInline()?l="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?l=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?l=this.mapOpts.annotation(this.opts.to,this.root):l=this.outputFile()+".map";let n=`
48
+ `?(r=1,u+=1):r+=1;return{column:r,line:u,offset:p}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,u={column:this.source.start.column,line:this.source.start.line,offset:c(r,this.source.start)},l=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:c(r,this.source.end)+1}:{column:u.column+1,line:u.line,offset:u.offset+1};if(h.word){let p=r.slice(c(r,this.source.start),c(r,this.source.end)).indexOf(h.word);p!==-1&&(u=this.positionInside(p),l=this.positionInside(p+h.word.length))}else h.start?u={column:h.start.column,line:h.start.line,offset:c(r,h.start)}:h.index&&(u=this.positionInside(h.index)),h.end?l={column:h.end.column,line:h.end.line,offset:c(r,h.end)}:typeof h.endIndex=="number"?l=this.positionInside(h.endIndex):h.index&&(l=this.positionInside(h.index+1));return(l.line<u.line||l.line===u.line&&l.column<=u.column)&&(l={column:u.column+1,line:u.line,offset:u.offset+1}),{end:l,start:u}}raw(h,r){return new t().raw(this,h,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let r=this,u=!1;for(let l of h)l===this?u=!0:u?(this.parent.insertAfter(r,l),r=l):this.parent.insertBefore(r,l);u||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,r){let u={},l=r==null;r=r||new Map;let n=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let f=this[p];if(Array.isArray(f))u[p]=f.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,r):g);else if(typeof f=="object"&&f.toJSON)u[p]=f.toJSON(null,r);else if(p==="source"){if(f==null)continue;let g=r.get(f.input);g==null&&(g=n,r.set(f.input,n),n++),u[p]={end:f.end,inputId:g,start:f.start}}else u[p]=f}return l&&(u.inputs=[...r.keys()].map(p=>p.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=s){h.stringify&&(h=h.stringify);let r="";return h(this,u=>{r+=u}),r}warn(h,r,u={}){let l={node:this};for(let n in u)l[n]=u[n];return h.warn(r,l)}}return sr=d,d.default=d,sr}var ir,Ks;function Ve(){if(Ks)return ir;Ks=1;let e=wt();class t extends e{constructor(o){super(o),this.type="comment"}}return ir=t,t.default=t,ir}var nr,ei;function bt(){if(ei)return nr;ei=1;let e=wt();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(o){o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=le(T({},o),{value:String(o.value)})),super(o),this.type="decl"}}return nr=t,t.default=t,nr}var or,ti;function Me(){if(ti)return or;ti=1;let e=Ve(),t=bt(),s=wt(),{isClean:o,my:i}=Yr(),a,c,d,m;function h(l){return l.map(n=>(n.nodes&&(n.nodes=h(n.nodes)),delete n.source,n))}function r(l){if(l[o]=!1,l.proxyOf.nodes)for(let n of l.proxyOf.nodes)r(n)}class u extends s{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(...n){for(let p of n){let f=this.normalize(p,this.last);for(let g of f)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let p of this.nodes)p.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let p=this.getIterator(),f,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(f=this.indexes[p],g=n(this.proxyOf.nodes[f],f),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,p){return p==="proxyOf"?n:n[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...f)=>n[p](...f.map(g=>typeof g=="function"?(S,w)=>g(S.toProxy(),w):g)):p==="every"||p==="some"?f=>n[p]((g,...S)=>f(g.toProxy(),...S)):p==="root"?()=>n.root().toProxy():p==="nodes"?n.nodes.map(f=>f.toProxy()):p==="first"||p==="last"?n[p].toProxy():n[p]:n[p]},set(n,p,f){return n[p]===f||(n[p]=f,(p==="name"||p==="params"||p==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,p){let f=this.index(n),g=this.normalize(p,this.proxyOf.nodes[f]).reverse();f=this.index(n);for(let w of g)this.proxyOf.nodes.splice(f+1,0,w);let S;for(let w in this.indexes)S=this.indexes[w],f<S&&(this.indexes[w]=S+g.length);return this.markDirty(),this}insertBefore(n,p){let f=this.index(n),g=f===0?"prepend":!1,S=this.normalize(p,this.proxyOf.nodes[f],g).reverse();f=this.index(n);for(let v of S)this.proxyOf.nodes.splice(f,0,v);let w;for(let v in this.indexes)w=this.indexes[v],f<=w&&(this.indexes[v]=w+S.length);return this.markDirty(),this}normalize(n,p){if(typeof n=="string")n=h(c(n).nodes);else if(typeof n=="undefined")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value=="undefined")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new t(n)]}else if(n.selector||n.selectors)n=[new m(n)];else if(n.name)n=[new a(n)];else if(n.text)n=[new e(n)];else throw new Error("Unknown node type in node creation");return n.map(g=>(g[i]||u.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[o]&&r(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...n){n=n.reverse();for(let p of n){let f=this.normalize(p,this.first,"prepend").reverse();for(let g of f)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+f.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let p;for(let f in this.indexes)p=this.indexes[f],p>=n&&(this.indexes[f]=p-1);return this.markDirty(),this}replaceValues(n,p,f){return f||(f=p,p={}),this.walkDecls(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(n,f))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((p,f)=>{let g;try{g=n(p,f)}catch(S){throw p.addToError(S)}return g!==!1&&p.walk&&(g=p.walk(n)),g})}walkAtRules(n,p){return p?n instanceof RegExp?this.walk((f,g)=>{if(f.type==="atrule"&&n.test(f.name))return p(f,g)}):this.walk((f,g)=>{if(f.type==="atrule"&&f.name===n)return p(f,g)}):(p=n,this.walk((f,g)=>{if(f.type==="atrule")return p(f,g)}))}walkComments(n){return this.walk((p,f)=>{if(p.type==="comment")return n(p,f)})}walkDecls(n,p){return p?n instanceof RegExp?this.walk((f,g)=>{if(f.type==="decl"&&n.test(f.prop))return p(f,g)}):this.walk((f,g)=>{if(f.type==="decl"&&f.prop===n)return p(f,g)}):(p=n,this.walk((f,g)=>{if(f.type==="decl")return p(f,g)}))}walkRules(n,p){return p?n instanceof RegExp?this.walk((f,g)=>{if(f.type==="rule"&&n.test(f.selector))return p(f,g)}):this.walk((f,g)=>{if(f.type==="rule"&&f.selector===n)return p(f,g)}):(p=n,this.walk((f,g)=>{if(f.type==="rule")return p(f,g)}))}}return u.registerParse=l=>{c=l},u.registerRule=l=>{m=l},u.registerAtRule=l=>{a=l},u.registerRoot=l=>{d=l},or=u,u.default=u,u.rebuild=l=>{l.type==="atrule"?Object.setPrototypeOf(l,a.prototype):l.type==="rule"?Object.setPrototypeOf(l,m.prototype):l.type==="decl"?Object.setPrototypeOf(l,t.prototype):l.type==="comment"?Object.setPrototypeOf(l,e.prototype):l.type==="root"&&Object.setPrototypeOf(l,d.prototype),l[i]=!0,l.nodes&&l.nodes.forEach(n=>{u.rebuild(n)})},or}var ar,ri;function Zr(){if(ri)return ar;ri=1;let e=Me();class t extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return ar=t,t.default=t,e.registerAtRule(t),ar}var lr,si;function Xr(){if(si)return lr;si=1;let e=Me(),t,s;class o extends e{constructor(a){super(T({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new s,this,a).stringify()}}return o.registerLazyResult=i=>{t=i},o.registerProcessor=i=>{s=i},lr=o,o.default=o,lr}var ur,ii;function Ko(){if(ii)return ur;ii=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return ur={nanoid:(o=21)=>{let i="",a=o|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(o,i=21)=>(a=i)=>{let c="",d=a|0;for(;d--;)c+=o[Math.random()*o.length|0];return c}},ur}var cr,ni;function sn(){if(ni)return cr;ni=1;let{existsSync:e,readFileSync:t}=de,{dirname:s,join:o}=de,{SourceMapConsumer:i,SourceMapGenerator:a}=de;function c(m){return Buffer?Buffer.from(m,"base64").toString():window.atob(m)}class d{constructor(h,r){if(r.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let u=r.map?r.map.prev:void 0,l=this.loadMap(r.from,u);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=s(this.mapFile)),l&&(this.text=l)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(h){let r=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,l=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,p=h.match(l)||h.match(n);if(p)return decodeURIComponent(h.substr(p[0].length));let f=h.match(r)||h.match(u);if(f)return c(h.substr(f[0].length));let g=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let r=h.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let u=h.lastIndexOf(r.pop()),l=h.indexOf("*/",u);u>-1&&l>-1&&(this.annotation=this.getAnnotationURL(h.substring(u,l)))}loadFile(h){if(this.root=s(h),e(h))return this.mapFile=h,t(h,"utf-8").toString().trim()}loadMap(h,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let u=r(h);if(u){let l=this.loadFile(u);if(!l)throw new Error("Unable to load previous source map: "+u.toString());return l}}else{if(r instanceof i)return a.fromSourceMap(r).toString();if(r instanceof a)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return h&&(u=o(s(h),u)),this.loadFile(u)}}}startWith(h,r){return h?h.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return cr=d,d.default=d,cr}var hr,oi;function St(){if(oi)return hr;oi=1;let{nanoid:e}=Ko(),{isAbsolute:t,resolve:s}=de,{SourceMapConsumer:o,SourceMapGenerator:i}=de,{fileURLToPath:a,pathToFileURL:c}=de,d=Jr(),m=sn(),h=de,r=Symbol("lineToIndexCache"),u=!!(o&&i),l=!!(s&&t);function n(f){if(f[r])return f[r];let g=f.css.split(`
49
+ `),S=new Array(g.length),w=0;for(let v=0,x=g.length;v<x;v++)S[v]=w,w+=g[v].length+1;return f[r]=S,S}class p{get from(){return this.file||this.id}constructor(g,S={}){if(g===null||typeof g=="undefined"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.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,S.document&&(this.document=S.document.toString()),S.from&&(!l||/^\w+:\/\//.test(S.from)||t(S.from)?this.file=S.from:this.file=s(S.from)),l&&u){let w=new m(this.css,S);if(w.text){this.map=w;let v=w.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(g,S,w,v={}){let x,y,b,C,R;if(S&&typeof S=="object"){let O=S,N=w;if(typeof O.offset=="number"){C=O.offset;let P=this.fromOffset(C);S=P.line,w=P.col}else S=O.line,w=O.column,C=this.fromLineAndColumn(S,w);if(typeof N.offset=="number"){b=N.offset;let P=this.fromOffset(b);y=P.line,x=P.col}else y=N.line,x=N.column,b=this.fromLineAndColumn(N.line,N.column)}else if(w)C=this.fromLineAndColumn(S,w);else{C=S;let O=this.fromOffset(C);S=O.line,w=O.col}let M=this.origin(S,w,y,x);return M?R=new d(g,M.endLine===void 0?M.line:{column:M.column,line:M.line},M.endLine===void 0?M.column:{column:M.endColumn,line:M.endLine},M.source,M.file,v.plugin):R=new d(g,y===void 0?S:{column:w,line:S},y===void 0?w:{column:x,line:y},this.css,this.file,v.plugin),R.input={column:w,endColumn:x,endLine:y,endOffset:b,line:S,offset:C,source:this.css},this.file&&(c&&(R.input.url=c(this.file).toString()),R.input.file=this.file),R}fromLineAndColumn(g,S){return n(this)[g-1]+S-1}fromOffset(g){let S=n(this),w=S[S.length-1],v=0;if(g>=w)v=S.length-1;else{let x=S.length-2,y;for(;v<x;)if(y=v+(x-v>>1),g<S[y])x=y-1;else if(g>=S[y+1])v=y+1;else{v=y;break}}return{col:g-S[v]+1,line:v+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:s(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,S,w,v){if(!this.map)return!1;let x=this.map.consumer(),y=x.originalPositionFor({column:S,line:g});if(!y.source)return!1;let b;typeof w=="number"&&(b=x.originalPositionFor({column:v,line:w}));let C;t(y.source)?C=c(y.source):C=new URL(y.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let R={column:y.column,endColumn:b&&b.column,endLine:b&&b.line,line:y.line,url:C.toString()};if(C.protocol==="file:")if(a)R.file=a(C);else throw new Error("file: protocol is not available in this PostCSS build");let M=x.sourceContentFor(y.source);return M&&(R.source=M),R}toJSON(){let g={};for(let S of["hasBOM","css","file","id"])this[S]!=null&&(g[S]=this[S]);return this.map&&(g.map=T({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return hr=p,p.default=p,h&&h.registerInput&&h.registerInput(p),hr}var fr,ai;function Ge(){if(ai)return fr;ai=1;let e=Me(),t,s;class o extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,c,d){let m=super.normalize(a);if(c){if(d==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let h of m)h.raws.before=c.raws.before}return m}removeChild(a,c){let d=this.index(a);return!c&&d===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[d].raws.before),super.removeChild(a)}toResult(a={}){return new t(new s,this,a).stringify()}}return o.registerLazyResult=i=>{t=i},o.registerProcessor=i=>{s=i},fr=o,o.default=o,e.registerRoot(o),fr}var pr,li;function nn(){if(li)return pr;li=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let s=[" ",`
50
+ `," "];return e.split(t,s)},split(t,s,o){let i=[],a="",c=!1,d=0,m=!1,h="",r=!1;for(let u of t)r?r=!1:u==="\\"?r=!0:m?u===h&&(m=!1):u==='"'||u==="'"?(m=!0,h=u):u==="("?d+=1:u===")"?d>0&&(d-=1):d===0&&s.includes(u)&&(c=!0),c?(a!==""&&i.push(a.trim()),a="",c=!1):a+=u;return(o||a!=="")&&i.push(a.trim()),i}};return pr=e,e.default=e,pr}var dr,ui;function Qr(){if(ui)return dr;ui=1;let e=Me(),t=nn();class s extends e{get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,c=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(c)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return dr=s,s.default=s,e.registerRule(s),dr}var mr,ci;function ea(){if(ci)return mr;ci=1;let e=Zr(),t=Ve(),s=bt(),o=St(),i=sn(),a=Ge(),c=Qr();function d(m,h){if(Array.isArray(m))return m.map(p=>d(p));let l=m,{inputs:r}=l,u=Ne(l,["inputs"]);if(r){h=[];for(let p of r){let f=le(T({},p),{__proto__:o.prototype});f.map&&(f.map=le(T({},f.map),{__proto__:i.prototype})),h.push(f)}}if(u.nodes&&(u.nodes=m.nodes.map(p=>d(p,h))),u.source){let n=u.source,{inputId:p}=n,f=Ne(n,["inputId"]);u.source=f,p!=null&&(u.source.input=h[p])}if(u.type==="root")return new a(u);if(u.type==="decl")return new s(u);if(u.type==="rule")return new c(u);if(u.type==="comment")return new t(u);if(u.type==="atrule")return new e(u);throw new Error("Unknown node type: "+m.type)}return mr=d,d.default=d,mr}var gr,hi;function on(){if(hi)return gr;hi=1;let{dirname:e,relative:t,resolve:s,sep:o}=de,{SourceMapConsumer:i,SourceMapGenerator:a}=de,{pathToFileURL:c}=de,d=St(),m=!!(i&&a),h=!!(e&&s&&t&&o);class r{constructor(l,n,p,f){this.stringify=l,this.mapOpts=p.map||{},this.root=n,this.opts=p,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let l;this.isInline()?l="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?l=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?l=this.mapOpts.annotation(this.opts.to,this.root):l=this.outputFile()+".map";let n=`
51
51
  `;this.css.includes(`\r
52
52
  `)&&(n=`\r
53
53
  `),this.css+=n+"/*# sourceMappingURL="+l+" */"}applyPrevMaps(){for(let l of this.previous()){let n=this.toUrl(this.path(l.file)),p=l.root||e(l.file),f;this.mapOpts.sourcesContent===!1?(f=new i(l.text),f.sourcesContent&&(f.sourcesContent=null)):f=l.consumer(),this.map.applySourceMap(f,n,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let l;for(let n=this.root.nodes.length-1;n>=0;n--)l=this.root.nodes[n],l.type==="comment"&&l.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&m&&this.isMap())return this.generateMap();{let l="";return this.stringify(this.root,n=>{l+=n}),[l]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let l=this.previous()[0].consumer();l.file=this.outputFile(),this.map=a.fromSourceMap(l,{ignoreInvalidMapping:!0})}else this.map=new a({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 a({file:this.outputFile(),ignoreInvalidMapping:!0});let l=1,n=1,p="<no source>",f={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,S;this.stringify(this.root,(w,v,x)=>{if(this.css+=w,v&&x!=="end"&&(f.generated.line=l,f.generated.column=n-1,v.source&&v.source.start?(f.source=this.sourcePath(v),f.original.line=v.source.start.line,f.original.column=v.source.start.column-1,this.map.addMapping(f)):(f.source=p,f.original.line=1,f.original.column=0,this.map.addMapping(f))),S=w.match(/\n/g),S?(l+=S.length,g=w.lastIndexOf(`
54
- `),n=w.length-g):n+=w.length,v&&x!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(f.source=this.sourcePath(v),f.original.line=v.source.end.line,f.original.column=v.source.end.column-1,f.generated.line=l,f.generated.column=n-2,this.map.addMapping(f)):(f.source=p,f.original.line=1,f.original.column=0,f.generated.line=l,f.generated.column=n-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(l=>l.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let l=this.mapOpts.annotation;return typeof l!="undefined"&&l!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(l=>l.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(l){if(this.mapOpts.absolute||l.charCodeAt(0)===60||/^\w+:\/\//.test(l))return l;let n=this.memoizedPaths.get(l);if(n)return n;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(s(p,this.mapOpts.annotation)));let f=t(p,l);return this.memoizedPaths.set(l,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(l=>{if(l.source&&l.source.input.map){let n=l.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let l=new d(this.originalCSS,this.opts);l.map&&this.previousMaps.push(l.map)}return this.previousMaps}setSourcesContent(){let l={};if(this.root)this.root.walk(n=>{if(n.source){let p=n.source.input.from;if(p&&!l[p]){l[p]=!0;let f=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(f,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(l){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(l.source.input.from):this.toUrl(this.path(l.source.input.from))}toBase64(l){return Buffer?Buffer.from(l).toString("base64"):window.btoa(unescape(encodeURIComponent(l)))}toFileUrl(l){let n=this.memoizedFileURLs.get(l);if(n)return n;if(c){let p=c(l).toString();return this.memoizedFileURLs.set(l,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(l){let n=this.memoizedURLs.get(l);if(n)return n;o==="\\"&&(l=l.replace(/\\/g,"/"));let p=encodeURI(l).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(l,p),p}}return gr=r,gr}var yr,hi;function on(){if(hi)return yr;hi=1;const e=39,t=34,s=92,o=47,i=10,a=32,c=12,d=9,m=13,h=91,r=93,u=40,l=41,n=123,p=125,f=59,g=42,S=58,w=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return yr=function(R,M={}){let O=R.css.valueOf(),N=M.ignoreErrors,A,ee,te,I,X,T,B,K,V,be,me=O.length,E=0,oe=[],ae=[];function Ae(){return E}function ge(Y){throw R.error("Unclosed "+Y,E)}function he(){return ae.length===0&&E>=me}function re(Y){if(ae.length)return ae.pop();if(E>=me)return;let _=Y?Y.ignoreUnclosed:!1;switch(A=O.charCodeAt(E),A){case i:case a:case d:case m:case c:{I=E;do I+=1,A=O.charCodeAt(I);while(A===a||A===i||A===d||A===m||A===c);T=["space",O.slice(E,I)],E=I-1;break}case h:case r:case n:case p:case S:case f:case l:{let G=String.fromCharCode(A);T=[G,G,E];break}case u:{if(be=oe.length?oe.pop()[1]:"",V=O.charCodeAt(E+1),be==="url"&&V!==e&&V!==t&&V!==a&&V!==i&&V!==d&&V!==c&&V!==m){I=E;do{if(B=!1,I=O.indexOf(")",I+1),I===-1)if(N||_){I=E;break}else ge("bracket");for(K=I;O.charCodeAt(K-1)===s;)K-=1,B=!B}while(B);T=["brackets",O.slice(E,I+1),E,I],E=I}else I=O.indexOf(")",E+1),ee=O.slice(E,I+1),I===-1||y.test(ee)?T=["(","(",E]:(T=["brackets",ee,E,I],E=I);break}case e:case t:{X=A===e?"'":'"',I=E;do{if(B=!1,I=O.indexOf(X,I+1),I===-1)if(N||_){I=E+1;break}else ge("string");for(K=I;O.charCodeAt(K-1)===s;)K-=1,B=!B}while(B);T=["string",O.slice(E,I+1),E,I],E=I;break}case w:{v.lastIndex=E+1,v.test(O),v.lastIndex===0?I=O.length-1:I=v.lastIndex-2,T=["at-word",O.slice(E,I+1),E,I],E=I;break}case s:{for(I=E,te=!0;O.charCodeAt(I+1)===s;)I+=1,te=!te;if(A=O.charCodeAt(I+1),te&&A!==o&&A!==a&&A!==i&&A!==d&&A!==m&&A!==c&&(I+=1,b.test(O.charAt(I)))){for(;b.test(O.charAt(I+1));)I+=1;O.charCodeAt(I+1)===a&&(I+=1)}T=["word",O.slice(E,I+1),E,I],E=I;break}default:{A===o&&O.charCodeAt(E+1)===g?(I=O.indexOf("*/",E+2)+1,I===0&&(N||_?I=O.length:ge("comment")),T=["comment",O.slice(E,I+1),E,I],E=I):(x.lastIndex=E+1,x.test(O),x.lastIndex===0?I=O.length-1:I=x.lastIndex-2,T=["word",O.slice(E,I+1),E,I],oe.push(T),E=I);break}}return E++,T}function Re(Y){ae.push(Y)}return{back:Re,endOfFile:he,nextToken:re,position:Ae}},yr}var wr,fi;function an(){if(fi)return wr;fi=1;let e=Zr(),t=Ve(),s=bt(),o=Ge(),i=Xr(),a=on();const c={empty:!0,space:!0};function d(h){for(let r=h.length-1;r>=0;r--){let u=h[r],l=u[3]||u[2];if(l)return l}}class m{constructor(r){this.input=r,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}atrule(r){let u=new e;u.name=r[1].slice(1),u.name===""&&this.unnamedAtrule(u,r),this.init(u,r[2]);let l,n,p,f=!1,g=!1,S=[],w=[];for(;!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),l=r[0],l==="("||l==="["?w.push(l==="("?")":"]"):l==="{"&&w.length>0?w.push("}"):l===w[w.length-1]&&w.pop(),w.length===0)if(l===";"){u.source.end=this.getPosition(r[2]),u.source.end.offset++,this.semicolon=!0;break}else if(l==="{"){g=!0;break}else if(l==="}"){if(S.length>0){for(p=S.length-1,n=S[p];n&&n[0]==="space";)n=S[--p];n&&(u.source.end=this.getPosition(n[3]||n[2]),u.source.end.offset++)}this.end(r);break}else S.push(r);else S.push(r);if(this.tokenizer.endOfFile()){f=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(u.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(u,"params",S),f&&(r=S[S.length-1],u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),g&&(u.nodes=[],this.current=u)}checkMissedSemicolon(r){let u=this.colon(r);if(u===!1)return;let l=0,n;for(let p=u-1;p>=0&&(n=r[p],!(n[0]!=="space"&&(l+=1,l===2)));p--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(r){let u=0,l,n,p;for(let[f,g]of r.entries()){if(n=g,p=n[0],p==="("&&(u+=1),p===")"&&(u-=1),u===0&&p===":")if(!l)this.doubleColon(n);else{if(l[0]==="word"&&l[1]==="progid")continue;return f}l=n}return!1}comment(r){let u=new t;this.init(u,r[2]),u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++;let l=r[1].slice(2,-2);if(/^\s*$/.test(l))u.text="",u.raws.left=l,u.raws.right="";else{let n=l.match(/^(\s*)([^]*\S)(\s*)$/);u.text=n[2],u.raws.left=n[1],u.raws.right=n[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(r,u){let l=new s;this.init(l,r[0][2]);let n=r[r.length-1];for(n[0]===";"&&(this.semicolon=!0,r.pop()),l.source.end=this.getPosition(n[3]||n[2]||d(r)),l.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),l.raws.before+=r.shift()[1];for(l.source.start=this.getPosition(r[0][2]),l.prop="";r.length;){let w=r[0][0];if(w===":"||w==="space"||w==="comment")break;l.prop+=r.shift()[1]}l.raws.between="";let p;for(;r.length;)if(p=r.shift(),p[0]===":"){l.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),l.raws.between+=p[1];(l.prop[0]==="_"||l.prop[0]==="*")&&(l.raws.before+=l.prop[0],l.prop=l.prop.slice(1));let f=[],g;for(;r.length&&(g=r[0][0],!(g!=="space"&&g!=="comment"));)f.push(r.shift());this.precheckMissedSemicolon(r);for(let w=r.length-1;w>=0;w--){if(p=r[w],p[1].toLowerCase()==="!important"){l.important=!0;let v=this.stringFrom(r,w);v=this.spacesFromEnd(r)+v,v!==" !important"&&(l.raws.important=v);break}else if(p[1].toLowerCase()==="important"){let v=r.slice(0),x="";for(let y=w;y>0;y--){let b=v[y][0];if(x.trim().startsWith("!")&&b!=="space")break;x=v.pop()[1]+x}x.trim().startsWith("!")&&(l.important=!0,l.raws.important=x,r=v)}if(p[0]!=="space"&&p[0]!=="comment")break}r.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(l.raws.between+=f.map(w=>w[1]).join(""),f=[]),this.raw(l,"value",f.concat(r),u),l.value.includes(":")&&!u&&this.checkMissedSemicolon(r)}doubleColon(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})}emptyRule(r){let u=new i;this.init(u,r[2]),u.selector="",u.raws.between="",this.current=u}end(r){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(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)}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(r){if(this.spaces+=r[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(r[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(r){let u=this.input.fromOffset(r);return{column:u.col,line:u.line,offset:r}}init(r,u){this.current.push(r),r.source={input:this.input,start:this.getPosition(u)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)}other(r){let u=!1,l=null,n=!1,p=null,f=[],g=r[1].startsWith("--"),S=[],w=r;for(;w;){if(l=w[0],S.push(w),l==="("||l==="[")p||(p=w),f.push(l==="("?")":"]");else if(g&&n&&l==="{")p||(p=w),f.push("}");else if(f.length===0)if(l===";")if(n){this.decl(S,g);return}else break;else if(l==="{"){this.rule(S);return}else if(l==="}"){this.tokenizer.back(S.pop()),u=!0;break}else l===":"&&(n=!0);else l===f[f.length-1]&&(f.pop(),f.length===0&&(p=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),f.length>0&&this.unclosedBracket(p),u&&n){if(!g)for(;S.length&&(w=S[S.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,g)}else this.unknownWord(S)}parse(){let r;for(;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()}precheckMissedSemicolon(){}raw(r,u,l,n){let p,f,g=l.length,S="",w=!0,v,x;for(let y=0;y<g;y+=1)p=l[y],f=p[0],f==="space"&&y===g-1&&!n?w=!1:f==="comment"?(x=l[y-1]?l[y-1][0]:"empty",v=l[y+1]?l[y+1][0]:"empty",!c[x]&&!c[v]?S.slice(-1)===","?w=!1:S+=p[1]:w=!1):S+=p[1];if(!w){let y=l.reduce((b,C)=>b+C[1],"");r.raws[u]={raw:y,value:S}}r[u]=S}rule(r){r.pop();let u=new i;this.init(u,r[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(u,"selector",r),this.current=u}spacesAndCommentsFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],!(u!=="space"&&u!=="comment"));)l=r.pop()[1]+l;return l}spacesAndCommentsFromStart(r){let u,l="";for(;r.length&&(u=r[0][0],!(u!=="space"&&u!=="comment"));)l+=r.shift()[1];return l}spacesFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],u==="space");)l=r.pop()[1]+l;return l}stringFrom(r,u){let l="";for(let n=u;n<r.length;n++)l+=r[n][1];return r.splice(u,r.length-u),l}unclosedBlock(){let r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)}unclosedBracket(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})}unexpectedClose(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})}unknownWord(r){throw this.input.error("Unknown word "+r[0][1],{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})}unnamedAtrule(r,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return wr=m,wr}var br,pi;function Kr(){if(pi)return br;pi=1;let e=Me(),t=St(),s=an();function o(i,a){let c=new t(i,a),d=new s(c);try{d.parse()}catch(m){throw m}return d.root}return br=o,o.default=o,e.registerParse(o),br}var Sr,di;function ln(){if(di)return Sr;di=1;class e{constructor(s,o={}){if(this.type="warning",this.text=s,o.node&&o.node.source){let i=o.node.rangeBy(o);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in o)this[i]=o[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Sr=e,e.default=e,Sr}var vr,mi;function es(){if(mi)return vr;mi=1;let e=ln();class t{get content(){return this.css}constructor(o,i,a){this.processor=o,this.messages=[],this.root=i,this.opts=a,this.css="",this.map=void 0}toString(){return this.css}warn(o,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(o,i);return this.messages.push(a),a}warnings(){return this.messages.filter(o=>o.type==="warning")}}return vr=t,t.default=t,vr}var Cr,gi;function un(){if(gi)return Cr;gi=1;let e={};return Cr=function(s){e[s]||(e[s]=!0,typeof console!="undefined"&&console.warn&&console.warn(s))},Cr}var xr,yi;function cn(){if(yi)return xr;yi=1;let e=Me(),t=Qr(),s=nn(),o=Kr(),i=es(),a=Ge(),c=yt(),{isClean:d,my:m}=Yr(),h=un();const r={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},l={Once:!0,postcssPlugin:!0,prepare:!0},n=0;function p(x){return typeof x=="object"&&typeof x.then=="function"}function f(x){let y=!1,b=r[x.type];return x.type==="decl"?y=x.prop.toLowerCase():x.type==="atrule"&&(y=x.name.toLowerCase()),y&&x.append?[b,b+"-"+y,n,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:x.append?[b,n,b+"Exit"]:[b,b+"Exit"]}function g(x){let y;return x.type==="document"?y=["Document",n,"DocumentExit"]:x.type==="root"?y=["Root",n,"RootExit"]:y=f(x),{eventIndex:0,events:y,iterator:0,node:x,visitorIndex:0,visitors:[]}}function S(x){return x[d]=!1,x.nodes&&x.nodes.forEach(y=>S(y)),x}let w={};class v{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(y,b,C){this.stringified=!1,this.processed=!1;let R;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))R=S(b);else if(b instanceof v||b instanceof i)R=S(b.root),b.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=b.map);else{let M=o;C.syntax&&(M=C.syntax.parse),C.parser&&(M=C.parser),M.parse&&(M=M.parse);try{R=M(b,C)}catch(O){this.processed=!0,this.error=O}R&&!R[m]&&e.rebuild(R)}this.result=new i(y,R,C),this.helpers=le(L({},w),{postcss:w,result:this.result}),this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?L(L({},M),M.prepare(this.result)):M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let C=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=C.postcssPlugin,y.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return y}prepareVisitors(){this.listeners={};let y=(b,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([b,R])};for(let b of this.plugins)if(typeof b=="object")for(let C in b){if(!u[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!l[C])if(typeof b[C]=="object")for(let R in b[C])R==="*"?y(b,C,b[C][R]):y(b,C+"-"+R.toLowerCase(),b[C][R]);else typeof b[C]=="function"&&y(b,C,b[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],C=this.runOnRoot(b);if(p(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];){y[d]=!0;let b=[g(y)];for(;b.length>0;){let C=this.visitTick(b);if(p(C))try{await C}catch(R){let M=b[b.length-1].node;throw this.handleError(R,M)}}}if(this.listeners.OnceExit)for(let[b,C]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let R=y.nodes.map(M=>C(M,this.helpers));await Promise.all(R)}else await C(y,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(C=>y.Once(C,this.helpers));return p(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=c;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let R=new s(b,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[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 y of this.plugins){let b=this.runOnRoot(y);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];)y[d]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[C,R]of y){this.result.lastPlugin=C;let M;try{M=R(b,this.helpers)}catch(O){throw this.handleError(O,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(M))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:C,visitors:R}=b;if(C.type!=="root"&&C.type!=="document"&&!C.parent){y.pop();return}if(R.length>0&&b.visitorIndex<R.length){let[O,N]=R[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===R.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=O;try{return N(C.toProxy(),this.helpers)}catch(A){throw this.handleError(A,C)}}if(b.iterator!==0){let O=b.iterator,N;for(;N=C.nodes[C.indexes[O]];)if(C.indexes[O]+=1,!N[d]){N[d]=!0,y.push(g(N));return}b.iterator=0,delete C.indexes[O]}let M=b.events;for(;b.eventIndex<M.length;){let O=M[b.eventIndex];if(b.eventIndex+=1,O===n){C.nodes&&C.nodes.length&&(C[d]=!0,b.iterator=C.getIterator());return}else if(this.listeners[O]){b.visitors=this.listeners[O];return}}y.pop()}walkSync(y){y[d]=!0;let b=f(y);for(let C of b)if(C===n)y.nodes&&y.each(R=>{R[d]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return v.registerPostcss=x=>{w=x},xr=v,v.default=v,a.registerLazyResult(v),t.registerLazyResult(v),xr}var Rr,wi;function Ko(){if(wi)return Rr;wi=1;let e=nn(),t=Kr();const s=es();let o=yt(),i=un();class a{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 d,m=t;try{d=m(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=d,d}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(d,m,h){m=m.toString(),this.stringified=!1,this._processor=d,this._css=m,this._opts=h,this._map=void 0;let r,u=o;this.result=new s(this._processor,r,this._opts),this.result.css=m;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let n=new e(u,r,this._opts,m);if(n.isMap()){let[p,f]=n.generate();p&&(this.result.css=p),f&&(this.result.map=f)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(d){return this.async().catch(d)}finally(d){return this.async().then(d,d)}sync(){if(this.error)throw this.error;return this.result}then(d,m){return this.async().then(d,m)}toString(){return this._css}warnings(){return[]}}return Rr=a,a.default=a,Rr}var Or,bi;function ea(){if(bi)return Or;bi=1;let e=Qr(),t=cn(),s=Ko(),o=Ge();class i{constructor(c=[]){this.version="8.5.6",this.plugins=this.normalize(c)}normalize(c){let d=[];for(let m of c)if(m.postcss===!0?m=m():m.postcss&&(m=m.postcss),typeof m=="object"&&Array.isArray(m.plugins))d=d.concat(m.plugins);else if(typeof m=="object"&&m.postcssPlugin)d.push(m);else if(typeof m=="function")d.push(m);else if(!(typeof m=="object"&&(m.parse||m.stringify)))throw new Error(m+" is not a PostCSS plugin");return d}process(c,d={}){return!this.plugins.length&&!d.parser&&!d.stringifier&&!d.syntax?new s(this,c,d):new t(this,c,d)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return Or=i,i.default=i,o.registerProcessor(i),e.registerProcessor(i),Or}var Ir,Si;function hn(){if(Si)return Ir;Si=1;let e=Zr(),t=Ve(),s=Me(),o=Jr(),i=bt(),a=Qr(),c=Xo(),d=St(),m=cn(),h=sn(),r=wt(),u=Kr(),l=ea(),n=es(),p=Ge(),f=Xr(),g=yt(),S=ln();function w(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new l(v)}return w.plugin=function(x,y){let b=!1;function C(...M){console&&console.warn&&!b&&(b=!0,console.warn(x+`: postcss.plugin was deprecated. Migration guide:
54
+ `),n=w.length-g):n+=w.length,v&&x!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(f.source=this.sourcePath(v),f.original.line=v.source.end.line,f.original.column=v.source.end.column-1,f.generated.line=l,f.generated.column=n-2,this.map.addMapping(f)):(f.source=p,f.original.line=1,f.original.column=0,f.generated.line=l,f.generated.column=n-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(l=>l.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let l=this.mapOpts.annotation;return typeof l!="undefined"&&l!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(l=>l.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(l){if(this.mapOpts.absolute||l.charCodeAt(0)===60||/^\w+:\/\//.test(l))return l;let n=this.memoizedPaths.get(l);if(n)return n;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(s(p,this.mapOpts.annotation)));let f=t(p,l);return this.memoizedPaths.set(l,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(l=>{if(l.source&&l.source.input.map){let n=l.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let l=new d(this.originalCSS,this.opts);l.map&&this.previousMaps.push(l.map)}return this.previousMaps}setSourcesContent(){let l={};if(this.root)this.root.walk(n=>{if(n.source){let p=n.source.input.from;if(p&&!l[p]){l[p]=!0;let f=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(f,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(l){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(l.source.input.from):this.toUrl(this.path(l.source.input.from))}toBase64(l){return Buffer?Buffer.from(l).toString("base64"):window.btoa(unescape(encodeURIComponent(l)))}toFileUrl(l){let n=this.memoizedFileURLs.get(l);if(n)return n;if(c){let p=c(l).toString();return this.memoizedFileURLs.set(l,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(l){let n=this.memoizedURLs.get(l);if(n)return n;o==="\\"&&(l=l.replace(/\\/g,"/"));let p=encodeURI(l).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(l,p),p}}return gr=r,gr}var yr,fi;function an(){if(fi)return yr;fi=1;const e=39,t=34,s=92,o=47,i=10,a=32,c=12,d=9,m=13,h=91,r=93,u=40,l=41,n=123,p=125,f=59,g=42,S=58,w=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return yr=function(R,M={}){let O=R.css.valueOf(),N=M.ignoreErrors,P,ee,D,I,ie,_,U,J,W,be,me=O.length,E=0,oe=[],ae=[];function Ae(){return E}function ge(X){throw R.error("Unclosed "+X,E)}function he(){return ae.length===0&&E>=me}function te(X){if(ae.length)return ae.pop();if(E>=me)return;let k=X?X.ignoreUnclosed:!1;switch(P=O.charCodeAt(E),P){case i:case a:case d:case m:case c:{I=E;do I+=1,P=O.charCodeAt(I);while(P===a||P===i||P===d||P===m||P===c);_=["space",O.slice(E,I)],E=I-1;break}case h:case r:case n:case p:case S:case f:case l:{let Y=String.fromCharCode(P);_=[Y,Y,E];break}case u:{if(be=oe.length?oe.pop()[1]:"",W=O.charCodeAt(E+1),be==="url"&&W!==e&&W!==t&&W!==a&&W!==i&&W!==d&&W!==c&&W!==m){I=E;do{if(U=!1,I=O.indexOf(")",I+1),I===-1)if(N||k){I=E;break}else ge("bracket");for(J=I;O.charCodeAt(J-1)===s;)J-=1,U=!U}while(U);_=["brackets",O.slice(E,I+1),E,I],E=I}else I=O.indexOf(")",E+1),ee=O.slice(E,I+1),I===-1||y.test(ee)?_=["(","(",E]:(_=["brackets",ee,E,I],E=I);break}case e:case t:{ie=P===e?"'":'"',I=E;do{if(U=!1,I=O.indexOf(ie,I+1),I===-1)if(N||k){I=E+1;break}else ge("string");for(J=I;O.charCodeAt(J-1)===s;)J-=1,U=!U}while(U);_=["string",O.slice(E,I+1),E,I],E=I;break}case w:{v.lastIndex=E+1,v.test(O),v.lastIndex===0?I=O.length-1:I=v.lastIndex-2,_=["at-word",O.slice(E,I+1),E,I],E=I;break}case s:{for(I=E,D=!0;O.charCodeAt(I+1)===s;)I+=1,D=!D;if(P=O.charCodeAt(I+1),D&&P!==o&&P!==a&&P!==i&&P!==d&&P!==m&&P!==c&&(I+=1,b.test(O.charAt(I)))){for(;b.test(O.charAt(I+1));)I+=1;O.charCodeAt(I+1)===a&&(I+=1)}_=["word",O.slice(E,I+1),E,I],E=I;break}default:{P===o&&O.charCodeAt(E+1)===g?(I=O.indexOf("*/",E+2)+1,I===0&&(N||k?I=O.length:ge("comment")),_=["comment",O.slice(E,I+1),E,I],E=I):(x.lastIndex=E+1,x.test(O),x.lastIndex===0?I=O.length-1:I=x.lastIndex-2,_=["word",O.slice(E,I+1),E,I],oe.push(_),E=I);break}}return E++,_}function Re(X){ae.push(X)}return{back:Re,endOfFile:he,nextToken:te,position:Ae}},yr}var wr,pi;function ln(){if(pi)return wr;pi=1;let e=Zr(),t=Ve(),s=bt(),o=Ge(),i=Qr(),a=an();const c={empty:!0,space:!0};function d(h){for(let r=h.length-1;r>=0;r--){let u=h[r],l=u[3]||u[2];if(l)return l}}class m{constructor(r){this.input=r,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}atrule(r){let u=new e;u.name=r[1].slice(1),u.name===""&&this.unnamedAtrule(u,r),this.init(u,r[2]);let l,n,p,f=!1,g=!1,S=[],w=[];for(;!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),l=r[0],l==="("||l==="["?w.push(l==="("?")":"]"):l==="{"&&w.length>0?w.push("}"):l===w[w.length-1]&&w.pop(),w.length===0)if(l===";"){u.source.end=this.getPosition(r[2]),u.source.end.offset++,this.semicolon=!0;break}else if(l==="{"){g=!0;break}else if(l==="}"){if(S.length>0){for(p=S.length-1,n=S[p];n&&n[0]==="space";)n=S[--p];n&&(u.source.end=this.getPosition(n[3]||n[2]),u.source.end.offset++)}this.end(r);break}else S.push(r);else S.push(r);if(this.tokenizer.endOfFile()){f=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(u.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(u,"params",S),f&&(r=S[S.length-1],u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),g&&(u.nodes=[],this.current=u)}checkMissedSemicolon(r){let u=this.colon(r);if(u===!1)return;let l=0,n;for(let p=u-1;p>=0&&(n=r[p],!(n[0]!=="space"&&(l+=1,l===2)));p--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(r){let u=0,l,n,p;for(let[f,g]of r.entries()){if(n=g,p=n[0],p==="("&&(u+=1),p===")"&&(u-=1),u===0&&p===":")if(!l)this.doubleColon(n);else{if(l[0]==="word"&&l[1]==="progid")continue;return f}l=n}return!1}comment(r){let u=new t;this.init(u,r[2]),u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++;let l=r[1].slice(2,-2);if(/^\s*$/.test(l))u.text="",u.raws.left=l,u.raws.right="";else{let n=l.match(/^(\s*)([^]*\S)(\s*)$/);u.text=n[2],u.raws.left=n[1],u.raws.right=n[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(r,u){let l=new s;this.init(l,r[0][2]);let n=r[r.length-1];for(n[0]===";"&&(this.semicolon=!0,r.pop()),l.source.end=this.getPosition(n[3]||n[2]||d(r)),l.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),l.raws.before+=r.shift()[1];for(l.source.start=this.getPosition(r[0][2]),l.prop="";r.length;){let w=r[0][0];if(w===":"||w==="space"||w==="comment")break;l.prop+=r.shift()[1]}l.raws.between="";let p;for(;r.length;)if(p=r.shift(),p[0]===":"){l.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),l.raws.between+=p[1];(l.prop[0]==="_"||l.prop[0]==="*")&&(l.raws.before+=l.prop[0],l.prop=l.prop.slice(1));let f=[],g;for(;r.length&&(g=r[0][0],!(g!=="space"&&g!=="comment"));)f.push(r.shift());this.precheckMissedSemicolon(r);for(let w=r.length-1;w>=0;w--){if(p=r[w],p[1].toLowerCase()==="!important"){l.important=!0;let v=this.stringFrom(r,w);v=this.spacesFromEnd(r)+v,v!==" !important"&&(l.raws.important=v);break}else if(p[1].toLowerCase()==="important"){let v=r.slice(0),x="";for(let y=w;y>0;y--){let b=v[y][0];if(x.trim().startsWith("!")&&b!=="space")break;x=v.pop()[1]+x}x.trim().startsWith("!")&&(l.important=!0,l.raws.important=x,r=v)}if(p[0]!=="space"&&p[0]!=="comment")break}r.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(l.raws.between+=f.map(w=>w[1]).join(""),f=[]),this.raw(l,"value",f.concat(r),u),l.value.includes(":")&&!u&&this.checkMissedSemicolon(r)}doubleColon(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})}emptyRule(r){let u=new i;this.init(u,r[2]),u.selector="",u.raws.between="",this.current=u}end(r){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(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)}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(r){if(this.spaces+=r[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(r[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(r){let u=this.input.fromOffset(r);return{column:u.col,line:u.line,offset:r}}init(r,u){this.current.push(r),r.source={input:this.input,start:this.getPosition(u)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)}other(r){let u=!1,l=null,n=!1,p=null,f=[],g=r[1].startsWith("--"),S=[],w=r;for(;w;){if(l=w[0],S.push(w),l==="("||l==="[")p||(p=w),f.push(l==="("?")":"]");else if(g&&n&&l==="{")p||(p=w),f.push("}");else if(f.length===0)if(l===";")if(n){this.decl(S,g);return}else break;else if(l==="{"){this.rule(S);return}else if(l==="}"){this.tokenizer.back(S.pop()),u=!0;break}else l===":"&&(n=!0);else l===f[f.length-1]&&(f.pop(),f.length===0&&(p=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),f.length>0&&this.unclosedBracket(p),u&&n){if(!g)for(;S.length&&(w=S[S.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,g)}else this.unknownWord(S)}parse(){let r;for(;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()}precheckMissedSemicolon(){}raw(r,u,l,n){let p,f,g=l.length,S="",w=!0,v,x;for(let y=0;y<g;y+=1)p=l[y],f=p[0],f==="space"&&y===g-1&&!n?w=!1:f==="comment"?(x=l[y-1]?l[y-1][0]:"empty",v=l[y+1]?l[y+1][0]:"empty",!c[x]&&!c[v]?S.slice(-1)===","?w=!1:S+=p[1]:w=!1):S+=p[1];if(!w){let y=l.reduce((b,C)=>b+C[1],"");r.raws[u]={raw:y,value:S}}r[u]=S}rule(r){r.pop();let u=new i;this.init(u,r[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(u,"selector",r),this.current=u}spacesAndCommentsFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],!(u!=="space"&&u!=="comment"));)l=r.pop()[1]+l;return l}spacesAndCommentsFromStart(r){let u,l="";for(;r.length&&(u=r[0][0],!(u!=="space"&&u!=="comment"));)l+=r.shift()[1];return l}spacesFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],u==="space");)l=r.pop()[1]+l;return l}stringFrom(r,u){let l="";for(let n=u;n<r.length;n++)l+=r[n][1];return r.splice(u,r.length-u),l}unclosedBlock(){let r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)}unclosedBracket(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})}unexpectedClose(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})}unknownWord(r){throw this.input.error("Unknown word "+r[0][1],{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})}unnamedAtrule(r,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return wr=m,wr}var br,di;function Kr(){if(di)return br;di=1;let e=Me(),t=St(),s=ln();function o(i,a){let c=new t(i,a),d=new s(c);try{d.parse()}catch(m){throw m}return d.root}return br=o,o.default=o,e.registerParse(o),br}var Sr,mi;function un(){if(mi)return Sr;mi=1;class e{constructor(s,o={}){if(this.type="warning",this.text=s,o.node&&o.node.source){let i=o.node.rangeBy(o);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in o)this[i]=o[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Sr=e,e.default=e,Sr}var vr,gi;function es(){if(gi)return vr;gi=1;let e=un();class t{get content(){return this.css}constructor(o,i,a){this.processor=o,this.messages=[],this.root=i,this.opts=a,this.css="",this.map=void 0}toString(){return this.css}warn(o,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(o,i);return this.messages.push(a),a}warnings(){return this.messages.filter(o=>o.type==="warning")}}return vr=t,t.default=t,vr}var Cr,yi;function cn(){if(yi)return Cr;yi=1;let e={};return Cr=function(s){e[s]||(e[s]=!0,typeof console!="undefined"&&console.warn&&console.warn(s))},Cr}var xr,wi;function hn(){if(wi)return xr;wi=1;let e=Me(),t=Xr(),s=on(),o=Kr(),i=es(),a=Ge(),c=yt(),{isClean:d,my:m}=Yr(),h=cn();const r={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},l={Once:!0,postcssPlugin:!0,prepare:!0},n=0;function p(x){return typeof x=="object"&&typeof x.then=="function"}function f(x){let y=!1,b=r[x.type];return x.type==="decl"?y=x.prop.toLowerCase():x.type==="atrule"&&(y=x.name.toLowerCase()),y&&x.append?[b,b+"-"+y,n,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:x.append?[b,n,b+"Exit"]:[b,b+"Exit"]}function g(x){let y;return x.type==="document"?y=["Document",n,"DocumentExit"]:x.type==="root"?y=["Root",n,"RootExit"]:y=f(x),{eventIndex:0,events:y,iterator:0,node:x,visitorIndex:0,visitors:[]}}function S(x){return x[d]=!1,x.nodes&&x.nodes.forEach(y=>S(y)),x}let w={};class v{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(y,b,C){this.stringified=!1,this.processed=!1;let R;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))R=S(b);else if(b instanceof v||b instanceof i)R=S(b.root),b.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=b.map);else{let M=o;C.syntax&&(M=C.syntax.parse),C.parser&&(M=C.parser),M.parse&&(M=M.parse);try{R=M(b,C)}catch(O){this.processed=!0,this.error=O}R&&!R[m]&&e.rebuild(R)}this.result=new i(y,R,C),this.helpers=le(T({},w),{postcss:w,result:this.result}),this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?T(T({},M),M.prepare(this.result)):M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let C=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=C.postcssPlugin,y.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return y}prepareVisitors(){this.listeners={};let y=(b,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([b,R])};for(let b of this.plugins)if(typeof b=="object")for(let C in b){if(!u[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!l[C])if(typeof b[C]=="object")for(let R in b[C])R==="*"?y(b,C,b[C][R]):y(b,C+"-"+R.toLowerCase(),b[C][R]);else typeof b[C]=="function"&&y(b,C,b[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],C=this.runOnRoot(b);if(p(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];){y[d]=!0;let b=[g(y)];for(;b.length>0;){let C=this.visitTick(b);if(p(C))try{await C}catch(R){let M=b[b.length-1].node;throw this.handleError(R,M)}}}if(this.listeners.OnceExit)for(let[b,C]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let R=y.nodes.map(M=>C(M,this.helpers));await Promise.all(R)}else await C(y,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(C=>y.Once(C,this.helpers));return p(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=c;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let R=new s(b,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[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 y of this.plugins){let b=this.runOnRoot(y);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];)y[d]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[C,R]of y){this.result.lastPlugin=C;let M;try{M=R(b,this.helpers)}catch(O){throw this.handleError(O,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(M))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:C,visitors:R}=b;if(C.type!=="root"&&C.type!=="document"&&!C.parent){y.pop();return}if(R.length>0&&b.visitorIndex<R.length){let[O,N]=R[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===R.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=O;try{return N(C.toProxy(),this.helpers)}catch(P){throw this.handleError(P,C)}}if(b.iterator!==0){let O=b.iterator,N;for(;N=C.nodes[C.indexes[O]];)if(C.indexes[O]+=1,!N[d]){N[d]=!0,y.push(g(N));return}b.iterator=0,delete C.indexes[O]}let M=b.events;for(;b.eventIndex<M.length;){let O=M[b.eventIndex];if(b.eventIndex+=1,O===n){C.nodes&&C.nodes.length&&(C[d]=!0,b.iterator=C.getIterator());return}else if(this.listeners[O]){b.visitors=this.listeners[O];return}}y.pop()}walkSync(y){y[d]=!0;let b=f(y);for(let C of b)if(C===n)y.nodes&&y.each(R=>{R[d]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return v.registerPostcss=x=>{w=x},xr=v,v.default=v,a.registerLazyResult(v),t.registerLazyResult(v),xr}var Rr,bi;function ta(){if(bi)return Rr;bi=1;let e=on(),t=Kr();const s=es();let o=yt(),i=cn();class a{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 d,m=t;try{d=m(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=d,d}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(d,m,h){m=m.toString(),this.stringified=!1,this._processor=d,this._css=m,this._opts=h,this._map=void 0;let r,u=o;this.result=new s(this._processor,r,this._opts),this.result.css=m;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let n=new e(u,r,this._opts,m);if(n.isMap()){let[p,f]=n.generate();p&&(this.result.css=p),f&&(this.result.map=f)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(d){return this.async().catch(d)}finally(d){return this.async().then(d,d)}sync(){if(this.error)throw this.error;return this.result}then(d,m){return this.async().then(d,m)}toString(){return this._css}warnings(){return[]}}return Rr=a,a.default=a,Rr}var Or,Si;function ra(){if(Si)return Or;Si=1;let e=Xr(),t=hn(),s=ta(),o=Ge();class i{constructor(c=[]){this.version="8.5.6",this.plugins=this.normalize(c)}normalize(c){let d=[];for(let m of c)if(m.postcss===!0?m=m():m.postcss&&(m=m.postcss),typeof m=="object"&&Array.isArray(m.plugins))d=d.concat(m.plugins);else if(typeof m=="object"&&m.postcssPlugin)d.push(m);else if(typeof m=="function")d.push(m);else if(!(typeof m=="object"&&(m.parse||m.stringify)))throw new Error(m+" is not a PostCSS plugin");return d}process(c,d={}){return!this.plugins.length&&!d.parser&&!d.stringifier&&!d.syntax?new s(this,c,d):new t(this,c,d)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return Or=i,i.default=i,o.registerProcessor(i),e.registerProcessor(i),Or}var Ir,vi;function fn(){if(vi)return Ir;vi=1;let e=Zr(),t=Ve(),s=Me(),o=Jr(),i=bt(),a=Xr(),c=ea(),d=St(),m=hn(),h=nn(),r=wt(),u=Kr(),l=ra(),n=es(),p=Ge(),f=Qr(),g=yt(),S=un();function w(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new l(v)}return w.plugin=function(x,y){let b=!1;function C(...M){console&&console.warn&&!b&&(b=!0,console.warn(x+`: 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(x+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
56
- https://www.w3ctech.com/topic/2226`));let O=y(...M);return O.postcssPlugin=x,O.postcssVersion=new l().version,O}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(M,O,N){return w([C(N)]).process(M,O)},C},w.stringify=g,w.parse=u,w.fromJSON=c,w.list=h,w.comment=v=>new t(v),w.atRule=v=>new e(v),w.decl=v=>new i(v),w.rule=v=>new f(v),w.root=v=>new p(v),w.document=v=>new a(v),w.CssSyntaxError=o,w.Declaration=i,w.Container=s,w.Processor=l,w.Document=a,w.Comment=t,w.Warning=S,w.AtRule=e,w.Result=n,w.Input=d,w.Rule=f,w.Root=p,w.Node=r,m.registerPostcss(w),Ir=w,w.default=w,Ir}var Mr,vi;function ta(){if(vi)return Mr;vi=1;let e=Ve(),t=an(),s=on();class o extends t{checkMissedSemicolon(){}comment(a){let c=new e;this.init(c,a[2]);let d=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);c.source.end={column:d.col,line:d.line,offset:a[3]+1};let m=a[1].slice(2);if(m.slice(-2)==="*/"&&(m=m.slice(0,-2)),/^\s*$/.test(m))c.text="",c.raws.left=m,c.raws.right="";else{let h=m.match(/^(\s*)([^]*\S)(\s*)$/);c.text=h[2],c.raws.left=h[1],c.raws.right=h[3]}}createTokenizer(){this.tokenizer=s(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(c=>c[0]==="word")&&super.decl(a)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(a){let c=this.colon(a);if(c===!1)return;let d,m;for(d=c-1;d>=0&&a[d][0]!=="word";d--);if(d===0||d<0)return;for(m=d-1;m>=0;m--)if(a[m][0]!=="space"){m+=1;break}let h=a.slice(d),r=a.slice(m,d);a.splice(m,a.length-m),this.spaces=r.map(u=>u[1]).join(""),this.decl(h)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(c=>c[1]).join("")}unnamedAtrule(a){a.name=""}}return Mr=o,Mr}var Er,Ci;function ra(){if(Ci)return Er;Ci=1;let{Input:e}=hn(),t=ta();return Er=function(o,i){let a=new e(o,i),c=new t(a);return c.parse(),c.root},Er}ra();var sa=hn();const j=Vo(sa);j.stringify;j.fromJSON;j.plugin;j.parse;j.list;j.document;j.comment;j.atRule;j.rule;j.decl;j.root;j.CssSyntaxError;j.Declaration;j.Container;j.Processor;j.Document;j.Comment;j.Warning;j.AtRule;j.Result;j.Input;j.Rule;j.Root;j.Node;class ts{constructor(...t){ue(this,"parentElement",null),ue(this,"parentNode",null),ue(this,"ownerDocument"),ue(this,"firstChild",null),ue(this,"lastChild",null),ue(this,"previousSibling",null),ue(this,"nextSibling",null),ue(this,"ELEMENT_NODE",1),ue(this,"TEXT_NODE",3),ue(this,"nodeType"),ue(this,"nodeName"),ue(this,"RRNodeType")}get childNodes(){const t=[];let s=this.firstChild;for(;s;)t.push(s),s=s.nextSibling;return t}contains(t){if(t instanceof ts){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,s){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const xi={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ri={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},tt={};function ia(e){var t,s;const o=(s=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:s.call(t,e);if(o&&globalThis[o])return globalThis[o]}function rs(e){if(tt[e])return tt[e];const t=ia(e)||globalThis[e],s=t.prototype,o=e in xi?xi[e]:void 0,i=!!(o&&o.every(d=>{var m,h;return!!((h=(m=Object.getOwnPropertyDescriptor(s,d))==null?void 0:m.get)!=null&&h.toString().includes("[native code]"))})),a=e in Ri?Ri[e]:void 0,c=!!(a&&a.every(d=>{var m;return typeof s[d]=="function"&&((m=s[d])==null?void 0:m.toString().includes("[native code]"))}));if(i&&c)return tt[e]=t.prototype,t.prototype;try{const d=document.createElement("iframe");document.body.appendChild(d);const m=d.contentWindow;if(!m)return t.prototype;const h=m[e].prototype;return document.body.removeChild(d),h?tt[e]=h:s}catch(d){return s}}const Ar={};function Ce(e,t,s){var o;const i=`${e}.${String(s)}`;if(Ar[i])return Ar[i].call(t);const a=rs(e),c=(o=Object.getOwnPropertyDescriptor(a,s))==null?void 0:o.get;return c?(Ar[i]=c,c.call(t)):t[s]}const Pr={};function fn(e,t,s){const o=`${e}.${String(s)}`;if(Pr[o])return Pr[o].bind(t);const a=rs(e)[s];return typeof a!="function"?t[s]:(Pr[o]=a,a.bind(t))}function na(e){return Ce("Node",e,"childNodes")}function oa(e){return Ce("Node",e,"parentNode")}function aa(e){return Ce("Node",e,"parentElement")}function la(e){return Ce("Node",e,"textContent")}function ua(e,t){return fn("Node",e,"contains")(t)}function ca(e){return fn("Node",e,"getRootNode")()}function ha(e){return!e||!("host"in e)?null:Ce("ShadowRoot",e,"host")}function fa(e){return e.styleSheets}function pa(e){return!e||!("shadowRoot"in e)?null:Ce("Element",e,"shadowRoot")}function da(e,t){return Ce("Element",e,"querySelector")(t)}function ma(e,t){return Ce("Element",e,"querySelectorAll")(t)}function pn(){return rs("MutationObserver").constructor}function Ee(e,t,s){try{if(!(t in e))return()=>{};const o=e[t],i=s(o);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=i,()=>{e[t]=o}}catch(o){return()=>{}}}const k={childNodes:na,parentNode:oa,parentElement:aa,textContent:la,contains:ua,getRootNode:ca,host:ha,styleSheets:fa,shadowRoot:pa,querySelector:da,querySelectorAll:ma,mutationObserver:pn,patch:Ee};function se(e,t,s=document){const o={capture:!0,passive:!0};return s.addEventListener(e,t,o),()=>s.removeEventListener(e,t,o)}const ke=`Please stop import mirror directly. Instead of that,\r
56
+ https://www.w3ctech.com/topic/2226`));let O=y(...M);return O.postcssPlugin=x,O.postcssVersion=new l().version,O}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(M,O,N){return w([C(N)]).process(M,O)},C},w.stringify=g,w.parse=u,w.fromJSON=c,w.list=h,w.comment=v=>new t(v),w.atRule=v=>new e(v),w.decl=v=>new i(v),w.rule=v=>new f(v),w.root=v=>new p(v),w.document=v=>new a(v),w.CssSyntaxError=o,w.Declaration=i,w.Container=s,w.Processor=l,w.Document=a,w.Comment=t,w.Warning=S,w.AtRule=e,w.Result=n,w.Input=d,w.Rule=f,w.Root=p,w.Node=r,m.registerPostcss(w),Ir=w,w.default=w,Ir}var Mr,Ci;function sa(){if(Ci)return Mr;Ci=1;let e=Ve(),t=ln(),s=an();class o extends t{checkMissedSemicolon(){}comment(a){let c=new e;this.init(c,a[2]);let d=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);c.source.end={column:d.col,line:d.line,offset:a[3]+1};let m=a[1].slice(2);if(m.slice(-2)==="*/"&&(m=m.slice(0,-2)),/^\s*$/.test(m))c.text="",c.raws.left=m,c.raws.right="";else{let h=m.match(/^(\s*)([^]*\S)(\s*)$/);c.text=h[2],c.raws.left=h[1],c.raws.right=h[3]}}createTokenizer(){this.tokenizer=s(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(c=>c[0]==="word")&&super.decl(a)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(a){let c=this.colon(a);if(c===!1)return;let d,m;for(d=c-1;d>=0&&a[d][0]!=="word";d--);if(d===0||d<0)return;for(m=d-1;m>=0;m--)if(a[m][0]!=="space"){m+=1;break}let h=a.slice(d),r=a.slice(m,d);a.splice(m,a.length-m),this.spaces=r.map(u=>u[1]).join(""),this.decl(h)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(c=>c[1]).join("")}unnamedAtrule(a){a.name=""}}return Mr=o,Mr}var Er,xi;function ia(){if(xi)return Er;xi=1;let{Input:e}=fn(),t=sa();return Er=function(o,i){let a=new e(o,i),c=new t(a);return c.parse(),c.root},Er}ia();var na=fn();const V=Jo(na);V.stringify;V.fromJSON;V.plugin;V.parse;V.list;V.document;V.comment;V.atRule;V.rule;V.decl;V.root;V.CssSyntaxError;V.Declaration;V.Container;V.Processor;V.Document;V.Comment;V.Warning;V.AtRule;V.Result;V.Input;V.Rule;V.Root;V.Node;class ts{constructor(...t){ue(this,"parentElement",null),ue(this,"parentNode",null),ue(this,"ownerDocument"),ue(this,"firstChild",null),ue(this,"lastChild",null),ue(this,"previousSibling",null),ue(this,"nextSibling",null),ue(this,"ELEMENT_NODE",1),ue(this,"TEXT_NODE",3),ue(this,"nodeType"),ue(this,"nodeName"),ue(this,"RRNodeType")}get childNodes(){const t=[];let s=this.firstChild;for(;s;)t.push(s),s=s.nextSibling;return t}contains(t){if(t instanceof ts){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,s){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const Ri={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Oi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},tt={};function oa(e){var t,s;const o=(s=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:s.call(t,e);if(o&&globalThis[o])return globalThis[o]}function rs(e){if(tt[e])return tt[e];const t=oa(e)||globalThis[e],s=t.prototype,o=e in Ri?Ri[e]:void 0,i=!!(o&&o.every(d=>{var m,h;return!!((h=(m=Object.getOwnPropertyDescriptor(s,d))==null?void 0:m.get)!=null&&h.toString().includes("[native code]"))})),a=e in Oi?Oi[e]:void 0,c=!!(a&&a.every(d=>{var m;return typeof s[d]=="function"&&((m=s[d])==null?void 0:m.toString().includes("[native code]"))}));if(i&&c)return tt[e]=t.prototype,t.prototype;try{const d=document.createElement("iframe");document.body.appendChild(d);const m=d.contentWindow;if(!m)return t.prototype;const h=m[e].prototype;return document.body.removeChild(d),h?tt[e]=h:s}catch(d){return s}}const Ar={};function Ce(e,t,s){var o;const i=`${e}.${String(s)}`;if(Ar[i])return Ar[i].call(t);const a=rs(e),c=(o=Object.getOwnPropertyDescriptor(a,s))==null?void 0:o.get;return c?(Ar[i]=c,c.call(t)):t[s]}const Pr={};function pn(e,t,s){const o=`${e}.${String(s)}`;if(Pr[o])return Pr[o].bind(t);const a=rs(e)[s];return typeof a!="function"?t[s]:(Pr[o]=a,a.bind(t))}function aa(e){return Ce("Node",e,"childNodes")}function la(e){return Ce("Node",e,"parentNode")}function ua(e){return Ce("Node",e,"parentElement")}function ca(e){return Ce("Node",e,"textContent")}function ha(e,t){return pn("Node",e,"contains")(t)}function fa(e){return pn("Node",e,"getRootNode")()}function pa(e){return!e||!("host"in e)?null:Ce("ShadowRoot",e,"host")}function da(e){return e.styleSheets}function ma(e){return!e||!("shadowRoot"in e)?null:Ce("Element",e,"shadowRoot")}function ga(e,t){return Ce("Element",e,"querySelector")(t)}function ya(e,t){return Ce("Element",e,"querySelectorAll")(t)}function dn(){return rs("MutationObserver").constructor}function Ee(e,t,s){try{if(!(t in e))return()=>{};const o=e[t],i=s(o);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=i,()=>{e[t]=o}}catch(o){return()=>{}}}const L={childNodes:aa,parentNode:la,parentElement:ua,textContent:ca,contains:ha,getRootNode:fa,host:pa,styleSheets:da,shadowRoot:ma,querySelector:ga,querySelectorAll:ya,mutationObserver:dn,patch:Ee};function re(e,t,s=document){const o={capture:!0,passive:!0};return s.addEventListener(e,t,o),()=>s.removeEventListener(e,t,o)}const ke=`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 Oi={map:{},getId(){return console.error(ke),-1},getNode(){return console.error(ke),null},removeNodeFromMap(){console.error(ke)},has(){return console.error(ke),!1},reset(){console.error(ke)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Oi=new Proxy(Oi,{get(e,t,s){return t==="map"&&console.error(ke),Reflect.get(e,t,s)}}));function qe(e,t,s={}){let o=null,i=0;return function(...a){const c=Date.now();!i&&s.leading===!1&&(i=c);const d=t-(c-i),m=this;d<=0||d>t?(o&&(clearTimeout(o),o=null),i=c,e.apply(m,a)):!o&&s.trailing!==!1&&(o=setTimeout(()=>{i=s.leading===!1?0:Date.now(),o=null,e.apply(m,a)},d))}}function vt(e,t,s,o,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,o?s:{set(c){setTimeout(()=>{s.set.call(this,c)},0),a&&a.set&&a.set.call(this,c)}}),()=>vt(e,t,a||{},!0)}let ct=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ct=()=>new Date().getTime());function dn(e){var t,s,o,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:a.documentElement.scrollLeft||(a==null?void 0:a.body)&&((t=k.parentElement(a.body))==null?void 0:t.scrollLeft)||((s=a==null?void 0:a.body)==null?void 0:s.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(a==null?void 0:a.documentElement.scrollTop)||(a==null?void 0:a.body)&&((o=k.parentElement(a.body))==null?void 0:o.scrollTop)||((i=a==null?void 0:a.body)==null?void 0:i.scrollTop)||0}}function mn(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function gn(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function yn(e){return e?e.nodeType===e.ELEMENT_NODE?e:k.parentElement(e):null}function ie(e,t,s,o){if(!e)return!1;const i=yn(e);if(!i)return!1;try{if(typeof t=="string"){if(i.classList.contains(t)||o&&i.closest("."+t)!==null)return!0}else if(ut(i,t,o))return!0}catch(a){}return!!(s&&(i.matches(s)||o&&i.closest(s)!==null))}function ga(e,t){return t.getId(e)!==-1}function Nr(e,t,s){return e.tagName==="TITLE"&&s.headTitleMutations?!0:t.getId(e)===ze}function wn(e,t){if(Be(e))return!1;const s=t.getId(e);if(!t.has(s))return!0;const o=k.parentNode(e);return o&&o.nodeType===e.DOCUMENT_NODE?!1:o?wn(o,t):!0}function kr(e){return!!e.changedTouches}function ya(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function bn(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Sn(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Lr(e){return e?e instanceof ts&&"shadowRoot"in e?!!e.shadowRoot:!!k.shadowRoot(e):!1}class wa{constructor(){P(this,"id",1),P(this,"styleIDMap",new WeakMap),P(this,"idStyleMap",new Map)}getId(t){var s;return(s=this.styleIDMap.get(t))!=null?s:-1}has(t){return this.styleIDMap.has(t)}add(t,s){if(this.has(t))return this.getId(t);let o;return s===void 0?o=this.id++:o=s,this.styleIDMap.set(t,o),this.idStyleMap.set(o,t),o}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function vn(e){var t;let s=null;return"getRootNode"in e&&((t=k.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&k.host(k.getRootNode(e))&&(s=k.host(k.getRootNode(e))),s}function ba(e){let t=e,s;for(;s=vn(t);)t=s;return t}function Sa(e){const t=e.ownerDocument;if(!t)return!1;const s=ba(e);return k.contains(t,s)}function Cn(e){const t=e.ownerDocument;return t?k.contains(t,e)||Sa(e):!1}var $=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))($||{}),D=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(D||{}),ne=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ne||{}),ye=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ye||{}),$e=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))($e||{}),Le=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Le||{}),xn=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(xn||{});function Ii(e){return"__ln"in e}class va{constructor(){P(this,"length",0),P(this,"head",null),P(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let s=this.head;for(let o=0;o<t;o++)s=(s==null?void 0:s.next)||null;return s}addNode(t){const s={value:t,previous:null,next:null};if(t.__ln=s,t.previousSibling&&Ii(t.previousSibling)){const o=t.previousSibling.__ln.next;s.next=o,s.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=s,o&&(o.previous=s)}else if(t.nextSibling&&Ii(t.nextSibling)&&t.nextSibling.__ln.previous){const o=t.nextSibling.__ln.previous;s.previous=o,s.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=s,o&&(o.next=s)}else this.head&&(this.head.previous=s),s.next=this.head,this.head=s;s.next===null&&(this.tail=s),this.length++}removeNode(t){const s=t.__ln;this.head&&(s.previous?(s.previous.next=s.next,s.next?s.next.previous=s.previous:this.tail=s.previous):(this.head=s.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Mi=(e,t)=>`${e}@${t}`;class Ca{constructor(){P(this,"frozen",!1),P(this,"locked",!1),P(this,"texts",[]),P(this,"attributes",[]),P(this,"attributeMap",new WeakMap),P(this,"removes",[]),P(this,"mapRemoves",[]),P(this,"movedMap",{}),P(this,"addedSet",new Set),P(this,"movedSet",new Set),P(this,"droppedSet",new Set),P(this,"removesSubTreeCache",new Set),P(this,"mutationCb"),P(this,"blockClass"),P(this,"blockSelector"),P(this,"maskTextClass"),P(this,"maskTextSelector"),P(this,"inlineStylesheet"),P(this,"maskInputOptions"),P(this,"maskTextFn"),P(this,"maskInputFn"),P(this,"keepIframeSrcFn"),P(this,"recordCanvas"),P(this,"inlineImages"),P(this,"slimDOMOptions"),P(this,"dataURLOptions"),P(this,"doc"),P(this,"mirror"),P(this,"iframeManager"),P(this,"stylesheetManager"),P(this,"shadowDomManager"),P(this,"canvasManager"),P(this,"processedNodeManager"),P(this,"unattachedDoc"),P(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),P(this,"emit",()=>{if(this.frozen||this.locked)return;const t=[],s=new Set,o=new va,i=m=>{let h=m,r=ze;for(;r===ze;)h=h&&h.nextSibling,r=h&&this.mirror.getId(h);return r},a=m=>{const h=k.parentNode(m);if(!h||!Cn(m)||h.tagName==="TEXTAREA")return;const r=Be(h)?this.mirror.getId(vn(m)):this.mirror.getId(h),u=i(m);if(r===-1||u===-1)return o.addNode(m);const l=Te(m,{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:n=>{bn(n,this.mirror)&&this.iframeManager.addIframe(n),Sn(n,this.mirror)&&this.stylesheetManager.trackLinkElement(n),Lr(m)&&this.shadowDomManager.addShadowRoot(k.shadowRoot(m),this.doc)},onIframeLoad:(n,p)=>{this.iframeManager.attachIframe(n,p),this.shadowDomManager.observeAttachShadow(n)},onStylesheetLoad:(n,p)=>{this.stylesheetManager.attachLinkElement(n,p)}});l&&(t.push({parentId:r,nextId:u,node:l}),s.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const m of this.movedSet)Ei(this.removesSubTreeCache,m,this.mirror)&&!this.movedSet.has(k.parentNode(m))||a(m);for(const m of this.addedSet)!Ai(this.droppedSet,m)&&!Ei(this.removesSubTreeCache,m,this.mirror)||Ai(this.movedSet,m)?a(m):this.droppedSet.add(m);let c=null;for(;o.length;){let m=null;if(c){const h=this.mirror.getId(k.parentNode(c.value)),r=i(c.value);h!==-1&&r!==-1&&(m=c)}if(!m){let h=o.tail;for(;h;){const r=h;if(h=h.previous,r){const u=this.mirror.getId(k.parentNode(r.value));if(i(r.value)===-1)continue;if(u!==-1){m=r;break}else{const n=r.value,p=k.parentNode(n);if(p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const f=k.host(p);if(this.mirror.getId(f)!==-1){m=r;break}}}}}}if(!m){for(;o.head;)o.removeNode(o.head.value);break}c=m.previous,o.removeNode(m.value),a(m.value)}const d={texts:this.texts.map(m=>{const h=m.node,r=k.parentNode(h);return r&&r.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(h),value:m.value}}).filter(m=>!s.has(m.id)).filter(m=>this.mirror.has(m.id)),attributes:this.attributes.map(m=>{const{attributes:h}=m;if(typeof h.style=="string"){const r=JSON.stringify(m.styleDiff),u=JSON.stringify(m._unchangedStyles);r.length<h.style.length&&(r+u).split("var(").length===h.style.split("var(").length&&(h.style=m.styleDiff)}return{id:this.mirror.getId(m.node),attributes:h}}).filter(m=>!s.has(m.id)).filter(m=>this.mirror.has(m.id)),removes:this.removes,adds:t};!d.texts.length&&!d.attributes.length&&!d.removes.length&&!d.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(d))}),P(this,"genTextAreaValueMutation",t=>{let s=this.attributeMap.get(t);s||(s={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t,s)),s.attributes.value=Array.from(k.childNodes(t),o=>k.textContent(o)||"").join("")}),P(this,"processMutation",t=>{if(!Nr(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{const s=k.textContent(t.target);!ie(t.target,this.blockClass,this.blockSelector,!1)&&s!==t.oldValue&&this.texts.push({value:ji(t.target,this.maskTextClass,this.maskTextSelector,!0)&&s?this.maskTextFn?this.maskTextFn(s,yn(t.target)):s.replace(/[\S]/g,"*"):s,node:t.target});break}case"attributes":{const s=t.target;let o=t.attributeName,i=t.target.getAttribute(o);if(o==="value"){const c=Br(s);i=$r({element:s,maskInputOptions:this.maskInputOptions,tagName:s.tagName,type:c,value:i,maskInputFn:this.maskInputFn})}if(ie(t.target,this.blockClass,this.blockSelector,!1)||i===t.oldValue)return;let a=this.attributeMap.get(t.target);if(s.tagName==="IFRAME"&&o==="src"&&!this.keepIframeSrcFn(i))if(!s.contentDocument)o="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),o==="type"&&s.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&s.setAttribute("data-rr-is-password","true"),!qi(s.tagName,o))if(a.attributes[o]=zi(this.doc,Oe(s.tagName),Oe(o),i,s,this.dataURLOptions),o==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(d){this.unattachedDoc=this.doc}const c=this.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(const d of Array.from(s.style)){const m=s.style.getPropertyValue(d),h=s.style.getPropertyPriority(d);m!==c.style.getPropertyValue(d)||h!==c.style.getPropertyPriority(d)?h===""?a.styleDiff[d]=m:a.styleDiff[d]=[m,h]:a._unchangedStyles[d]=[m,h]}for(const d of Array.from(c.style))s.style.getPropertyValue(d)===""&&(a.styleDiff[d]=!1)}else o==="open"&&s.tagName==="DIALOG"&&(s.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break}case"childList":{if(ie(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(s=>this.genAdds(s,t.target)),t.removedNodes.forEach(s=>{const o=this.mirror.getId(s),i=Be(t.target)?this.mirror.getId(k.host(t.target)):this.mirror.getId(t.target);ie(t.target,this.blockClass,this.blockSelector,!1)||Nr(s,this.mirror,this.slimDOMOptions)||!ga(s,this.mirror)||(this.addedSet.has(s)?(Dr(this.addedSet,s),this.droppedSet.add(s)):this.addedSet.has(t.target)&&o===-1||wn(t.target,this.mirror)||(this.movedSet.has(s)&&this.movedMap[Mi(o,i)]?Dr(this.movedSet,s):(this.removes.push({parentId:i,id:o,isShadow:Be(t.target)&&Ue(t.target)?!0:void 0}),xa(s,this.removesSubTreeCache))),this.mapRemoves.push(s))});break}}}),P(this,"genAdds",(t,s)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Nr(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let o=null;s&&this.mirror.hasNode(s)&&(o=this.mirror.getId(s)),o&&o!==-1&&(this.movedMap[Mi(this.mirror.getId(t),o)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ie(t,this.blockClass,this.blockSelector,!1)||(k.childNodes(t).forEach(o=>this.genAdds(o)),Lr(t)&&k.childNodes(k.shadowRoot(t)).forEach(o=>{this.processedNodeManager.add(o,this),this.genAdds(o,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(s=>{this[s]=t[s]})}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()}destroy(){for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift())}}function Dr(e,t){e.delete(t),k.childNodes(t).forEach(s=>Dr(e,s))}function xa(e,t){const s=[e];for(;s.length;){const o=s.pop();t.has(o)||(t.add(o),k.childNodes(o).forEach(i=>s.push(i)))}}function Ei(e,t,s){return e.size===0?!1:Ra(e,t)}function Ra(e,t,s){const o=k.parentNode(t);return o?e.has(o):!1}function Ai(e,t){return e.size===0?!1:Rn(e,t)}function Rn(e,t){const s=k.parentNode(t);return s?e.has(s)?!0:Rn(e,s):!1}let We;function Oa(e){We=e}function Ia(){We=void 0}const F=e=>We?(...s)=>{try{return e(...s)}catch(o){if(We&&We(o)===!0)return;throw o}}:e,we=[];function Je(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(t){}return e&&e.target}function On(e,t){const s=new Ca;we.push(s),s.init(e);const o=new(pn())(F(s.processMutations.bind(s)));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Ma({mousemoveCb:e,sampling:t,doc:s,mirror:o}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let c=[],d;const m=qe(F(u=>{const l=Date.now()-d;e(c.map(n=>(n.timeOffset-=l,n)),u),c=[],d=null}),a),h=F(qe(F(u=>{const l=Je(u),{clientX:n,clientY:p}=kr(u)?u.changedTouches[0]:u;d||(d=ct()),c.push({x:n,y:p,id:o.getId(l),timeOffset:ct()-d}),m(typeof DragEvent!="undefined"&&u instanceof DragEvent?D.Drag:u instanceof MouseEvent?D.MouseMove:D.TouchMove)}),i,{trailing:!1})),r=[se("mousemove",h,s),se("touchmove",h,s),se("drag",h,s)];return F(()=>{r.forEach(u=>u())})}function Ea({mouseInteractionCb:e,doc:t,mirror:s,blockClass:o,blockSelector:i,sampling:a}){if(a.mouseInteraction===!1)return()=>{};const c=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,d=[];let m=null;const h=r=>u=>{const l=Je(u);if(ie(l,o,i,!0))return;let n=null,p=r;if("pointerType"in u){switch(u.pointerType){case"mouse":n=ye.Mouse;break;case"touch":n=ye.Touch;break;case"pen":n=ye.Pen;break}n===ye.Touch?ne[r]===ne.MouseDown?p="TouchStart":ne[r]===ne.MouseUp&&(p="TouchEnd"):ye.Pen}else kr(u)&&(n=ye.Touch);n!==null?(m=n,(p.startsWith("Touch")&&n===ye.Touch||p.startsWith("Mouse")&&n===ye.Mouse)&&(n=null)):ne[r]===ne.Click&&(n=m,m=null);const f=kr(u)?u.changedTouches[0]:u;if(!f)return;const g=s.getId(l),{clientX:S,clientY:w}=f;F(e)(L({type:ne[p],id:g,x:S,y:w},n!==null&&{pointerType:n}))};return Object.keys(ne).filter(r=>Number.isNaN(Number(r))&&!r.endsWith("_Departed")&&c[r]!==!1).forEach(r=>{let u=Oe(r);const l=h(r);if(window.PointerEvent)switch(ne[r]){case ne.MouseDown:case ne.MouseUp:u=u.replace("mouse","pointer");break;case ne.TouchStart:case ne.TouchEnd:return}d.push(se(u,l,t))}),F(()=>{d.forEach(r=>r())})}function In({scrollCb:e,doc:t,mirror:s,blockClass:o,blockSelector:i,sampling:a}){const c=F(qe(F(d=>{const m=Je(d);if(!m||ie(m,o,i,!0))return;const h=s.getId(m);if(m===t&&t.defaultView){const r=dn(t.defaultView);e({id:h,x:r.left,y:r.top})}else e({id:h,x:m.scrollLeft,y:m.scrollTop})}),a.scroll||100));return se("scroll",c,t)}function Aa({viewportResizeCb:e},{win:t}){let s=-1,o=-1;const i=F(qe(F(()=>{const a=mn(),c=gn();(s!==a||o!==c)&&(e({width:Number(c),height:Number(a)}),s=a,o=c)}),200));return se("resize",i,t)}const Pa=["INPUT","TEXTAREA","SELECT"],Pi=new WeakMap;function Na({inputCb:e,doc:t,mirror:s,blockClass:o,blockSelector:i,ignoreClass:a,ignoreSelector:c,maskInputOptions:d,maskInputFn:m,sampling:h,userTriggeredOnInput:r}){function u(w){let v=Je(w);const x=w.isTrusted,y=v&&v.tagName;if(v&&y==="OPTION"&&(v=k.parentElement(v)),!v||!y||Pa.indexOf(y)<0||ie(v,o,i,!0)||v.classList.contains(a)||c&&v.matches(c))return;let b=v.value,C=!1;const R=Br(v)||"";R==="radio"||R==="checkbox"?C=v.checked:(d[y.toLowerCase()]||d[R])&&(b=$r({element:v,maskInputOptions:d,tagName:y,type:R,value:b,maskInputFn:m})),l(v,r?{text:b,isChecked:C,userTriggered:x}:{text:b,isChecked:C});const M=v.name;R==="radio"&&M&&C&&t.querySelectorAll(`input[type="radio"][name="${M}"]`).forEach(O=>{if(O!==v){const N=O.value;l(O,r?{text:N,isChecked:!C,userTriggered:!1}:{text:N,isChecked:!C})}})}function l(w,v){const x=Pi.get(w);if(!x||x.text!==v.text||x.isChecked!==v.isChecked){Pi.set(w,v);const y=s.getId(w);F(e)(le(L({},v),{id:y}))}}const p=(h.input==="last"?["change"]:["input","change"]).map(w=>se(w,F(u),t)),f=t.defaultView;if(!f)return()=>{p.forEach(w=>w())};const g=f.Object.getOwnPropertyDescriptor(f.HTMLInputElement.prototype,"value"),S=[[f.HTMLInputElement.prototype,"value"],[f.HTMLInputElement.prototype,"checked"],[f.HTMLSelectElement.prototype,"value"],[f.HTMLTextAreaElement.prototype,"value"],[f.HTMLSelectElement.prototype,"selectedIndex"],[f.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&p.push(...S.map(w=>vt(w[0],w[1],{set(){F(u)({target:this,isTrusted:!1})}},!1,f))),F(()=>{p.forEach(w=>w())})}function ht(e){const t=[];function s(o,i){if(rt("CSSGroupingRule")&&o.parentRule instanceof CSSGroupingRule||rt("CSSMediaRule")&&o.parentRule instanceof CSSMediaRule||rt("CSSSupportsRule")&&o.parentRule instanceof CSSSupportsRule||rt("CSSConditionRule")&&o.parentRule instanceof CSSConditionRule){const c=Array.from(o.parentRule.cssRules).indexOf(o);i.unshift(c)}else if(o.parentStyleSheet){const c=Array.from(o.parentStyleSheet.cssRules).indexOf(o);i.unshift(c)}return i}return s(e,t)}function Se(e,t,s){let o,i;return e?(e.ownerNode?o=t.getId(e.ownerNode):i=s.getId(e),{styleId:i,id:o}):{}}function _a({styleSheetRuleCb:e,mirror:t,stylesheetManager:s},{win:o}){if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return()=>{};const i=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:F((r,u,l)=>{const[n,p]=l,{id:f,styleId:g}=Se(u,t,s.styleMirror);return(f&&f!==-1||g&&g!==-1)&&e({id:f,styleId:g,adds:[{rule:n,index:p}]}),r.apply(u,l)})}),o.CSSStyleSheet.prototype.addRule=function(r,u,l=this.cssRules.length){const n=`${r} { ${u} }`;return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,l])};const a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:F((r,u,l)=>{const[n]=l,{id:p,styleId:f}=Se(u,t,s.styleMirror);return(p&&p!==-1||f&&f!==-1)&&e({id:p,styleId:f,removes:[{index:n}]}),r.apply(u,l)})}),o.CSSStyleSheet.prototype.removeRule=function(r){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[r])};let c;o.CSSStyleSheet.prototype.replace&&(c=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:F((r,u,l)=>{const[n]=l,{id:p,styleId:f}=Se(u,t,s.styleMirror);return(p&&p!==-1||f&&f!==-1)&&e({id:p,styleId:f,replace:n}),r.apply(u,l)})}));let d;o.CSSStyleSheet.prototype.replaceSync&&(d=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(d,{apply:F((r,u,l)=>{const[n]=l,{id:p,styleId:f}=Se(u,t,s.styleMirror);return(p&&p!==-1||f&&f!==-1)&&e({id:p,styleId:f,replaceSync:n}),r.apply(u,l)})}));const m={};st("CSSGroupingRule")?m.CSSGroupingRule=o.CSSGroupingRule:(st("CSSMediaRule")&&(m.CSSMediaRule=o.CSSMediaRule),st("CSSConditionRule")&&(m.CSSConditionRule=o.CSSConditionRule),st("CSSSupportsRule")&&(m.CSSSupportsRule=o.CSSSupportsRule));const h={};return Object.entries(m).forEach(([r,u])=>{h[r]={insertRule:u.prototype.insertRule,deleteRule:u.prototype.deleteRule},u.prototype.insertRule=new Proxy(h[r].insertRule,{apply:F((l,n,p)=>{const[f,g]=p,{id:S,styleId:w}=Se(n.parentStyleSheet,t,s.styleMirror);return(S&&S!==-1||w&&w!==-1)&&e({id:S,styleId:w,adds:[{rule:f,index:[...ht(n),g||0]}]}),l.apply(n,p)})}),u.prototype.deleteRule=new Proxy(h[r].deleteRule,{apply:F((l,n,p)=>{const[f]=p,{id:g,styleId:S}=Se(n.parentStyleSheet,t,s.styleMirror);return(g&&g!==-1||S&&S!==-1)&&e({id:g,styleId:S,removes:[{index:[...ht(n),f]}]}),l.apply(n,p)})})}),F(()=>{o.CSSStyleSheet.prototype.insertRule=i,o.CSSStyleSheet.prototype.deleteRule=a,c&&(o.CSSStyleSheet.prototype.replace=c),d&&(o.CSSStyleSheet.prototype.replaceSync=d),Object.entries(m).forEach(([r,u])=>{u.prototype.insertRule=h[r].insertRule,u.prototype.deleteRule=h[r].deleteRule})})}function Mn({mirror:e,stylesheetManager:t},s){var o,i,a;let c=null;s.nodeName==="#document"?c=e.getId(s):c=e.getId(k.host(s));const d=s.nodeName==="#document"?(o=s.defaultView)==null?void 0:o.Document:(a=(i=s.ownerDocument)==null?void 0:i.defaultView)==null?void 0:a.ShadowRoot,m=d!=null&&d.prototype?Object.getOwnPropertyDescriptor(d==null?void 0:d.prototype,"adoptedStyleSheets"):void 0;return c===null||c===-1||!d||!m?()=>{}:(Object.defineProperty(s,"adoptedStyleSheets",{configurable:m.configurable,enumerable:m.enumerable,get(){var h;return(h=m.get)==null?void 0:h.call(this)},set(h){var r;const u=(r=m.set)==null?void 0:r.call(this,h);if(c!==null&&c!==-1)try{t.adoptStyleSheets(h,c)}catch(l){}return u}}),F(()=>{Object.defineProperty(s,"adoptedStyleSheets",{configurable:m.configurable,enumerable:m.enumerable,get:m.get,set:m.set})}))}function ka({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:s,stylesheetManager:o},{win:i}){const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:F((d,m,h)=>{var r;const[u,l,n]=h;if(s.has(u))return a.apply(m,[u,l,n]);const{id:p,styleId:f}=Se((r=m.parentRule)==null?void 0:r.parentStyleSheet,t,o.styleMirror);return(p&&p!==-1||f&&f!==-1)&&e({id:p,styleId:f,set:{property:u,value:l,priority:n},index:ht(m.parentRule)}),d.apply(m,h)})});const c=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:F((d,m,h)=>{var r;const[u]=h;if(s.has(u))return c.apply(m,[u]);const{id:l,styleId:n}=Se((r=m.parentRule)==null?void 0:r.parentStyleSheet,t,o.styleMirror);return(l&&l!==-1||n&&n!==-1)&&e({id:l,styleId:n,remove:{property:u},index:ht(m.parentRule)}),d.apply(m,h)})}),F(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=c})}function La({mediaInteractionCb:e,blockClass:t,blockSelector:s,mirror:o,sampling:i,doc:a}){const c=F(m=>qe(F(h=>{const r=Je(h);if(!r||ie(r,t,s,!0))return;const{currentTime:u,volume:l,muted:n,playbackRate:p,loop:f}=r;e({type:m,id:o.getId(r),currentTime:u,volume:l,muted:n,playbackRate:p,loop:f})}),i.media||500)),d=[se("play",c(Le.Play),a),se("pause",c(Le.Pause),a),se("seeked",c(Le.Seeked),a),se("volumechange",c(Le.VolumeChange),a),se("ratechange",c(Le.RateChange),a)];return F(()=>{d.forEach(m=>m())})}function Da({fontCb:e,doc:t}){const s=t.defaultView;if(!s)return()=>{};const o=[],i=new WeakMap,a=s.FontFace;s.FontFace=function(m,h,r){const u=new a(m,h,r);return i.set(u,{family:m,buffer:typeof h!="string",descriptors:r,fontSource:typeof h=="string"?h:JSON.stringify(Array.from(new Uint8Array(h)))}),u};const c=Ee(t.fonts,"add",function(d){return function(m){return setTimeout(F(()=>{const h=i.get(m);h&&(e(h),i.delete(m))}),0),d.apply(this,[m])}});return o.push(()=>{s.FontFace=a}),o.push(c),F(()=>{o.forEach(d=>d())})}function Ta(e){const{doc:t,mirror:s,blockClass:o,blockSelector:i,selectionCb:a}=e;let c=!0;const d=F(()=>{const m=t.getSelection();if(!m||c&&(m!=null&&m.isCollapsed))return;c=m.isCollapsed||!1;const h=[],r=m.rangeCount||0;for(let u=0;u<r;u++){const l=m.getRangeAt(u),{startContainer:n,startOffset:p,endContainer:f,endOffset:g}=l;ie(n,o,i,!0)||ie(f,o,i,!0)||h.push({start:s.getId(n),startOffset:p,end:s.getId(f),endOffset:g})}a({ranges:h})});return d(),se("selectionchange",d)}function Fa({doc:e,customElementCb:t}){const s=e.defaultView;return!s||!s.customElements?()=>{}:Ee(s.customElements,"define",function(i){return function(a,c,d){try{t({define:{name:a}})}catch(m){console.warn(`Custom element callback failed for ${a}`)}return i.apply(this,[a,c,d])}})}function $a(e,t){const{mutationCb:s,mousemoveCb:o,mouseInteractionCb:i,scrollCb:a,viewportResizeCb:c,inputCb:d,mediaInteractionCb:m,styleSheetRuleCb:h,styleDeclarationCb:r,canvasMutationCb:u,fontCb:l,selectionCb:n,customElementCb:p}=e;e.mutationCb=(...f)=>{t.mutation&&t.mutation(...f),s(...f)},e.mousemoveCb=(...f)=>{t.mousemove&&t.mousemove(...f),o(...f)},e.mouseInteractionCb=(...f)=>{t.mouseInteraction&&t.mouseInteraction(...f),i(...f)},e.scrollCb=(...f)=>{t.scroll&&t.scroll(...f),a(...f)},e.viewportResizeCb=(...f)=>{t.viewportResize&&t.viewportResize(...f),c(...f)},e.inputCb=(...f)=>{t.input&&t.input(...f),d(...f)},e.mediaInteractionCb=(...f)=>{t.mediaInteaction&&t.mediaInteaction(...f),m(...f)},e.styleSheetRuleCb=(...f)=>{t.styleSheetRule&&t.styleSheetRule(...f),h(...f)},e.styleDeclarationCb=(...f)=>{t.styleDeclaration&&t.styleDeclaration(...f),r(...f)},e.canvasMutationCb=(...f)=>{t.canvasMutation&&t.canvasMutation(...f),u(...f)},e.fontCb=(...f)=>{t.font&&t.font(...f),l(...f)},e.selectionCb=(...f)=>{t.selection&&t.selection(...f),n(...f)},e.customElementCb=(...f)=>{t.customElement&&t.customElement(...f),p(...f)}}function Ba(e,t={}){const s=e.doc.defaultView;if(!s)return()=>{};$a(e,t);let o;e.recordDOM&&(o=On(e,e.doc));const i=Ma(e),a=Ea(e),c=In(e),d=Aa(e,{win:s}),m=Na(e),h=La(e);let r=()=>{},u=()=>{},l=()=>{},n=()=>{};e.recordDOM&&(r=_a(e,{win:s}),u=Mn(e,e.doc),l=ka(e,{win:s}),e.collectFonts&&(n=Da(e)));const p=Ta(e),f=Fa(e),g=[];for(const S of e.plugins)g.push(S.observer(S.callback,s,S.options));return F(()=>{we.forEach(S=>S.destroy()),we.forEach(S=>S.reset()),o==null||o.disconnect(),i(),a(),c(),d(),m(),h(),r(),u(),l(),n(),p(),f(),g.forEach(S=>S()),we.length=0})}function rt(e){return typeof window[e]!="undefined"}function st(e){return!!(typeof window[e]!="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Ni{constructor(t){P(this,"iframeIdToRemoteIdMap",new WeakMap),P(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,s,o,i){const a=o||this.getIdToRemoteIdMap(t),c=i||this.getRemoteIdToIdMap(t);let d=a.get(s);return d||(d=this.generateIdFn(),a.set(s,d),c.set(d,s)),d}getIds(t,s){const o=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return s.map(a=>this.getId(t,a,o,i))}getRemoteId(t,s,o){const i=o||this.getRemoteIdToIdMap(t);if(typeof s!="number")return s;const a=i.get(s);return a||-1}getRemoteIds(t,s){const o=this.getRemoteIdToIdMap(t);return s.map(i=>this.getRemoteId(t,i,o))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let s=this.iframeIdToRemoteIdMap.get(t);return s||(s=new Map,this.iframeIdToRemoteIdMap.set(t,s)),s}getRemoteIdToIdMap(t){let s=this.iframeRemoteIdToIdMap.get(t);return s||(s=new Map,this.iframeRemoteIdToIdMap.set(t,s)),s}}class Ua{constructor(t){P(this,"iframes",new WeakMap),P(this,"crossOriginIframeMap",new WeakMap),P(this,"crossOriginIframeMirror",new Ni(Wi)),P(this,"crossOriginIframeStyleMirror"),P(this,"crossOriginIframeRootIdMap",new WeakMap),P(this,"mirror"),P(this,"mutationCb"),P(this,"wrappedEmit"),P(this,"loadListener"),P(this,"stylesheetManager"),P(this,"recordCrossOriginIframes"),P(this,"messageHandler"),P(this,"nestedIframeListeners",new Map),P(this,"attachedIframes",new Map),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ni(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.messageHandler=this.handleMessage.bind(this),this.recordCrossOriginIframes&&window.addEventListener("message",this.messageHandler)}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}removeLoadListener(){this.loadListener=void 0}trackIframeContent(t,s){const o=this.mirror.getId(t);return this.attachedIframes.set(o,{element:t,content:s}),o}attachIframe(t,s){var o;const i=this.trackIframeContent(t,s);this.mutationCb({adds:[{parentId:i,nextId:null,node:s}],removes:[],texts:[],attributes:[],isAttachIframe:!0});const a=t.contentWindow;if(this.recordCrossOriginIframes&&a&&!this.nestedIframeListeners.has(a)){const c=this.handleMessage.bind(this);this.nestedIframeListeners.set(a,c),a.addEventListener("message",c)}(o=this.loadListener)==null||o.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const s=t;if(s.data.type!=="rrweb"||s.origin!==s.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const a=this.transformCrossOriginEvent(i,s.data.event);a&&this.wrappedEmit(a,s.data.isCheckout)}transformCrossOriginEvent(t,s){var o;switch(s.type){case $.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(s.data.node,t);const i=s.data.node.id;return this.crossOriginIframeRootIdMap.set(t,i),this.patchRootIdOnNode(s.data.node,i),this.trackIframeContent(t,s.data.node),{timestamp:s.timestamp,type:$.IncrementalSnapshot,data:{source:D.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:s.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case $.Meta:case $.Load:case $.DomContentLoaded:return!1;case $.Plugin:return s;case $.Custom:return this.replaceIds(s.data.payload,t,["id","parentId","previousId","nextId"]),s;case $.IncrementalSnapshot:switch(s.data.source){case D.Mutation:return s.data.adds.forEach(i=>{this.replaceIds(i,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,t);const a=this.crossOriginIframeRootIdMap.get(t);a&&this.patchRootIdOnNode(i.node,a)}),s.data.removes.forEach(i=>{this.replaceIds(i,t,["parentId","id"])}),s.data.attributes.forEach(i=>{this.replaceIds(i,t,["id"])}),s.data.texts.forEach(i=>{this.replaceIds(i,t,["id"])}),s;case D.Drag:case D.TouchMove:case D.MouseMove:return s.data.positions.forEach(i=>{this.replaceIds(i,t,["id"])}),s;case D.ViewportResize:return!1;case D.MediaInteraction:case D.MouseInteraction:case D.Scroll:case D.CanvasMutation:case D.Input:return this.replaceIds(s.data,t,["id"]),s;case D.StyleSheetRule:case D.StyleDeclaration:return this.replaceIds(s.data,t,["id"]),this.replaceStyleIds(s.data,t,["styleId"]),s;case D.Font:return s;case D.Selection:return s.data.ranges.forEach(i=>{this.replaceIds(i,t,["start","end"])}),s;case D.AdoptedStyleSheet:return this.replaceIds(s.data,t,["id"]),this.replaceStyleIds(s.data,t,["styleIds"]),(o=s.data.styles)==null||o.forEach(i=>{this.replaceStyleIds(i,t,["styleId"])}),s}}return!1}replace(t,s,o,i){for(const a of i)!Array.isArray(s[a])&&typeof s[a]!="number"||(Array.isArray(s[a])?s[a]=t.getIds(o,s[a]):s[a]=t.getId(o,s[a]));return s}replaceIds(t,s,o){return this.replace(this.crossOriginIframeMirror,t,s,o)}replaceStyleIds(t,s,o){return this.replace(this.crossOriginIframeStyleMirror,t,s,o)}replaceIdOnNode(t,s){this.replaceIds(t,s,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(o=>{this.replaceIdOnNode(o,s)})}patchRootIdOnNode(t,s){t.type!==xn.Document&&!t.rootId&&(t.rootId=s),"childNodes"in t&&t.childNodes.forEach(o=>{this.patchRootIdOnNode(o,s)})}removeIframeById(t){const s=this.attachedIframes.get(t),o=(s==null?void 0:s.element)||this.mirror.getNode(t);if(o){const i=o.contentWindow;if(i&&this.nestedIframeListeners.has(i)){const a=this.nestedIframeListeners.get(i);i.removeEventListener("message",a),this.nestedIframeListeners.delete(i)}i&&this.crossOriginIframeMap.delete(i),this.iframes.delete(o)}s&&this.attachedIframes.delete(t)}reattachIframes(){this.attachedIframes.forEach(({content:t},s)=>{if(!this.mirror.has(s)){this.attachedIframes.delete(s);return}this.mutationCb({adds:[{parentId:s,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0})})}destroy(){this.recordCrossOriginIframes&&window.removeEventListener("message",this.messageHandler),this.nestedIframeListeners.forEach((t,s)=>{s.removeEventListener("message",t)}),this.nestedIframeListeners.clear(),this.crossOriginIframeMirror.reset(),this.crossOriginIframeStyleMirror.reset(),this.attachedIframes.clear(),this.crossOriginIframeMap=new WeakMap,this.iframes=new WeakMap,this.crossOriginIframeRootIdMap=new WeakMap}}class Wa{constructor(t){P(this,"shadowDoms",new WeakSet),P(this,"mutationCb"),P(this,"scrollCb"),P(this,"bypassOptions"),P(this,"mirror"),P(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,s){if(!Ue(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const o=On(le(L({},this.bypassOptions),{doc:s,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>o.disconnect()),this.restoreHandlers.push(In(le(L({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(k.host(t))),this.restoreHandlers.push(Mn({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,s){const o=this;this.restoreHandlers.push(Ee(t.prototype,"attachShadow",function(i){return function(a){const c=i.call(this,a),d=k.shadowRoot(this);return d&&Cn(this)&&o.addShadowRoot(d,s),c}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(s){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var Fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",za=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var it=0;it<Fe.length;it++)za[Fe.charCodeAt(it)]=it;var qa=function(e){var t=new Uint8Array(e),s,o=t.length,i="";for(s=0;s<o;s+=3)i+=Fe[t[s]>>2],i+=Fe[(t[s]&3)<<4|t[s+1]>>4],i+=Fe[(t[s+1]&15)<<2|t[s+2]>>6],i+=Fe[t[s+2]&63];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const _i=new Map;function ja(e,t){let s=_i.get(e);return s||(s=new Map,_i.set(e,s)),s.has(t)||s.set(t,[]),s.get(t)}const En=(e,t,s)=>{if(!e||!(Pn(e,t)||typeof e=="object"))return;const o=e.constructor.name,i=ja(s,o);let a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a};function nt(e,t,s,o){if(e instanceof Array)return e.map(i=>nt(i,t,s,o));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const i=e.constructor.name,a=qa(e);return{rr_type:i,base64:a}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[nt(e.buffer,t,s,o),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const i=e.constructor.name,{src:a}=e;return{rr_type:i,src:a}}else if(e instanceof HTMLCanvasElement){const i="HTMLImageElement",a=e.toDataURL(o.type,o.quality);return{rr_type:i,src:a}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[nt(e.data,t,s,o),e.width,e.height]};if(Pn(e,t)||typeof e=="object"){const i=e.constructor.name,a=En(e,t,s);return{rr_type:i,index:a}}}}return e}const An=(e,t,s,o)=>e.map(i=>nt(i,t,s,o)),Pn=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function Ha(e,t,s,o,i){const a=[],c=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const d of c)try{if(typeof t.CanvasRenderingContext2D.prototype[d]!="function")continue;const m=Ee(t.CanvasRenderingContext2D.prototype,d,function(h){return function(...r){return ie(this.canvas,s,o,!0)||setTimeout(()=>{const u=An(r,t,this,i);e(this.canvas,{type:$e["2D"],property:d,args:u})},0),h.apply(this,r)}});a.push(m)}catch(m){const h=vt(t.CanvasRenderingContext2D.prototype,d,{set(r){e(this.canvas,{type:$e["2D"],property:d,args:[r],setter:!0})}});a.push(h)}return()=>{a.forEach(d=>d())}}function Va(e){return e==="experimental-webgl"?"webgl":e}function ki(e,t,s,o){const i=[];try{const a=Ee(e.HTMLCanvasElement.prototype,"getContext",function(c){return function(d,...m){if(!ie(this,t,s,!0)){const h=Va(d);if("__context"in this||(this.__context=h),o&&["webgl","webgl2"].includes(h))if(m[0]&&typeof m[0]=="object"){const r=m[0];r.preserveDrawingBuffer||(r.preserveDrawingBuffer=!0)}else m.splice(0,1,{preserveDrawingBuffer:!0})}return c.apply(this,[d,...m])}});i.push(a)}catch(a){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(a=>a())}}function Li(e,t,s,o,i,a,c){const d=[],m=Object.getOwnPropertyNames(e);for(const h of m)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(h))try{if(typeof e[h]!="function")continue;const r=Ee(e,h,function(u){return function(...l){const n=u.apply(this,l);if(En(n,a,this),"tagName"in this.canvas&&!ie(this.canvas,o,i,!0)){const p=An(l,a,this,c),f={type:t,property:h,args:p};s(this.canvas,f)}return n}});d.push(r)}catch(r){const u=vt(e,h,{set(l){s(this.canvas,{type:t,property:h,args:[l],setter:!0})}});d.push(u)}return d}function Ga(e,t,s,o,i){const a=[];return a.push(...Li(t.WebGLRenderingContext.prototype,$e.WebGL,e,s,o,t,i)),typeof t.WebGL2RenderingContext!="undefined"&&a.push(...Li(t.WebGL2RenderingContext.prototype,$e.WebGL2,e,s,o,t,i)),()=>{a.forEach(c=>c())}}const Nn=`(function() {
58
+ or you can use record.mirror to access the mirror instance during recording.`;let Ii={map:{},getId(){return console.error(ke),-1},getNode(){return console.error(ke),null},removeNodeFromMap(){console.error(ke)},has(){return console.error(ke),!1},reset(){console.error(ke)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Ii=new Proxy(Ii,{get(e,t,s){return t==="map"&&console.error(ke),Reflect.get(e,t,s)}}));function qe(e,t,s={}){let o=null,i=0;return function(...a){const c=Date.now();!i&&s.leading===!1&&(i=c);const d=t-(c-i),m=this;d<=0||d>t?(o&&(clearTimeout(o),o=null),i=c,e.apply(m,a)):!o&&s.trailing!==!1&&(o=setTimeout(()=>{i=s.leading===!1?0:Date.now(),o=null,e.apply(m,a)},d))}}function vt(e,t,s,o,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,o?s:{set(c){setTimeout(()=>{s.set.call(this,c)},0),a&&a.set&&a.set.call(this,c)}}),()=>vt(e,t,a||{},!0)}let ct=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ct=()=>new Date().getTime());function mn(e){var t,s,o,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:a.documentElement.scrollLeft||(a==null?void 0:a.body)&&((t=L.parentElement(a.body))==null?void 0:t.scrollLeft)||((s=a==null?void 0:a.body)==null?void 0:s.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(a==null?void 0:a.documentElement.scrollTop)||(a==null?void 0:a.body)&&((o=L.parentElement(a.body))==null?void 0:o.scrollTop)||((i=a==null?void 0:a.body)==null?void 0:i.scrollTop)||0}}function gn(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function yn(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function wn(e){return e?e.nodeType===e.ELEMENT_NODE?e:L.parentElement(e):null}function se(e,t,s,o){if(!e)return!1;const i=wn(e);if(!i)return!1;try{if(typeof t=="string"){if(i.classList.contains(t)||o&&i.closest("."+t)!==null)return!0}else if(ut(i,t,o))return!0}catch(a){}return!!(s&&(i.matches(s)||o&&i.closest(s)!==null))}function wa(e,t){return t.getId(e)!==-1}function Nr(e,t,s){return e.tagName==="TITLE"&&s.headTitleMutations?!0:t.getId(e)===ze}function bn(e,t){if(Be(e))return!1;const s=t.getId(e);if(!t.has(s))return!0;const o=L.parentNode(e);return o&&o.nodeType===e.DOCUMENT_NODE?!1:o?bn(o,t):!0}function kr(e){return!!e.changedTouches}function ba(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Sn(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function vn(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Dr(e){return e?e instanceof ts&&"shadowRoot"in e?!!e.shadowRoot:!!L.shadowRoot(e):!1}class Sa{constructor(){A(this,"id",1),A(this,"styleIDMap",new WeakMap),A(this,"idStyleMap",new Map)}getId(t){var s;return(s=this.styleIDMap.get(t))!=null?s:-1}has(t){return this.styleIDMap.has(t)}add(t,s){if(this.has(t))return this.getId(t);let o;return s===void 0?o=this.id++:o=s,this.styleIDMap.set(t,o),this.idStyleMap.set(o,t),o}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Cn(e){var t;let s=null;return"getRootNode"in e&&((t=L.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&L.host(L.getRootNode(e))&&(s=L.host(L.getRootNode(e))),s}function va(e){let t=e,s;for(;s=Cn(t);)t=s;return t}function Ca(e){const t=e.ownerDocument;if(!t)return!1;const s=va(e);return L.contains(t,s)}function xn(e){const t=e.ownerDocument;return t?L.contains(t,e)||Ca(e):!1}var B=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(B||{}),F=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(F||{}),ne=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ne||{}),ye=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ye||{}),$e=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))($e||{}),De=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(De||{}),Rn=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Rn||{});function Mi(e){return"__ln"in e}class xa{constructor(){A(this,"length",0),A(this,"head",null),A(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let s=this.head;for(let o=0;o<t;o++)s=(s==null?void 0:s.next)||null;return s}addNode(t){const s={value:t,previous:null,next:null};if(t.__ln=s,t.previousSibling&&Mi(t.previousSibling)){const o=t.previousSibling.__ln.next;s.next=o,s.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=s,o&&(o.previous=s)}else if(t.nextSibling&&Mi(t.nextSibling)&&t.nextSibling.__ln.previous){const o=t.nextSibling.__ln.previous;s.previous=o,s.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=s,o&&(o.next=s)}else this.head&&(this.head.previous=s),s.next=this.head,this.head=s;s.next===null&&(this.tail=s),this.length++}removeNode(t){const s=t.__ln;this.head&&(s.previous?(s.previous.next=s.next,s.next?s.next.previous=s.previous:this.tail=s.previous):(this.head=s.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Ei=(e,t)=>`${e}@${t}`;class Ra{constructor(){A(this,"frozen",!1),A(this,"locked",!1),A(this,"texts",[]),A(this,"attributes",[]),A(this,"attributeMap",new WeakMap),A(this,"removes",[]),A(this,"mapRemoves",[]),A(this,"movedMap",{}),A(this,"addedSet",new Set),A(this,"movedSet",new Set),A(this,"droppedSet",new Set),A(this,"removesSubTreeCache",new Set),A(this,"mutationCb"),A(this,"blockClass"),A(this,"blockSelector"),A(this,"maskTextClass"),A(this,"maskTextSelector"),A(this,"inlineStylesheet"),A(this,"maskInputOptions"),A(this,"maskTextFn"),A(this,"maskInputFn"),A(this,"keepIframeSrcFn"),A(this,"recordCanvas"),A(this,"inlineImages"),A(this,"slimDOMOptions"),A(this,"dataURLOptions"),A(this,"doc"),A(this,"mirror"),A(this,"iframeManager"),A(this,"stylesheetManager"),A(this,"shadowDomManager"),A(this,"canvasManager"),A(this,"processedNodeManager"),A(this,"unattachedDoc"),A(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),A(this,"emit",()=>{if(this.frozen||this.locked)return;const t=[],s=new Set,o=new xa,i=m=>{let h=m,r=ze;for(;r===ze;)h=h&&h.nextSibling,r=h&&this.mirror.getId(h);return r},a=m=>{const h=L.parentNode(m);if(!h||!xn(m)||h.tagName==="TEXTAREA")return;const r=Be(h)?this.mirror.getId(Cn(m)):this.mirror.getId(h),u=i(m);if(r===-1||u===-1)return o.addNode(m);const l=Te(m,{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:n=>{Sn(n,this.mirror)&&this.iframeManager.addIframe(n),vn(n,this.mirror)&&this.stylesheetManager.trackLinkElement(n),Dr(m)&&this.shadowDomManager.addShadowRoot(L.shadowRoot(m),this.doc)},onIframeLoad:(n,p)=>{this.iframeManager.attachIframe(n,p),this.shadowDomManager.observeAttachShadow(n)},onStylesheetLoad:(n,p)=>{this.stylesheetManager.attachLinkElement(n,p)}});l&&(t.push({parentId:r,nextId:u,node:l}),s.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const m of this.movedSet)Ai(this.removesSubTreeCache,m,this.mirror)&&!this.movedSet.has(L.parentNode(m))||a(m);for(const m of this.addedSet)!Pi(this.droppedSet,m)&&!Ai(this.removesSubTreeCache,m,this.mirror)||Pi(this.movedSet,m)?a(m):this.droppedSet.add(m);let c=null;for(;o.length;){let m=null;if(c){const h=this.mirror.getId(L.parentNode(c.value)),r=i(c.value);h!==-1&&r!==-1&&(m=c)}if(!m){let h=o.tail;for(;h;){const r=h;if(h=h.previous,r){const u=this.mirror.getId(L.parentNode(r.value));if(i(r.value)===-1)continue;if(u!==-1){m=r;break}else{const n=r.value,p=L.parentNode(n);if(p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const f=L.host(p);if(this.mirror.getId(f)!==-1){m=r;break}}}}}}if(!m){for(;o.head;)o.removeNode(o.head.value);break}c=m.previous,o.removeNode(m.value),a(m.value)}const d={texts:this.texts.map(m=>{const h=m.node,r=L.parentNode(h);return r&&r.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(h),value:m.value}}).filter(m=>!s.has(m.id)).filter(m=>this.mirror.has(m.id)),attributes:this.attributes.map(m=>{const{attributes:h}=m;if(typeof h.style=="string"){const r=JSON.stringify(m.styleDiff),u=JSON.stringify(m._unchangedStyles);r.length<h.style.length&&(r+u).split("var(").length===h.style.split("var(").length&&(h.style=m.styleDiff)}return{id:this.mirror.getId(m.node),attributes:h}}).filter(m=>!s.has(m.id)).filter(m=>this.mirror.has(m.id)),removes:this.removes,adds:t};!d.texts.length&&!d.attributes.length&&!d.removes.length&&!d.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(d))}),A(this,"genTextAreaValueMutation",t=>{let s=this.attributeMap.get(t);s||(s={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t,s)),s.attributes.value=Array.from(L.childNodes(t),o=>L.textContent(o)||"").join("")}),A(this,"processMutation",t=>{if(!Nr(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{const s=L.textContent(t.target);!se(t.target,this.blockClass,this.blockSelector,!1)&&s!==t.oldValue&&this.texts.push({value:Hi(t.target,this.maskTextClass,this.maskTextSelector,!0)&&s?this.maskTextFn?this.maskTextFn(s,wn(t.target)):s.replace(/[\S]/g,"*"):s,node:t.target});break}case"attributes":{const s=t.target;let o=t.attributeName,i=t.target.getAttribute(o);if(o==="value"){const c=Br(s);i=$r({element:s,maskInputOptions:this.maskInputOptions,tagName:s.tagName,type:c,value:i,maskInputFn:this.maskInputFn})}if(se(t.target,this.blockClass,this.blockSelector,!1)||i===t.oldValue)return;let a=this.attributeMap.get(t.target);if(s.tagName==="IFRAME"&&o==="src"&&!this.keepIframeSrcFn(i))if(!s.contentDocument)o="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),o==="type"&&s.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&s.setAttribute("data-rr-is-password","true"),!ji(s.tagName,o))if(a.attributes[o]=qi(this.doc,Oe(s.tagName),Oe(o),i,s,this.dataURLOptions),o==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(d){this.unattachedDoc=this.doc}const c=this.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(const d of Array.from(s.style)){const m=s.style.getPropertyValue(d),h=s.style.getPropertyPriority(d);m!==c.style.getPropertyValue(d)||h!==c.style.getPropertyPriority(d)?h===""?a.styleDiff[d]=m:a.styleDiff[d]=[m,h]:a._unchangedStyles[d]=[m,h]}for(const d of Array.from(c.style))s.style.getPropertyValue(d)===""&&(a.styleDiff[d]=!1)}else o==="open"&&s.tagName==="DIALOG"&&(s.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break}case"childList":{if(se(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(s=>this.genAdds(s,t.target)),t.removedNodes.forEach(s=>{const o=this.mirror.getId(s),i=Be(t.target)?this.mirror.getId(L.host(t.target)):this.mirror.getId(t.target);se(t.target,this.blockClass,this.blockSelector,!1)||Nr(s,this.mirror,this.slimDOMOptions)||!wa(s,this.mirror)||(this.addedSet.has(s)?(Lr(this.addedSet,s),this.droppedSet.add(s)):this.addedSet.has(t.target)&&o===-1||bn(t.target,this.mirror)||(this.movedSet.has(s)&&this.movedMap[Ei(o,i)]?Lr(this.movedSet,s):(this.removes.push({parentId:i,id:o,isShadow:Be(t.target)&&Ue(t.target)?!0:void 0}),Oa(s,this.removesSubTreeCache))),this.mapRemoves.push(s))});break}}}),A(this,"genAdds",(t,s)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Nr(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let o=null;s&&this.mirror.hasNode(s)&&(o=this.mirror.getId(s)),o&&o!==-1&&(this.movedMap[Ei(this.mirror.getId(t),o)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);se(t,this.blockClass,this.blockSelector,!1)||(L.childNodes(t).forEach(o=>this.genAdds(o)),Dr(t)&&L.childNodes(L.shadowRoot(t)).forEach(o=>{this.processedNodeManager.add(o,this),this.genAdds(o,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(s=>{this[s]=t[s]})}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()}destroy(){for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift())}}function Lr(e,t){e.delete(t),L.childNodes(t).forEach(s=>Lr(e,s))}function Oa(e,t){const s=[e];for(;s.length;){const o=s.pop();t.has(o)||(t.add(o),L.childNodes(o).forEach(i=>s.push(i)))}}function Ai(e,t,s){return e.size===0?!1:Ia(e,t)}function Ia(e,t,s){const o=L.parentNode(t);return o?e.has(o):!1}function Pi(e,t){return e.size===0?!1:On(e,t)}function On(e,t){const s=L.parentNode(t);return s?e.has(s)?!0:On(e,s):!1}let We;function Ma(e){We=e}function Ea(){We=void 0}const $=e=>We?(...s)=>{try{return e(...s)}catch(o){if(We&&We(o)===!0)return;throw o}}:e,we=[];function Je(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(t){}return e&&e.target}function In(e,t){const s=new Ra;we.push(s),s.init(e);const o=new(dn())($(s.processMutations.bind(s)));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Aa({mousemoveCb:e,sampling:t,doc:s,mirror:o}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let c=[],d;const m=qe($(u=>{const l=Date.now()-d;e(c.map(n=>(n.timeOffset-=l,n)),u),c=[],d=null}),a),h=$(qe($(u=>{const l=Je(u),{clientX:n,clientY:p}=kr(u)?u.changedTouches[0]:u;d||(d=ct()),c.push({x:n,y:p,id:o.getId(l),timeOffset:ct()-d}),m(typeof DragEvent!="undefined"&&u instanceof DragEvent?F.Drag:u instanceof MouseEvent?F.MouseMove:F.TouchMove)}),i,{trailing:!1})),r=[re("mousemove",h,s),re("touchmove",h,s),re("drag",h,s)];return $(()=>{r.forEach(u=>u())})}function Pa({mouseInteractionCb:e,doc:t,mirror:s,blockClass:o,blockSelector:i,sampling:a}){if(a.mouseInteraction===!1)return()=>{};const c=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,d=[];let m=null;const h=r=>u=>{const l=Je(u);if(se(l,o,i,!0))return;let n=null,p=r;if("pointerType"in u){switch(u.pointerType){case"mouse":n=ye.Mouse;break;case"touch":n=ye.Touch;break;case"pen":n=ye.Pen;break}n===ye.Touch?ne[r]===ne.MouseDown?p="TouchStart":ne[r]===ne.MouseUp&&(p="TouchEnd"):ye.Pen}else kr(u)&&(n=ye.Touch);n!==null?(m=n,(p.startsWith("Touch")&&n===ye.Touch||p.startsWith("Mouse")&&n===ye.Mouse)&&(n=null)):ne[r]===ne.Click&&(n=m,m=null);const f=kr(u)?u.changedTouches[0]:u;if(!f)return;const g=s.getId(l),{clientX:S,clientY:w}=f;$(e)(T({type:ne[p],id:g,x:S,y:w},n!==null&&{pointerType:n}))};return Object.keys(ne).filter(r=>Number.isNaN(Number(r))&&!r.endsWith("_Departed")&&c[r]!==!1).forEach(r=>{let u=Oe(r);const l=h(r);if(window.PointerEvent)switch(ne[r]){case ne.MouseDown:case ne.MouseUp:u=u.replace("mouse","pointer");break;case ne.TouchStart:case ne.TouchEnd:return}d.push(re(u,l,t))}),$(()=>{d.forEach(r=>r())})}function Mn({scrollCb:e,doc:t,mirror:s,blockClass:o,blockSelector:i,sampling:a}){const c=$(qe($(d=>{const m=Je(d);if(!m||se(m,o,i,!0))return;const h=s.getId(m);if(m===t&&t.defaultView){const r=mn(t.defaultView);e({id:h,x:r.left,y:r.top})}else e({id:h,x:m.scrollLeft,y:m.scrollTop})}),a.scroll||100));return re("scroll",c,t)}function Na({viewportResizeCb:e},{win:t}){let s=-1,o=-1;const i=$(qe($(()=>{const a=gn(),c=yn();(s!==a||o!==c)&&(e({width:Number(c),height:Number(a)}),s=a,o=c)}),200));return re("resize",i,t)}const _a=["INPUT","TEXTAREA","SELECT"],Ni=new WeakMap;function ka({inputCb:e,doc:t,mirror:s,blockClass:o,blockSelector:i,ignoreClass:a,ignoreSelector:c,maskInputOptions:d,maskInputFn:m,sampling:h,userTriggeredOnInput:r}){function u(w){let v=Je(w);const x=w.isTrusted,y=v&&v.tagName;if(v&&y==="OPTION"&&(v=L.parentElement(v)),!v||!y||_a.indexOf(y)<0||se(v,o,i,!0)||v.classList.contains(a)||c&&v.matches(c))return;let b=v.value,C=!1;const R=Br(v)||"";R==="radio"||R==="checkbox"?C=v.checked:(d[y.toLowerCase()]||d[R])&&(b=$r({element:v,maskInputOptions:d,tagName:y,type:R,value:b,maskInputFn:m})),l(v,r?{text:b,isChecked:C,userTriggered:x}:{text:b,isChecked:C});const M=v.name;R==="radio"&&M&&C&&t.querySelectorAll(`input[type="radio"][name="${M}"]`).forEach(O=>{if(O!==v){const N=O.value;l(O,r?{text:N,isChecked:!C,userTriggered:!1}:{text:N,isChecked:!C})}})}function l(w,v){const x=Ni.get(w);if(!x||x.text!==v.text||x.isChecked!==v.isChecked){Ni.set(w,v);const y=s.getId(w);$(e)(le(T({},v),{id:y}))}}const p=(h.input==="last"?["change"]:["input","change"]).map(w=>re(w,$(u),t)),f=t.defaultView;if(!f)return()=>{p.forEach(w=>w())};const g=f.Object.getOwnPropertyDescriptor(f.HTMLInputElement.prototype,"value"),S=[[f.HTMLInputElement.prototype,"value"],[f.HTMLInputElement.prototype,"checked"],[f.HTMLSelectElement.prototype,"value"],[f.HTMLTextAreaElement.prototype,"value"],[f.HTMLSelectElement.prototype,"selectedIndex"],[f.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&p.push(...S.map(w=>vt(w[0],w[1],{set(){$(u)({target:this,isTrusted:!1})}},!1,f))),$(()=>{p.forEach(w=>w())})}function ht(e){const t=[];function s(o,i){if(rt("CSSGroupingRule")&&o.parentRule instanceof CSSGroupingRule||rt("CSSMediaRule")&&o.parentRule instanceof CSSMediaRule||rt("CSSSupportsRule")&&o.parentRule instanceof CSSSupportsRule||rt("CSSConditionRule")&&o.parentRule instanceof CSSConditionRule){const c=Array.from(o.parentRule.cssRules).indexOf(o);i.unshift(c)}else if(o.parentStyleSheet){const c=Array.from(o.parentStyleSheet.cssRules).indexOf(o);i.unshift(c)}return i}return s(e,t)}function Se(e,t,s){let o,i;return e?(e.ownerNode?o=t.getId(e.ownerNode):i=s.getId(e),{styleId:i,id:o}):{}}function Da({styleSheetRuleCb:e,mirror:t,stylesheetManager:s},{win:o}){if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return()=>{};const i=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:$((r,u,l)=>{const[n,p]=l,{id:f,styleId:g}=Se(u,t,s.styleMirror);return(f&&f!==-1||g&&g!==-1)&&e({id:f,styleId:g,adds:[{rule:n,index:p}]}),r.apply(u,l)})}),o.CSSStyleSheet.prototype.addRule=function(r,u,l=this.cssRules.length){const n=`${r} { ${u} }`;return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,l])};const a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:$((r,u,l)=>{const[n]=l,{id:p,styleId:f}=Se(u,t,s.styleMirror);return(p&&p!==-1||f&&f!==-1)&&e({id:p,styleId:f,removes:[{index:n}]}),r.apply(u,l)})}),o.CSSStyleSheet.prototype.removeRule=function(r){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[r])};let c;o.CSSStyleSheet.prototype.replace&&(c=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:$((r,u,l)=>{const[n]=l,{id:p,styleId:f}=Se(u,t,s.styleMirror);return(p&&p!==-1||f&&f!==-1)&&e({id:p,styleId:f,replace:n}),r.apply(u,l)})}));let d;o.CSSStyleSheet.prototype.replaceSync&&(d=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(d,{apply:$((r,u,l)=>{const[n]=l,{id:p,styleId:f}=Se(u,t,s.styleMirror);return(p&&p!==-1||f&&f!==-1)&&e({id:p,styleId:f,replaceSync:n}),r.apply(u,l)})}));const m={};st("CSSGroupingRule")?m.CSSGroupingRule=o.CSSGroupingRule:(st("CSSMediaRule")&&(m.CSSMediaRule=o.CSSMediaRule),st("CSSConditionRule")&&(m.CSSConditionRule=o.CSSConditionRule),st("CSSSupportsRule")&&(m.CSSSupportsRule=o.CSSSupportsRule));const h={};return Object.entries(m).forEach(([r,u])=>{h[r]={insertRule:u.prototype.insertRule,deleteRule:u.prototype.deleteRule},u.prototype.insertRule=new Proxy(h[r].insertRule,{apply:$((l,n,p)=>{const[f,g]=p,{id:S,styleId:w}=Se(n.parentStyleSheet,t,s.styleMirror);return(S&&S!==-1||w&&w!==-1)&&e({id:S,styleId:w,adds:[{rule:f,index:[...ht(n),g||0]}]}),l.apply(n,p)})}),u.prototype.deleteRule=new Proxy(h[r].deleteRule,{apply:$((l,n,p)=>{const[f]=p,{id:g,styleId:S}=Se(n.parentStyleSheet,t,s.styleMirror);return(g&&g!==-1||S&&S!==-1)&&e({id:g,styleId:S,removes:[{index:[...ht(n),f]}]}),l.apply(n,p)})})}),$(()=>{o.CSSStyleSheet.prototype.insertRule=i,o.CSSStyleSheet.prototype.deleteRule=a,c&&(o.CSSStyleSheet.prototype.replace=c),d&&(o.CSSStyleSheet.prototype.replaceSync=d),Object.entries(m).forEach(([r,u])=>{u.prototype.insertRule=h[r].insertRule,u.prototype.deleteRule=h[r].deleteRule})})}function En({mirror:e,stylesheetManager:t},s){var o,i,a;let c=null;s.nodeName==="#document"?c=e.getId(s):c=e.getId(L.host(s));const d=s.nodeName==="#document"?(o=s.defaultView)==null?void 0:o.Document:(a=(i=s.ownerDocument)==null?void 0:i.defaultView)==null?void 0:a.ShadowRoot,m=d!=null&&d.prototype?Object.getOwnPropertyDescriptor(d==null?void 0:d.prototype,"adoptedStyleSheets"):void 0;return c===null||c===-1||!d||!m?()=>{}:(Object.defineProperty(s,"adoptedStyleSheets",{configurable:m.configurable,enumerable:m.enumerable,get(){var h;return(h=m.get)==null?void 0:h.call(this)},set(h){var r;const u=(r=m.set)==null?void 0:r.call(this,h);if(c!==null&&c!==-1)try{t.adoptStyleSheets(h,c)}catch(l){}return u}}),$(()=>{Object.defineProperty(s,"adoptedStyleSheets",{configurable:m.configurable,enumerable:m.enumerable,get:m.get,set:m.set})}))}function La({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:s,stylesheetManager:o},{win:i}){const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:$((d,m,h)=>{var r;const[u,l,n]=h;if(s.has(u))return a.apply(m,[u,l,n]);const{id:p,styleId:f}=Se((r=m.parentRule)==null?void 0:r.parentStyleSheet,t,o.styleMirror);return(p&&p!==-1||f&&f!==-1)&&e({id:p,styleId:f,set:{property:u,value:l,priority:n},index:ht(m.parentRule)}),d.apply(m,h)})});const c=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:$((d,m,h)=>{var r;const[u]=h;if(s.has(u))return c.apply(m,[u]);const{id:l,styleId:n}=Se((r=m.parentRule)==null?void 0:r.parentStyleSheet,t,o.styleMirror);return(l&&l!==-1||n&&n!==-1)&&e({id:l,styleId:n,remove:{property:u},index:ht(m.parentRule)}),d.apply(m,h)})}),$(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=c})}function Ta({mediaInteractionCb:e,blockClass:t,blockSelector:s,mirror:o,sampling:i,doc:a}){const c=$(m=>qe($(h=>{const r=Je(h);if(!r||se(r,t,s,!0))return;const{currentTime:u,volume:l,muted:n,playbackRate:p,loop:f}=r;e({type:m,id:o.getId(r),currentTime:u,volume:l,muted:n,playbackRate:p,loop:f})}),i.media||500)),d=[re("play",c(De.Play),a),re("pause",c(De.Pause),a),re("seeked",c(De.Seeked),a),re("volumechange",c(De.VolumeChange),a),re("ratechange",c(De.RateChange),a)];return $(()=>{d.forEach(m=>m())})}function Fa({fontCb:e,doc:t}){const s=t.defaultView;if(!s)return()=>{};const o=[],i=new WeakMap,a=s.FontFace;s.FontFace=function(m,h,r){const u=new a(m,h,r);return i.set(u,{family:m,buffer:typeof h!="string",descriptors:r,fontSource:typeof h=="string"?h:JSON.stringify(Array.from(new Uint8Array(h)))}),u};const c=Ee(t.fonts,"add",function(d){return function(m){return setTimeout($(()=>{const h=i.get(m);h&&(e(h),i.delete(m))}),0),d.apply(this,[m])}});return o.push(()=>{s.FontFace=a}),o.push(c),$(()=>{o.forEach(d=>d())})}function $a(e){const{doc:t,mirror:s,blockClass:o,blockSelector:i,selectionCb:a}=e;let c=!0;const d=$(()=>{const m=t.getSelection();if(!m||c&&(m!=null&&m.isCollapsed))return;c=m.isCollapsed||!1;const h=[],r=m.rangeCount||0;for(let u=0;u<r;u++){const l=m.getRangeAt(u),{startContainer:n,startOffset:p,endContainer:f,endOffset:g}=l;se(n,o,i,!0)||se(f,o,i,!0)||h.push({start:s.getId(n),startOffset:p,end:s.getId(f),endOffset:g})}a({ranges:h})});return d(),re("selectionchange",d)}function Ba({doc:e,customElementCb:t}){const s=e.defaultView;return!s||!s.customElements?()=>{}:Ee(s.customElements,"define",function(i){return function(a,c,d){try{t({define:{name:a}})}catch(m){console.warn(`Custom element callback failed for ${a}`)}return i.apply(this,[a,c,d])}})}function Ua(e,t){const{mutationCb:s,mousemoveCb:o,mouseInteractionCb:i,scrollCb:a,viewportResizeCb:c,inputCb:d,mediaInteractionCb:m,styleSheetRuleCb:h,styleDeclarationCb:r,canvasMutationCb:u,fontCb:l,selectionCb:n,customElementCb:p}=e;e.mutationCb=(...f)=>{t.mutation&&t.mutation(...f),s(...f)},e.mousemoveCb=(...f)=>{t.mousemove&&t.mousemove(...f),o(...f)},e.mouseInteractionCb=(...f)=>{t.mouseInteraction&&t.mouseInteraction(...f),i(...f)},e.scrollCb=(...f)=>{t.scroll&&t.scroll(...f),a(...f)},e.viewportResizeCb=(...f)=>{t.viewportResize&&t.viewportResize(...f),c(...f)},e.inputCb=(...f)=>{t.input&&t.input(...f),d(...f)},e.mediaInteractionCb=(...f)=>{t.mediaInteaction&&t.mediaInteaction(...f),m(...f)},e.styleSheetRuleCb=(...f)=>{t.styleSheetRule&&t.styleSheetRule(...f),h(...f)},e.styleDeclarationCb=(...f)=>{t.styleDeclaration&&t.styleDeclaration(...f),r(...f)},e.canvasMutationCb=(...f)=>{t.canvasMutation&&t.canvasMutation(...f),u(...f)},e.fontCb=(...f)=>{t.font&&t.font(...f),l(...f)},e.selectionCb=(...f)=>{t.selection&&t.selection(...f),n(...f)},e.customElementCb=(...f)=>{t.customElement&&t.customElement(...f),p(...f)}}function Wa(e,t={}){const s=e.doc.defaultView;if(!s)return()=>{};Ua(e,t);let o;e.recordDOM&&(o=In(e,e.doc));const i=Aa(e),a=Pa(e),c=Mn(e),d=Na(e,{win:s}),m=ka(e),h=Ta(e);let r=()=>{},u=()=>{},l=()=>{},n=()=>{};e.recordDOM&&(r=Da(e,{win:s}),u=En(e,e.doc),l=La(e,{win:s}),e.collectFonts&&(n=Fa(e)));const p=$a(e),f=Ba(e),g=[];for(const S of e.plugins)g.push(S.observer(S.callback,s,S.options));return $(()=>{we.forEach(S=>S.destroy()),we.forEach(S=>S.reset()),o==null||o.disconnect(),i(),a(),c(),d(),m(),h(),r(),u(),l(),n(),p(),f(),g.forEach(S=>S()),we.length=0})}function rt(e){return typeof window[e]!="undefined"}function st(e){return!!(typeof window[e]!="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class _i{constructor(t){A(this,"iframeIdToRemoteIdMap",new WeakMap),A(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,s,o,i){const a=o||this.getIdToRemoteIdMap(t),c=i||this.getRemoteIdToIdMap(t);let d=a.get(s);return d||(d=this.generateIdFn(),a.set(s,d),c.set(d,s)),d}getIds(t,s){const o=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return s.map(a=>this.getId(t,a,o,i))}getRemoteId(t,s,o){const i=o||this.getRemoteIdToIdMap(t);if(typeof s!="number")return s;const a=i.get(s);return a||-1}getRemoteIds(t,s){const o=this.getRemoteIdToIdMap(t);return s.map(i=>this.getRemoteId(t,i,o))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let s=this.iframeIdToRemoteIdMap.get(t);return s||(s=new Map,this.iframeIdToRemoteIdMap.set(t,s)),s}getRemoteIdToIdMap(t){let s=this.iframeRemoteIdToIdMap.get(t);return s||(s=new Map,this.iframeRemoteIdToIdMap.set(t,s)),s}}class za{constructor(t){A(this,"iframes",new WeakMap),A(this,"crossOriginIframeMap",new WeakMap),A(this,"crossOriginIframeMirror",new _i(zi)),A(this,"crossOriginIframeStyleMirror"),A(this,"crossOriginIframeRootIdMap",new WeakMap),A(this,"mirror"),A(this,"mutationCb"),A(this,"wrappedEmit"),A(this,"loadListener"),A(this,"stylesheetManager"),A(this,"recordCrossOriginIframes"),A(this,"messageHandler"),A(this,"nestedIframeListeners",new Map),A(this,"attachedIframes",new Map),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new _i(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.messageHandler=this.handleMessage.bind(this),this.recordCrossOriginIframes&&window.addEventListener("message",this.messageHandler)}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}removeLoadListener(){this.loadListener=void 0}trackIframeContent(t,s){const o=this.mirror.getId(t);return this.attachedIframes.set(o,{element:t,content:s}),o}attachIframe(t,s){var o;const i=this.trackIframeContent(t,s);this.mutationCb({adds:[{parentId:i,nextId:null,node:s}],removes:[],texts:[],attributes:[],isAttachIframe:!0});const a=t.contentWindow;if(this.recordCrossOriginIframes&&a&&!this.nestedIframeListeners.has(a)){const c=this.handleMessage.bind(this);this.nestedIframeListeners.set(a,c),a.addEventListener("message",c)}(o=this.loadListener)==null||o.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const s=t;if(s.data.type!=="rrweb"||s.origin!==s.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const a=this.transformCrossOriginEvent(i,s.data.event);a&&this.wrappedEmit(a,s.data.isCheckout)}transformCrossOriginEvent(t,s){var o;switch(s.type){case B.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(s.data.node,t);const i=s.data.node.id;return this.crossOriginIframeRootIdMap.set(t,i),this.patchRootIdOnNode(s.data.node,i),this.trackIframeContent(t,s.data.node),{timestamp:s.timestamp,type:B.IncrementalSnapshot,data:{source:F.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:s.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case B.Meta:case B.Load:case B.DomContentLoaded:return!1;case B.Plugin:return s;case B.Custom:return this.replaceIds(s.data.payload,t,["id","parentId","previousId","nextId"]),s;case B.IncrementalSnapshot:switch(s.data.source){case F.Mutation:return s.data.adds.forEach(i=>{this.replaceIds(i,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,t);const a=this.crossOriginIframeRootIdMap.get(t);a&&this.patchRootIdOnNode(i.node,a)}),s.data.removes.forEach(i=>{this.replaceIds(i,t,["parentId","id"])}),s.data.attributes.forEach(i=>{this.replaceIds(i,t,["id"])}),s.data.texts.forEach(i=>{this.replaceIds(i,t,["id"])}),s;case F.Drag:case F.TouchMove:case F.MouseMove:return s.data.positions.forEach(i=>{this.replaceIds(i,t,["id"])}),s;case F.ViewportResize:return!1;case F.MediaInteraction:case F.MouseInteraction:case F.Scroll:case F.CanvasMutation:case F.Input:return this.replaceIds(s.data,t,["id"]),s;case F.StyleSheetRule:case F.StyleDeclaration:return this.replaceIds(s.data,t,["id"]),this.replaceStyleIds(s.data,t,["styleId"]),s;case F.Font:return s;case F.Selection:return s.data.ranges.forEach(i=>{this.replaceIds(i,t,["start","end"])}),s;case F.AdoptedStyleSheet:return this.replaceIds(s.data,t,["id"]),this.replaceStyleIds(s.data,t,["styleIds"]),(o=s.data.styles)==null||o.forEach(i=>{this.replaceStyleIds(i,t,["styleId"])}),s}}return!1}replace(t,s,o,i){for(const a of i)!Array.isArray(s[a])&&typeof s[a]!="number"||(Array.isArray(s[a])?s[a]=t.getIds(o,s[a]):s[a]=t.getId(o,s[a]));return s}replaceIds(t,s,o){return this.replace(this.crossOriginIframeMirror,t,s,o)}replaceStyleIds(t,s,o){return this.replace(this.crossOriginIframeStyleMirror,t,s,o)}replaceIdOnNode(t,s){this.replaceIds(t,s,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(o=>{this.replaceIdOnNode(o,s)})}patchRootIdOnNode(t,s){t.type!==Rn.Document&&!t.rootId&&(t.rootId=s),"childNodes"in t&&t.childNodes.forEach(o=>{this.patchRootIdOnNode(o,s)})}removeIframeById(t){const s=this.attachedIframes.get(t),o=(s==null?void 0:s.element)||this.mirror.getNode(t);if(o){const i=o.contentWindow;if(i&&this.nestedIframeListeners.has(i)){const a=this.nestedIframeListeners.get(i);i.removeEventListener("message",a),this.nestedIframeListeners.delete(i)}i&&this.crossOriginIframeMap.delete(i),this.iframes.delete(o)}s&&this.attachedIframes.delete(t)}reattachIframes(){this.attachedIframes.forEach(({content:t},s)=>{if(!this.mirror.has(s)){this.attachedIframes.delete(s);return}this.mutationCb({adds:[{parentId:s,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0})})}destroy(){this.recordCrossOriginIframes&&window.removeEventListener("message",this.messageHandler),this.nestedIframeListeners.forEach((t,s)=>{s.removeEventListener("message",t)}),this.nestedIframeListeners.clear(),this.crossOriginIframeMirror.reset(),this.crossOriginIframeStyleMirror.reset(),this.attachedIframes.clear(),this.crossOriginIframeMap=new WeakMap,this.iframes=new WeakMap,this.crossOriginIframeRootIdMap=new WeakMap}}class qa{constructor(t){A(this,"shadowDoms",new WeakSet),A(this,"mutationCb"),A(this,"scrollCb"),A(this,"bypassOptions"),A(this,"mirror"),A(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,s){if(!Ue(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const o=In(le(T({},this.bypassOptions),{doc:s,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>o.disconnect()),this.restoreHandlers.push(Mn(le(T({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(L.host(t))),this.restoreHandlers.push(En({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,s){const o=this;this.restoreHandlers.push(Ee(t.prototype,"attachShadow",function(i){return function(a){const c=i.call(this,a),d=L.shadowRoot(this);return d&&xn(this)&&o.addShadowRoot(d,s),c}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(s){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var Fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ja=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var it=0;it<Fe.length;it++)ja[Fe.charCodeAt(it)]=it;var Ha=function(e){var t=new Uint8Array(e),s,o=t.length,i="";for(s=0;s<o;s+=3)i+=Fe[t[s]>>2],i+=Fe[(t[s]&3)<<4|t[s+1]>>4],i+=Fe[(t[s+1]&15)<<2|t[s+2]>>6],i+=Fe[t[s+2]&63];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const ki=new Map;function Va(e,t){let s=ki.get(e);return s||(s=new Map,ki.set(e,s)),s.has(t)||s.set(t,[]),s.get(t)}const An=(e,t,s)=>{if(!e||!(Nn(e,t)||typeof e=="object"))return;const o=e.constructor.name,i=Va(s,o);let a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a};function nt(e,t,s,o){if(e instanceof Array)return e.map(i=>nt(i,t,s,o));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const i=e.constructor.name,a=Ha(e);return{rr_type:i,base64:a}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[nt(e.buffer,t,s,o),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const i=e.constructor.name,{src:a}=e;return{rr_type:i,src:a}}else if(e instanceof HTMLCanvasElement){const i="HTMLImageElement",a=e.toDataURL(o.type,o.quality);return{rr_type:i,src:a}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[nt(e.data,t,s,o),e.width,e.height]};if(Nn(e,t)||typeof e=="object"){const i=e.constructor.name,a=An(e,t,s);return{rr_type:i,index:a}}}}return e}const Pn=(e,t,s,o)=>e.map(i=>nt(i,t,s,o)),Nn=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function Ga(e,t,s,o,i){const a=[],c=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const d of c)try{if(typeof t.CanvasRenderingContext2D.prototype[d]!="function")continue;const m=Ee(t.CanvasRenderingContext2D.prototype,d,function(h){return function(...r){return se(this.canvas,s,o,!0)||setTimeout(()=>{const u=Pn(r,t,this,i);e(this.canvas,{type:$e["2D"],property:d,args:u})},0),h.apply(this,r)}});a.push(m)}catch(m){const h=vt(t.CanvasRenderingContext2D.prototype,d,{set(r){e(this.canvas,{type:$e["2D"],property:d,args:[r],setter:!0})}});a.push(h)}return()=>{a.forEach(d=>d())}}function Ja(e){return e==="experimental-webgl"?"webgl":e}function Di(e,t,s,o){const i=[];try{const a=Ee(e.HTMLCanvasElement.prototype,"getContext",function(c){return function(d,...m){if(!se(this,t,s,!0)){const h=Ja(d);if("__context"in this||(this.__context=h),o&&["webgl","webgl2"].includes(h))if(m[0]&&typeof m[0]=="object"){const r=m[0];r.preserveDrawingBuffer||(r.preserveDrawingBuffer=!0)}else m.splice(0,1,{preserveDrawingBuffer:!0})}return c.apply(this,[d,...m])}});i.push(a)}catch(a){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(a=>a())}}function Li(e,t,s,o,i,a,c){const d=[],m=Object.getOwnPropertyNames(e);for(const h of m)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(h))try{if(typeof e[h]!="function")continue;const r=Ee(e,h,function(u){return function(...l){const n=u.apply(this,l);if(An(n,a,this),"tagName"in this.canvas&&!se(this.canvas,o,i,!0)){const p=Pn(l,a,this,c),f={type:t,property:h,args:p};s(this.canvas,f)}return n}});d.push(r)}catch(r){const u=vt(e,h,{set(l){s(this.canvas,{type:t,property:h,args:[l],setter:!0})}});d.push(u)}return d}function Ya(e,t,s,o,i){const a=[];return a.push(...Li(t.WebGLRenderingContext.prototype,$e.WebGL,e,s,o,t,i)),typeof t.WebGL2RenderingContext!="undefined"&&a.push(...Li(t.WebGL2RenderingContext.prototype,$e.WebGL2,e,s,o,t,i)),()=>{a.forEach(c=>c())}}const _n=`(function() {
59
59
  "use strict";
60
60
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
61
61
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
@@ -130,7 +130,7 @@ or you can use record.mirror to access the mirror instance during recording.`;le
130
130
  };
131
131
  })();
132
132
  //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
133
- `,Di=typeof self!="undefined"&&self.Blob&&new Blob([Nn],{type:"text/javascript;charset=utf-8"});function Ja(e){let t;try{if(t=Di&&(self.URL||self.webkitURL).createObjectURL(Di),!t)throw"";const s=new Worker(t,{name:e==null?void 0:e.name});return s.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),s}catch(s){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Nn),{name:e==null?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}class Ya{constructor(t){P(this,"pendingCanvasMutations",new Map),P(this,"rafStamps",{latestId:0,invokeId:null}),P(this,"mirror"),P(this,"mutationCb"),P(this,"resetObservers"),P(this,"frozen",!1),P(this,"locked",!1),P(this,"rafIdTimestamp",null),P(this,"rafIdFlush",null),P(this,"processMutation",(m,h)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(m)||this.pendingCanvasMutations.set(m,[]),this.pendingCanvasMutations.get(m).push(h)});const{sampling:s="all",win:o,blockClass:i,blockSelector:a,recordCanvas:c,dataURLOptions:d}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&s==="all"&&this.initCanvasMutationObserver(o,i,a,d),c&&typeof s=="number"&&this.initCanvasFPSObserver(s,o,i,a,{dataURLOptions:d})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers(),this.rafIdTimestamp!==null&&(cancelAnimationFrame(this.rafIdTimestamp),this.rafIdTimestamp=null),this.rafIdFlush!==null&&(cancelAnimationFrame(this.rafIdFlush),this.rafIdFlush=null)}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,s,o,i,a){const c=ki(s,o,i,!0),d=new Map,m=new Ja;m.onmessage=p=>{const{id:f}=p.data;if(d.set(f,!1),!("base64"in p.data))return;const{base64:g,type:S,width:w,height:v}=p.data;this.mutationCb({id:f,type:$e["2D"],commands:[{property:"clearRect",args:[0,0,w,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:S}]},0,0]}]})};const h=1e3/t;let r=0,u;const l=()=>{const p=[],f=g=>{g.querySelectorAll("canvas").forEach(S=>{ie(S,o,i,!0)||p.push(S)}),g.querySelectorAll("*").forEach(S=>{S.shadowRoot&&f(S.shadowRoot)})};return f(s.document),p},n=p=>{if(r&&p-r<h){u=requestAnimationFrame(n);return}r=p,l().forEach(async f=>{var g;const S=this.mirror.getId(f);if(d.get(S)||f.width===0||f.height===0)return;if(d.set(S,!0),["webgl","webgl2"].includes(f.__context)){const y=f.getContext(f.__context);((g=y==null?void 0:y.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&y.clear(y.COLOR_BUFFER_BIT)}const w=f.clientWidth||f.width,v=f.clientHeight||f.height,x=await createImageBitmap(f,{resizeWidth:w,resizeHeight:v});m.postMessage({id:S,bitmap:x,width:w,height:v,dataURLOptions:a.dataURLOptions},[x])}),u=requestAnimationFrame(n)};u=requestAnimationFrame(n),this.resetObservers=()=>{c(),cancelAnimationFrame(u)}}initCanvasMutationObserver(t,s,o,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=ki(t,s,o,!1),c=Ha(this.processMutation.bind(this),t,s,o,i),d=Ga(this.processMutation.bind(this),t,s,o,i);this.resetObservers=()=>{a(),c(),d()}}startPendingCanvasMutationFlusher(){this.rafIdFlush=requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=s=>{this.rafStamps.latestId=s,this.rafIdTimestamp=requestAnimationFrame(t)};this.rafIdTimestamp=requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,s)=>{const o=this.mirror.getId(s);this.flushPendingCanvasMutationFor(s,o)}),this.rafIdFlush=requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,s){if(this.frozen||this.locked)return;const o=this.pendingCanvasMutations.get(t);if(!o||s===-1)return;const i=o.map(c=>{const h=c,{type:d}=h;return Ne(h,["type"])}),{type:a}=o[0];this.mutationCb({id:s,type:a,commands:i}),this.pendingCanvasMutations.delete(t)}}class Za{constructor(t){P(this,"trackedLinkElements",new WeakSet),P(this,"mutationCb"),P(this,"adoptedStyleSheetCb"),P(this,"styleMirror",new wa),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,s){"_cssText"in s.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:s.id,attributes:s.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,s){if(t.length===0)return;const o={id:s,styleIds:[]},i=[];for(const a of t){let c;this.styleMirror.has(a)?c=this.styleMirror.getId(a):(c=this.styleMirror.add(a),i.push({styleId:c,rules:Array.from(a.rules||CSSRule,(d,m)=>({rule:$i(d,a.href),index:m}))})),o.styleIds.push(c)}i.length>0&&(o.styles=i),this.adoptedStyleSheetCb(o)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Qa{constructor(){P(this,"nodeMap",new WeakMap),P(this,"active",!1)}inOtherBuffer(t,s){const o=this.nodeMap.get(t);return o&&Array.from(o).some(i=>i!==s)}add(t,s){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(s))}destroy(){}}let H,ot,_r,ft=!1;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((os=e.contentWindow)==null?void 0:os.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const ce=io();function xe(e={}){const{emit:t,checkoutEveryNms:s,checkoutEveryNth:o,blockClass:i="rr-block",blockSelector:a=null,ignoreClass:c="rr-ignore",ignoreSelector:d=null,maskTextClass:m="rr-mask",maskTextSelector:h=null,inlineStylesheet:r=!0,maskAllInputs:u,maskInputOptions:l,slimDOMOptions:n,maskInputFn:p,maskTextFn:f,hooks:g,packFn:S,sampling:w={},dataURLOptions:v={},mousemoveWait:x,recordDOM:y=!0,recordCanvas:b=!1,recordCrossOriginIframes:C=!1,recordAfter:R=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:O=!1,inlineImages:N=!1,plugins:A,keepIframeSrcFn:ee=()=>!1,ignoreCSSAttributes:te=new Set([]),errorHandler:I}=e;Oa(I);const X=L({type:"image/webp",quality:.4,maxBase64ImageLength:1048576},v),T=C?window.parent===window:!0;let B=!1;if(!T)try{window.parent.document&&(B=!1)}catch(_){B=!0}if(T&&!t)throw new Error("emit function is required");if(!T&&!B)return()=>{};x!==void 0&&w.mousemove===void 0&&(w.mousemove=x),ce.reset();const K=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}:l!==void 0?l:{password:!0},V=n===!0||n==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:n==="all",headMetaDescKeywords:n==="all",headTitleMutations:n==="all"}:n||{};ya();let be,me=0;const E=_=>{for(const G of A||[])G.eventProcessor&&(_=G.eventProcessor(_));return S&&!B&&(_=S(_)),_};H=(_,G)=>{var W;const J=_;if(J.timestamp=ct(),(W=we[0])!=null&&W.isFrozen()&&J.type!==$.FullSnapshot&&!(J.type===$.IncrementalSnapshot&&J.data.source===D.Mutation)&&we.forEach(fe=>fe.unfreeze()),T)t==null||t(E(J),G);else if(B){const fe={type:"rrweb",event:E(J),origin:window.location.origin,isCheckout:G};window.parent.postMessage(fe,"*")}if(J.type===$.FullSnapshot)be=J,me=0;else if(J.type===$.IncrementalSnapshot){if(J.data.source===D.Mutation&&J.data.isAttachIframe)return;me++;const fe=o&&me>=o,Pe=s&&J.timestamp-be.timestamp>s;(fe||Pe)&&ot(!0)}};const oe=_=>{if(C&&_.removes&&_.removes.length>0){const G=_.adds.length>0?new Set(_.adds.map(W=>W.node.id)):null;_.removes.forEach(({id:W})=>{(!G||!G.has(W))&&re.removeIframeById(W)})}H({type:$.IncrementalSnapshot,data:L({source:D.Mutation},_)})},ae=_=>H({type:$.IncrementalSnapshot,data:L({source:D.Scroll},_)}),Ae=_=>H({type:$.IncrementalSnapshot,data:L({source:D.CanvasMutation},_)}),ge=_=>H({type:$.IncrementalSnapshot,data:L({source:D.AdoptedStyleSheet},_)}),he=new Za({mutationCb:oe,adoptedStyleSheetCb:ge}),re=new Ua({mirror:ce,mutationCb:oe,stylesheetManager:he,recordCrossOriginIframes:C,wrappedEmit:H});for(const _ of A||[])_.getMirror&&_.getMirror({nodeMirror:ce,crossOriginIframeMirror:re.crossOriginIframeMirror,crossOriginIframeStyleMirror:re.crossOriginIframeStyleMirror});const Re=new Qa;_r=new Ya({recordCanvas:b,mutationCb:Ae,win:window,blockClass:i,blockSelector:a,mirror:ce,sampling:w.canvas,dataURLOptions:X});const Y=new Wa({mutationCb:oe,scrollCb:ae,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:m,maskTextSelector:h,inlineStylesheet:r,maskInputOptions:K,dataURLOptions:X,maskTextFn:f,maskInputFn:p,recordCanvas:b,inlineImages:N,sampling:w,slimDOMOptions:V,iframeManager:re,stylesheetManager:he,canvasManager:_r,keepIframeSrcFn:ee,processedNodeManager:Re},mirror:ce});ot=(_=!1)=>{if(!y)return;H({type:$.Meta,data:{href:window.location.href,width:gn(),height:mn()}},_),he.reset(),Y.init(),we.forEach(W=>W.lock());const G=No(document,{mirror:ce,blockClass:i,blockSelector:a,maskTextClass:m,maskTextSelector:h,inlineStylesheet:r,maskAllInputs:K,maskTextFn:f,maskInputFn:p,slimDOM:V,dataURLOptions:X,recordCanvas:b,inlineImages:N,onSerialize:W=>{bn(W,ce)&&re.addIframe(W),Sn(W,ce)&&he.trackLinkElement(W),Lr(W)&&Y.addShadowRoot(k.shadowRoot(W),document)},onIframeLoad:(W,J)=>{re.attachIframe(W,J),Y.observeAttachShadow(W)},onStylesheetLoad:(W,J)=>{he.attachLinkElement(W,J)},keepIframeSrcFn:ee});if(!G)return console.warn("Failed to snapshot the document");H({type:$.FullSnapshot,data:{node:G,initialOffset:dn(window)}},_),we.forEach(W=>W.unlock()),C&&re.reattachIframes(),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&he.adoptStyleSheets(document.adoptedStyleSheets,ce.getId(document))};try{const _=[],G=fe=>{var Pe;return F(Ba)({mutationCb:oe,mousemoveCb:(z,Ct)=>H({type:$.IncrementalSnapshot,data:{source:Ct,positions:z}}),mouseInteractionCb:z=>H({type:$.IncrementalSnapshot,data:L({source:D.MouseInteraction},z)}),scrollCb:ae,viewportResizeCb:z=>H({type:$.IncrementalSnapshot,data:L({source:D.ViewportResize},z)}),inputCb:z=>H({type:$.IncrementalSnapshot,data:L({source:D.Input},z)}),mediaInteractionCb:z=>H({type:$.IncrementalSnapshot,data:L({source:D.MediaInteraction},z)}),styleSheetRuleCb:z=>H({type:$.IncrementalSnapshot,data:L({source:D.StyleSheetRule},z)}),styleDeclarationCb:z=>H({type:$.IncrementalSnapshot,data:L({source:D.StyleDeclaration},z)}),canvasMutationCb:Ae,fontCb:z=>H({type:$.IncrementalSnapshot,data:L({source:D.Font},z)}),selectionCb:z=>{H({type:$.IncrementalSnapshot,data:L({source:D.Selection},z)})},customElementCb:z=>{H({type:$.IncrementalSnapshot,data:L({source:D.CustomElement},z)})},blockClass:i,ignoreClass:c,ignoreSelector:d,maskTextClass:m,maskTextSelector:h,maskInputOptions:K,inlineStylesheet:r,sampling:w,recordDOM:y,recordCanvas:b,inlineImages:N,userTriggeredOnInput:M,collectFonts:O,doc:fe,maskInputFn:p,maskTextFn:f,keepIframeSrcFn:ee,blockSelector:a,slimDOMOptions:V,dataURLOptions:X,mirror:ce,iframeManager:re,stylesheetManager:he,shadowDomManager:Y,processedNodeManager:Re,canvasManager:_r,ignoreCSSAttributes:te,plugins:((Pe=A==null?void 0:A.filter(z=>z.observer))==null?void 0:Pe.map(z=>({observer:z.observer,options:z.options,callback:Ct=>H({type:$.Plugin,data:{plugin:z.name,payload:Ct}})})))||[]},g)},W=fe=>{try{_.push(G(fe.contentDocument))}catch(Pe){console.warn(Pe)}};re.addLoadListener(W);const J=()=>{ot(),_.push(G(document)),ft=!0};return document.readyState==="interactive"||document.readyState==="complete"?J():(_.push(se("DOMContentLoaded",()=>{H({type:$.DomContentLoaded,data:{}}),R==="DOMContentLoaded"&&J()})),_.push(se("load",()=>{H({type:$.Load,data:{}}),R==="load"&&J()},window))),()=>{_.forEach(fe=>fe()),Re.destroy(),re.removeLoadListener(),re.destroy(),ce.reset(),ft=!1,Ia()}}catch(_){console.warn(_)}}xe.addCustomEvent=(e,t)=>{if(!ft)throw new Error("please add custom event after start recording");H({type:$.Custom,data:{tag:e,payload:t}})};xe.freezePage=()=>{we.forEach(e=>e.freeze())};xe.takeFullSnapshot=e=>{if(!ft)throw new Error("please take full snapshot after start recording");ot(e)};xe.mirror=ce;var Ti;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ti||(Ti={}));const{addCustomEvent:Ka}=xe,{freezePage:el}=xe,{takeFullSnapshot:tl}=xe;exports.record=xe;
133
+ `,Ti=typeof self!="undefined"&&self.Blob&&new Blob([_n],{type:"text/javascript;charset=utf-8"});function Za(e){let t;try{if(t=Ti&&(self.URL||self.webkitURL).createObjectURL(Ti),!t)throw"";const s=new Worker(t,{name:e==null?void 0:e.name});return s.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),s}catch(s){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(_n),{name:e==null?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}class Xa{constructor(t){A(this,"pendingCanvasMutations",new Map),A(this,"rafStamps",{latestId:0,invokeId:null}),A(this,"mirror"),A(this,"mutationCb"),A(this,"resetObservers"),A(this,"frozen",!1),A(this,"locked",!1),A(this,"rafIdTimestamp",null),A(this,"rafIdFlush",null),A(this,"processMutation",(m,h)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(m)||this.pendingCanvasMutations.set(m,[]),this.pendingCanvasMutations.get(m).push(h)});const{sampling:s="all",win:o,blockClass:i,blockSelector:a,recordCanvas:c,dataURLOptions:d}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&s==="all"&&this.initCanvasMutationObserver(o,i,a,d),c&&typeof s=="number"&&this.initCanvasFPSObserver(s,o,i,a,{dataURLOptions:d})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers(),this.rafIdTimestamp!==null&&(cancelAnimationFrame(this.rafIdTimestamp),this.rafIdTimestamp=null),this.rafIdFlush!==null&&(cancelAnimationFrame(this.rafIdFlush),this.rafIdFlush=null)}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,s,o,i,a){const c=Di(s,o,i,!0),d=new Map,m=new Za;m.onmessage=p=>{const{id:f}=p.data;if(d.set(f,!1),!("base64"in p.data))return;const{base64:g,type:S,width:w,height:v}=p.data;this.mutationCb({id:f,type:$e["2D"],commands:[{property:"clearRect",args:[0,0,w,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:S}]},0,0]}]})};const h=1e3/t;let r=0,u;const l=()=>{const p=[],f=g=>{g.querySelectorAll("canvas").forEach(S=>{se(S,o,i,!0)||p.push(S)}),g.querySelectorAll("*").forEach(S=>{S.shadowRoot&&f(S.shadowRoot)})};return f(s.document),p},n=p=>{if(r&&p-r<h){u=requestAnimationFrame(n);return}r=p,l().forEach(async f=>{var g;const S=this.mirror.getId(f);if(d.get(S)||f.width===0||f.height===0)return;if(d.set(S,!0),["webgl","webgl2"].includes(f.__context)){const y=f.getContext(f.__context);((g=y==null?void 0:y.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&y.clear(y.COLOR_BUFFER_BIT)}const w=f.clientWidth||f.width,v=f.clientHeight||f.height,x=await createImageBitmap(f,{resizeWidth:w,resizeHeight:v});m.postMessage({id:S,bitmap:x,width:w,height:v,dataURLOptions:a.dataURLOptions},[x])}),u=requestAnimationFrame(n)};u=requestAnimationFrame(n),this.resetObservers=()=>{c(),cancelAnimationFrame(u)}}initCanvasMutationObserver(t,s,o,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=Di(t,s,o,!1),c=Ga(this.processMutation.bind(this),t,s,o,i),d=Ya(this.processMutation.bind(this),t,s,o,i);this.resetObservers=()=>{a(),c(),d()}}startPendingCanvasMutationFlusher(){this.rafIdFlush=requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=s=>{this.rafStamps.latestId=s,this.rafIdTimestamp=requestAnimationFrame(t)};this.rafIdTimestamp=requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,s)=>{const o=this.mirror.getId(s);this.flushPendingCanvasMutationFor(s,o)}),this.rafIdFlush=requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,s){if(this.frozen||this.locked)return;const o=this.pendingCanvasMutations.get(t);if(!o||s===-1)return;const i=o.map(c=>{const h=c,{type:d}=h;return Ne(h,["type"])}),{type:a}=o[0];this.mutationCb({id:s,type:a,commands:i}),this.pendingCanvasMutations.delete(t)}}class Qa{constructor(t){A(this,"trackedLinkElements",new WeakSet),A(this,"mutationCb"),A(this,"adoptedStyleSheetCb"),A(this,"styleMirror",new Sa),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,s){"_cssText"in s.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:s.id,attributes:s.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,s){if(t.length===0)return;const o={id:s,styleIds:[]},i=[];for(const a of t){let c;this.styleMirror.has(a)?c=this.styleMirror.getId(a):(c=this.styleMirror.add(a),i.push({styleId:c,rules:Array.from(a.rules||CSSRule,(d,m)=>({rule:Bi(d,a.href),index:m}))})),o.styleIds.push(c)}i.length>0&&(o.styles=i),this.adoptedStyleSheetCb(o)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Ka{constructor(){A(this,"nodeMap",new WeakMap),A(this,"active",!1)}inOtherBuffer(t,s){const o=this.nodeMap.get(t);return o&&Array.from(o).some(i=>i!==s)}add(t,s){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(s))}destroy(){}}let G,ot,_r,ft=!1;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((os=e.contentWindow)==null?void 0:os.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const ce=no();function xe(e={}){const{emit:t,checkoutEveryNms:s,checkoutEveryNth:o,blockClass:i="rr-block",blockSelector:a=null,ignoreClass:c="rr-ignore",ignoreSelector:d=null,maskTextClass:m="rr-mask",maskTextSelector:h=null,inlineStylesheet:r=!0,maskAllInputs:u,maskInputOptions:l,slimDOMOptions:n,maskInputFn:p,maskTextFn:f,hooks:g,packFn:S,sampling:w={},dataURLOptions:v={},mousemoveWait:x,recordDOM:y=!0,recordCanvas:b=!1,recordCrossOriginIframes:C=!1,recordAfter:R=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:O=!1,inlineImages:N=!1,plugins:P,keepIframeSrcFn:ee=()=>!1,ignoreCSSAttributes:D=new Set([]),errorHandler:I}=e;Ma(I);const ie=T({type:"image/webp",quality:.4,maxBase64ImageLength:1048576},v),_=C?window.parent===window:!0;let U=!1;if(!_)try{window.parent.document&&(U=!1)}catch(k){U=!0}if(_&&!t)throw new Error("emit function is required");if(!_&&!U)return()=>{};x!==void 0&&w.mousemove===void 0&&(w.mousemove=x),ce.reset();const J=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}:l!==void 0?l:{password:!0},W=n===!0||n==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:n==="all",headMetaDescKeywords:n==="all",headTitleMutations:n==="all"}:n||{};ba();let be,me=0;const E=k=>{for(const Y of P||[])Y.eventProcessor&&(k=Y.eventProcessor(k));return S&&!U&&(k=S(k)),k};G=(k,Y)=>{var q;const Z=k;if(Z.timestamp=ct(),(q=we[0])!=null&&q.isFrozen()&&Z.type!==B.FullSnapshot&&!(Z.type===B.IncrementalSnapshot&&Z.data.source===F.Mutation)&&we.forEach(fe=>fe.unfreeze()),_)t==null||t(E(Z),Y);else if(U){const fe={type:"rrweb",event:E(Z),origin:window.location.origin,isCheckout:Y};window.parent.postMessage(fe,"*")}if(Z.type===B.FullSnapshot)be=Z,me=0;else if(Z.type===B.IncrementalSnapshot){if(Z.data.source===F.Mutation&&Z.data.isAttachIframe)return;me++;const fe=o&&me>=o,Pe=s&&Z.timestamp-be.timestamp>s;(fe||Pe)&&ot(!0)}};const oe=k=>{if(C&&k.removes&&k.removes.length>0){const Y=k.adds.length>0?new Set(k.adds.map(q=>q.node.id)):null;k.removes.forEach(({id:q})=>{(!Y||!Y.has(q))&&te.removeIframeById(q)})}G({type:B.IncrementalSnapshot,data:T({source:F.Mutation},k)})},ae=k=>G({type:B.IncrementalSnapshot,data:T({source:F.Scroll},k)}),Ae=k=>G({type:B.IncrementalSnapshot,data:T({source:F.CanvasMutation},k)}),ge=k=>G({type:B.IncrementalSnapshot,data:T({source:F.AdoptedStyleSheet},k)}),he=new Qa({mutationCb:oe,adoptedStyleSheetCb:ge}),te=new za({mirror:ce,mutationCb:oe,stylesheetManager:he,recordCrossOriginIframes:C,wrappedEmit:G});for(const k of P||[])k.getMirror&&k.getMirror({nodeMirror:ce,crossOriginIframeMirror:te.crossOriginIframeMirror,crossOriginIframeStyleMirror:te.crossOriginIframeStyleMirror});const Re=new Ka;_r=new Xa({recordCanvas:b,mutationCb:Ae,win:window,blockClass:i,blockSelector:a,mirror:ce,sampling:w.canvas,dataURLOptions:ie});const X=new qa({mutationCb:oe,scrollCb:ae,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:m,maskTextSelector:h,inlineStylesheet:r,maskInputOptions:J,dataURLOptions:ie,maskTextFn:f,maskInputFn:p,recordCanvas:b,inlineImages:N,sampling:w,slimDOMOptions:W,iframeManager:te,stylesheetManager:he,canvasManager:_r,keepIframeSrcFn:ee,processedNodeManager:Re},mirror:ce});ot=(k=!1)=>{if(!y)return;G({type:B.Meta,data:{href:window.location.href,width:yn(),height:gn()}},k),he.reset(),X.init(),we.forEach(q=>q.lock());const Y=ko(document,{mirror:ce,blockClass:i,blockSelector:a,maskTextClass:m,maskTextSelector:h,inlineStylesheet:r,maskAllInputs:J,maskTextFn:f,maskInputFn:p,slimDOM:W,dataURLOptions:ie,recordCanvas:b,inlineImages:N,onSerialize:q=>{Sn(q,ce)&&te.addIframe(q),vn(q,ce)&&he.trackLinkElement(q),Dr(q)&&X.addShadowRoot(L.shadowRoot(q),document)},onIframeLoad:(q,Z)=>{te.attachIframe(q,Z),X.observeAttachShadow(q)},onStylesheetLoad:(q,Z)=>{he.attachLinkElement(q,Z)},keepIframeSrcFn:ee});if(!Y)return console.warn("Failed to snapshot the document");G({type:B.FullSnapshot,data:{node:Y,initialOffset:mn(window)}},k),we.forEach(q=>q.unlock()),C&&te.reattachIframes(),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&he.adoptStyleSheets(document.adoptedStyleSheets,ce.getId(document))};try{const k=[],Y=fe=>{var Pe;return $(Wa)({mutationCb:oe,mousemoveCb:(j,Ct)=>G({type:B.IncrementalSnapshot,data:{source:Ct,positions:j}}),mouseInteractionCb:j=>G({type:B.IncrementalSnapshot,data:T({source:F.MouseInteraction},j)}),scrollCb:ae,viewportResizeCb:j=>G({type:B.IncrementalSnapshot,data:T({source:F.ViewportResize},j)}),inputCb:j=>G({type:B.IncrementalSnapshot,data:T({source:F.Input},j)}),mediaInteractionCb:j=>G({type:B.IncrementalSnapshot,data:T({source:F.MediaInteraction},j)}),styleSheetRuleCb:j=>G({type:B.IncrementalSnapshot,data:T({source:F.StyleSheetRule},j)}),styleDeclarationCb:j=>G({type:B.IncrementalSnapshot,data:T({source:F.StyleDeclaration},j)}),canvasMutationCb:Ae,fontCb:j=>G({type:B.IncrementalSnapshot,data:T({source:F.Font},j)}),selectionCb:j=>{G({type:B.IncrementalSnapshot,data:T({source:F.Selection},j)})},customElementCb:j=>{G({type:B.IncrementalSnapshot,data:T({source:F.CustomElement},j)})},blockClass:i,ignoreClass:c,ignoreSelector:d,maskTextClass:m,maskTextSelector:h,maskInputOptions:J,inlineStylesheet:r,sampling:w,recordDOM:y,recordCanvas:b,inlineImages:N,userTriggeredOnInput:M,collectFonts:O,doc:fe,maskInputFn:p,maskTextFn:f,keepIframeSrcFn:ee,blockSelector:a,slimDOMOptions:W,dataURLOptions:ie,mirror:ce,iframeManager:te,stylesheetManager:he,shadowDomManager:X,processedNodeManager:Re,canvasManager:_r,ignoreCSSAttributes:D,plugins:((Pe=P==null?void 0:P.filter(j=>j.observer))==null?void 0:Pe.map(j=>({observer:j.observer,options:j.options,callback:Ct=>G({type:B.Plugin,data:{plugin:j.name,payload:Ct}})})))||[]},g)},q=fe=>{try{k.push(Y(fe.contentDocument))}catch(Pe){console.warn(Pe)}};te.addLoadListener(q);const Z=()=>{ot(),k.push(Y(document)),ft=!0};return document.readyState==="interactive"||document.readyState==="complete"?Z():(k.push(re("DOMContentLoaded",()=>{G({type:B.DomContentLoaded,data:{}}),R==="DOMContentLoaded"&&Z()})),k.push(re("load",()=>{G({type:B.Load,data:{}}),R==="load"&&Z()},window))),()=>{k.forEach(fe=>fe()),Re.destroy(),te.removeLoadListener(),te.destroy(),ce.reset(),ft=!1,Ea()}}catch(k){console.warn(k)}}xe.addCustomEvent=(e,t)=>{if(!ft)throw new Error("please add custom event after start recording");G({type:B.Custom,data:{tag:e,payload:t}})};xe.freezePage=()=>{we.forEach(e=>e.freeze())};xe.takeFullSnapshot=e=>{if(!ft)throw new Error("please take full snapshot after start recording");ot(e)};xe.mirror=ce;var Fi;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Fi||(Fi={}));const{addCustomEvent:tl}=xe,{freezePage:rl}=xe,{takeFullSnapshot:sl}=xe;exports.record=xe;
134
134
  ;if (typeof module.exports == "object" && typeof exports == "object") {
135
135
  var __cp = (to, from, except, desc) => {
136
136
  if ((from && typeof from === "object") || typeof from === "function") {