@appsurify-testmap/rrweb-all 2.0.0-alpha.31 → 2.0.0-alpha.32

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.
@@ -11,7 +11,7 @@
11
11
  }(this, () => {
12
12
  var exports = {};
13
13
  var module = { exports };
14
- "use strict";var Fl=Object.defineProperty,Bl=Object.defineProperties;var Ul=Object.getOwnPropertyDescriptors;var Qt=Object.getOwnPropertySymbols;var un=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable;var ln=(s,e,t)=>e in s?Fl(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,T=(s,e)=>{for(var t in e||(e={}))un.call(e,t)&&ln(s,t,e[t]);if(Qt)for(var t of Qt(e))cn.call(e,t)&&ln(s,t,e[t]);return s},ne=(s,e)=>Bl(s,Ul(e));var st=(s,e)=>{var t={};for(var r in s)un.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&Qt)for(var r of Qt(s))e.indexOf(r)<0&&cn.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Wl=Object.defineProperty,zl=(s,e,t)=>e in s?Wl(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,w=(s,e,t)=>zl(s,typeof e!="symbol"?e+"":e,t),hn,Vl=Object.defineProperty,Gl=(s,e,t)=>e in s?Vl(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,fn=(s,e,t)=>Gl(s,typeof e!="symbol"?e+"":e,t),_=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(_||{});const dn={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},pn={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},qt={},jl=()=>!!globalThis.Zone;function pi(s){if(qt[s])return qt[s];const e=globalThis[s],t=e.prototype,r=s in dn?dn[s]:void 0,i=!!(r&&r.every(a=>{var l,u;return!!((u=(l=Object.getOwnPropertyDescriptor(t,a))==null?void 0:l.get)!=null&&u.toString().includes("[native code]"))})),n=s in pn?pn[s]:void 0,o=!!(n&&n.every(a=>{var l;return typeof t[a]=="function"&&((l=t[a])==null?void 0:l.toString().includes("[native code]"))}));if(i&&o&&!jl())return qt[s]=e.prototype,e.prototype;try{const a=document.createElement("iframe");document.body.appendChild(a);const l=a.contentWindow;if(!l)return e.prototype;const u=l[s].prototype;return document.body.removeChild(a),u?qt[s]=u:t}catch(a){return t}}const as={};function je(s,e,t){var r;const i=`${s}.${String(t)}`;if(as[i])return as[i].call(e);const n=pi(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(as[i]=o,o.call(e)):e[t]}const ls={};function Ao(s,e,t){const r=`${s}.${String(t)}`;if(ls[r])return ls[r].bind(e);const n=pi(s)[t];return typeof n!="function"?e[t]:(ls[r]=n,n.bind(e))}function Hl(s){return je("Node",s,"childNodes")}function Yl(s){return je("Node",s,"parentNode")}function Zl(s){return je("Node",s,"parentElement")}function Xl(s){return je("Node",s,"textContent")}function Jl(s,e){return Ao("Node",s,"contains")(e)}function Kl(s){return Ao("Node",s,"getRootNode")()}function Ql(s){return!s||!("host"in s)?null:je("ShadowRoot",s,"host")}function ql(s){return s.styleSheets}function eu(s){return!s||!("shadowRoot"in s)?null:je("Element",s,"shadowRoot")}function tu(s,e){return je("Element",s,"querySelector")(e)}function ru(s,e){return je("Element",s,"querySelectorAll")(e)}function su(){return pi("MutationObserver").constructor}const ce={childNodes:Hl,parentNode:Yl,parentElement:Zl,textContent:Xl,contains:Jl,getRootNode:Kl,host:Ql,styleSheets:ql,shadowRoot:eu,querySelector:tu,querySelectorAll:ru,mutationObserver:su};function Ot(s){const e=s&&"host"in s&&"mode"in s&&ce.host(s)||null;return!!(e&&"shadowRoot"in e&&ce.shadowRoot(e)===s)}function Tt(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function iu(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function nu(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function Ms(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>Oo(i,t)).join("");return iu(r)}catch(e){return null}}function Oo(s,e){if(au(s)){let t;try{t=Ms(s.styleSheet)||nu(s)}catch(r){t=s.cssText}return s.styleSheet.href?Or(t,s.styleSheet.href):t}else{let t=s.cssText;return lu(s)&&s.selectorText.includes(":")&&(t=ou(t)),e?Or(t,e):t}}function ou(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function au(s){return"styleSheet"in s}function lu(s){return"selectorText"in s}class mi{constructor(){fn(this,"idNodeMap",new Map),fn(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function To(){return new mi}function gi({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let o=i||"";const a=r&&Ve(r);return(e[t.toLowerCase()]||a&&e[a])&&(n?o=n(o,s):o="*".repeat(o.length)),o}function Ve(s){return s.toLowerCase()}const mn="__rrweb_original__";function uu(s){const e=s.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<s.width;r+=t)for(let i=0;i<s.height;i+=t){const n=e.getImageData,o=mn in n?n[mn]:n;if(new Uint32Array(o.call(e,r,i,Math.min(t,s.width-r),Math.min(t,s.height-i)).data.buffer).some(l=>l!==0))return!1}return!0}function cu(s,e){return!s||!e||s.type!==e.type?!1:s.type===_.Document?s.compatMode===e.compatMode:s.type===_.DocumentType?s.name===e.name&&s.publicId===e.publicId&&s.systemId===e.systemId:s.type===_.Comment||s.type===_.Text||s.type===_.CDATA?s.textContent===e.textContent:s.type===_.Element?s.tagName===e.tagName&&JSON.stringify(s.attributes)===JSON.stringify(e.attributes)&&s.isSVG===e.isSVG&&s.needBlock===e.needBlock:!1}function yi(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?Ve(e):null}function Do(s,e){var n;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(o){return null}const r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(n=i==null?void 0:i[1])!=null?n:null}function hu(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const fu=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,du=/^(?:[a-z+]+:)?\/\//i,pu=/^www\..*/i,mu=/^(data:)([^,]*),(.*)/i;function Or(s,e){return(s||"").replace(fu,(t,r,i,n,o,a)=>{const l=i||o||a,u=r||n||"";if(!l)return t;if(du.test(l)||pu.test(l))return`url(${u}${l}${u})`;if(mu.test(l))return`url(${u}${l}${u})`;if(l[0]==="/")return`url(${u}${hu(e)+l}${u})`;const c=e.split("/"),h=l.split("/");c.pop();for(const f of h)f!=="."&&(f===".."?c.pop():c.push(f));return`url(${u}${c.join("/")}${u})`})}function us(s){return s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function gu(s,e){const t=Array.from(e.childNodes),r=[];let i=0;if(t.length>1&&s&&typeof s=="string"){let n=us(s);const o=n.length/s.length;for(let a=1;a<t.length;a++)if(t[a].textContent&&typeof t[a].textContent=="string"){const l=us(t[a].textContent);let u=3;for(;u<l.length&&(l[u].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,u),1)!==-1);u++);for(;u<l.length;u++){const c=l.substring(0,u),h=n.split(c);let f=-1;if(h.length===2?f=n.indexOf(c):h.length>2&&h[0]===""&&t[a-1].textContent!==""&&(f=n.indexOf(c,1)),f!==-1){let p=Math.floor(f/o);for(;p>0&&p<s.length;){if(i+=1,i>50*t.length)return r.push(s),r;const m=us(s.substring(0,p));if(m.length===f){r.push(s.substring(0,p)),s=s.substring(p),n=n.substring(f);break}else m.length<f?p+=Math.max(1,Math.floor((f-m.length)/o)):p-=Math.max(1,Math.floor((m.length-f)*o))}break}}}}return r.push(s),r}function yu(s,e){return gu(s,e).join("/* rr_split */")}function Rt(s){if(s.nodeType===Node.DOCUMENT_NODE)return"/";if(s.nodeType===Node.DOCUMENT_TYPE_NODE)return"/html/doctype";if(s.nodeType===Node.ELEMENT_NODE){const e=s;if(e.id)return`//*[@id="${e.id}"]`;if(e.tagName&&e.tagName.toLowerCase()==="html")return"/html";if(e===document.head)return"/html/head";if(e===document.body)return"/html/body";const t=e.parentNode;if(!t||!(t instanceof Element))return"";const r=Array.from(t.children).filter(n=>n.tagName===e.tagName),i=r.length>1?`[${r.indexOf(e)+1}]`:"";return`${Rt(t)}/${e.tagName.toLowerCase()}${i}`}if(s.nodeType===Node.TEXT_NODE){const e=s.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(i=>i.nodeType===Node.TEXT_NODE),r=t.length>1?`[${t.indexOf(s)+1}]`:"";return`${Rt(e)}/text()${r}`}if(s.nodeType===Node.CDATA_SECTION_NODE){const e=s.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(i=>i.nodeType===Node.CDATA_SECTION_NODE),r=t.length>1?`[${t.indexOf(s)+1}]`:"";return`${Rt(e)}/text()${r}`}if(s.nodeType===Node.COMMENT_NODE){const e=s.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(i=>i.nodeType===Node.COMMENT_NODE),r=t.length>1?`[${t.indexOf(s)+1}]`:"";return`${Rt(e)}/comment()${r}`}return""}function vi(s){return s.nodeType===s.ELEMENT_NODE}function vu(s){var e;const t=ce.parentNode(s),r=t&&t;return!r||!wi(r)?!1:((e=s.textContent)==null?void 0:e.trim())!==""}function wi(s){return wu(s)&&bu(s.getBoundingClientRect())}function wu(s){const e=window.getComputedStyle(s);return e.display!=="none"&&e.visibility!=="hidden"&&parseFloat(e.opacity)!==0}function bu(s){return s.width>0&&s.height>0&&s.top>=0&&s.left>=0&&s.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&s.right<=(window.innerWidth||document.documentElement.clientWidth)}const Su=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],gn=["a","button","input","select","textarea","label","details","summary","dialog","video","audio"],Cu=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],bi=new WeakSet,Eu=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(Eu.call(this,s,e,t),this instanceof Element){const r=s.toLowerCase();console.info("Event type: ",r),Su.includes(r)&&bi.add(this)}};const Iu=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){Iu.call(this,s,e,t)};function xu(s){return s instanceof Element&&bi.has(s)}function Si(s){var e;if(s.nodeType===Node.ELEMENT_NODE){const t=s,r=t.tagName.toLowerCase();if(gn.includes(r))return!0;const i=t.hasAttribute("tabindex")&&t.getAttribute("tabindex")!=="-1",n=["button","link","checkbox","switch","menuitem"].includes(t.getAttribute("role")||"");return xu(t)||i||n||t instanceof HTMLAnchorElement&&t.hasAttribute("href")||t instanceof HTMLButtonElement&&!t.disabled}if(s.nodeType===Node.TEXT_NODE){const t=s,r=t.parentElement;return r!==null&&gn.includes(r.tagName.toLowerCase())?!0:r!==null&&wi(r)&&((e=t.textContent)==null?void 0:e.trim().length)!==0&&Si(r)}return!1}function yn(){document.querySelectorAll("*").forEach(e=>{Cu.forEach(t=>{e.hasAttribute(t)&&bi.add(e)})})}document.readyState==="complete"||document.readyState==="interactive"?yn():document.addEventListener("DOMContentLoaded",yn);let Mu=1;const Nu=new RegExp("[^a-z0-9-_:]"),kt=-2;function _o(){return Mu++}function Ru(s){if(s instanceof HTMLFormElement)return"form";const e=Ve(s.tagName);return Nu.test(e)?"div":e}let it,vn;const Au=/^[^ \t\n\r\u000c]+/,Ou=/^[, \t\n\r\u000c]+/;function Tu(s,e){if(e.trim()==="")return e;let t=0;function r(n){let o;const a=n.exec(e.substring(t));return a?(o=a[0],t+=o.length,o):""}const i=[];for(;r(Ou),!(t>=e.length);){let n=r(Au);if(n.slice(-1)===",")n=lt(s,n.substring(0,n.length-1)),i.push(n);else{let o="";n=lt(s,n);let a=!1;for(;;){const l=e.charAt(t);if(l===""){i.push((n+o).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){t+=1,i.push((n+o).trim());break}else l==="("&&(a=!0);o+=l,t+=1}}}return i.join(", ")}const wn=new WeakMap;function lt(s,e){return!e||e.trim()===""?e:Ci(s,e)}function Du(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function Ci(s,e){let t=wn.get(s);if(t||(t=s.createElement("a"),wn.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function ko(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?lt(s,r):t==="srcset"?Tu(s,r):t==="style"?Or(r,Ci(s)):e==="object"&&t==="data"?lt(s,r):r)}function $o(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function _u(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch(r){}return!1}function Tr(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?Tr(ce.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}return t?Tr(ce.parentNode(s),e,t):!1}function Lo(s,e,t,r){let i;if(vi(s)){if(i=s,!ce.childNodes(i).length)return!1}else{if(ce.parentElement(s)===null)return!1;i=ce.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(Tr(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch(n){}return!1}function ku(s,e,t){const r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch(a){return}if(n!=="complete"){const a=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(a),i=!0,e()});return}const o="about:blank";if(r.location.href!==o||s.src===o||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function $u(s,e,t){let r=!1,i;try{i=s.sheet}catch(o){return}if(i)return;const n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function Lu(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:o,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:u,maskInputFn:c,dataURLOptions:h={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:y=!1,cssCaptured:d=!1}=e,g=Pu(t,r),v=Rt(s);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:_.Document,childNodes:[],xPath:v,compatMode:s.compatMode}:{type:_.Document,childNodes:[],xPath:v};case s.DOCUMENT_TYPE_NODE:return{type:_.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:g,xPath:v};case s.ELEMENT_NODE:return Bu(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:a,maskInputOptions:l,maskInputFn:c,dataURLOptions:h,inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:y,rootId:g,xPath:v});case s.TEXT_NODE:return Fu(s,{doc:t,needsMask:o,maskTextFn:u,rootId:g,cssCaptured:d,xPath:v});case s.CDATA_SECTION_NODE:return{type:_.CDATA,textContent:"",rootId:g,xPath:v};case s.COMMENT_NODE:return{type:_.Comment,textContent:ce.textContent(s)||"",rootId:g,xPath:v};default:return!1}}function Pu(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function Fu(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n,xPath:o}=e,a=ce.parentNode(s),l=a&&a.tagName;let u="";const c=l==="STYLE"?!0:void 0,h=l==="SCRIPT"?!0:void 0;h?u="SCRIPT_PLACEHOLDER":n||(u=ce.textContent(s),c&&u&&(u=Or(u,Ci(e.doc)))),!c&&!h&&u&&t&&(u=r?r(u,ce.parentElement(s)):u.replace(/[\S]/g,"*"));const f=vu(s),p=Si(s);return{type:_.Text,textContent:u||"",rootId:i,isVisible:f,isInteractive:p,xPath:o}}function Bu(s,e){const{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:a,dataURLOptions:l={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:p,xPath:m}=e,y=_u(s,r,i),d=Ru(s);let g={};const v=s.attributes.length;for(let S=0;S<v;S++){const x=s.attributes[S];$o(d,x.name,x.value)||(g[x.name]=ko(t,d,Ve(x.name),x.value))}if(d==="link"&&n){const S=Array.from(t.styleSheets).find(C=>C.href===s.href);let x=null;S&&(x=Ms(S)),x&&(delete g.rel,delete g.href,g._cssText=x)}if(d==="style"&&s.sheet){let S=Ms(s.sheet);S&&(s.childNodes.length>1&&(S=yu(S,s)),g._cssText=S)}if(d==="input"||d==="textarea"||d==="select"){const S=s.value,x=s.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&S?g.value=gi({element:s,type:yi(s),tagName:d,value:S,maskInputOptions:o,maskInputFn:a}):x&&(g.checked=x)}if(d==="option"&&(s.selected&&!o.select?g.selected=!0:delete g.selected),d==="dialog"&&s.open&&(g.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),d==="canvas"&&c){if(s.__context==="2d")uu(s)||(g.rr_dataURL=s.toDataURL(l.type,l.quality));else if(!("__context"in s)){const S=s.toDataURL(l.type,l.quality),x=t.createElement("canvas");x.width=s.width,x.height=s.height;const C=x.toDataURL(l.type,l.quality);S!==C&&(g.rr_dataURL=S)}}if(d==="img"&&u){it||(it=t.createElement("canvas"),vn=it.getContext("2d"));const S=s,x=S.currentSrc||S.getAttribute("src")||"<unknown-src>",C=S.crossOrigin,D=()=>{S.removeEventListener("load",D);try{it.width=S.naturalWidth,it.height=S.naturalHeight,vn.drawImage(S,0,0),g.rr_dataURL=it.toDataURL(l.type,l.quality)}catch($){if(S.crossOrigin!=="anonymous"){S.crossOrigin="anonymous",S.complete&&S.naturalWidth!==0?D():S.addEventListener("load",D);return}else console.warn(`Cannot inline img src=${x}! Error: ${$}`)}S.crossOrigin==="anonymous"&&(C?g.crossOrigin=C:S.removeAttribute("crossorigin"))};S.complete&&S.naturalWidth!==0?D():S.addEventListener("load",D)}if(d==="audio"||d==="video"){const S=g;S.rr_mediaState=s.paused?"paused":"played",S.rr_mediaCurrentTime=s.currentTime,S.rr_mediaPlaybackRate=s.playbackRate,S.rr_mediaMuted=s.muted,S.rr_mediaLoop=s.loop,S.rr_mediaVolume=s.volume}if(f||(s.scrollLeft&&(g.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(g.rr_scrollTop=s.scrollTop)),y){const{width:S,height:x}=s.getBoundingClientRect();g={class:g.class,rr_width:`${S}px`,rr_height:`${x}px`}}d==="iframe"&&!h(g.src)&&(s.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(d)&&(b=!0)}catch(S){}const E=wi(s),N=Si(s);return{type:_.Element,tagName:d,attributes:g,childNodes:[],isSVG:Du(s)||void 0,needBlock:y,rootId:p,isCustom:b,isVisible:E,isInteractive:N,xPath:m}}function X(s){return s==null?"":s.toLowerCase()}function Uu(s,e){if(e.comment&&s.type===_.Comment)return!0;if(s.type===_.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"||s.attributes.rel==="modulepreload")&&s.attributes.as==="script"||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&Do(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(X(s.attributes.name).match(/^msapplication-tile(image|color)$/)||X(s.attributes.name)==="application-name"||X(s.attributes.rel)==="icon"||X(s.attributes.rel)==="apple-touch-icon"||X(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&X(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(X(s.attributes.property).match(/^(og|twitter|fb):/)||X(s.attributes.name).match(/^(og|twitter):/)||X(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(X(s.attributes.name)==="robots"||X(s.attributes.name)==="googlebot"||X(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(X(s.attributes.name)==="author"||X(s.attributes.name)==="generator"||X(s.attributes.name)==="framework"||X(s.attributes.name)==="publisher"||X(s.attributes.name)==="progid"||X(s.attributes.property).match(/^article:/)||X(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(X(s.attributes.name)==="google-site-verification"||X(s.attributes.name)==="yandex-verification"||X(s.attributes.name)==="csrf-token"||X(s.attributes.name)==="p:domain_verify"||X(s.attributes.name)==="verify-v1"||X(s.attributes.name)==="verification"||X(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ut(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,maskTextClass:o,maskTextSelector:a,skipChild:l=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m={},inlineImages:y=!1,recordCanvas:d=!1,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:b=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:N=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:x=!1,cssCaptured:C=!1}=e;let{needsMask:D}=e,{preserveWhiteSpace:$=!0}=e;D||(D=Lo(s,o,a,D===void 0));const oe=Lu(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:D,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,dataURLOptions:m,inlineImages:y,recordCanvas:d,keepIframeSrcFn:S,newlyAddedElement:x,cssCaptured:C});if(!oe)return console.warn(s,"not serialized"),null;let z;r.hasNode(s)?z=r.getId(s):Uu(oe,p)||!$&&oe.type===_.Text&&!oe.textContent.replace(/^\s+|\s+$/gm,"").length?z=kt:z=_o();const A=Object.assign(oe,{id:z});if(r.add(s,A),z===kt)return null;g&&g(s);let Y=!l;if(A.type===_.Element){Y=Y&&!A.needBlock,delete A.needBlock;const k=ce.shadowRoot(s);k&&Tt(k)&&(A.isShadowHost=!0)}if((A.type===_.Document||A.type===_.Element)&&Y){p.headWhitespace&&A.type===_.Element&&A.tagName==="head"&&($=!1);const k={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:D,maskTextClass:o,maskTextSelector:a,skipChild:l,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:y,recordCanvas:d,preserveWhiteSpace:$,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:b,onStylesheetLoad:E,stylesheetLoadTimeout:N,keepIframeSrcFn:S,cssCaptured:!1};if(!(A.type===_.Element&&A.tagName==="textarea"&&A.attributes.value!==void 0)){A.type===_.Element&&A.attributes._cssText!==void 0&&typeof A.attributes._cssText=="string"&&(k.cssCaptured=!0);for(const H of Array.from(ce.childNodes(s))){const ee=ut(H,k);ee&&A.childNodes.push(ee)}}let O=null;if(vi(s)&&(O=ce.shadowRoot(s)))for(const H of Array.from(ce.childNodes(O))){const ee=ut(H,k);ee&&(Tt(O)&&(ee.isShadow=!0),A.childNodes.push(ee))}}const ie=ce.parentNode(s);return ie&&Ot(ie)&&Tt(ie)&&(A.isShadow=!0),A.type===_.Element&&A.tagName==="iframe"&&ku(s,()=>{const k=s.contentDocument;if(k&&v){const O=ut(k,{doc:k,mirror:r,blockClass:i,blockSelector:n,needsMask:D,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:y,recordCanvas:d,preserveWhiteSpace:$,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:b,onStylesheetLoad:E,stylesheetLoadTimeout:N,keepIframeSrcFn:S});O&&v(s,O)}},b),A.type===_.Element&&A.tagName==="link"&&typeof A.attributes.rel=="string"&&(A.attributes.rel==="stylesheet"||A.attributes.rel==="preload"&&typeof A.attributes.href=="string"&&Do(A.attributes.href)==="css")&&$u(s,()=>{if(E){const k=ut(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:D,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:y,recordCanvas:d,preserveWhiteSpace:$,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:b,onStylesheetLoad:E,stylesheetLoadTimeout:N,keepIframeSrcFn:S});k&&E(s,k)}},N),A}function Wu(s,e){const{mirror:t=new mi,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:h,maskInputFn:f,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:y,onSerialize:d,onIframeLoad:g,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:E,keepIframeSrcFn:N=()=>!1}=e||{};return ut(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:c===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c===!1?{password:!0}:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:p==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:p===!1?{}:p,dataURLOptions:m,inlineImages:l,recordCanvas:u,preserveWhiteSpace:y,onSerialize:d,onIframeLoad:g,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:E,keepIframeSrcFn:N,newlyAddedElement:!1})}const zu=/(max|min)-device-(width|height)/,bn=new RegExp(zu.source,"g"),Vu={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(s){s.params.match(bn)&&(s.params=s.params.replace(bn,"$1-$2"))}}}},Gu={postcssPlugin:"postcss-hover-classes",prepare:function(){const s=[];return{Rule:function(e){s.indexOf(e)===-1&&(s.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
14
+ "use strict";var Fl=Object.defineProperty,Bl=Object.defineProperties;var Ul=Object.getOwnPropertyDescriptors;var Qt=Object.getOwnPropertySymbols;var un=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable;var ln=(s,e,t)=>e in s?Fl(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,T=(s,e)=>{for(var t in e||(e={}))un.call(e,t)&&ln(s,t,e[t]);if(Qt)for(var t of Qt(e))cn.call(e,t)&&ln(s,t,e[t]);return s},ne=(s,e)=>Bl(s,Ul(e));var st=(s,e)=>{var t={};for(var r in s)un.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&Qt)for(var r of Qt(s))e.indexOf(r)<0&&cn.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Wl=Object.defineProperty,zl=(s,e,t)=>e in s?Wl(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,w=(s,e,t)=>zl(s,typeof e!="symbol"?e+"":e,t),hn,Vl=Object.defineProperty,Gl=(s,e,t)=>e in s?Vl(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,fn=(s,e,t)=>Gl(s,typeof e!="symbol"?e+"":e,t),_=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(_||{});const dn={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},pn={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},qt={},jl=()=>!!globalThis.Zone;function pi(s){if(qt[s])return qt[s];const e=globalThis[s],t=e.prototype,r=s in dn?dn[s]:void 0,i=!!(r&&r.every(a=>{var l,u;return!!((u=(l=Object.getOwnPropertyDescriptor(t,a))==null?void 0:l.get)!=null&&u.toString().includes("[native code]"))})),n=s in pn?pn[s]:void 0,o=!!(n&&n.every(a=>{var l;return typeof t[a]=="function"&&((l=t[a])==null?void 0:l.toString().includes("[native code]"))}));if(i&&o&&!jl())return qt[s]=e.prototype,e.prototype;try{const a=document.createElement("iframe");document.body.appendChild(a);const l=a.contentWindow;if(!l)return e.prototype;const u=l[s].prototype;return document.body.removeChild(a),u?qt[s]=u:t}catch(a){return t}}const as={};function je(s,e,t){var r;const i=`${s}.${String(t)}`;if(as[i])return as[i].call(e);const n=pi(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(as[i]=o,o.call(e)):e[t]}const ls={};function Ao(s,e,t){const r=`${s}.${String(t)}`;if(ls[r])return ls[r].bind(e);const n=pi(s)[t];return typeof n!="function"?e[t]:(ls[r]=n,n.bind(e))}function Hl(s){return je("Node",s,"childNodes")}function Yl(s){return je("Node",s,"parentNode")}function Zl(s){return je("Node",s,"parentElement")}function Xl(s){return je("Node",s,"textContent")}function Jl(s,e){return Ao("Node",s,"contains")(e)}function Kl(s){return Ao("Node",s,"getRootNode")()}function Ql(s){return!s||!("host"in s)?null:je("ShadowRoot",s,"host")}function ql(s){return s.styleSheets}function eu(s){return!s||!("shadowRoot"in s)?null:je("Element",s,"shadowRoot")}function tu(s,e){return je("Element",s,"querySelector")(e)}function ru(s,e){return je("Element",s,"querySelectorAll")(e)}function su(){return pi("MutationObserver").constructor}const ce={childNodes:Hl,parentNode:Yl,parentElement:Zl,textContent:Xl,contains:Jl,getRootNode:Kl,host:Ql,styleSheets:ql,shadowRoot:eu,querySelector:tu,querySelectorAll:ru,mutationObserver:su};function Ot(s){const e=s&&"host"in s&&"mode"in s&&ce.host(s)||null;return!!(e&&"shadowRoot"in e&&ce.shadowRoot(e)===s)}function Tt(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function iu(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function nu(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function Ms(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>Oo(i,t)).join("");return iu(r)}catch(e){return null}}function Oo(s,e){if(au(s)){let t;try{t=Ms(s.styleSheet)||nu(s)}catch(r){t=s.cssText}return s.styleSheet.href?Or(t,s.styleSheet.href):t}else{let t=s.cssText;return lu(s)&&s.selectorText.includes(":")&&(t=ou(t)),e?Or(t,e):t}}function ou(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function au(s){return"styleSheet"in s}function lu(s){return"selectorText"in s}class mi{constructor(){fn(this,"idNodeMap",new Map),fn(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function To(){return new mi}function gi({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let o=i||"";const a=r&&Ve(r);return(e[t.toLowerCase()]||a&&e[a])&&(n?o=n(o,s):o="*".repeat(o.length)),o}function Ve(s){return s.toLowerCase()}const mn="__rrweb_original__";function uu(s){const e=s.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<s.width;r+=t)for(let i=0;i<s.height;i+=t){const n=e.getImageData,o=mn in n?n[mn]:n;if(new Uint32Array(o.call(e,r,i,Math.min(t,s.width-r),Math.min(t,s.height-i)).data.buffer).some(l=>l!==0))return!1}return!0}function cu(s,e){return!s||!e||s.type!==e.type?!1:s.type===_.Document?s.compatMode===e.compatMode:s.type===_.DocumentType?s.name===e.name&&s.publicId===e.publicId&&s.systemId===e.systemId:s.type===_.Comment||s.type===_.Text||s.type===_.CDATA?s.textContent===e.textContent:s.type===_.Element?s.tagName===e.tagName&&JSON.stringify(s.attributes)===JSON.stringify(e.attributes)&&s.isSVG===e.isSVG&&s.needBlock===e.needBlock:!1}function yi(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?Ve(e):null}function Do(s,e){var n;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(o){return null}const r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(n=i==null?void 0:i[1])!=null?n:null}function hu(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const fu=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,du=/^(?:[a-z+]+:)?\/\//i,pu=/^www\..*/i,mu=/^(data:)([^,]*),(.*)/i;function Or(s,e){return(s||"").replace(fu,(t,r,i,n,o,a)=>{const l=i||o||a,u=r||n||"";if(!l)return t;if(du.test(l)||pu.test(l))return`url(${u}${l}${u})`;if(mu.test(l))return`url(${u}${l}${u})`;if(l[0]==="/")return`url(${u}${hu(e)+l}${u})`;const c=e.split("/"),h=l.split("/");c.pop();for(const f of h)f!=="."&&(f===".."?c.pop():c.push(f));return`url(${u}${c.join("/")}${u})`})}function us(s){return s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function gu(s,e){const t=Array.from(e.childNodes),r=[];let i=0;if(t.length>1&&s&&typeof s=="string"){let n=us(s);const o=n.length/s.length;for(let a=1;a<t.length;a++)if(t[a].textContent&&typeof t[a].textContent=="string"){const l=us(t[a].textContent);let u=3;for(;u<l.length&&(l[u].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,u),1)!==-1);u++);for(;u<l.length;u++){const c=l.substring(0,u),h=n.split(c);let f=-1;if(h.length===2?f=n.indexOf(c):h.length>2&&h[0]===""&&t[a-1].textContent!==""&&(f=n.indexOf(c,1)),f!==-1){let p=Math.floor(f/o);for(;p>0&&p<s.length;){if(i+=1,i>50*t.length)return r.push(s),r;const m=us(s.substring(0,p));if(m.length===f){r.push(s.substring(0,p)),s=s.substring(p),n=n.substring(f);break}else m.length<f?p+=Math.max(1,Math.floor((f-m.length)/o)):p-=Math.max(1,Math.floor((m.length-f)*o))}break}}}}return r.push(s),r}function yu(s,e){return gu(s,e).join("/* rr_split */")}function Rt(s){if(s.nodeType===Node.DOCUMENT_NODE)return"/";if(s.nodeType===Node.DOCUMENT_TYPE_NODE)return"/html/doctype";if(s.nodeType===Node.ELEMENT_NODE){const e=s;if(e.id)return`//*[@id="${e.id}"]`;if(e.tagName&&e.tagName.toLowerCase()==="html")return"/html";if(e===document.head)return"/html/head";if(e===document.body)return"/html/body";const t=e.parentNode;if(!t||!(t instanceof Element))return"";const r=Array.from(t.children).filter(n=>n.tagName===e.tagName),i=r.length>1?`[${r.indexOf(e)+1}]`:"";return`${Rt(t)}/${e.tagName.toLowerCase()}${i}`}if(s.nodeType===Node.TEXT_NODE){const e=s.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(i=>i.nodeType===Node.TEXT_NODE),r=t.length>1?`[${t.indexOf(s)+1}]`:"";return`${Rt(e)}/text()${r}`}if(s.nodeType===Node.CDATA_SECTION_NODE){const e=s.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(i=>i.nodeType===Node.CDATA_SECTION_NODE),r=t.length>1?`[${t.indexOf(s)+1}]`:"";return`${Rt(e)}/text()${r}`}if(s.nodeType===Node.COMMENT_NODE){const e=s.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(i=>i.nodeType===Node.COMMENT_NODE),r=t.length>1?`[${t.indexOf(s)+1}]`:"";return`${Rt(e)}/comment()${r}`}return""}function vi(s){return s.nodeType===s.ELEMENT_NODE}function vu(s){var e;const t=ce.parentNode(s),r=t&&t;return!r||!wi(r)?!1:((e=s.textContent)==null?void 0:e.trim())!==""}function wi(s){return wu(s)&&bu(s.getBoundingClientRect())}function wu(s){const e=window.getComputedStyle(s);return e.display!=="none"&&e.visibility!=="hidden"&&parseFloat(e.opacity)!==0}function bu(s){return s.width>0&&s.height>0&&s.top>=0&&s.left>=0&&s.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&s.right<=(window.innerWidth||document.documentElement.clientWidth)}const Su=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],gn=["a","button","input","select","textarea","label","details","summary","dialog","video","audio"],Cu=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],bi=new WeakSet,Eu=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(Eu.call(this,s,e,t),this instanceof Element){const r=s.toLowerCase();Su.includes(r)&&bi.add(this)}};const Iu=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){Iu.call(this,s,e,t)};function xu(s){return s instanceof Element&&bi.has(s)}function Si(s){var e;if(s.nodeType===Node.ELEMENT_NODE){const t=s,r=t.tagName.toLowerCase();if(gn.includes(r))return!0;const i=t.hasAttribute("tabindex")&&t.getAttribute("tabindex")!=="-1",n=["button","link","checkbox","switch","menuitem"].includes(t.getAttribute("role")||"");return xu(t)||i||n||t instanceof HTMLAnchorElement&&t.hasAttribute("href")||t instanceof HTMLButtonElement&&!t.disabled}if(s.nodeType===Node.TEXT_NODE){const t=s,r=t.parentElement;return r!==null&&gn.includes(r.tagName.toLowerCase())?!0:r!==null&&wi(r)&&((e=t.textContent)==null?void 0:e.trim().length)!==0&&Si(r)}return!1}function yn(){document.querySelectorAll("*").forEach(e=>{Cu.forEach(t=>{e.hasAttribute(t)&&bi.add(e)})})}document.readyState==="complete"||document.readyState==="interactive"?yn():document.addEventListener("DOMContentLoaded",yn);let Mu=1;const Nu=new RegExp("[^a-z0-9-_:]"),kt=-2;function _o(){return Mu++}function Ru(s){if(s instanceof HTMLFormElement)return"form";const e=Ve(s.tagName);return Nu.test(e)?"div":e}let it,vn;const Au=/^[^ \t\n\r\u000c]+/,Ou=/^[, \t\n\r\u000c]+/;function Tu(s,e){if(e.trim()==="")return e;let t=0;function r(n){let o;const a=n.exec(e.substring(t));return a?(o=a[0],t+=o.length,o):""}const i=[];for(;r(Ou),!(t>=e.length);){let n=r(Au);if(n.slice(-1)===",")n=lt(s,n.substring(0,n.length-1)),i.push(n);else{let o="";n=lt(s,n);let a=!1;for(;;){const l=e.charAt(t);if(l===""){i.push((n+o).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){t+=1,i.push((n+o).trim());break}else l==="("&&(a=!0);o+=l,t+=1}}}return i.join(", ")}const wn=new WeakMap;function lt(s,e){return!e||e.trim()===""?e:Ci(s,e)}function Du(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function Ci(s,e){let t=wn.get(s);if(t||(t=s.createElement("a"),wn.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function ko(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?lt(s,r):t==="srcset"?Tu(s,r):t==="style"?Or(r,Ci(s)):e==="object"&&t==="data"?lt(s,r):r)}function $o(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function _u(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch(r){}return!1}function Tr(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?Tr(ce.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}return t?Tr(ce.parentNode(s),e,t):!1}function Lo(s,e,t,r){let i;if(vi(s)){if(i=s,!ce.childNodes(i).length)return!1}else{if(ce.parentElement(s)===null)return!1;i=ce.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(Tr(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch(n){}return!1}function ku(s,e,t){const r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch(a){return}if(n!=="complete"){const a=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(a),i=!0,e()});return}const o="about:blank";if(r.location.href!==o||s.src===o||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function $u(s,e,t){let r=!1,i;try{i=s.sheet}catch(o){return}if(i)return;const n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function Lu(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:o,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:u,maskInputFn:c,dataURLOptions:h={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:y=!1,cssCaptured:d=!1}=e,g=Pu(t,r),v=Rt(s);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:_.Document,childNodes:[],xPath:v,compatMode:s.compatMode}:{type:_.Document,childNodes:[],xPath:v};case s.DOCUMENT_TYPE_NODE:return{type:_.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:g,xPath:v};case s.ELEMENT_NODE:return Bu(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:a,maskInputOptions:l,maskInputFn:c,dataURLOptions:h,inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:y,rootId:g,xPath:v});case s.TEXT_NODE:return Fu(s,{doc:t,needsMask:o,maskTextFn:u,rootId:g,cssCaptured:d,xPath:v});case s.CDATA_SECTION_NODE:return{type:_.CDATA,textContent:"",rootId:g,xPath:v};case s.COMMENT_NODE:return{type:_.Comment,textContent:ce.textContent(s)||"",rootId:g,xPath:v};default:return!1}}function Pu(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function Fu(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n,xPath:o}=e,a=ce.parentNode(s),l=a&&a.tagName;let u="";const c=l==="STYLE"?!0:void 0,h=l==="SCRIPT"?!0:void 0;h?u="SCRIPT_PLACEHOLDER":n||(u=ce.textContent(s),c&&u&&(u=Or(u,Ci(e.doc)))),!c&&!h&&u&&t&&(u=r?r(u,ce.parentElement(s)):u.replace(/[\S]/g,"*"));const f=vu(s),p=Si(s);return{type:_.Text,textContent:u||"",rootId:i,isVisible:f,isInteractive:p,xPath:o}}function Bu(s,e){const{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:a,dataURLOptions:l={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:p,xPath:m}=e,y=_u(s,r,i),d=Ru(s);let g={};const v=s.attributes.length;for(let S=0;S<v;S++){const x=s.attributes[S];$o(d,x.name,x.value)||(g[x.name]=ko(t,d,Ve(x.name),x.value))}if(d==="link"&&n){const S=Array.from(t.styleSheets).find(C=>C.href===s.href);let x=null;S&&(x=Ms(S)),x&&(delete g.rel,delete g.href,g._cssText=x)}if(d==="style"&&s.sheet){let S=Ms(s.sheet);S&&(s.childNodes.length>1&&(S=yu(S,s)),g._cssText=S)}if(d==="input"||d==="textarea"||d==="select"){const S=s.value,x=s.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&S?g.value=gi({element:s,type:yi(s),tagName:d,value:S,maskInputOptions:o,maskInputFn:a}):x&&(g.checked=x)}if(d==="option"&&(s.selected&&!o.select?g.selected=!0:delete g.selected),d==="dialog"&&s.open&&(g.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),d==="canvas"&&c){if(s.__context==="2d")uu(s)||(g.rr_dataURL=s.toDataURL(l.type,l.quality));else if(!("__context"in s)){const S=s.toDataURL(l.type,l.quality),x=t.createElement("canvas");x.width=s.width,x.height=s.height;const C=x.toDataURL(l.type,l.quality);S!==C&&(g.rr_dataURL=S)}}if(d==="img"&&u){it||(it=t.createElement("canvas"),vn=it.getContext("2d"));const S=s,x=S.currentSrc||S.getAttribute("src")||"<unknown-src>",C=S.crossOrigin,D=()=>{S.removeEventListener("load",D);try{it.width=S.naturalWidth,it.height=S.naturalHeight,vn.drawImage(S,0,0),g.rr_dataURL=it.toDataURL(l.type,l.quality)}catch($){if(S.crossOrigin!=="anonymous"){S.crossOrigin="anonymous",S.complete&&S.naturalWidth!==0?D():S.addEventListener("load",D);return}else console.warn(`Cannot inline img src=${x}! Error: ${$}`)}S.crossOrigin==="anonymous"&&(C?g.crossOrigin=C:S.removeAttribute("crossorigin"))};S.complete&&S.naturalWidth!==0?D():S.addEventListener("load",D)}if(d==="audio"||d==="video"){const S=g;S.rr_mediaState=s.paused?"paused":"played",S.rr_mediaCurrentTime=s.currentTime,S.rr_mediaPlaybackRate=s.playbackRate,S.rr_mediaMuted=s.muted,S.rr_mediaLoop=s.loop,S.rr_mediaVolume=s.volume}if(f||(s.scrollLeft&&(g.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(g.rr_scrollTop=s.scrollTop)),y){const{width:S,height:x}=s.getBoundingClientRect();g={class:g.class,rr_width:`${S}px`,rr_height:`${x}px`}}d==="iframe"&&!h(g.src)&&(s.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(d)&&(b=!0)}catch(S){}const E=wi(s),N=Si(s);return{type:_.Element,tagName:d,attributes:g,childNodes:[],isSVG:Du(s)||void 0,needBlock:y,rootId:p,isCustom:b,isVisible:E,isInteractive:N,xPath:m}}function X(s){return s==null?"":s.toLowerCase()}function Uu(s,e){if(e.comment&&s.type===_.Comment)return!0;if(s.type===_.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"||s.attributes.rel==="modulepreload")&&s.attributes.as==="script"||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&Do(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(X(s.attributes.name).match(/^msapplication-tile(image|color)$/)||X(s.attributes.name)==="application-name"||X(s.attributes.rel)==="icon"||X(s.attributes.rel)==="apple-touch-icon"||X(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&X(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(X(s.attributes.property).match(/^(og|twitter|fb):/)||X(s.attributes.name).match(/^(og|twitter):/)||X(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(X(s.attributes.name)==="robots"||X(s.attributes.name)==="googlebot"||X(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(X(s.attributes.name)==="author"||X(s.attributes.name)==="generator"||X(s.attributes.name)==="framework"||X(s.attributes.name)==="publisher"||X(s.attributes.name)==="progid"||X(s.attributes.property).match(/^article:/)||X(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(X(s.attributes.name)==="google-site-verification"||X(s.attributes.name)==="yandex-verification"||X(s.attributes.name)==="csrf-token"||X(s.attributes.name)==="p:domain_verify"||X(s.attributes.name)==="verify-v1"||X(s.attributes.name)==="verification"||X(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ut(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,maskTextClass:o,maskTextSelector:a,skipChild:l=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m={},inlineImages:y=!1,recordCanvas:d=!1,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:b=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:N=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:x=!1,cssCaptured:C=!1}=e;let{needsMask:D}=e,{preserveWhiteSpace:$=!0}=e;D||(D=Lo(s,o,a,D===void 0));const oe=Lu(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:D,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,dataURLOptions:m,inlineImages:y,recordCanvas:d,keepIframeSrcFn:S,newlyAddedElement:x,cssCaptured:C});if(!oe)return console.warn(s,"not serialized"),null;let z;r.hasNode(s)?z=r.getId(s):Uu(oe,p)||!$&&oe.type===_.Text&&!oe.textContent.replace(/^\s+|\s+$/gm,"").length?z=kt:z=_o();const A=Object.assign(oe,{id:z});if(r.add(s,A),z===kt)return null;g&&g(s);let Y=!l;if(A.type===_.Element){Y=Y&&!A.needBlock,delete A.needBlock;const k=ce.shadowRoot(s);k&&Tt(k)&&(A.isShadowHost=!0)}if((A.type===_.Document||A.type===_.Element)&&Y){p.headWhitespace&&A.type===_.Element&&A.tagName==="head"&&($=!1);const k={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:D,maskTextClass:o,maskTextSelector:a,skipChild:l,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:y,recordCanvas:d,preserveWhiteSpace:$,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:b,onStylesheetLoad:E,stylesheetLoadTimeout:N,keepIframeSrcFn:S,cssCaptured:!1};if(!(A.type===_.Element&&A.tagName==="textarea"&&A.attributes.value!==void 0)){A.type===_.Element&&A.attributes._cssText!==void 0&&typeof A.attributes._cssText=="string"&&(k.cssCaptured=!0);for(const H of Array.from(ce.childNodes(s))){const ee=ut(H,k);ee&&A.childNodes.push(ee)}}let O=null;if(vi(s)&&(O=ce.shadowRoot(s)))for(const H of Array.from(ce.childNodes(O))){const ee=ut(H,k);ee&&(Tt(O)&&(ee.isShadow=!0),A.childNodes.push(ee))}}const ie=ce.parentNode(s);return ie&&Ot(ie)&&Tt(ie)&&(A.isShadow=!0),A.type===_.Element&&A.tagName==="iframe"&&ku(s,()=>{const k=s.contentDocument;if(k&&v){const O=ut(k,{doc:k,mirror:r,blockClass:i,blockSelector:n,needsMask:D,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:y,recordCanvas:d,preserveWhiteSpace:$,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:b,onStylesheetLoad:E,stylesheetLoadTimeout:N,keepIframeSrcFn:S});O&&v(s,O)}},b),A.type===_.Element&&A.tagName==="link"&&typeof A.attributes.rel=="string"&&(A.attributes.rel==="stylesheet"||A.attributes.rel==="preload"&&typeof A.attributes.href=="string"&&Do(A.attributes.href)==="css")&&$u(s,()=>{if(E){const k=ut(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:D,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:y,recordCanvas:d,preserveWhiteSpace:$,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:b,onStylesheetLoad:E,stylesheetLoadTimeout:N,keepIframeSrcFn:S});k&&E(s,k)}},N),A}function Wu(s,e){const{mirror:t=new mi,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:h,maskInputFn:f,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:y,onSerialize:d,onIframeLoad:g,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:E,keepIframeSrcFn:N=()=>!1}=e||{};return ut(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:c===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c===!1?{password:!0}:c,maskTextFn:h,maskInputFn:f,slimDOMOptions:p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:p==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:p===!1?{}:p,dataURLOptions:m,inlineImages:l,recordCanvas:u,preserveWhiteSpace:y,onSerialize:d,onIframeLoad:g,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:E,keepIframeSrcFn:N,newlyAddedElement:!1})}const zu=/(max|min)-device-(width|height)/,bn=new RegExp(zu.source,"g"),Vu={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(s){s.params.match(bn)&&(s.params=s.params.replace(bn,"$1-$2"))}}}},Gu={postcssPlugin:"postcss-hover-classes",prepare:function(){const s=[];return{Rule:function(e){s.indexOf(e)===-1&&(s.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
15
15
  `+t.replace(/:hover/g,".\\:hover"))}))}}}};function ju(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Hu(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var Ei={exports:{}},J=String,Po=function(){return{isColorSupported:!1,reset:J,bold:J,dim:J,italic:J,underline:J,inverse:J,hidden:J,strikethrough:J,black:J,red:J,green:J,yellow:J,blue:J,magenta:J,cyan:J,white:J,gray:J,bgBlack:J,bgRed:J,bgGreen:J,bgYellow:J,bgBlue:J,bgMagenta:J,bgCyan:J,bgWhite:J}};Ei.exports=Po();Ei.exports.createColors=Po;var Yu=Ei.exports;const Zu={},Xu=Object.freeze(Object.defineProperty({__proto__:null,default:Zu},Symbol.toStringTag,{value:"Module"})),Ee=Hu(Xu);let Sn=Yu,Cn=Ee,Ns=class Fo extends Error{constructor(e,t,r,i,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Fo)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Sn.isColorSupported),Cn&&e&&(t=Cn(t));let r=t.split(/\r?\n/),i=Math.max(this.line-3,0),n=Math.min(this.line+2,r.length),o=String(n).length,a,l;if(e){let{bold:u,gray:c,red:h}=Sn.createColors(!0);a=f=>u(h(f)),l=f=>c(f)}else a=l=u=>u;return r.slice(i,n).map((u,c)=>{let h=i+1+c,f=" "+(" "+h).slice(-o)+" | ";if(h===this.line){let p=l(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(f)+u+`
16
16
  `+p+a("^")}return" "+l(f)+u}).join(`
17
17
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
@@ -37,7 +37,7 @@ var module = { exports };
37
37
  `),t=a.length-o):t+=a.length,l&&u!=="start"){let c=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==c.last||c.raws.semicolon)&&(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Ir(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Ir(Vo(r,this.mapOpts.annotation)));let i=zo(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new gc(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(An){let r=An(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Go==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var jo=wc;let bc=Yr,Ls=class extends bc{constructor(e){super(e),this.type="comment"}};var Jr=Ls;Ls.default=Ls;let{isClean:Ho,my:Yo}=Ht,Zo=Zr,Xo=Jr,Sc=Yr,Jo,xi,Mi,Ko;function Qo(s){return s.map(e=>(e.nodes&&(e.nodes=Qo(e.nodes)),delete e.source,e))}function qo(s){if(s[Ho]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)qo(e)}let $e=class ea extends Sc{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(n,o)=>i(n.toProxy(),o):i)):t==="every"||t==="some"?r=>e[t]((i,...n)=>r(i.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],r<n&&(this.indexes[o]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let a of n)this.proxyOf.nodes.splice(r,0,a);let o;for(let a in this.indexes)o=this.indexes[a],r<=o&&(this.indexes[a]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Qo(Jo(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Zo(e)]}else if(e.selector)e=[new xi(e)];else if(e.name)e=[new Mi(e)];else if(e.text)e=[new Xo(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Yo]||ea.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Ho]&&qo(i),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}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]}};$e.registerParse=s=>{Jo=s};$e.registerRule=s=>{xi=s};$e.registerAtRule=s=>{Mi=s};$e.registerRoot=s=>{Ko=s};var qe=$e;$e.default=$e;$e.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Mi.prototype):s.type==="rule"?Object.setPrototypeOf(s,xi.prototype):s.type==="decl"?Object.setPrototypeOf(s,Zo.prototype):s.type==="comment"?Object.setPrototypeOf(s,Xo.prototype):s.type==="root"&&Object.setPrototypeOf(s,Ko.prototype),s[Yo]=!0,s.nodes&&s.nodes.forEach(e=>{$e.rebuild(e)})};let Cc=qe,ta,ra,$t=class extends Cc{constructor(e){super(T({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new ta(new ra,this,e).stringify()}};$t.registerLazyResult=s=>{ta=s};$t.registerProcessor=s=>{ra=s};var Ni=$t;$t.default=$t;let Ps=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var sa=Ps;Ps.default=Ps;let Ec=sa,Fs=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Ec(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Ri=Fs;Fs.default=Fs;const ds=39,On=34,rr=92,Tn=47,sr=10,Ct=32,ir=12,nr=9,or=13,Ic=91,xc=93,Mc=40,Nc=41,Rc=123,Ac=125,Oc=59,Tc=42,Dc=58,_c=64,ar=/[\t\n\f\r "#'()/;[\\\]{}]/g,lr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,kc=/.[\r\n"'(/\\]/,Dn=/[\da-f]/i;var $c=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,o,a,l,u,c,h,f,p,m,y=r.length,d=0,g=[],v=[];function b(){return d}function E(C){throw e.error("Unclosed "+C,d)}function N(){return v.length===0&&d>=y}function S(C){if(v.length)return v.pop();if(d>=y)return;let D=C?C.ignoreUnclosed:!1;switch(n=r.charCodeAt(d),n){case sr:case Ct:case nr:case or:case ir:{o=d;do o+=1,n=r.charCodeAt(o);while(n===Ct||n===sr||n===nr||n===or||n===ir);m=["space",r.slice(d,o)],d=o-1;break}case Ic:case xc:case Rc:case Ac:case Dc:case Oc:case Nc:{let $=String.fromCharCode(n);m=[$,$,d];break}case Mc:{if(f=g.length?g.pop()[1]:"",p=r.charCodeAt(d+1),f==="url"&&p!==ds&&p!==On&&p!==Ct&&p!==sr&&p!==nr&&p!==ir&&p!==or){o=d;do{if(c=!1,o=r.indexOf(")",o+1),o===-1)if(i||D){o=d;break}else E("bracket");for(h=o;r.charCodeAt(h-1)===rr;)h-=1,c=!c}while(c);m=["brackets",r.slice(d,o+1),d,o],d=o}else o=r.indexOf(")",d+1),l=r.slice(d,o+1),o===-1||kc.test(l)?m=["(","(",d]:(m=["brackets",l,d,o],d=o);break}case ds:case On:{a=n===ds?"'":'"',o=d;do{if(c=!1,o=r.indexOf(a,o+1),o===-1)if(i||D){o=d+1;break}else E("string");for(h=o;r.charCodeAt(h-1)===rr;)h-=1,c=!c}while(c);m=["string",r.slice(d,o+1),d,o],d=o;break}case _c:{ar.lastIndex=d+1,ar.test(r),ar.lastIndex===0?o=r.length-1:o=ar.lastIndex-2,m=["at-word",r.slice(d,o+1),d,o],d=o;break}case rr:{for(o=d,u=!0;r.charCodeAt(o+1)===rr;)o+=1,u=!u;if(n=r.charCodeAt(o+1),u&&n!==Tn&&n!==Ct&&n!==sr&&n!==nr&&n!==or&&n!==ir&&(o+=1,Dn.test(r.charAt(o)))){for(;Dn.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===Ct&&(o+=1)}m=["word",r.slice(d,o+1),d,o],d=o;break}default:{n===Tn&&r.charCodeAt(d+1)===Tc?(o=r.indexOf("*/",d+2)+1,o===0&&(i||D?o=r.length:E("comment")),m=["comment",r.slice(d,o+1),d,o],d=o):(lr.lastIndex=d+1,lr.test(r),lr.lastIndex===0?o=r.length-1:o=lr.lastIndex-2,m=["word",r.slice(d,o+1),d,o],g.push(m),d=o);break}}return d++,m}function x(C){v.push(C)}return{back:x,endOfFile:N,nextToken:S,position:b}};let ia=qe,_r=class extends ia{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Ai=_r;_r.default=_r;ia.registerAtRule(_r);let na=qe,oa,aa,pt=class extends na{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of i)n.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new oa(new aa,this,e).stringify()}};pt.registerLazyResult=s=>{oa=s};pt.registerProcessor=s=>{aa=s};var Yt=pt;pt.default=pt;na.registerRoot(pt);let Lt={comma(s){return Lt.split(s,[","],!0)},space(s){let e=[" ",`
38
38
  `," "];return Lt.split(s,e)},split(s,e,t){let r=[],i="",n=!1,o=0,a=!1,l="",u=!1;for(let c of s)u?u=!1:c==="\\"?u=!0:a?c===l&&(a=!1):c==='"'||c==="'"?(a=!0,l=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(n=!0),n?(i!==""&&r.push(i.trim()),i="",n=!1):i+=c;return(t||i!=="")&&r.push(i.trim()),r}};var la=Lt;Lt.default=Lt;let ua=qe,Lc=la,kr=class extends ua{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Lc.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var Oi=kr;kr.default=kr;ua.registerRule(kr);let Pc=Zr,Fc=$c,Bc=Jr,Uc=Ai,Wc=Yt,_n=Oi;const kn={empty:!0,space:!0};function zc(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}let Vc=class{constructor(e){this.input=e,this.root=new Wc,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Uc;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,n,o=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(n=l.length-1,i=l[n];i&&i[0]==="space";)i=l[--n];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let n=t-1;n>=0&&(i=e[n],!(i[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,n;for(let[o,a]of e.entries()){if(r=a,i=r[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!n)this.doubleColon(r);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=r}return!1}comment(e){let t=new Bc;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Fc(this.input)}decl(e,t){let r=new Pc;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||zc(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(n=e[u],n[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(n[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=u;f>0;f--){let p=c[f][0];if(h.trim().indexOf("!")===0&&p!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=h,e=c)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=o.map(u=>u[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new _n;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,o=[],a=e[1].startsWith("--"),l=[],u=e;for(;u;){if(r=u[0],l.push(u),r==="("||r==="[")n||(n=u),o.push(r==="("?")":"]");else if(a&&i&&r==="{")n||(n=u),o.push("}");else if(o.length===0)if(r===";")if(i){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(i=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&i){if(!a)for(;l.length&&(u=l[l.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,o,a=r.length,l="",u=!0,c,h;for(let f=0;f<a;f+=1)n=r[f],o=n[0],o==="space"&&f===a-1&&!i?u=!1:o==="comment"?(h=r[f-1]?r[f-1][0]:"empty",c=r[f+1]?r[f+1][0]:"empty",!kn[h]&&!kn[c]?l.slice(-1)===","?u=!1:l+=n[1]:u=!1):l+=n[1];if(!u){let f=r.reduce((p,m)=>p+m[1],"");e.raws[t]={raw:f,value:l}}e[t]=l}rule(e){e.pop();let t=new _n;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Gc=Vc;let jc=qe,Hc=Gc,Yc=Xr;function $r(s,e){let t=new Yc(s,e),r=new Hc(t);try{r.parse()}catch(i){throw i}return r.root}var Ti=$r;$r.default=$r;jc.registerParse($r);let{isClean:Ne,my:Zc}=Ht,Xc=jo,Jc=Hr,Kc=qe,Qc=Ni;let $n=Ri,qc=Ti,eh=Yt;const th={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rh={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},sh={Once:!0,postcssPlugin:!0,prepare:!0},mt=0;function Et(s){return typeof s=="object"&&typeof s.then=="function"}function ca(s){let e=!1,t=th[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,mt,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,mt,t+"Exit"]:[t,t+"Exit"]}function Ln(s){let e;return s.type==="document"?e=["Document",mt,"DocumentExit"]:s.type==="root"?e=["Root",mt,"RootExit"]:e=ca(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function Bs(s){return s[Ne]=!1,s.nodes&&s.nodes.forEach(e=>Bs(e)),s}let Us={},gt=class ha{constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Bs(t);else if(t instanceof ha||t instanceof $n)i=Bs(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=qc;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{i=n(t,r)}catch(o){this.processed=!0,this.error=o}i&&!i[Zc]&&Kc.rebuild(i)}this.result=new $n(e,i,r),this.helpers=ne(T({},Us),{postcss:Us,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?T(T({},n),n.prepare(this.result)):n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!rh[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!sh[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(Et(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ne];){e[Ne]=!0;let t=[Ln(e)];for(;t.length>0;){let r=this.visitTick(t);if(Et(r))try{await r}catch(i){let n=t[t.length-1].node;throw this.handleError(i,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(n=>r(n,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return Et(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Jc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Xc(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(Et(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ne];)e[Ne]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let n;try{n=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(Et(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,a]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(r.toProxy(),this.helpers)}catch(l){throw this.handleError(l,r)}}if(t.iterator!==0){let o=t.iterator,a;for(;a=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!a[Ne]){a[Ne]=!0,e.push(Ln(a));return}t.iterator=0,delete r.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===mt){r.nodes&&r.nodes.length&&(r[Ne]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Ne]=!0;let t=ca(e);for(let r of t)if(r===mt)e.nodes&&e.each(i=>{i[Ne]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};gt.registerPostcss=s=>{Us=s};var fa=gt;gt.default=gt;eh.registerLazyResult(gt);Qc.registerLazyResult(gt);let ih=jo,nh=Hr;let oh=Ti;const ah=Ri;let Ws=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,n=nh;this.result=new ah(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new ih(n,i,this._opts,t);if(a.isMap()){let[l,u]=a.generate();l&&(this.result.css=l),u&&(this.result.map=u)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=oh;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var lh=Ws;Ws.default=Ws;let uh=lh,ch=fa,hh=Ni,fh=Yt,Pt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new uh(this,e,t):new ch(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var dh=Pt;Pt.default=Pt;fh.registerProcessor(Pt);hh.registerProcessor(Pt);let ph=Zr,mh=Uo,gh=Jr,yh=Ai,vh=Xr,wh=Yt,bh=Oi;function Ft(s,e){if(Array.isArray(s))return s.map(o=>Ft(o));let i=s,{inputs:t}=i,r=st(i,["inputs"]);if(t){e=[];for(let o of t){let a=ne(T({},o),{__proto__:vh.prototype});a.map&&(a.map=ne(T({},a.map),{__proto__:mh.prototype})),e.push(a)}}if(r.nodes&&(r.nodes=s.nodes.map(o=>Ft(o,e))),r.source){let n=r.source,{inputId:o}=n,a=st(n,["inputId"]);r.source=a,o!=null&&(r.source.input=e[o])}if(r.type==="root")return new wh(r);if(r.type==="decl")return new ph(r);if(r.type==="rule")return new bh(r);if(r.type==="comment")return new gh(r);if(r.type==="atrule")return new yh(r);throw new Error("Unknown node type: "+s.type)}var Sh=Ft;Ft.default=Ft;let Ch=Ii,da=Zr,Eh=fa,Ih=qe,Di=dh,xh=Hr,Mh=Sh,pa=Ni,Nh=sa,ma=Jr,ga=Ai,Rh=Ri,Ah=Xr,Oh=Ti,Th=la,ya=Oi,va=Yt,Dh=Yr;function G(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Di(s)}G.plugin=function(e,t){let r=!1;function i(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
39
39
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
40
- https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new Di().version,a}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(o,a,l){return G([i(l)]).process(o,a)},i};G.stringify=xh;G.parse=Oh;G.fromJSON=Mh;G.list=Th;G.comment=s=>new ma(s);G.atRule=s=>new ga(s);G.decl=s=>new da(s);G.rule=s=>new ya(s);G.root=s=>new va(s);G.document=s=>new pa(s);G.CssSyntaxError=Ch;G.Declaration=da;G.Container=Ih;G.Processor=Di;G.Document=pa;G.Comment=ma;G.Warning=Nh;G.AtRule=ga;G.Result=Rh;G.Input=Ah;G.Rule=ya;G.Root=va;G.Node=Dh;Eh.registerPostcss(G);var _h=G;G.default=G;const q=ju(_h);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;const Pn={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function kh(s){let e=Pn[s.tagName]?Pn[s.tagName]:s.tagName;return e==="link"&&s.attributes._cssText&&(e="style"),e}function Kr(s,e){const t=e==null?void 0:e.stylesWithHoverClass.get(s);if(t)return t;const i=q([Vu,Gu]).process(s).css;return e==null||e.stylesWithHoverClass.set(s,i),i}function Fn(){return{stylesWithHoverClass:new Map}}function $h(s,e,t,r){const i=[];for(const o of s.childNodes)o.type===_.Text&&i.push(o);const n=e.split("/* rr_split */");for(;n.length>1&&n.length>i.length;)n.splice(-2,2,n.slice(-2).join(""));for(let o=0;o<i.length;o++){const a=i[o],l=n[o];a&&l&&(a.textContent=t?Kr(l,r):l)}}function Lh(s,e,t,r){const{doc:i,hackCss:n,cache:o}=r;s.childNodes.length?$h(s,t,n,o):(n&&(t=Kr(t,o)),e.appendChild(i.createTextNode(t)))}function Ph(s,e){var t;const{doc:r,hackCss:i,cache:n}=e;switch(s.type){case _.Document:return r.implementation.createDocument(null,"",null);case _.DocumentType:return r.implementation.createDocumentType(s.name||"html",s.publicId,s.systemId);case _.Element:{const o=kh(s);let a;s.isSVG?a=r.createElementNS("http://www.w3.org/2000/svg",o):(s.isCustom&&((t=r.defaultView)!=null&&t.customElements)&&!r.defaultView.customElements.get(s.tagName)&&r.defaultView.customElements.define(s.tagName,class extends r.defaultView.HTMLElement{}),a=r.createElement(o));const l={};for(const u in s.attributes){if(!Object.prototype.hasOwnProperty.call(s.attributes,u))continue;let c=s.attributes[u];if(!(o==="option"&&u==="selected"&&c===!1)&&c!==null){if(c===!0&&(c=""),u.startsWith("rr_")){l[u]=c;continue}if(typeof c=="string"){if(o==="style"&&u==="_cssText"){Lh(s,a,c,e);continue}else if(o==="textarea"&&u==="value"){a.appendChild(r.createTextNode(c)),s.childNodes=[];continue}}try{if(s.isSVG&&u==="xlink:href")a.setAttributeNS("http://www.w3.org/1999/xlink",u,c.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")a.setAttribute("_"+u,c.toString());else if(o==="meta"&&s.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){a.setAttribute("csp-content",c.toString());continue}else o==="link"&&(s.attributes.rel==="preload"||s.attributes.rel==="modulepreload")&&s.attributes.as==="script"||o==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&s.attributes.href.endsWith(".js")||(o==="img"&&s.attributes.srcset&&s.attributes.rr_dataURL?a.setAttribute("rrweb-original-srcset",s.attributes.srcset):a.setAttribute(u,c.toString()))}catch(h){}}}for(const u in l){const c=l[u];if(o==="canvas"&&u==="rr_dataURL"){const h=r.createElement("img");h.onload=()=>{const f=a.getContext("2d");f&&f.drawImage(h,0,0,h.width,h.height)},h.src=c.toString(),a.RRNodeType&&(a.rr_dataURL=c.toString())}else if(o==="img"&&u==="rr_dataURL"){const h=a;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",s.attributes.src),h.src=c.toString())}if(u==="rr_width")a.style.setProperty("width",c.toString());else if(u==="rr_height")a.style.setProperty("height",c.toString());else if(u==="rr_mediaCurrentTime"&&typeof c=="number")a.currentTime=c;else if(u==="rr_mediaState")switch(c){case"played":a.play().catch(h=>console.warn("media playback error",h));break;case"paused":a.pause();break}else u==="rr_mediaPlaybackRate"&&typeof c=="number"?a.playbackRate=c:u==="rr_mediaMuted"&&typeof c=="boolean"?a.muted=c:u==="rr_mediaLoop"&&typeof c=="boolean"?a.loop=c:u==="rr_mediaVolume"&&typeof c=="number"?a.volume=c:u==="rr_open_mode"&&a.setAttribute("rr_open_mode",c)}if(s.isShadowHost)if(!a.shadowRoot)a.attachShadow({mode:"open"});else for(;a.shadowRoot.firstChild;)a.shadowRoot.removeChild(a.shadowRoot.firstChild);return a}case _.Text:return s.isStyle&&i?r.createTextNode(Kr(s.textContent,n)):r.createTextNode(s.textContent);case _.CDATA:return r.createCDATASection(s.textContent);case _.Comment:return r.createComment(s.textContent);default:return null}}function Dt(s,e){const{doc:t,mirror:r,skipChild:i=!1,hackCss:n=!0,afterAppend:o,cache:a}=e;if(r.has(s.id)){const u=r.getNode(s.id),c=r.getMeta(u);if(cu(c,s))return r.getNode(s.id)}let l=Ph(s,{doc:t,hackCss:n,cache:a});if(!l)return null;if(s.rootId&&r.getNode(s.rootId)!==t&&r.replace(s.rootId,t),s.type===_.Document&&(t.close(),t.open(),s.compatMode==="BackCompat"&&s.childNodes&&s.childNodes[0].type!==_.DocumentType&&(s.childNodes[0].type===_.Element&&"xmlns"in s.childNodes[0].attributes&&s.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),l=t),r.add(l,s),(s.type===_.Document||s.type===_.Element)&&!i)for(const u of s.childNodes){const c=Dt(u,{doc:t,mirror:r,skipChild:!1,hackCss:n,afterAppend:o,cache:a});if(!c){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&vi(l)&&l.shadowRoot)l.shadowRoot.appendChild(c);else if(s.type===_.Document&&u.type==_.Element){const h=c;let f=null;h.childNodes.forEach(p=>{p.nodeName==="BODY"&&(f=p)}),f?(h.removeChild(f),l.appendChild(c),h.appendChild(f)):l.appendChild(c)}else l.appendChild(c);o&&o(c,u.id)}return l}function Fh(s,e){function t(r){e(r)}for(const r of s.getIds())s.has(r)&&t(s.getNode(r))}function Bh(s,e){const t=e.getMeta(s);if((t==null?void 0:t.type)!==_.Element)return;const r=s;for(const i in t.attributes){if(!(Object.prototype.hasOwnProperty.call(t.attributes,i)&&i.startsWith("rr_")))continue;const n=t.attributes[i];i==="rr_scrollLeft"&&(r.scrollLeft=n),i==="rr_scrollTop"&&(r.scrollTop=n)}}function Uh(s,e){const{doc:t,onVisit:r,hackCss:i=!0,afterAppend:n,cache:o,mirror:a=new mi}=e,l=Dt(s,{doc:t,mirror:a,skipChild:!1,hackCss:i,afterAppend:n,cache:o});return Fh(a,u=>{r&&r(u),Bh(u,a)}),l}var Wh=Object.defineProperty,zh=(s,e,t)=>e in s?Wh(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,M=(s,e,t)=>zh(s,typeof e!="symbol"?e+"":e,t),Vh=Object.defineProperty,Gh=(s,e,t)=>e in s?Vh(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Bn=(s,e,t)=>Gh(s,typeof e!="symbol"?e+"":e,t);let jh=class{constructor(){Bn(this,"idNodeMap",new Map),Bn(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Hh(){return new jh}const Yh=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],Zh=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],wa=new WeakSet,Xh=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(Xh.call(this,s,e,t),this instanceof Element){const r=s.toLowerCase();console.info("Event type: ",r),Yh.includes(r)&&wa.add(this)}};const Jh=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){Jh.call(this,s,e,t)};function Un(){document.querySelectorAll("*").forEach(e=>{Zh.forEach(t=>{e.hasAttribute(t)&&wa.add(e)})})}document.readyState==="complete"||document.readyState==="interactive"?Un():document.addEventListener("DOMContentLoaded",Un);function Kh(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Qh(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var _i={exports:{}},K=String,ba=function(){return{isColorSupported:!1,reset:K,bold:K,dim:K,italic:K,underline:K,inverse:K,hidden:K,strikethrough:K,black:K,red:K,green:K,yellow:K,blue:K,magenta:K,cyan:K,white:K,gray:K,bgBlack:K,bgRed:K,bgGreen:K,bgYellow:K,bgBlue:K,bgMagenta:K,bgCyan:K,bgWhite:K}};_i.exports=ba();_i.exports.createColors=ba;var qh=_i.exports;const ef={},tf=Object.freeze(Object.defineProperty({__proto__:null,default:ef},Symbol.toStringTag,{value:"Module"})),Ie=Qh(tf);let Wn=qh,zn=Ie,zs=class Sa extends Error{constructor(e,t,r,i,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Sa)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Wn.isColorSupported),zn&&e&&(t=zn(t));let r=t.split(/\r?\n/),i=Math.max(this.line-3,0),n=Math.min(this.line+2,r.length),o=String(n).length,a,l;if(e){let{bold:u,gray:c,red:h}=Wn.createColors(!0);a=f=>u(h(f)),l=f=>c(f)}else a=l=u=>u;return r.slice(i,n).map((u,c)=>{let h=i+1+c,f=" "+(" "+h).slice(-o)+" | ";if(h===this.line){let p=l(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(f)+u+`
40
+ https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new Di().version,a}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(o,a,l){return G([i(l)]).process(o,a)},i};G.stringify=xh;G.parse=Oh;G.fromJSON=Mh;G.list=Th;G.comment=s=>new ma(s);G.atRule=s=>new ga(s);G.decl=s=>new da(s);G.rule=s=>new ya(s);G.root=s=>new va(s);G.document=s=>new pa(s);G.CssSyntaxError=Ch;G.Declaration=da;G.Container=Ih;G.Processor=Di;G.Document=pa;G.Comment=ma;G.Warning=Nh;G.AtRule=ga;G.Result=Rh;G.Input=Ah;G.Rule=ya;G.Root=va;G.Node=Dh;Eh.registerPostcss(G);var _h=G;G.default=G;const q=ju(_h);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;const Pn={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function kh(s){let e=Pn[s.tagName]?Pn[s.tagName]:s.tagName;return e==="link"&&s.attributes._cssText&&(e="style"),e}function Kr(s,e){const t=e==null?void 0:e.stylesWithHoverClass.get(s);if(t)return t;const i=q([Vu,Gu]).process(s).css;return e==null||e.stylesWithHoverClass.set(s,i),i}function Fn(){return{stylesWithHoverClass:new Map}}function $h(s,e,t,r){const i=[];for(const o of s.childNodes)o.type===_.Text&&i.push(o);const n=e.split("/* rr_split */");for(;n.length>1&&n.length>i.length;)n.splice(-2,2,n.slice(-2).join(""));for(let o=0;o<i.length;o++){const a=i[o],l=n[o];a&&l&&(a.textContent=t?Kr(l,r):l)}}function Lh(s,e,t,r){const{doc:i,hackCss:n,cache:o}=r;s.childNodes.length?$h(s,t,n,o):(n&&(t=Kr(t,o)),e.appendChild(i.createTextNode(t)))}function Ph(s,e){var t;const{doc:r,hackCss:i,cache:n}=e;switch(s.type){case _.Document:return r.implementation.createDocument(null,"",null);case _.DocumentType:return r.implementation.createDocumentType(s.name||"html",s.publicId,s.systemId);case _.Element:{const o=kh(s);let a;s.isSVG?a=r.createElementNS("http://www.w3.org/2000/svg",o):(s.isCustom&&((t=r.defaultView)!=null&&t.customElements)&&!r.defaultView.customElements.get(s.tagName)&&r.defaultView.customElements.define(s.tagName,class extends r.defaultView.HTMLElement{}),a=r.createElement(o));const l={};for(const u in s.attributes){if(!Object.prototype.hasOwnProperty.call(s.attributes,u))continue;let c=s.attributes[u];if(!(o==="option"&&u==="selected"&&c===!1)&&c!==null){if(c===!0&&(c=""),u.startsWith("rr_")){l[u]=c;continue}if(typeof c=="string"){if(o==="style"&&u==="_cssText"){Lh(s,a,c,e);continue}else if(o==="textarea"&&u==="value"){a.appendChild(r.createTextNode(c)),s.childNodes=[];continue}}try{if(s.isSVG&&u==="xlink:href")a.setAttributeNS("http://www.w3.org/1999/xlink",u,c.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")a.setAttribute("_"+u,c.toString());else if(o==="meta"&&s.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){a.setAttribute("csp-content",c.toString());continue}else o==="link"&&(s.attributes.rel==="preload"||s.attributes.rel==="modulepreload")&&s.attributes.as==="script"||o==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&s.attributes.href.endsWith(".js")||(o==="img"&&s.attributes.srcset&&s.attributes.rr_dataURL?a.setAttribute("rrweb-original-srcset",s.attributes.srcset):a.setAttribute(u,c.toString()))}catch(h){}}}for(const u in l){const c=l[u];if(o==="canvas"&&u==="rr_dataURL"){const h=r.createElement("img");h.onload=()=>{const f=a.getContext("2d");f&&f.drawImage(h,0,0,h.width,h.height)},h.src=c.toString(),a.RRNodeType&&(a.rr_dataURL=c.toString())}else if(o==="img"&&u==="rr_dataURL"){const h=a;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",s.attributes.src),h.src=c.toString())}if(u==="rr_width")a.style.setProperty("width",c.toString());else if(u==="rr_height")a.style.setProperty("height",c.toString());else if(u==="rr_mediaCurrentTime"&&typeof c=="number")a.currentTime=c;else if(u==="rr_mediaState")switch(c){case"played":a.play().catch(h=>console.warn("media playback error",h));break;case"paused":a.pause();break}else u==="rr_mediaPlaybackRate"&&typeof c=="number"?a.playbackRate=c:u==="rr_mediaMuted"&&typeof c=="boolean"?a.muted=c:u==="rr_mediaLoop"&&typeof c=="boolean"?a.loop=c:u==="rr_mediaVolume"&&typeof c=="number"?a.volume=c:u==="rr_open_mode"&&a.setAttribute("rr_open_mode",c)}if(s.isShadowHost)if(!a.shadowRoot)a.attachShadow({mode:"open"});else for(;a.shadowRoot.firstChild;)a.shadowRoot.removeChild(a.shadowRoot.firstChild);return a}case _.Text:return s.isStyle&&i?r.createTextNode(Kr(s.textContent,n)):r.createTextNode(s.textContent);case _.CDATA:return r.createCDATASection(s.textContent);case _.Comment:return r.createComment(s.textContent);default:return null}}function Dt(s,e){const{doc:t,mirror:r,skipChild:i=!1,hackCss:n=!0,afterAppend:o,cache:a}=e;if(r.has(s.id)){const u=r.getNode(s.id),c=r.getMeta(u);if(cu(c,s))return r.getNode(s.id)}let l=Ph(s,{doc:t,hackCss:n,cache:a});if(!l)return null;if(s.rootId&&r.getNode(s.rootId)!==t&&r.replace(s.rootId,t),s.type===_.Document&&(t.close(),t.open(),s.compatMode==="BackCompat"&&s.childNodes&&s.childNodes[0].type!==_.DocumentType&&(s.childNodes[0].type===_.Element&&"xmlns"in s.childNodes[0].attributes&&s.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),l=t),r.add(l,s),(s.type===_.Document||s.type===_.Element)&&!i)for(const u of s.childNodes){const c=Dt(u,{doc:t,mirror:r,skipChild:!1,hackCss:n,afterAppend:o,cache:a});if(!c){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&vi(l)&&l.shadowRoot)l.shadowRoot.appendChild(c);else if(s.type===_.Document&&u.type==_.Element){const h=c;let f=null;h.childNodes.forEach(p=>{p.nodeName==="BODY"&&(f=p)}),f?(h.removeChild(f),l.appendChild(c),h.appendChild(f)):l.appendChild(c)}else l.appendChild(c);o&&o(c,u.id)}return l}function Fh(s,e){function t(r){e(r)}for(const r of s.getIds())s.has(r)&&t(s.getNode(r))}function Bh(s,e){const t=e.getMeta(s);if((t==null?void 0:t.type)!==_.Element)return;const r=s;for(const i in t.attributes){if(!(Object.prototype.hasOwnProperty.call(t.attributes,i)&&i.startsWith("rr_")))continue;const n=t.attributes[i];i==="rr_scrollLeft"&&(r.scrollLeft=n),i==="rr_scrollTop"&&(r.scrollTop=n)}}function Uh(s,e){const{doc:t,onVisit:r,hackCss:i=!0,afterAppend:n,cache:o,mirror:a=new mi}=e,l=Dt(s,{doc:t,mirror:a,skipChild:!1,hackCss:i,afterAppend:n,cache:o});return Fh(a,u=>{r&&r(u),Bh(u,a)}),l}var Wh=Object.defineProperty,zh=(s,e,t)=>e in s?Wh(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,M=(s,e,t)=>zh(s,typeof e!="symbol"?e+"":e,t),Vh=Object.defineProperty,Gh=(s,e,t)=>e in s?Vh(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Bn=(s,e,t)=>Gh(s,typeof e!="symbol"?e+"":e,t);let jh=class{constructor(){Bn(this,"idNodeMap",new Map),Bn(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Hh(){return new jh}const Yh=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],Zh=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],wa=new WeakSet,Xh=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(Xh.call(this,s,e,t),this instanceof Element){const r=s.toLowerCase();Yh.includes(r)&&wa.add(this)}};const Jh=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){Jh.call(this,s,e,t)};function Un(){document.querySelectorAll("*").forEach(e=>{Zh.forEach(t=>{e.hasAttribute(t)&&wa.add(e)})})}document.readyState==="complete"||document.readyState==="interactive"?Un():document.addEventListener("DOMContentLoaded",Un);function Kh(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Qh(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var _i={exports:{}},K=String,ba=function(){return{isColorSupported:!1,reset:K,bold:K,dim:K,italic:K,underline:K,inverse:K,hidden:K,strikethrough:K,black:K,red:K,green:K,yellow:K,blue:K,magenta:K,cyan:K,white:K,gray:K,bgBlack:K,bgRed:K,bgGreen:K,bgYellow:K,bgBlue:K,bgMagenta:K,bgCyan:K,bgWhite:K}};_i.exports=ba();_i.exports.createColors=ba;var qh=_i.exports;const ef={},tf=Object.freeze(Object.defineProperty({__proto__:null,default:ef},Symbol.toStringTag,{value:"Module"})),Ie=Qh(tf);let Wn=qh,zn=Ie,zs=class Sa extends Error{constructor(e,t,r,i,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Sa)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Wn.isColorSupported),zn&&e&&(t=zn(t));let r=t.split(/\r?\n/),i=Math.max(this.line-3,0),n=Math.min(this.line+2,r.length),o=String(n).length,a,l;if(e){let{bold:u,gray:c,red:h}=Wn.createColors(!0);a=f=>u(h(f)),l=f=>c(f)}else a=l=u=>u;return r.slice(i,n).map((u,c)=>{let h=i+1+c,f=" "+(" "+h).slice(-o)+" | ";if(h===this.line){let p=l(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(f)+u+`
41
41
  `+p+a("^")}return" "+l(f)+u}).join(`
42
42
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
43
43