@posthog/rrweb-snapshot 0.0.49 → 0.0.50
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.
- package/dist/{record-oACzRSl-.cjs → record-BUfdSR_C.cjs} +42 -21
- package/dist/record-BUfdSR_C.cjs.map +1 -0
- package/dist/{record-oACzRSl-.umd.cjs → record-BUfdSR_C.umd.cjs} +43 -22
- package/dist/{record-oACzRSl-.umd.cjs.map → record-BUfdSR_C.umd.cjs.map} +2 -2
- package/dist/record-BUfdSR_C.umd.min.cjs +20 -0
- package/dist/{record-oACzRSl-.umd.min.cjs.map → record-BUfdSR_C.umd.min.cjs.map} +3 -3
- package/dist/{record-B2nV9UFB.js → record-CbT7EKn4.js} +42 -21
- package/dist/record-CbT7EKn4.js.map +1 -0
- package/dist/record.cjs +1 -1
- package/dist/record.js +1 -1
- package/dist/record.umd.cjs +45 -24
- package/dist/record.umd.cjs.map +2 -2
- package/dist/record.umd.min.cjs +1 -1
- package/dist/record.umd.min.cjs.map +3 -3
- package/dist/rrweb-snapshot.cjs +2 -1
- package/dist/rrweb-snapshot.cjs.map +1 -1
- package/dist/rrweb-snapshot.d.cts +2 -0
- package/dist/rrweb-snapshot.d.ts +2 -0
- package/dist/rrweb-snapshot.js +4 -3
- package/dist/rrweb-snapshot.umd.cjs +46 -24
- package/dist/rrweb-snapshot.umd.cjs.map +2 -2
- package/dist/rrweb-snapshot.umd.min.cjs +9 -9
- package/dist/rrweb-snapshot.umd.min.cjs.map +3 -3
- package/package.json +3 -3
- package/dist/record-B2nV9UFB.js.map +0 -1
- package/dist/record-oACzRSl-.cjs.map +0 -1
- package/dist/record-oACzRSl-.umd.min.cjs +0 -20
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(function (g, f) {if ("object" == typeof exports && "object" == typeof module) {module.exports = f();} else if ("function" == typeof define && define.amd) {define("rrwebSnapshot", [], f);} else if ("object" == typeof exports) {exports["rrwebSnapshot"] = f();} else {g["rrwebSnapshot"] = f();}}(typeof self !== 'undefined' ? self : typeof globalThis !== 'undefined' ? globalThis : this, () => {var exports = {};var module = { exports };
|
|
2
|
-
"use strict";var Wr=Object.defineProperty,qr=Object.defineProperties;var jr=Object.getOwnPropertyDescriptors;var oe=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var bt=(e,r,c)=>r in e?Wr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[r]=c,H=(e,r)=>{for(var c in r||(r={}))xt.call(r,c)&&bt(e,c,r[c]);if(oe)for(var c of oe(r))Ct.call(r,c)&&bt(e,c,r[c]);return e},re=(e,r)=>qr(e,jr(r));var Ce=(e,r)=>{var c={};for(var o in e)xt.call(e,o)&&r.indexOf(o)<0&&(c[o]=e[o]);if(e!=null&&oe)for(var o of oe(e))r.indexOf(o)<0&&Ct.call(e,o)&&(c[o]=e[o]);return c};var ve=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var ce=ve(U=>{"use strict";var Vr=Object.defineProperty,Gr=(e,r,c)=>r in e?Vr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[r]=c,vt=(e,r,c)=>Gr(e,typeof r!="symbol"?r+"":r,c),J=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(J||{}),Rt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Et={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ae={};function Hr(e){var r,c;let o=(c=(r=globalThis==null?void 0:globalThis.Zone)==null?void 0:r.__symbol__)==null?void 0:c.call(r,e);if(o&&globalThis[o])return globalThis[o]}function Ie(e){if(ae[e])return ae[e];let r=Hr(e)||globalThis[e],c=r.prototype,o=e in Rt?Rt[e]:void 0,i=!!(o&&o.every(h=>{var d,a;return!!((a=(d=Object.getOwnPropertyDescriptor(c,h))==null?void 0:d.get)!=null&&a.toString().includes("[native code]"))})),f=e in Et?Et[e]:void 0,u=!!(f&&f.every(h=>{var d;return typeof c[h]=="function"&&((d=c[h])==null?void 0:d.toString().includes("[native code]"))}));if(i&&u)return ae[e]=r.prototype,r.prototype;try{let h=document.createElement("iframe");document.body.appendChild(h);let d=h.contentWindow;if(!d)return r.prototype;let a=d[e].prototype;return document.body.removeChild(h),a?ae[e]=a:c}catch(h){return c}}var Re={};function Z(e,r,c){var o;let i=`${e}.${String(c)}`;if(Re[i])return Re[i].call(r);let f=Ie(e),u=(o=Object.getOwnPropertyDescriptor(f,c))==null?void 0:o.get;return u?(Re[i]=u,u.call(r)):r[c]}var Ee={};function Mt(e,r,c){let o=`${e}.${String(c)}`;if(Ee[o])return Ee[o].bind(r);let f=Ie(e)[c];return typeof f!="function"?r[c]:(Ee[o]=f,f.bind(r))}function Jr(e){return Z("Node",e,"childNodes")}function Zr(e){return Z("Node",e,"parentNode")}function Yr(e){return Z("Node",e,"parentElement")}function Xr(e){return Z("Node",e,"textContent")}function Qr(e,r){return Mt("Node",e,"contains")(r)}function Kr(e){return Mt("Node",e,"getRootNode")()}function ei(e){return!e||!("host"in e)?null:Z("ShadowRoot",e,"host")}function ti(e){return e.styleSheets}function ri(e){return!e||!("shadowRoot"in e)?null:Z("Element",e,"shadowRoot")}function ii(e,r){return Z("Element",e,"querySelector")(r)}function si(e,r){return Z("Element",e,"querySelectorAll")(r)}function ni(){return Ie("MutationObserver").constructor}function oi(e,r,c){try{if(!(r in e))return()=>{};let o=e[r],i=c(o);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:o}})),e[r]=i,()=>{e[r]=o}}catch(o){return()=>{}}}var le={childNodes:Jr,parentNode:Zr,parentElement:Yr,textContent:Xr,contains:Qr,getRootNode:Kr,host:ei,styleSheets:ti,shadowRoot:ri,querySelector:ii,querySelectorAll:si,mutationObserver:ni,patch:oi};function Ot(e){return e.nodeType===e.ELEMENT_NODE}function ai(e){let r=e&&"host"in e&&"mode"in e&&le.host(e)||null;return!!(r&&"shadowRoot"in r&&le.shadowRoot(r)===e)}function li(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function ui(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function At(e){let{cssText:r}=e;if(r.split('"').length<3)return r;let c=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?c.push("layer"):e.layerName&&c.push(`layer(${e.layerName})`),e.supportsText&&c.push(`supports(${e.supportsText})`),e.media.length&&c.push(e.media.mediaText),c.join(" ")+";"}function Pt(e){try{let r=e.rules||e.cssRules;if(!r)return null;let c=e.href;!c&&e.ownerNode&&(c=e.ownerNode.baseURI);let o=Array.from(r,i=>_t(i,c)).join("");return ui(o)}catch(r){return null}}function _t(e,r){var c;if(Dt(e)){let o;try{o=Pt(e.styleSheet)||At(e)}catch(i){o=e.cssText}try{if(o&&((c=e.styleSheet)!=null&&c.href))return Ne(o,e.styleSheet.href)}catch(i){}return o}else{let o=e.cssText;return kt(e)&&e.selectorText.includes(":")&&(o=Tt(o)),r?Ne(o,r):o}}function Tt(e){let r=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(r,"$1\\$2")}function Dt(e){return"styleSheet"in e}function kt(e){return"selectorText"in e}var ue=class{constructor(){vt(this,"idNodeMap",new Map),vt(this,"nodeMetaMap",new WeakMap)}getId(r){var c;if(!r)return-1;let o=(c=this.getMeta(r))==null?void 0:c.id;return o!=null?o:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){let c=this.getId(r);if(this.idNodeMap.delete(c),r.childNodes&&r.childNodes.forEach(o=>this.removeNodeFromMap(o)),Ot(r)){let o=le.shadowRoot(r);o&&this.removeNodeFromMap(o),r.nodeName==="IFRAME"&&r.contentDocument&&this.removeNodeFromMap(r.contentDocument)}}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,c){let o=c.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,c)}replace(r,c){let o=this.getNode(r);if(o){let i=this.nodeMetaMap.get(o);i&&this.nodeMetaMap.set(c,i)}this.idNodeMap.set(r,c)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function ci(){return new ue}function fi({element:e,maskInputOptions:r,tagName:c,type:o,value:i,maskInputFn:f}){let u=i||"",h=o&&Me(o);return(r[c.toLowerCase()]||h&&r[h])&&(f?u=f(u,e):u="*".repeat(u.length)),u}function Me(e){return e.toLowerCase()}var Nt="__rrweb_original__";function hi(e){let r=e.getContext("2d");if(!r)return!0;let c=50;for(let o=0;o<e.width;o+=c)for(let i=0;i<e.height;i+=c){let f=r.getImageData,u=Nt in f?f[Nt]:f;if(new Uint32Array(u.call(r,o,i,Math.min(c,e.width-o),Math.min(c,e.height-i)).data.buffer).some(d=>d!==0))return!1}return!0}function pi(e,r){return!e||!r||e.type!==r.type?!1:e.type===J.Document?e.compatMode===r.compatMode:e.type===J.DocumentType?e.name===r.name&&e.publicId===r.publicId&&e.systemId===r.systemId:e.type===J.Comment||e.type===J.Text||e.type===J.CDATA?e.textContent===r.textContent:e.type===J.Element?e.tagName===r.tagName&&JSON.stringify(e.attributes)===JSON.stringify(r.attributes)&&e.isSVG===r.isSVG&&e.needBlock===r.needBlock:!1}function di(e){let r=e.type;return e.hasAttribute("data-rr-is-password")?"password":r?Me(r):null}function mi(e,r){var f;let c;try{c=new URL(e,r!=null?r:window.location.href)}catch(u){return null}let o=/\.([0-9a-z]+)(?:$)/i,i=c.pathname.match(o);return(f=i==null?void 0:i[1])!=null?f:null}function gi(e){let r="";return e.indexOf("//")>-1?r=e.split("/").slice(0,3).join("/"):r=e.split("/")[0],r=r.split("?")[0],r}var yi=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,wi=/^(?:[a-z+]+:)?\/\//i,Si=/^www\..*/i,bi=/^(data:)([^,]*),(.*)/i;function Ne(e,r){return(e||"").replace(yi,(c,o,i,f,u,h)=>{let d=i||u||h,a=o||f||"";if(!d)return c;if(wi.test(d)||Si.test(d))return`url(${a}${d}${a})`;if(bi.test(d))return`url(${a}${d}${a})`;if(d[0]==="/")return`url(${a}${gi(r)+d}${a})`;let t=r.split("/"),l=d.split("/");t.pop();for(let n of l)n!=="."&&(n===".."?t.pop():t.push(n));return`url(${a}${t.join("/")}${a})`})}var xi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==",It=4096;function Ci(e,r,c,o){if(!e.complete||e.naturalWidth===0||e.naturalWidth>It||e.naturalHeight>It)return r;try{let i=document.createElement("canvas");i.width=e.naturalWidth,i.height=e.naturalHeight;let f=i.getContext("2d");return f?(f.drawImage(e,0,0),i.toDataURL(c||"image/webp",o!=null?o:.4)):r}catch(i){return r}}function vi(e,r){return!r||e.length<=r?e:xi}var Lt=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Lt||{});U.Mirror=ue;U.NodeType=Lt;U.NodeType$1=J;U.absolutifyURLs=Ne;U.checkDataURLSize=vi;U.createMirror=ci;U.escapeImportStatement=At;U.extractFileExtension=mi;U.fixSafariColons=Tt;U.getInputType=di;U.index=le;U.is2DCanvasBlank=hi;U.isCSSImportRule=Dt;U.isCSSStyleRule=kt;U.isElement=Ot;U.isNativeShadowDom=li;U.isNodeMetaEqual=pi;U.isShadowRoot=ai;U.maskInputValue=fi;U.recompressBase64Image=Ci;U.stringifyRule=_t;U.stringifyStylesheet=Pt;U.toLowerCase=Me});var Gt=ve(W=>{"use strict";var I=ce(),$t=1,Ri=new RegExp("[^a-z0-9-_:]"),Oe=-2;function zt(){return $t++}function Ei(e){if(e instanceof HTMLFormElement)return"form";let r=I.toLowerCase(e.tagName);return Ri.test(r)?"div":r}var K,Bt,Ni=/^[^ \t\n\r\u000c]+/,Ii=/^[, \t\n\r\u000c]+/;function Mi(e,r){if(r.trim()==="")return r;let c=0;function o(f){let u,h=f.exec(r.substring(c));return h?(u=h[0],c+=u.length,u):""}let i=[];for(;o(Ii),!(c>=r.length);){let f=o(Ni);if(f.slice(-1)===",")f=ee(e,f.substring(0,f.length-1)),i.push(f);else{let u="";f=ee(e,f);let h=!1;for(;;){let d=r.charAt(c);if(d===""){i.push((f+u).trim());break}else if(h)d===")"&&(h=!1);else if(d===","){c+=1,i.push((f+u).trim());break}else d==="("&&(h=!0);u+=d,c+=1}}}return i.join(", ")}var Ut=new WeakMap;function ee(e,r){return!r||r.trim()===""?r:Pe(e,r)}function Oi(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Pe(e,r){let c=Ut.get(e);if(c||(c=e.createElement("a"),Ut.set(e,c)),!r)r="";else if(r.startsWith("blob:")||r.startsWith("data:"))return r;return c.setAttribute("href",r),c.href}function Wt(e,r,c,o,i,f){if(!o)return o;if(c==="src"||c==="href"&&!(r==="use"&&o[0]==="#")){let u=ee(e,o);if(r==="img"&&u.startsWith("data:")&&i){let h=i,d=u;return(f!=null&&f.type||(f==null?void 0:f.quality)!==void 0)&&(d=I.recompressBase64Image(h,u,f.type,f.quality)),f!=null&&f.maxBase64ImageLength&&(d=I.checkDataURLSize(d,f.maxBase64ImageLength)),d}return u}else{if(c==="xlink:href"&&o[0]!=="#")return ee(e,o);if(c==="background"&&(r==="table"||r==="td"||r==="th"))return ee(e,o);if(c==="srcset")return Mi(e,o);if(c==="style")return I.absolutifyURLs(o,Pe(e));if(r==="object"&&c==="data")return ee(e,o)}return o}function qt(e,r,c){return(e==="video"||e==="audio")&&r==="autoplay"}function Ai(e,r,c){try{if(typeof r=="string"){if(e.classList.contains(r))return!0}else for(let o=e.classList.length;o--;){let i=e.classList[o];if(r.test(i))return!0}if(c)return e.matches(c)}catch(o){}return!1}function fe(e,r,c){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return c?fe(I.index.parentNode(e),r,c):!1;for(let o=e.classList.length;o--;){let i=e.classList[o];if(r.test(i))return!0}return c?fe(I.index.parentNode(e),r,c):!1}function jt(e,r,c,o){let i;if(I.isElement(e)){if(i=e,!I.index.childNodes(i).length)return!1}else{if(I.index.parentElement(e)===null)return!1;i=I.index.parentElement(e)}try{if(typeof r=="string"){if(o){if(i.closest(`.${r}`))return!0}else if(i.classList.contains(r))return!0}else if(fe(i,r,o))return!0;if(c){if(o){if(i.closest(c))return!0}else if(i.matches(c))return!0}}catch(f){}return!1}function Pi(e,r,c){let o=e.contentWindow;if(!o)return;let i=!1,f;try{f=o.document.readyState}catch(h){return}if(f!=="complete"){let h=setTimeout(()=>{i||(r(),i=!0)},c);e.addEventListener("load",()=>{clearTimeout(h),i=!0,r()});return}let u="about:blank";if(o.location.href!==u||e.src===u||e.src==="")return setTimeout(r,0),e.addEventListener("load",r);e.addEventListener("load",r)}function _i(e,r,c){let o=!1,i;try{i=e.sheet}catch(u){return}if(i)return;let f=setTimeout(()=>{o||(r(),o=!0)},c);e.addEventListener("load",()=>{clearTimeout(f),o=!0,r()})}function Ti(e,r){let{doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:u,inlineStylesheet:h,maskInputOptions:d={},maskTextFn:a,maskInputFn:t,dataURLOptions:l={},inlineImages:n,recordCanvas:s,keepIframeSrcFn:p,newlyAddedElement:m=!1}=r,y=Di(c,o);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:I.NodeType$1.Document,childNodes:[],compatMode:e.compatMode}:{type:I.NodeType$1.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:I.NodeType$1.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return Bi(e,{doc:c,blockClass:i,blockSelector:f,inlineStylesheet:h,maskInputOptions:d,maskInputFn:t,dataURLOptions:l,inlineImages:n,recordCanvas:s,keepIframeSrcFn:p,newlyAddedElement:m,rootId:y});case e.TEXT_NODE:return ki(e,{doc:c,needsMask:u,maskTextFn:a,rootId:y});case e.CDATA_SECTION_NODE:return{type:I.NodeType$1.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:I.NodeType$1.Comment,textContent:I.index.textContent(e)||"",rootId:y};default:return!1}}function Di(e,r){if(!r.hasNode(e))return;let c=r.getId(e);return c===1?void 0:c}function ki(e,r){var c;let{needsMask:o,maskTextFn:i,rootId:f}=r,u=I.index.parentNode(e),h=u&&u.tagName,d=I.index.textContent(e),a=h==="STYLE"?!0:void 0,t=h==="SCRIPT"?!0:void 0;if(a&&d){try{e.nextSibling||e.previousSibling||(c=u.sheet)!=null&&c.cssRules&&(d=I.stringifyStylesheet(u.sheet))}catch(l){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${l}`,e)}d=I.absolutifyURLs(d,Pe(r.doc))}return t&&(d="SCRIPT_PLACEHOLDER"),!a&&!t&&d&&o&&(d=i?i(d,I.index.parentElement(e)):d.replace(/[\S]/g,"*")),{type:I.NodeType$1.Text,textContent:d||"",isStyle:a,rootId:f}}function Ft(e,r){return Array.from(e.styleSheets).find(c=>c.href===r)}function Li(e){return e.href}function Bi(e,r){var c,o;let{doc:i,blockClass:f,blockSelector:u,inlineStylesheet:h,maskInputOptions:d={},maskInputFn:a,dataURLOptions:t={},inlineImages:l,recordCanvas:n,keepIframeSrcFn:s,newlyAddedElement:p=!1,rootId:m}=r,y=Ai(e,f,u),b=Ei(e),w={},x=e.attributes.length;for(let g=0;g<x;g++){let S=e.attributes[g];qt(b,S.name,S.value)||(w[S.name]=Wt(i,b,I.toLowerCase(S.name),S.value,e,t))}if(b==="link"&&h){let g=Li(e);if(g){let S=Ft(i,g);if(!S&&g.includes(".css")){let v=window.location.origin,M=g.replace(window.location.href,""),E=v+"/"+M;S=Ft(i,E)}let C=null;S&&(C=I.stringifyStylesheet(S)),C&&(delete w.rel,delete w.href,w._cssText=C)}}if(b==="style"&&e.sheet&&!(e.innerText||I.index.textContent(e)||"").trim().length){let g=I.stringifyStylesheet(e.sheet);g&&(w._cssText=g)}if(b==="input"||b==="textarea"||b==="select"){let g=e.value,S=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&g?w.value=I.maskInputValue({element:e,type:I.getInputType(e),tagName:b,value:g,maskInputOptions:d,maskInputFn:a}):S&&(w.checked=S)}if(b==="option"&&(e.selected&&!d.select?w.selected=!0:delete w.selected),b==="dialog"&&e.open)try{w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(g){w.rr_open_mode="modal",w.ph_rr_could_not_detect_modal=!0}if(b==="canvas"&&n){if(e.__context==="2d")I.is2DCanvasBlank(e)||(w.rr_dataURL=e.toDataURL(t.type,t.quality));else if(!("__context"in e)){let g=e.toDataURL(t.type,t.quality),S=i.createElement("canvas");S.width=e.width,S.height=e.height;let C=S.toDataURL(t.type,t.quality);g!==C&&(w.rr_dataURL=g)}}if(b==="img"&&l){K||(K=i.createElement("canvas"),Bt=K.getContext("2d"));let g=e,S=g.currentSrc||g.getAttribute("src")||"<unknown-src>",C=g.crossOrigin,v=()=>{g.removeEventListener("load",v);try{K.width=g.naturalWidth,K.height=g.naturalHeight,Bt.drawImage(g,0,0),w.rr_dataURL=K.toDataURL(t.type,t.quality)}catch(M){if(g.crossOrigin!=="anonymous"){g.crossOrigin="anonymous",g.complete&&g.naturalWidth!==0?v():g.addEventListener("load",v);return}else console.warn(`Cannot inline img src=${S}! Error: ${M}`)}g.crossOrigin==="anonymous"&&(C?w.crossOrigin=C:g.removeAttribute("crossorigin"))};g.complete&&g.naturalWidth!==0?v():g.addEventListener("load",v)}if(b==="audio"||b==="video"){let g=w;g.rr_mediaState=e.paused?"paused":"played",g.rr_mediaCurrentTime=e.currentTime,g.rr_mediaPlaybackRate=e.playbackRate,g.rr_mediaMuted=e.muted,g.rr_mediaLoop=e.loop,g.rr_mediaVolume=e.volume}if(p||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),y){let{width:g,height:S,left:C,top:v}=e.getBoundingClientRect();w={class:w.class,rr_width:`${g}px`,rr_height:`${S}px`,rr_left:`${Math.floor(C+(((c=i.defaultView)==null?void 0:c.scrollX)||0))}px`,rr_top:`${Math.floor(v+(((o=i.defaultView)==null?void 0:o.scrollY)||0))}px`}}b==="iframe"&&!s(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);let R;try{customElements.get(b)&&(R=!0)}catch(g){}return{type:I.NodeType$1.Element,tagName:b,attributes:w,childNodes:[],isSVG:Oi(e)||void 0,needBlock:y,rootId:m,isCustom:R}}function L(e){return e==null?"":e.toLowerCase()}function Ui(e,r){if(r.comment&&e.type===I.NodeType$1.Comment)return!0;if(e.type===I.NodeType$1.Element){if(r.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&I.extractFileExtension(e.attributes.href)==="js"))return!0;if(r.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(L(e.attributes.name).match(/^msapplication-tile(image|color)$/)||L(e.attributes.name)==="application-name"||L(e.attributes.rel)==="icon"||L(e.attributes.rel)==="apple-touch-icon"||L(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(r.headMetaDescKeywords&&L(e.attributes.name).match(/^description|keywords$/))return!0;if(r.headMetaSocial&&(L(e.attributes.property).match(/^(og|twitter|fb):/)||L(e.attributes.name).match(/^(og|twitter):/)||L(e.attributes.name)==="pinterest"))return!0;if(r.headMetaRobots&&(L(e.attributes.name)==="robots"||L(e.attributes.name)==="googlebot"||L(e.attributes.name)==="bingbot"))return!0;if(r.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(r.headMetaAuthorship&&(L(e.attributes.name)==="author"||L(e.attributes.name)==="generator"||L(e.attributes.name)==="framework"||L(e.attributes.name)==="publisher"||L(e.attributes.name)==="progid"||L(e.attributes.property).match(/^article:/)||L(e.attributes.property).match(/^product:/)))return!0;if(r.headMetaVerification&&(L(e.attributes.name)==="google-site-verification"||L(e.attributes.name)==="yandex-verification"||L(e.attributes.name)==="csrf-token"||L(e.attributes.name)==="p:domain_verify"||L(e.attributes.name)==="verify-v1"||L(e.attributes.name)==="verification"||L(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}var Vt=50,Ae=!1,_e=!1;function Fi(){return _e}function $i(){_e=!1,Ae=!1}function te(e,r){let{doc:c,mirror:o,blockClass:i,blockSelector:f,maskTextClass:u,maskTextSelector:h,skipChild:d=!1,inlineStylesheet:a=!0,maskInputOptions:t={},maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p={},inlineImages:m=!1,recordCanvas:y=!1,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x=5e3,onStylesheetLoad:R,stylesheetLoadTimeout:g=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:C=!1,depth:v=0,maxDepth:M=Vt}=r,{needsMask:E}=r,{preserveWhiteSpace:D=!0}=r;if(v>=M)return _e=!0,Ae||(Ae=!0,console.warn(`[rrweb-snapshot] DOM tree depth exceeded max depth of ${M}. Children beyond this depth will not be recorded. This may indicate deeply nested DOM structures.`)),null;E||(E=jt(e,u,h,E===void 0));let P=Ti(e,{doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:E,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,dataURLOptions:p,inlineImages:m,recordCanvas:y,keepIframeSrcFn:S,newlyAddedElement:C});if(!P)return console.warn(e,"not serialized"),null;let G;o.hasNode(e)?G=o.getId(e):Ui(P,s)||!D&&P.type===I.NodeType$1.Text&&!P.isStyle&&!P.textContent.replace(/^\s+|\s+$/gm,"").length?G=Oe:G=zt();let _=Object.assign(P,{id:G});if(o.add(e,_),G===Oe)return null;b&&b(e);let N=!d;if(_.type===I.NodeType$1.Element){N=N&&!_.needBlock,delete _.needBlock;let k=I.index.shadowRoot(e);k&&I.isNativeShadowDom(k)&&(_.isShadowHost=!0)}if((_.type===I.NodeType$1.Document||_.type===I.NodeType$1.Element)&&N){s.headWhitespace&&_.type===I.NodeType$1.Element&&_.tagName==="head"&&(D=!1);let k={doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:E,maskTextClass:u,maskTextSelector:h,skipChild:d,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p,inlineImages:m,recordCanvas:y,preserveWhiteSpace:D,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:R,stylesheetLoadTimeout:g,keepIframeSrcFn:S,depth:v+1,maxDepth:M};if(!(_.type===I.NodeType$1.Element&&_.tagName==="textarea"&&_.attributes.value!==void 0))for(let V of Array.from(I.index.childNodes(e))){let z=te(V,k);z&&_.childNodes.push(z)}let $=null;if(I.isElement(e)&&($=I.index.shadowRoot(e)))for(let V of Array.from(I.index.childNodes($))){let z=te(V,k);z&&(I.isNativeShadowDom($)&&(z.isShadow=!0),_.childNodes.push(z))}}let X=I.index.parentNode(e);return X&&I.isShadowRoot(X)&&I.isNativeShadowDom(X)&&(_.isShadow=!0),_.type===I.NodeType$1.Element&&_.tagName==="iframe"&&Pi(e,()=>{let k=e.contentDocument;if(k&&w){let $=te(k,{doc:k,mirror:o,blockClass:i,blockSelector:f,needsMask:E,maskTextClass:u,maskTextSelector:h,skipChild:!1,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p,inlineImages:m,recordCanvas:y,preserveWhiteSpace:D,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:R,stylesheetLoadTimeout:g,keepIframeSrcFn:S,depth:v+1,maxDepth:M});$&&w(e,$)}},x),_.type===I.NodeType$1.Element&&_.tagName==="link"&&typeof _.attributes.rel=="string"&&(_.attributes.rel==="stylesheet"||_.attributes.rel==="preload"&&typeof _.attributes.href=="string"&&I.extractFileExtension(_.attributes.href)==="css")&&_i(e,()=>{if(R){let k=te(e,{doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:E,maskTextClass:u,maskTextSelector:h,skipChild:!1,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p,inlineImages:m,recordCanvas:y,preserveWhiteSpace:D,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:R,stylesheetLoadTimeout:g,keepIframeSrcFn:S,depth:v,maxDepth:M});k&&R(e,k)}},g),_}function zi(e,r){let{mirror:c=new I.Mirror,blockClass:o="rr-block",blockSelector:i=null,maskTextClass:f="rr-mask",maskTextSelector:u=null,inlineStylesheet:h=!0,inlineImages:d=!1,recordCanvas:a=!1,maskAllInputs:t=!1,maskTextFn:l,maskInputFn:n,slimDOM:s=!1,dataURLOptions:p,preserveWhiteSpace:m,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:R,keepIframeSrcFn:g=()=>!1,maxDepth:S}=r||{};return te(e,{doc:e,mirror:c,blockClass:o,blockSelector:i,maskTextClass:f,maskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:t===!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}:t===!1?{password:!0}:t,maskTextFn:l,maskInputFn:n,slimDOMOptions:s===!0||s==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:s==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:s===!1?{}:s,dataURLOptions:p,inlineImages:d,recordCanvas:a,preserveWhiteSpace:m,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:R,keepIframeSrcFn:g,newlyAddedElement:!1,maxDepth:S})}function Wi(e,r){function c(o){r(o),(o.type===I.NodeType$1.Document||o.type===I.NodeType$1.Element)&&o.childNodes.forEach(c)}c(e)}function qi(){$t=1}W.DEFAULT_MAX_DEPTH=Vt;W.IGNORED_NODE=Oe;W.classMatchesRegex=fe;W.cleanupSnapshot=qi;W.genId=zt;W.ignoreAttribute=qt;W.needMaskingText=jt;W.resetMaxDepthState=$i;W.serializeNodeWithId=te;W.snapshot=zi;W.transformAttribute=Wt;W.visitSnapshot=Wi;W.wasMaxDepthReached=Fi});var Br=ve(T=>{"use strict";Object.defineProperty(T,Symbol.toStringTag,{value:"Module"});var A=ce(),ji=/(max|min)-device-(width|height)/,Ht=new RegExp(ji.source,"g"),Vi={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Ht)&&(e.params=e.params.replace(Ht,"$1-$2"))}}}},Gi={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(r){e.indexOf(r)===-1&&(e.push(r),r.selectors.forEach(function(c){if(c.includes(":hover")){let o=c.replace(new RegExp("(?<!\\\\):hover","g"),".\\:hover");o!==c&&(r.selector+=`,
|
|
3
|
-
`+o)}}))}}}};function
|
|
2
|
+
"use strict";var qr=Object.defineProperty,jr=Object.defineProperties;var Vr=Object.getOwnPropertyDescriptors;var oe=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var bt=(e,r,c)=>r in e?qr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[r]=c,H=(e,r)=>{for(var c in r||(r={}))xt.call(r,c)&&bt(e,c,r[c]);if(oe)for(var c of oe(r))Ct.call(r,c)&&bt(e,c,r[c]);return e},re=(e,r)=>jr(e,Vr(r));var Ce=(e,r)=>{var c={};for(var o in e)xt.call(e,o)&&r.indexOf(o)<0&&(c[o]=e[o]);if(e!=null&&oe)for(var o of oe(e))r.indexOf(o)<0&&Ct.call(e,o)&&(c[o]=e[o]);return c};var ve=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var ce=ve(B=>{"use strict";var Gr=Object.defineProperty,Hr=(e,r,c)=>r in e?Gr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[r]=c,vt=(e,r,c)=>Hr(e,typeof r!="symbol"?r+"":r,c),J=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(J||{}),Rt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Et={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ae={};function Jr(e){var r,c;let o=(c=(r=globalThis==null?void 0:globalThis.Zone)==null?void 0:r.__symbol__)==null?void 0:c.call(r,e);if(o&&globalThis[o])return globalThis[o]}function Ie(e){if(ae[e])return ae[e];let r=Jr(e)||globalThis[e],c=r.prototype,o=e in Rt?Rt[e]:void 0,i=!!(o&&o.every(h=>{var d,a;return!!((a=(d=Object.getOwnPropertyDescriptor(c,h))==null?void 0:d.get)!=null&&a.toString().includes("[native code]"))})),f=e in Et?Et[e]:void 0,u=!!(f&&f.every(h=>{var d;return typeof c[h]=="function"&&((d=c[h])==null?void 0:d.toString().includes("[native code]"))}));if(i&&u)return ae[e]=r.prototype,r.prototype;try{let h=document.createElement("iframe");document.body.appendChild(h);let d=h.contentWindow;if(!d)return r.prototype;let a=d[e].prototype;return document.body.removeChild(h),a?ae[e]=a:c}catch(h){return c}}var Re={};function Z(e,r,c){var o;let i=`${e}.${String(c)}`;if(Re[i])return Re[i].call(r);let f=Ie(e),u=(o=Object.getOwnPropertyDescriptor(f,c))==null?void 0:o.get;return u?(Re[i]=u,u.call(r)):r[c]}var Ee={};function Mt(e,r,c){let o=`${e}.${String(c)}`;if(Ee[o])return Ee[o].bind(r);let f=Ie(e)[c];return typeof f!="function"?r[c]:(Ee[o]=f,f.bind(r))}function Zr(e){return Z("Node",e,"childNodes")}function Yr(e){return Z("Node",e,"parentNode")}function Xr(e){return Z("Node",e,"parentElement")}function Qr(e){return Z("Node",e,"textContent")}function Kr(e,r){return Mt("Node",e,"contains")(r)}function ei(e){return Mt("Node",e,"getRootNode")()}function ti(e){return!e||!("host"in e)?null:Z("ShadowRoot",e,"host")}function ri(e){return e.styleSheets}function ii(e){return!e||!("shadowRoot"in e)?null:Z("Element",e,"shadowRoot")}function si(e,r){return Z("Element",e,"querySelector")(r)}function ni(e,r){return Z("Element",e,"querySelectorAll")(r)}function oi(){return Ie("MutationObserver").constructor}function ai(e,r,c){try{if(!(r in e))return()=>{};let o=e[r],i=c(o);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:o}})),e[r]=i,()=>{e[r]=o}}catch(o){return()=>{}}}var le={childNodes:Zr,parentNode:Yr,parentElement:Xr,textContent:Qr,contains:Kr,getRootNode:ei,host:ti,styleSheets:ri,shadowRoot:ii,querySelector:si,querySelectorAll:ni,mutationObserver:oi,patch:ai};function Ot(e){return e.nodeType===e.ELEMENT_NODE}function li(e){let r=e&&"host"in e&&"mode"in e&&le.host(e)||null;return!!(r&&"shadowRoot"in r&&le.shadowRoot(r)===e)}function ui(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function ci(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function At(e){let{cssText:r}=e;if(r.split('"').length<3)return r;let c=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?c.push("layer"):e.layerName&&c.push(`layer(${e.layerName})`),e.supportsText&&c.push(`supports(${e.supportsText})`),e.media.length&&c.push(e.media.mediaText),c.join(" ")+";"}function Pt(e){try{let r=e.rules||e.cssRules;if(!r)return null;let c=e.href;!c&&e.ownerNode&&(c=e.ownerNode.baseURI);let o=Array.from(r,i=>Tt(i,c)).join("");return ci(o)}catch(r){return null}}function Tt(e,r){var c;if(Dt(e)){let o;try{o=Pt(e.styleSheet)||At(e)}catch(i){o=e.cssText}try{if(o&&((c=e.styleSheet)!=null&&c.href))return Ne(o,e.styleSheet.href)}catch(i){}return o}else{let o=e.cssText;return kt(e)&&e.selectorText.includes(":")&&(o=_t(o)),r?Ne(o,r):o}}function _t(e){let r=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(r,"$1\\$2")}function Dt(e){return"styleSheet"in e}function kt(e){return"selectorText"in e}var ue=class{constructor(){vt(this,"idNodeMap",new Map),vt(this,"nodeMetaMap",new WeakMap)}getId(r){var c;if(!r)return-1;let o=(c=this.getMeta(r))==null?void 0:c.id;return o!=null?o:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){let c=this.getId(r);if(this.idNodeMap.delete(c),r.childNodes&&r.childNodes.forEach(o=>this.removeNodeFromMap(o)),Ot(r)){let o=le.shadowRoot(r);o&&this.removeNodeFromMap(o),r.nodeName==="IFRAME"&&r.contentDocument&&this.removeNodeFromMap(r.contentDocument)}}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,c){let o=c.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,c)}replace(r,c){let o=this.getNode(r);if(o){let i=this.nodeMetaMap.get(o);i&&this.nodeMetaMap.set(c,i)}this.idNodeMap.set(r,c)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function fi(){return new ue}function hi({element:e,maskInputOptions:r,tagName:c,type:o,value:i,maskInputFn:f}){let u=i||"",h=o&&Me(o);return(r[c.toLowerCase()]||h&&r[h])&&(f?u=f(u,e):u="*".repeat(u.length)),u}function Me(e){return e.toLowerCase()}var Nt="__rrweb_original__";function pi(e){let r=e.getContext("2d");if(!r)return!0;let c=50;for(let o=0;o<e.width;o+=c)for(let i=0;i<e.height;i+=c){let f=r.getImageData,u=Nt in f?f[Nt]:f;if(new Uint32Array(u.call(r,o,i,Math.min(c,e.width-o),Math.min(c,e.height-i)).data.buffer).some(d=>d!==0))return!1}return!0}function di(e,r){return!e||!r||e.type!==r.type?!1:e.type===J.Document?e.compatMode===r.compatMode:e.type===J.DocumentType?e.name===r.name&&e.publicId===r.publicId&&e.systemId===r.systemId:e.type===J.Comment||e.type===J.Text||e.type===J.CDATA?e.textContent===r.textContent:e.type===J.Element?e.tagName===r.tagName&&JSON.stringify(e.attributes)===JSON.stringify(r.attributes)&&e.isSVG===r.isSVG&&e.needBlock===r.needBlock:!1}function mi(e){let r=e.type;return e.hasAttribute("data-rr-is-password")?"password":r?Me(r):null}function gi(e,r){var f;let c;try{c=new URL(e,r!=null?r:window.location.href)}catch(u){return null}let o=/\.([0-9a-z]+)(?:$)/i,i=c.pathname.match(o);return(f=i==null?void 0:i[1])!=null?f:null}function yi(e){let r="";return e.indexOf("//")>-1?r=e.split("/").slice(0,3).join("/"):r=e.split("/")[0],r=r.split("?")[0],r}var wi=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Si=/^(?:[a-z+]+:)?\/\//i,bi=/^www\..*/i,xi=/^(data:)([^,]*),(.*)/i;function Ne(e,r){return(e||"").replace(wi,(c,o,i,f,u,h)=>{let d=i||u||h,a=o||f||"";if(!d)return c;if(Si.test(d)||bi.test(d))return`url(${a}${d}${a})`;if(xi.test(d))return`url(${a}${d}${a})`;if(d[0]==="/")return`url(${a}${yi(r)+d}${a})`;let t=r.split("/"),l=d.split("/");t.pop();for(let n of l)n!=="."&&(n===".."?t.pop():t.push(n));return`url(${a}${t.join("/")}${a})`})}var Ci="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==",It=4096;function vi(e,r,c,o){if(!e.complete||e.naturalWidth===0||e.naturalWidth>It||e.naturalHeight>It)return r;try{let i=document.createElement("canvas");i.width=e.naturalWidth,i.height=e.naturalHeight;let f=i.getContext("2d");return f?(f.drawImage(e,0,0),i.toDataURL(c||"image/webp",o!=null?o:.4)):r}catch(i){return r}}function Ri(e,r){return!r||e.length<=r?e:Ci}var Lt=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Lt||{});B.Mirror=ue;B.NodeType=Lt;B.NodeType$1=J;B.absolutifyURLs=Ne;B.checkDataURLSize=Ri;B.createMirror=fi;B.escapeImportStatement=At;B.extractFileExtension=gi;B.fixSafariColons=_t;B.getInputType=mi;B.index=le;B.is2DCanvasBlank=pi;B.isCSSImportRule=Dt;B.isCSSStyleRule=kt;B.isElement=Ot;B.isNativeShadowDom=ui;B.isNodeMetaEqual=di;B.isShadowRoot=li;B.maskInputValue=hi;B.recompressBase64Image=vi;B.stringifyRule=Tt;B.stringifyStylesheet=Pt;B.toLowerCase=Me});var Ht=ve(z=>{"use strict";var I=ce(),$t=1,Ei=new RegExp("[^a-z0-9-_:]"),Oe=-2;function zt(){return $t++}function Ni(e){if(e instanceof HTMLFormElement)return"form";let r=I.toLowerCase(e.tagName);return Ei.test(r)?"div":r}var K,Bt,Ii=/^[^ \t\n\r\u000c]+/,Mi=/^[, \t\n\r\u000c]+/;function Oi(e,r){if(r.trim()==="")return r;let c=0;function o(f){let u,h=f.exec(r.substring(c));return h?(u=h[0],c+=u.length,u):""}let i=[];for(;o(Mi),!(c>=r.length);){let f=o(Ii);if(f.slice(-1)===",")f=ee(e,f.substring(0,f.length-1)),i.push(f);else{let u="";f=ee(e,f);let h=!1;for(;;){let d=r.charAt(c);if(d===""){i.push((f+u).trim());break}else if(h)d===")"&&(h=!1);else if(d===","){c+=1,i.push((f+u).trim());break}else d==="("&&(h=!0);u+=d,c+=1}}}return i.join(", ")}var Ut=new WeakMap;function ee(e,r){return!r||r.trim()===""?r:Pe(e,r)}function Ai(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Pe(e,r){let c=Ut.get(e);if(c||(c=e.createElement("a"),Ut.set(e,c)),!r)r="";else if(r.startsWith("blob:")||r.startsWith("data:"))return r;return c.setAttribute("href",r),c.href}function Wt(e,r,c,o,i,f){if(!o)return o;if(c==="src"||c==="href"&&!(r==="use"&&o[0]==="#")){let u=ee(e,o);if(r==="img"&&u.startsWith("data:")&&i){let h=i,d=u;return(f!=null&&f.type||(f==null?void 0:f.quality)!==void 0)&&(d=I.recompressBase64Image(h,u,f.type,f.quality)),f!=null&&f.maxBase64ImageLength&&(d=I.checkDataURLSize(d,f.maxBase64ImageLength)),d}return u}else{if(c==="xlink:href"&&o[0]!=="#")return ee(e,o);if(c==="background"&&(r==="table"||r==="td"||r==="th"))return ee(e,o);if(c==="srcset")return Oi(e,o);if(c==="style")return I.absolutifyURLs(o,Pe(e));if(r==="object"&&c==="data")return ee(e,o)}return o}function qt(e,r,c){return(e==="video"||e==="audio")&&r==="autoplay"}function Pi(e,r,c){try{if(typeof r=="string"){if(e.classList.contains(r))return!0}else for(let o=e.classList.length;o--;){let i=e.classList[o];if(r.test(i))return!0}if(c)return e.matches(c)}catch(o){}return!1}function fe(e,r,c){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return c?fe(I.index.parentNode(e),r,c):!1;for(let o=e.classList.length;o--;){let i=e.classList[o];if(r.test(i))return!0}return c?fe(I.index.parentNode(e),r,c):!1}function jt(e,r,c,o){let i;if(I.isElement(e)){if(i=e,!I.index.childNodes(i).length)return!1}else{if(I.index.parentElement(e)===null)return!1;i=I.index.parentElement(e)}try{if(typeof r=="string"){if(o){if(i.closest(`.${r}`))return!0}else if(i.classList.contains(r))return!0}else if(fe(i,r,o))return!0;if(c){if(o){if(i.closest(c))return!0}else if(i.matches(c))return!0}}catch(f){}return!1}function Ti(e,r,c){let o=e.contentWindow;if(!o)return;let i=!1,f;try{f=o.document.readyState}catch(h){return}if(f!=="complete"){let h=setTimeout(()=>{i||(r(),i=!0)},c);e.addEventListener("load",()=>{clearTimeout(h),i=!0,r()});return}let u="about:blank";if(o.location.href!==u||e.src===u||e.src==="")return setTimeout(r,0),e.addEventListener("load",r);e.addEventListener("load",r)}function _i(e,r,c){let o=!1,i;try{i=e.sheet}catch(u){return}if(i)return;let f=setTimeout(()=>{o||(r(),o=!0)},c);e.addEventListener("load",()=>{clearTimeout(f),o=!0,r()})}function Di(e,r){let{doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:u,inlineStylesheet:h,maskInputOptions:d={},maskTextFn:a,maskInputFn:t,dataURLOptions:l={},inlineImages:n,recordCanvas:s,keepIframeSrcFn:p,newlyAddedElement:m=!1}=r,y=ki(c,o);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:I.NodeType$1.Document,childNodes:[],compatMode:e.compatMode}:{type:I.NodeType$1.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:I.NodeType$1.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return Ui(e,{doc:c,blockClass:i,blockSelector:f,inlineStylesheet:h,maskInputOptions:d,maskInputFn:t,dataURLOptions:l,inlineImages:n,recordCanvas:s,keepIframeSrcFn:p,newlyAddedElement:m,rootId:y});case e.TEXT_NODE:return Li(e,{doc:c,needsMask:u,maskTextFn:a,rootId:y});case e.CDATA_SECTION_NODE:return{type:I.NodeType$1.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:I.NodeType$1.Comment,textContent:I.index.textContent(e)||"",rootId:y};default:return!1}}function ki(e,r){if(!r.hasNode(e))return;let c=r.getId(e);return c===1?void 0:c}function Li(e,r){var c;let{needsMask:o,maskTextFn:i,rootId:f}=r,u=I.index.parentNode(e),h=u&&u.tagName,d=I.index.textContent(e),a=h==="STYLE"?!0:void 0,t=h==="SCRIPT"?!0:void 0;if(a&&d){try{e.nextSibling||e.previousSibling||(c=u.sheet)!=null&&c.cssRules&&(d=I.stringifyStylesheet(u.sheet))}catch(l){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${l}`,e)}d=I.absolutifyURLs(d,Pe(r.doc))}return t&&(d="SCRIPT_PLACEHOLDER"),!a&&!t&&d&&o&&(d=i?i(d,I.index.parentElement(e)):d.replace(/[\S]/g,"*")),{type:I.NodeType$1.Text,textContent:d||"",isStyle:a,rootId:f}}function Ft(e,r){return Array.from(e.styleSheets).find(c=>c.href===r)}function Bi(e){return e.href}function Ui(e,r){var c,o;let{doc:i,blockClass:f,blockSelector:u,inlineStylesheet:h,maskInputOptions:d={},maskInputFn:a,dataURLOptions:t={},inlineImages:l,recordCanvas:n,keepIframeSrcFn:s,newlyAddedElement:p=!1,rootId:m}=r,y=Pi(e,f,u),b=Ni(e),w={},x=e.attributes.length;for(let g=0;g<x;g++){let S=e.attributes[g];qt(b,S.name,S.value)||(w[S.name]=Wt(i,b,I.toLowerCase(S.name),S.value,e,t))}if(b==="link"&&h){let g=Bi(e);if(g){let S=Ft(i,g);if(!S&&g.includes(".css")){let v=window.location.origin,M=g.replace(window.location.href,""),E=v+"/"+M;S=Ft(i,E)}let C=null;S&&(C=I.stringifyStylesheet(S)),C&&(delete w.rel,delete w.href,w._cssText=C)}}if(b==="style"&&e.sheet&&!(e.innerText||I.index.textContent(e)||"").trim().length){let g=I.stringifyStylesheet(e.sheet);g&&(w._cssText=g)}if(b==="input"||b==="textarea"||b==="select"){let g=e.value,S=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&g?w.value=I.maskInputValue({element:e,type:I.getInputType(e),tagName:b,value:g,maskInputOptions:d,maskInputFn:a}):S&&(w.checked=S)}if(b==="option"&&(e.selected&&!d.select?w.selected=!0:delete w.selected),b==="dialog"&&e.open)try{w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(g){w.rr_open_mode="modal",w.ph_rr_could_not_detect_modal=!0}if(b==="canvas"&&n){if(e.__context==="2d")I.is2DCanvasBlank(e)||(w.rr_dataURL=e.toDataURL(t.type,t.quality));else if(!("__context"in e)){let g=e.toDataURL(t.type,t.quality),S=i.createElement("canvas");S.width=e.width,S.height=e.height;let C=S.toDataURL(t.type,t.quality);g!==C&&(w.rr_dataURL=g)}}if(b==="img"&&l){K||(K=i.createElement("canvas"),Bt=K.getContext("2d"));let g=e,S=g.currentSrc||g.getAttribute("src")||"<unknown-src>",C=g.crossOrigin,v=()=>{g.removeEventListener("load",v);try{K.width=g.naturalWidth,K.height=g.naturalHeight,Bt.drawImage(g,0,0),w.rr_dataURL=K.toDataURL(t.type,t.quality)}catch(M){if(g.crossOrigin!=="anonymous"){g.crossOrigin="anonymous",g.complete&&g.naturalWidth!==0?v():g.addEventListener("load",v);return}else console.warn(`Cannot inline img src=${S}! Error: ${M}`)}g.crossOrigin==="anonymous"&&(C?w.crossOrigin=C:g.removeAttribute("crossorigin"))};g.complete&&g.naturalWidth!==0?v():g.addEventListener("load",v)}if(b==="audio"||b==="video"){let g=w;g.rr_mediaState=e.paused?"paused":"played",g.rr_mediaCurrentTime=e.currentTime,g.rr_mediaPlaybackRate=e.playbackRate,g.rr_mediaMuted=e.muted,g.rr_mediaLoop=e.loop,g.rr_mediaVolume=e.volume}if(p||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),y){let{width:g,height:S,left:C,top:v}=e.getBoundingClientRect();w={class:w.class,rr_width:`${g}px`,rr_height:`${S}px`,rr_left:`${Math.floor(C+(((c=i.defaultView)==null?void 0:c.scrollX)||0))}px`,rr_top:`${Math.floor(v+(((o=i.defaultView)==null?void 0:o.scrollY)||0))}px`}}b==="iframe"&&!s(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);let R;try{customElements.get(b)&&(R=!0)}catch(g){}return{type:I.NodeType$1.Element,tagName:b,attributes:w,childNodes:[],isSVG:Ai(e)||void 0,needBlock:y,rootId:m,isCustom:R}}function q(e){return e==null?"":e.toLowerCase()}function Fi(e,r){if(r.comment&&e.type===I.NodeType$1.Comment)return!0;if(e.type===I.NodeType$1.Element){if(r.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&I.extractFileExtension(e.attributes.href)==="js"))return!0;if(r.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||q(e.attributes.name)==="application-name"||["icon","apple-touch-icon","shortcut icon"].includes(q(e.attributes.rel)))))return!0;if(e.tagName==="meta"){if(r.headMetaDescKeywords&&q(e.attributes.name).match(/^description|keywords$/))return!0;if(r.headMetaSocial&&(q(e.attributes.property).match(/^(og|twitter|fb):/)||q(e.attributes.name).match(/^(og|twitter):/)||q(e.attributes.name)==="pinterest"))return!0;if(r.headMetaRobots&&["robots","googlebot","bingbot"].includes(q(e.attributes.name)))return!0;if(r.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(r.headMetaAuthorship&&(["author","generator","framework","publisher","progid"].includes(q(e.attributes.name))||q(e.attributes.property).match(/^article:/)||q(e.attributes.property).match(/^product:/)))return!0;if(r.headMetaVerification&&["google-site-verification","yandex-verification","csrf-token","p:domain_verify","verify-v1","verification","shopify-checkout-api-token"].includes(q(e.attributes.name)))return!0}}return!1}var Vt=50,Ae=!1,Te=!1;function $i(){return Te}function zi(){Te=!1,Ae=!1}function te(e,r){let{doc:c,mirror:o,blockClass:i,blockSelector:f,maskTextClass:u,maskTextSelector:h,skipChild:d=!1,inlineStylesheet:a=!0,maskInputOptions:t={},maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p={},inlineImages:m=!1,recordCanvas:y=!1,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x=5e3,onStylesheetLoad:R,stylesheetLoadTimeout:g=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:C=!1,depth:v=0,maxDepth:M=Vt}=r,{needsMask:E}=r,{preserveWhiteSpace:D=!0}=r;if(v>=M)return Te=!0,Ae||(Ae=!0,console.warn(`[rrweb-snapshot] DOM tree depth exceeded max depth of ${M}. Children beyond this depth will not be recorded. This may indicate deeply nested DOM structures.`)),null;E||(E=jt(e,u,h,E===void 0));let P=Di(e,{doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:E,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,dataURLOptions:p,inlineImages:m,recordCanvas:y,keepIframeSrcFn:S,newlyAddedElement:C});if(!P)return console.warn(e,"not serialized"),null;let G;o.hasNode(e)?G=o.getId(e):Fi(P,s)||!D&&P.type===I.NodeType$1.Text&&!P.isStyle&&!P.textContent.replace(/^\s+|\s+$/gm,"").length?G=Oe:G=zt();let T=Object.assign(P,{id:G});if(o.add(e,T),G===Oe)return null;b&&b(e);let N=!d;if(T.type===I.NodeType$1.Element){N=N&&!T.needBlock,delete T.needBlock;let k=I.index.shadowRoot(e);k&&I.isNativeShadowDom(k)&&(T.isShadowHost=!0)}if((T.type===I.NodeType$1.Document||T.type===I.NodeType$1.Element)&&N){s.headWhitespace&&T.type===I.NodeType$1.Element&&T.tagName==="head"&&(D=!1);let k={doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:E,maskTextClass:u,maskTextSelector:h,skipChild:d,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p,inlineImages:m,recordCanvas:y,preserveWhiteSpace:D,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:R,stylesheetLoadTimeout:g,keepIframeSrcFn:S,depth:v+1,maxDepth:M};if(!(T.type===I.NodeType$1.Element&&T.tagName==="textarea"&&T.attributes.value!==void 0))for(let V of Array.from(I.index.childNodes(e))){let $=te(V,k);$&&T.childNodes.push($)}let F=null;if(I.isElement(e)&&(F=I.index.shadowRoot(e)))for(let V of Array.from(I.index.childNodes(F))){let $=te(V,k);$&&(I.isNativeShadowDom(F)&&($.isShadow=!0),T.childNodes.push($))}}let X=I.index.parentNode(e);return X&&I.isShadowRoot(X)&&I.isNativeShadowDom(X)&&(T.isShadow=!0),T.type===I.NodeType$1.Element&&T.tagName==="iframe"&&Ti(e,()=>{let k=e.contentDocument;if(k&&w){let F=te(k,{doc:k,mirror:o,blockClass:i,blockSelector:f,needsMask:E,maskTextClass:u,maskTextSelector:h,skipChild:!1,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p,inlineImages:m,recordCanvas:y,preserveWhiteSpace:D,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:R,stylesheetLoadTimeout:g,keepIframeSrcFn:S,depth:v+1,maxDepth:M});F&&w(e,F)}},x),T.type===I.NodeType$1.Element&&T.tagName==="link"&&typeof T.attributes.rel=="string"&&(T.attributes.rel==="stylesheet"||T.attributes.rel==="preload"&&typeof T.attributes.href=="string"&&I.extractFileExtension(T.attributes.href)==="css")&&_i(e,()=>{if(R){let k=te(e,{doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:E,maskTextClass:u,maskTextSelector:h,skipChild:!1,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p,inlineImages:m,recordCanvas:y,preserveWhiteSpace:D,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:R,stylesheetLoadTimeout:g,keepIframeSrcFn:S,depth:v,maxDepth:M});k&&R(e,k)}},g),T}function Gt(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e===!1?{}:e}function Wi(e,r){let{mirror:c=new I.Mirror,blockClass:o="rr-block",blockSelector:i=null,maskTextClass:f="rr-mask",maskTextSelector:u=null,inlineStylesheet:h=!0,inlineImages:d=!1,recordCanvas:a=!1,maskAllInputs:t=!1,maskTextFn:l,maskInputFn:n,slimDOM:s=!1,dataURLOptions:p,preserveWhiteSpace:m,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:R,keepIframeSrcFn:g=()=>!1,maxDepth:S}=r||{},C=t===!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}:t===!1?{password:!0}:t,v=Gt(s);return te(e,{doc:e,mirror:c,blockClass:o,blockSelector:i,maskTextClass:f,maskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:C,maskTextFn:l,maskInputFn:n,slimDOMOptions:v,dataURLOptions:p,inlineImages:d,recordCanvas:a,preserveWhiteSpace:m,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:R,keepIframeSrcFn:g,newlyAddedElement:!1,maxDepth:S})}function qi(e,r){function c(o){r(o),(o.type===I.NodeType$1.Document||o.type===I.NodeType$1.Element)&&o.childNodes.forEach(c)}c(e)}function ji(){$t=1}z.DEFAULT_MAX_DEPTH=Vt;z.IGNORED_NODE=Oe;z.classMatchesRegex=fe;z.cleanupSnapshot=ji;z.genId=zt;z.ignoreAttribute=qt;z.needMaskingText=jt;z.resetMaxDepthState=zi;z.serializeNodeWithId=te;z.slimDOMDefaults=Gt;z.snapshot=Wi;z.transformAttribute=Wt;z.visitSnapshot=qi;z.wasMaxDepthReached=$i});var Ur=ve(_=>{"use strict";Object.defineProperty(_,Symbol.toStringTag,{value:"Module"});var A=ce(),Vi=/(max|min)-device-(width|height)/,Jt=new RegExp(Vi.source,"g"),Gi={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Jt)&&(e.params=e.params.replace(Jt,"$1-$2"))}}}},Hi={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(r){e.indexOf(r)===-1&&(e.push(r),r.selectors.forEach(function(c){if(c.includes(":hover")){let o=c.replace(new RegExp("(?<!\\\\):hover","g"),".\\:hover");o!==c&&(r.selector+=`,
|
|
3
|
+
`+o)}}))}}}};function Ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ji(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var r=e.default;if(typeof r=="function"){var c=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};c.prototype=r.prototype}else c={};return Object.defineProperty(c,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(c,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),c}var he={exports:{}},Zt;function Zi(){if(Zt)return he.exports;Zt=1;var e=String,r=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return he.exports=r(),he.exports.createColors=r,he.exports}var Yi={},Xi=Object.freeze(Object.defineProperty({__proto__:null,default:Yi},Symbol.toStringTag,{value:"Module"})),j=Ji(Xi),_e,Yt;function lt(){if(Yt)return _e;Yt=1;let e=Zi(),r=j;class c extends Error{constructor(i,f,u,h,d,a){super(i),this.name="CssSyntaxError",this.reason=i,d&&(this.file=d),h&&(this.source=h),a&&(this.plugin=a),typeof f!="undefined"&&typeof u!="undefined"&&(typeof f=="number"?(this.line=f,this.column=u):(this.line=f.line,this.column=f.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,c)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let f=this.source;i==null&&(i=e.isColorSupported);let u=s=>s,h=s=>s,d=s=>s;if(i){let{bold:s,gray:p,red:m}=e.createColors(!0);h=y=>s(m(y)),u=y=>p(y),r&&(d=y=>r(y))}let a=f.split(/\r?\n/),t=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),n=String(l).length;return a.slice(t,l).map((s,p)=>{let m=t+1+p,y=" "+(" "+m).slice(-n)+" | ";if(m===this.line){if(s.length>160){let w=20,x=Math.max(0,this.column-w),R=Math.max(this.column+w,this.endColumn+w),g=s.slice(x,R),S=u(y.replace(/\d/g," "))+s.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return h(">")+u(y)+d(g)+`
|
|
4
4
|
`+S+h("^")}let b=u(y.replace(/\d/g," "))+s.slice(0,this.column-1).replace(/[^\t]/g," ");return h(">")+u(y)+d(s)+`
|
|
5
5
|
`+b+h("^")}return" "+u(y)+d(s)}).join(`
|
|
6
6
|
`)}toString(){let i=this.showSourceCode();return i&&(i=`
|
|
7
7
|
|
|
8
8
|
`+i+`
|
|
9
|
-
`),this.name+": "+this.message+i}}return
|
|
9
|
+
`),this.name+": "+this.message+i}}return _e=c,c.default=c,_e}var De,Xt;function Mr(){if(Xt)return De;Xt=1;let e={after:`
|
|
10
10
|
`,beforeClose:`
|
|
11
11
|
`,beforeComment:`
|
|
12
12
|
`,beforeDecl:`
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u=="undefined"?u=this.raw(f,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(i,f){let u;return i.walkDecls(h=>{if(typeof h.raws.before!="undefined")return u=h.raws.before,u.includes(`
|
|
18
18
|
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u=="undefined"?u=this.raw(f,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(i){let f;return i.walk(u=>{if(u.type!=="decl"&&(f=u.raws.between,typeof f!="undefined"))return!1}),f}rawBeforeRule(i){let f;return i.walk(u=>{if(u.nodes&&(u.parent!==i||i.first!==u)&&typeof u.raws.before!="undefined")return f=u.raws.before,f.includes(`
|
|
19
19
|
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(i){let f;return i.walkDecls(u=>{if(typeof u.raws.between!="undefined")return f=u.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(i){let f;return i.walk(u=>{if(u.nodes&&u.nodes.length===0&&(f=u.raws.after,typeof f!="undefined"))return!1}),f}rawIndent(i){if(i.raws.indent)return i.raws.indent;let f;return i.walk(u=>{let h=u.parent;if(h&&h!==i&&h.parent&&h.parent===i&&typeof u.raws.before!="undefined"){let d=u.raws.before.split(`
|
|
20
|
-
`);return f=d[d.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(i){let f;return i.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(f=u.raws.semicolon,typeof f!="undefined"))return!1}),f}rawValue(i,f){let u=i[f],h=i.raws[f];return h&&h.value===u?h.raw:u}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,f){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,f)}}return De=c,c.default=c,De}var ke,
|
|
20
|
+
`);return f=d[d.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(i){let f;return i.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(f=u.raws.semicolon,typeof f!="undefined"))return!1}),f}rawValue(i,f){let u=i[f],h=i.raws[f];return h&&h.value===u?h.raw:u}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,f){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,f)}}return De=c,c.default=c,De}var ke,Qt;function de(){if(Qt)return ke;Qt=1;let e=Mr();function r(c,o){new e(o).stringify(c)}return ke=r,r.default=r,ke}var pe={},Kt;function ut(){return Kt||(Kt=1,pe.isClean=Symbol("isClean"),pe.my=Symbol("my")),pe}var Le,er;function me(){if(er)return Le;er=1;let e=lt(),r=Mr(),c=de(),{isClean:o,my:i}=ut();function f(d,a){let t=new d.constructor;for(let l in d){if(!Object.prototype.hasOwnProperty.call(d,l)||l==="proxyCache")continue;let n=d[l],s=typeof n;l==="parent"&&s==="object"?a&&(t[l]=a):l==="source"?t[l]=n:Array.isArray(n)?t[l]=n.map(p=>f(p,t)):(s==="object"&&n!==null&&(n=f(n)),t[l]=n)}return t}function u(d,a){if(a&&typeof a.offset!="undefined")return a.offset;let t=1,l=1,n=0;for(let s=0;s<d.length;s++){if(l===a.line&&t===a.column){n=s;break}d[s]===`
|
|
21
21
|
`?(t=1,l+=1):t+=1}return n}class h{get proxyOf(){return this}constructor(a={}){this.raws={},this[o]=!1,this[i]=!0;for(let t in a)if(t==="nodes"){this.nodes=[];for(let l of a[t])typeof l.clone=="function"?this.append(l.clone()):this.append(l)}else this[t]=a[t]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let t=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let t in a)this[t]=a[t];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let t=f(this);for(let l in a)t[l]=a[l];return t}cloneAfter(a={}){let t=this.clone(a);return this.parent.insertAfter(this,t),t}cloneBefore(a={}){let t=this.clone(a);return this.parent.insertBefore(this,t),t}error(a,t={}){if(this.source){let{end:l,start:n}=this.rangeBy(t);return this.source.input.error(a,{column:n.column,line:n.line},{column:l.column,line:l.line},t)}return new e(a)}getProxyProcessor(){return{get(a,t){return t==="proxyOf"?a:t==="root"?()=>a.root().toProxy():a[t]},set(a,t,l){return a[t]===l||(a[t]=l,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&a.markDirty()),!0}}}markClean(){this[o]=!0}markDirty(){if(this[o]){this[o]=!1;let a=this;for(;a=a.parent;)a[o]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a={}){let t=this.source.start;if(a.index)t=this.positionInside(a.index);else if(a.word){let l="document"in this.source.input?this.source.input.document:this.source.input.css,s=l.slice(u(l,this.source.start),u(l,this.source.end)).indexOf(a.word);s!==-1&&(t=this.positionInside(s))}return t}positionInside(a){let t=this.source.start.column,l=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,s=u(n,this.source.start),p=s+a;for(let m=s;m<p;m++)n[m]===`
|
|
22
|
-
`?(t=1,l+=1):t+=1;return{column:t,line:l,offset:p}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,l={column:this.source.start.column,line:this.source.start.line,offset:u(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:u(t,this.source.end)+1}:{column:l.column+1,line:l.line,offset:l.offset+1};if(a.word){let p=t.slice(u(t,this.source.start),u(t,this.source.end)).indexOf(a.word);p!==-1&&(l=this.positionInside(p),n=this.positionInside(p+a.word.length))}else a.start?l={column:a.start.column,line:a.start.line,offset:u(t,a.start)}:a.index&&(l=this.positionInside(a.index)),a.end?n={column:a.end.column,line:a.end.line,offset:u(t,a.end)}:typeof a.endIndex=="number"?n=this.positionInside(a.endIndex):a.index&&(n=this.positionInside(a.index+1));return(n.line<l.line||n.line===l.line&&n.column<=l.column)&&(n={column:l.column+1,line:l.line,offset:l.offset+1}),{end:n,start:l}}raw(a,t){return new r().raw(this,a,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let t=this,l=!1;for(let n of a)n===this?l=!0:l?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);l||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,t){let l={},n=t==null;t=t||new Map;let s=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let m=this[p];if(Array.isArray(m))l[p]=m.map(y=>typeof y=="object"&&y.toJSON?y.toJSON(null,t):y);else if(typeof m=="object"&&m.toJSON)l[p]=m.toJSON(null,t);else if(p==="source"){if(m==null)continue;let y=t.get(m.input);y==null&&(y=s,t.set(m.input,s),s++),l[p]={end:m.end,inputId:y,start:m.start}}else l[p]=m}return n&&(l.inputs=[...t.keys()].map(p=>p.toJSON())),l}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=c){a.stringify&&(a=a.stringify);let t="";return a(this,l=>{t+=l}),t}warn(a,t,l={}){let n={node:this};for(let s in l)n[s]=l[s];return a.warn(t,n)}}return Le=h,h.default=h,Le}var Be,er;function ie(){if(er)return Be;er=1;let e=me();class r extends e{constructor(o){super(o),this.type="comment"}}return Be=r,r.default=r,Be}var Ue,tr;function ge(){if(tr)return Ue;tr=1;let e=me();class r extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(o){o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=re(H({},o),{value:String(o.value)})),super(o),this.type="decl"}}return Ue=r,r.default=r,Ue}var Fe,rr;function Y(){if(rr)return Fe;rr=1;let e=ie(),r=ge(),c=me(),{isClean:o,my:i}=ut(),f,u,h,d;function a(n){return n.map(s=>(s.nodes&&(s.nodes=a(s.nodes)),delete s.source,s))}function t(n){if(n[o]=!1,n.proxyOf.nodes)for(let s of n.proxyOf.nodes)t(s)}class l extends c{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...s){for(let p of s){let m=this.normalize(p,this.last);for(let y of m)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let p of this.nodes)p.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,y;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],y=s(this.proxyOf.nodes[m],m),y!==!1);)this.indexes[p]+=1;return delete this.indexes[p],y}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,p){return p==="proxyOf"?s:s[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>s[p](...m.map(y=>typeof y=="function"?(b,w)=>y(b.toProxy(),w):y)):p==="every"||p==="some"?m=>s[p]((y,...b)=>m(y.toProxy(),...b)):p==="root"?()=>s.root().toProxy():p==="nodes"?s.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?s[p].toProxy():s[p]:s[p]},set(s,p,m){return s[p]===m||(s[p]=m,(p==="name"||p==="params"||p==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,p){let m=this.index(s),y=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(s);for(let w of y)this.proxyOf.nodes.splice(m+1,0,w);let b;for(let w in this.indexes)b=this.indexes[w],m<b&&(this.indexes[w]=b+y.length);return this.markDirty(),this}insertBefore(s,p){let m=this.index(s),y=m===0?"prepend":!1,b=this.normalize(p,this.proxyOf.nodes[m],y).reverse();m=this.index(s);for(let x of b)this.proxyOf.nodes.splice(m,0,x);let w;for(let x in this.indexes)w=this.indexes[x],m<=w&&(this.indexes[x]=w+b.length);return this.markDirty(),this}normalize(s,p){if(typeof s=="string")s=a(u(s).nodes);else if(typeof s=="undefined")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let y of s)y.parent&&y.parent.removeChild(y,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let y of s)y.parent&&y.parent.removeChild(y,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value=="undefined")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector||s.selectors)s=[new d(s)];else if(s.name)s=[new f(s)];else if(s.text)s=[new e(s)];else throw new Error("Unknown node type in node creation");return s.map(y=>(y[i]||l.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[o]&&t(y),y.raws||(y.raws={}),typeof y.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(y.raws.before=p.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...s){s=s.reverse();for(let p of s){let m=this.normalize(p,this.first,"prepend").reverse();for(let y of m)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+m.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let p;for(let m in this.indexes)p=this.indexes[m],p>=s&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(s,p,m){return m||(m=p,p={}),this.walkDecls(y=>{p.props&&!p.props.includes(y.prop)||p.fast&&!y.value.includes(p.fast)||(y.value=y.value.replace(s,m))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((p,m)=>{let y;try{y=s(p,m)}catch(b){throw p.addToError(b)}return y!==!1&&p.walk&&(y=p.walk(s)),y})}walkAtRules(s,p){return p?s instanceof RegExp?this.walk((m,y)=>{if(m.type==="atrule"&&s.test(m.name))return p(m,y)}):this.walk((m,y)=>{if(m.type==="atrule"&&m.name===s)return p(m,y)}):(p=s,this.walk((m,y)=>{if(m.type==="atrule")return p(m,y)}))}walkComments(s){return this.walk((p,m)=>{if(p.type==="comment")return s(p,m)})}walkDecls(s,p){return p?s instanceof RegExp?this.walk((m,y)=>{if(m.type==="decl"&&s.test(m.prop))return p(m,y)}):this.walk((m,y)=>{if(m.type==="decl"&&m.prop===s)return p(m,y)}):(p=s,this.walk((m,y)=>{if(m.type==="decl")return p(m,y)}))}walkRules(s,p){return p?s instanceof RegExp?this.walk((m,y)=>{if(m.type==="rule"&&s.test(m.selector))return p(m,y)}):this.walk((m,y)=>{if(m.type==="rule"&&m.selector===s)return p(m,y)}):(p=s,this.walk((m,y)=>{if(m.type==="rule")return p(m,y)}))}}return l.registerParse=n=>{u=n},l.registerRule=n=>{d=n},l.registerAtRule=n=>{f=n},l.registerRoot=n=>{h=n},Fe=l,l.default=l,l.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,f.prototype):n.type==="rule"?Object.setPrototypeOf(n,d.prototype):n.type==="decl"?Object.setPrototypeOf(n,r.prototype):n.type==="comment"?Object.setPrototypeOf(n,e.prototype):n.type==="root"&&Object.setPrototypeOf(n,h.prototype),n[i]=!0,n.nodes&&n.nodes.forEach(s=>{l.rebuild(s)})},Fe}var $e,ir;function ct(){if(ir)return $e;ir=1;let e=Y();class r extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return $e=r,r.default=r,e.registerAtRule(r),$e}var ze,sr;function ft(){if(sr)return ze;sr=1;let e=Y(),r,c;class o extends e{constructor(f){super(H({type:"document"},f)),this.nodes||(this.nodes=[])}toResult(f={}){return new r(new c,this,f).stringify()}}return o.registerLazyResult=i=>{r=i},o.registerProcessor=i=>{c=i},ze=o,o.default=o,ze}var We,nr;function Xi(){if(nr)return We;nr=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return We={nanoid:(o=21)=>{let i="",f=o|0;for(;f--;)i+=e[Math.random()*64|0];return i},customAlphabet:(o,i=21)=>(f=i)=>{let u="",h=f|0;for(;h--;)u+=o[Math.random()*o.length|0];return u}},We}var qe,or;function Mr(){if(or)return qe;or=1;let{existsSync:e,readFileSync:r}=j,{dirname:c,join:o}=j,{SourceMapConsumer:i,SourceMapGenerator:f}=j;function u(d){return Buffer?Buffer.from(d,"base64").toString():window.atob(d)}class h{constructor(a,t){if(t.map===!1)return;this.loadAnnotation(a),this.inline=this.startWith(this.annotation,"data:");let l=t.map?t.map.prev:void 0,n=this.loadMap(t.from,l);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=c(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(a){let t=/^data:application\/json;charset=utf-?8;base64,/,l=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,p=a.match(n)||a.match(s);if(p)return decodeURIComponent(a.substr(p[0].length));let m=a.match(t)||a.match(l);if(m)return u(a.substr(m[0].length));let y=a.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+y)}getAnnotationURL(a){return a.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(a){return typeof a!="object"?!1:typeof a.mappings=="string"||typeof a._mappings=="string"||Array.isArray(a.sections)}loadAnnotation(a){let t=a.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let l=a.lastIndexOf(t.pop()),n=a.indexOf("*/",l);l>-1&&n>-1&&(this.annotation=this.getAnnotationURL(a.substring(l,n)))}loadFile(a){if(this.root=c(a),e(a))return this.mapFile=a,r(a,"utf-8").toString().trim()}loadMap(a,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let l=t(a);if(l){let n=this.loadFile(l);if(!n)throw new Error("Unable to load previous source map: "+l.toString());return n}}else{if(t instanceof i)return f.fromSourceMap(t).toString();if(t instanceof f)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let l=this.annotation;return a&&(l=o(c(a),l)),this.loadFile(l)}}}startWith(a,t){return a?a.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return qe=h,h.default=h,qe}var je,ar;function ye(){if(ar)return je;ar=1;let{nanoid:e}=Xi(),{isAbsolute:r,resolve:c}=j,{SourceMapConsumer:o,SourceMapGenerator:i}=j,{fileURLToPath:f,pathToFileURL:u}=j,h=lt(),d=Mr(),a=j,t=Symbol("lineToIndexCache"),l=!!(o&&i),n=!!(c&&r);function s(m){if(m[t])return m[t];let y=m.css.split(`
|
|
23
|
-
`),b=new Array(y.length),w=0;for(let x=0,R=y.length;x<R;x++)b[x]=w,w+=y[x].length+1;return m[t]=b,b}class p{get from(){return this.file||this.id}constructor(y,b={}){if(y===null||typeof y=="undefined"||typeof y=="object"&&!y.toString)throw new Error(`PostCSS received ${y} instead of CSS string`);if(this.css=y.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,b.document&&(this.document=b.document.toString()),b.from&&(!n||/^\w+:\/\//.test(b.from)||r(b.from)?this.file=b.from:this.file=c(b.from)),n&&l){let w=new d(this.css,b);if(w.text){this.map=w;let x=w.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(y,b,w,x={}){let R,g,S,C,v;if(b&&typeof b=="object"){let E=b,D=w;if(typeof E.offset=="number"){C=E.offset;let P=this.fromOffset(C);b=P.line,w=P.col}else b=E.line,w=E.column,C=this.fromLineAndColumn(b,w);if(typeof D.offset=="number"){S=D.offset;let P=this.fromOffset(S);g=P.line,R=P.col}else g=D.line,R=D.column,S=this.fromLineAndColumn(D.line,D.column)}else if(w)C=this.fromLineAndColumn(b,w);else{C=b;let E=this.fromOffset(C);b=E.line,w=E.col}let M=this.origin(b,w,g,R);return M?v=new h(y,M.endLine===void 0?M.line:{column:M.column,line:M.line},M.endLine===void 0?M.column:{column:M.endColumn,line:M.endLine},M.source,M.file,x.plugin):v=new h(y,g===void 0?b:{column:w,line:b},g===void 0?w:{column:R,line:g},this.css,this.file,x.plugin),v.input={column:w,endColumn:R,endLine:g,endOffset:S,line:b,offset:C,source:this.css},this.file&&(u&&(v.input.url=u(this.file).toString()),v.input.file=this.file),v}fromLineAndColumn(y,b){return s(this)[y-1]+b-1}fromOffset(y){let b=s(this),w=b[b.length-1],x=0;if(y>=w)x=b.length-1;else{let R=b.length-2,g;for(;x<R;)if(g=x+(R-x>>1),y<b[g])R=g-1;else if(y>=b[g+1])x=g+1;else{x=g;break}}return{col:y-b[x]+1,line:x+1}}mapResolve(y){return/^\w+:\/\//.test(y)?y:c(this.map.consumer().sourceRoot||this.map.root||".",y)}origin(y,b,w,x){if(!this.map)return!1;let R=this.map.consumer(),g=R.originalPositionFor({column:b,line:y});if(!g.source)return!1;let S;typeof w=="number"&&(S=R.originalPositionFor({column:x,line:w}));let C;r(g.source)?C=u(g.source):C=new URL(g.source,this.map.consumer().sourceRoot||u(this.map.mapFile));let v={column:g.column,endColumn:S&&S.column,endLine:S&&S.line,line:g.line,url:C.toString()};if(C.protocol==="file:")if(f)v.file=f(C);else throw new Error("file: protocol is not available in this PostCSS build");let M=R.sourceContentFor(g.source);return M&&(v.source=M),v}toJSON(){let y={};for(let b of["hasBOM","css","file","id"])this[b]!=null&&(y[b]=this[b]);return this.map&&(y.map=H({},this.map),y.map.consumerCache&&(y.map.consumerCache=void 0)),y}}return je=p,p.default=p,a&&a.registerInput&&a.registerInput(p),je}var Ve,
|
|
24
|
-
`," "];return e.split(r,c)},split(r,c,o){let i=[],f="",u=!1,h=0,d=!1,a="",t=!1;for(let l of r)t?t=!1:l==="\\"?t=!0:d?l===a&&(d=!1):l==='"'||l==="'"?(d=!0,a=l):l==="("?h+=1:l===")"?h>0&&(h-=1):h===0&&c.includes(l)&&(u=!0),u?(f!==""&&i.push(f.trim()),f="",u=!1):f+=l;return(o||f!=="")&&i.push(f.trim()),i}};return Ge=e,e.default=e,Ge}var He,
|
|
22
|
+
`?(t=1,l+=1):t+=1;return{column:t,line:l,offset:p}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,l={column:this.source.start.column,line:this.source.start.line,offset:u(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:u(t,this.source.end)+1}:{column:l.column+1,line:l.line,offset:l.offset+1};if(a.word){let p=t.slice(u(t,this.source.start),u(t,this.source.end)).indexOf(a.word);p!==-1&&(l=this.positionInside(p),n=this.positionInside(p+a.word.length))}else a.start?l={column:a.start.column,line:a.start.line,offset:u(t,a.start)}:a.index&&(l=this.positionInside(a.index)),a.end?n={column:a.end.column,line:a.end.line,offset:u(t,a.end)}:typeof a.endIndex=="number"?n=this.positionInside(a.endIndex):a.index&&(n=this.positionInside(a.index+1));return(n.line<l.line||n.line===l.line&&n.column<=l.column)&&(n={column:l.column+1,line:l.line,offset:l.offset+1}),{end:n,start:l}}raw(a,t){return new r().raw(this,a,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let t=this,l=!1;for(let n of a)n===this?l=!0:l?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);l||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,t){let l={},n=t==null;t=t||new Map;let s=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let m=this[p];if(Array.isArray(m))l[p]=m.map(y=>typeof y=="object"&&y.toJSON?y.toJSON(null,t):y);else if(typeof m=="object"&&m.toJSON)l[p]=m.toJSON(null,t);else if(p==="source"){if(m==null)continue;let y=t.get(m.input);y==null&&(y=s,t.set(m.input,s),s++),l[p]={end:m.end,inputId:y,start:m.start}}else l[p]=m}return n&&(l.inputs=[...t.keys()].map(p=>p.toJSON())),l}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=c){a.stringify&&(a=a.stringify);let t="";return a(this,l=>{t+=l}),t}warn(a,t,l={}){let n={node:this};for(let s in l)n[s]=l[s];return a.warn(t,n)}}return Le=h,h.default=h,Le}var Be,tr;function ie(){if(tr)return Be;tr=1;let e=me();class r extends e{constructor(o){super(o),this.type="comment"}}return Be=r,r.default=r,Be}var Ue,rr;function ge(){if(rr)return Ue;rr=1;let e=me();class r extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(o){o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=re(H({},o),{value:String(o.value)})),super(o),this.type="decl"}}return Ue=r,r.default=r,Ue}var Fe,ir;function Y(){if(ir)return Fe;ir=1;let e=ie(),r=ge(),c=me(),{isClean:o,my:i}=ut(),f,u,h,d;function a(n){return n.map(s=>(s.nodes&&(s.nodes=a(s.nodes)),delete s.source,s))}function t(n){if(n[o]=!1,n.proxyOf.nodes)for(let s of n.proxyOf.nodes)t(s)}class l extends c{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...s){for(let p of s){let m=this.normalize(p,this.last);for(let y of m)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let p of this.nodes)p.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,y;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],y=s(this.proxyOf.nodes[m],m),y!==!1);)this.indexes[p]+=1;return delete this.indexes[p],y}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,p){return p==="proxyOf"?s:s[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>s[p](...m.map(y=>typeof y=="function"?(b,w)=>y(b.toProxy(),w):y)):p==="every"||p==="some"?m=>s[p]((y,...b)=>m(y.toProxy(),...b)):p==="root"?()=>s.root().toProxy():p==="nodes"?s.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?s[p].toProxy():s[p]:s[p]},set(s,p,m){return s[p]===m||(s[p]=m,(p==="name"||p==="params"||p==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,p){let m=this.index(s),y=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(s);for(let w of y)this.proxyOf.nodes.splice(m+1,0,w);let b;for(let w in this.indexes)b=this.indexes[w],m<b&&(this.indexes[w]=b+y.length);return this.markDirty(),this}insertBefore(s,p){let m=this.index(s),y=m===0?"prepend":!1,b=this.normalize(p,this.proxyOf.nodes[m],y).reverse();m=this.index(s);for(let x of b)this.proxyOf.nodes.splice(m,0,x);let w;for(let x in this.indexes)w=this.indexes[x],m<=w&&(this.indexes[x]=w+b.length);return this.markDirty(),this}normalize(s,p){if(typeof s=="string")s=a(u(s).nodes);else if(typeof s=="undefined")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let y of s)y.parent&&y.parent.removeChild(y,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let y of s)y.parent&&y.parent.removeChild(y,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value=="undefined")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector||s.selectors)s=[new d(s)];else if(s.name)s=[new f(s)];else if(s.text)s=[new e(s)];else throw new Error("Unknown node type in node creation");return s.map(y=>(y[i]||l.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[o]&&t(y),y.raws||(y.raws={}),typeof y.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(y.raws.before=p.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...s){s=s.reverse();for(let p of s){let m=this.normalize(p,this.first,"prepend").reverse();for(let y of m)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+m.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let p;for(let m in this.indexes)p=this.indexes[m],p>=s&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(s,p,m){return m||(m=p,p={}),this.walkDecls(y=>{p.props&&!p.props.includes(y.prop)||p.fast&&!y.value.includes(p.fast)||(y.value=y.value.replace(s,m))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((p,m)=>{let y;try{y=s(p,m)}catch(b){throw p.addToError(b)}return y!==!1&&p.walk&&(y=p.walk(s)),y})}walkAtRules(s,p){return p?s instanceof RegExp?this.walk((m,y)=>{if(m.type==="atrule"&&s.test(m.name))return p(m,y)}):this.walk((m,y)=>{if(m.type==="atrule"&&m.name===s)return p(m,y)}):(p=s,this.walk((m,y)=>{if(m.type==="atrule")return p(m,y)}))}walkComments(s){return this.walk((p,m)=>{if(p.type==="comment")return s(p,m)})}walkDecls(s,p){return p?s instanceof RegExp?this.walk((m,y)=>{if(m.type==="decl"&&s.test(m.prop))return p(m,y)}):this.walk((m,y)=>{if(m.type==="decl"&&m.prop===s)return p(m,y)}):(p=s,this.walk((m,y)=>{if(m.type==="decl")return p(m,y)}))}walkRules(s,p){return p?s instanceof RegExp?this.walk((m,y)=>{if(m.type==="rule"&&s.test(m.selector))return p(m,y)}):this.walk((m,y)=>{if(m.type==="rule"&&m.selector===s)return p(m,y)}):(p=s,this.walk((m,y)=>{if(m.type==="rule")return p(m,y)}))}}return l.registerParse=n=>{u=n},l.registerRule=n=>{d=n},l.registerAtRule=n=>{f=n},l.registerRoot=n=>{h=n},Fe=l,l.default=l,l.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,f.prototype):n.type==="rule"?Object.setPrototypeOf(n,d.prototype):n.type==="decl"?Object.setPrototypeOf(n,r.prototype):n.type==="comment"?Object.setPrototypeOf(n,e.prototype):n.type==="root"&&Object.setPrototypeOf(n,h.prototype),n[i]=!0,n.nodes&&n.nodes.forEach(s=>{l.rebuild(s)})},Fe}var $e,sr;function ct(){if(sr)return $e;sr=1;let e=Y();class r extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return $e=r,r.default=r,e.registerAtRule(r),$e}var ze,nr;function ft(){if(nr)return ze;nr=1;let e=Y(),r,c;class o extends e{constructor(f){super(H({type:"document"},f)),this.nodes||(this.nodes=[])}toResult(f={}){return new r(new c,this,f).stringify()}}return o.registerLazyResult=i=>{r=i},o.registerProcessor=i=>{c=i},ze=o,o.default=o,ze}var We,or;function Qi(){if(or)return We;or=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return We={nanoid:(o=21)=>{let i="",f=o|0;for(;f--;)i+=e[Math.random()*64|0];return i},customAlphabet:(o,i=21)=>(f=i)=>{let u="",h=f|0;for(;h--;)u+=o[Math.random()*o.length|0];return u}},We}var qe,ar;function Or(){if(ar)return qe;ar=1;let{existsSync:e,readFileSync:r}=j,{dirname:c,join:o}=j,{SourceMapConsumer:i,SourceMapGenerator:f}=j;function u(d){return Buffer?Buffer.from(d,"base64").toString():window.atob(d)}class h{constructor(a,t){if(t.map===!1)return;this.loadAnnotation(a),this.inline=this.startWith(this.annotation,"data:");let l=t.map?t.map.prev:void 0,n=this.loadMap(t.from,l);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=c(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(a){let t=/^data:application\/json;charset=utf-?8;base64,/,l=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,p=a.match(n)||a.match(s);if(p)return decodeURIComponent(a.substr(p[0].length));let m=a.match(t)||a.match(l);if(m)return u(a.substr(m[0].length));let y=a.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+y)}getAnnotationURL(a){return a.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(a){return typeof a!="object"?!1:typeof a.mappings=="string"||typeof a._mappings=="string"||Array.isArray(a.sections)}loadAnnotation(a){let t=a.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let l=a.lastIndexOf(t.pop()),n=a.indexOf("*/",l);l>-1&&n>-1&&(this.annotation=this.getAnnotationURL(a.substring(l,n)))}loadFile(a){if(this.root=c(a),e(a))return this.mapFile=a,r(a,"utf-8").toString().trim()}loadMap(a,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let l=t(a);if(l){let n=this.loadFile(l);if(!n)throw new Error("Unable to load previous source map: "+l.toString());return n}}else{if(t instanceof i)return f.fromSourceMap(t).toString();if(t instanceof f)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let l=this.annotation;return a&&(l=o(c(a),l)),this.loadFile(l)}}}startWith(a,t){return a?a.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return qe=h,h.default=h,qe}var je,lr;function ye(){if(lr)return je;lr=1;let{nanoid:e}=Qi(),{isAbsolute:r,resolve:c}=j,{SourceMapConsumer:o,SourceMapGenerator:i}=j,{fileURLToPath:f,pathToFileURL:u}=j,h=lt(),d=Or(),a=j,t=Symbol("lineToIndexCache"),l=!!(o&&i),n=!!(c&&r);function s(m){if(m[t])return m[t];let y=m.css.split(`
|
|
23
|
+
`),b=new Array(y.length),w=0;for(let x=0,R=y.length;x<R;x++)b[x]=w,w+=y[x].length+1;return m[t]=b,b}class p{get from(){return this.file||this.id}constructor(y,b={}){if(y===null||typeof y=="undefined"||typeof y=="object"&&!y.toString)throw new Error(`PostCSS received ${y} instead of CSS string`);if(this.css=y.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,b.document&&(this.document=b.document.toString()),b.from&&(!n||/^\w+:\/\//.test(b.from)||r(b.from)?this.file=b.from:this.file=c(b.from)),n&&l){let w=new d(this.css,b);if(w.text){this.map=w;let x=w.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(y,b,w,x={}){let R,g,S,C,v;if(b&&typeof b=="object"){let E=b,D=w;if(typeof E.offset=="number"){C=E.offset;let P=this.fromOffset(C);b=P.line,w=P.col}else b=E.line,w=E.column,C=this.fromLineAndColumn(b,w);if(typeof D.offset=="number"){S=D.offset;let P=this.fromOffset(S);g=P.line,R=P.col}else g=D.line,R=D.column,S=this.fromLineAndColumn(D.line,D.column)}else if(w)C=this.fromLineAndColumn(b,w);else{C=b;let E=this.fromOffset(C);b=E.line,w=E.col}let M=this.origin(b,w,g,R);return M?v=new h(y,M.endLine===void 0?M.line:{column:M.column,line:M.line},M.endLine===void 0?M.column:{column:M.endColumn,line:M.endLine},M.source,M.file,x.plugin):v=new h(y,g===void 0?b:{column:w,line:b},g===void 0?w:{column:R,line:g},this.css,this.file,x.plugin),v.input={column:w,endColumn:R,endLine:g,endOffset:S,line:b,offset:C,source:this.css},this.file&&(u&&(v.input.url=u(this.file).toString()),v.input.file=this.file),v}fromLineAndColumn(y,b){return s(this)[y-1]+b-1}fromOffset(y){let b=s(this),w=b[b.length-1],x=0;if(y>=w)x=b.length-1;else{let R=b.length-2,g;for(;x<R;)if(g=x+(R-x>>1),y<b[g])R=g-1;else if(y>=b[g+1])x=g+1;else{x=g;break}}return{col:y-b[x]+1,line:x+1}}mapResolve(y){return/^\w+:\/\//.test(y)?y:c(this.map.consumer().sourceRoot||this.map.root||".",y)}origin(y,b,w,x){if(!this.map)return!1;let R=this.map.consumer(),g=R.originalPositionFor({column:b,line:y});if(!g.source)return!1;let S;typeof w=="number"&&(S=R.originalPositionFor({column:x,line:w}));let C;r(g.source)?C=u(g.source):C=new URL(g.source,this.map.consumer().sourceRoot||u(this.map.mapFile));let v={column:g.column,endColumn:S&&S.column,endLine:S&&S.line,line:g.line,url:C.toString()};if(C.protocol==="file:")if(f)v.file=f(C);else throw new Error("file: protocol is not available in this PostCSS build");let M=R.sourceContentFor(g.source);return M&&(v.source=M),v}toJSON(){let y={};for(let b of["hasBOM","css","file","id"])this[b]!=null&&(y[b]=this[b]);return this.map&&(y.map=H({},this.map),y.map.consumerCache&&(y.map.consumerCache=void 0)),y}}return je=p,p.default=p,a&&a.registerInput&&a.registerInput(p),je}var Ve,ur;function se(){if(ur)return Ve;ur=1;let e=Y(),r,c;class o extends e{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,u,h){let d=super.normalize(f);if(u){if(h==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let a of d)a.raws.before=u.raws.before}return d}removeChild(f,u){let h=this.index(f);return!u&&h===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[h].raws.before),super.removeChild(f)}toResult(f={}){return new r(new c,this,f).stringify()}}return o.registerLazyResult=i=>{r=i},o.registerProcessor=i=>{c=i},Ve=o,o.default=o,e.registerRoot(o),Ve}var Ge,cr;function Ar(){if(cr)return Ge;cr=1;let e={comma(r){return e.split(r,[","],!0)},space(r){let c=[" ",`
|
|
24
|
+
`," "];return e.split(r,c)},split(r,c,o){let i=[],f="",u=!1,h=0,d=!1,a="",t=!1;for(let l of r)t?t=!1:l==="\\"?t=!0:d?l===a&&(d=!1):l==='"'||l==="'"?(d=!0,a=l):l==="("?h+=1:l===")"?h>0&&(h-=1):h===0&&c.includes(l)&&(u=!0),u?(f!==""&&i.push(f.trim()),f="",u=!1):f+=l;return(o||f!=="")&&i.push(f.trim()),i}};return Ge=e,e.default=e,Ge}var He,fr;function ht(){if(fr)return He;fr=1;let e=Y(),r=Ar();class c extends e{get selectors(){return r.comma(this.selector)}set selectors(i){let f=this.selector?this.selector.match(/,\s*/):null,u=f?f[0]:","+this.raw("between","beforeOpen");this.selector=i.join(u)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return He=c,c.default=c,e.registerRule(c),He}var Je,hr;function Ki(){if(hr)return Je;hr=1;let e=ct(),r=ie(),c=ge(),o=ye(),i=Or(),f=se(),u=ht();function h(d,a){if(Array.isArray(d))return d.map(p=>h(p));let n=d,{inputs:t}=n,l=Ce(n,["inputs"]);if(t){a=[];for(let p of t){let m=re(H({},p),{__proto__:o.prototype});m.map&&(m.map=re(H({},m.map),{__proto__:i.prototype})),a.push(m)}}if(l.nodes&&(l.nodes=d.nodes.map(p=>h(p,a))),l.source){let s=l.source,{inputId:p}=s,m=Ce(s,["inputId"]);l.source=m,p!=null&&(l.source.input=a[p])}if(l.type==="root")return new f(l);if(l.type==="decl")return new c(l);if(l.type==="rule")return new u(l);if(l.type==="comment")return new r(l);if(l.type==="atrule")return new e(l);throw new Error("Unknown node type: "+d.type)}return Je=h,h.default=h,Je}var Ze,pr;function Pr(){if(pr)return Ze;pr=1;let{dirname:e,relative:r,resolve:c,sep:o}=j,{SourceMapConsumer:i,SourceMapGenerator:f}=j,{pathToFileURL:u}=j,h=ye(),d=!!(i&&f),a=!!(e&&c&&r&&o);class t{constructor(n,s,p,m){this.stringify=n,this.mapOpts=p.map||{},this.root=s,this.opts=p,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let n;this.isInline()?n="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?n=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?n=this.mapOpts.annotation(this.opts.to,this.root):n=this.outputFile()+".map";let s=`
|
|
25
25
|
`;this.css.includes(`\r
|
|
26
26
|
`)&&(s=`\r
|
|
27
27
|
`),this.css+=s+"/*# sourceMappingURL="+n+" */"}applyPrevMaps(){for(let n of this.previous()){let s=this.toUrl(this.path(n.file)),p=n.root||e(n.file),m;this.mapOpts.sourcesContent===!1?(m=new i(n.text),m.sourcesContent&&(m.sourcesContent=null)):m=n.consumer(),this.map.applySourceMap(m,s,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let n;for(let s=this.root.nodes.length-1;s>=0;s--)n=this.root.nodes[s],n.type==="comment"&&n.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),a&&d&&this.isMap())return this.generateMap();{let n="";return this.stringify(this.root,s=>{n+=s}),[n]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let n=this.previous()[0].consumer();n.file=this.outputFile(),this.map=f.fromSourceMap(n,{ignoreInvalidMapping:!0})}else this.map=new f({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new f({file:this.outputFile(),ignoreInvalidMapping:!0});let n=1,s=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},y,b;this.stringify(this.root,(w,x,R)=>{if(this.css+=w,x&&R!=="end"&&(m.generated.line=n,m.generated.column=s-1,x.source&&x.source.start?(m.source=this.sourcePath(x),m.original.line=x.source.start.line,m.original.column=x.source.start.column-1,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,this.map.addMapping(m))),b=w.match(/\n/g),b?(n+=b.length,y=w.lastIndexOf(`
|
|
28
|
-
`),s=w.length-y):s+=w.length,x&&R!=="start"){let g=x.parent||{raws:{}};(!(x.type==="decl"||x.type==="atrule"&&!x.nodes)||x!==g.last||g.raws.semicolon)&&(x.source&&x.source.end?(m.source=this.sourcePath(x),m.original.line=x.source.end.line,m.original.column=x.source.end.column-1,m.generated.line=n,m.generated.column=s-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=n,m.generated.column=s-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(n=>n.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let n=this.mapOpts.annotation;return typeof n!="undefined"&&n!==!0?!1:this.previous().length?this.previous().some(s=>s.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(n=>n.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;let s=this.memoizedPaths.get(n);if(s)return s;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(c(p,this.mapOpts.annotation)));let m=r(p,n);return this.memoizedPaths.set(n,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(n=>{if(n.source&&n.source.input.map){let s=n.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let n=new h(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps}setSourcesContent(){let n={};if(this.root)this.root.walk(s=>{if(s.source){let p=s.source.input.from;if(p&&!n[p]){n[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(m,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))}toBase64(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))}toFileUrl(n){let s=this.memoizedFileURLs.get(n);if(s)return s;if(u){let p=u(n).toString();return this.memoizedFileURLs.set(n,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(n){let s=this.memoizedURLs.get(n);if(s)return s;o==="\\"&&(n=n.replace(/\\/g,"/"));let p=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,p),p}}return Ze=t,Ze}var Ye,pr;function Pr(){if(pr)return Ye;pr=1;let e=39,r=34,c=92,o=47,i=10,f=32,u=12,h=9,d=13,a=91,t=93,l=40,n=41,s=123,p=125,m=59,y=42,b=58,w=64,x=/[\t\n\f\r "#'()/;[\\\]{}]/g,R=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,g=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return Ye=function(v,M={}){let E=v.css.valueOf(),D=M.ignoreErrors,P,G,_,N,X,k,$,V,z,yt,wt=E.length,O=0,Se=[],ne=[];function Ur(){return O}function be(Q){throw v.error("Unclosed "+Q,O)}function Fr(){return ne.length===0&&O>=wt}function $r(Q){if(ne.length)return ne.pop();if(O>=wt)return;let xe=Q?Q.ignoreUnclosed:!1;switch(P=E.charCodeAt(O),P){case i:case f:case h:case d:case u:{N=O;do N+=1,P=E.charCodeAt(N);while(P===f||P===i||P===h||P===d||P===u);k=["space",E.slice(O,N)],O=N-1;break}case a:case t:case s:case p:case b:case m:case n:{let St=String.fromCharCode(P);k=[St,St,O];break}case l:{if(yt=Se.length?Se.pop()[1]:"",z=E.charCodeAt(O+1),yt==="url"&&z!==e&&z!==r&&z!==f&&z!==i&&z!==h&&z!==u&&z!==d){N=O;do{if($=!1,N=E.indexOf(")",N+1),N===-1)if(D||xe){N=O;break}else be("bracket");for(V=N;E.charCodeAt(V-1)===c;)V-=1,$=!$}while($);k=["brackets",E.slice(O,N+1),O,N],O=N}else N=E.indexOf(")",O+1),G=E.slice(O,N+1),N===-1||g.test(G)?k=["(","(",O]:(k=["brackets",G,O,N],O=N);break}case e:case r:{X=P===e?"'":'"',N=O;do{if($=!1,N=E.indexOf(X,N+1),N===-1)if(D||xe){N=O+1;break}else be("string");for(V=N;E.charCodeAt(V-1)===c;)V-=1,$=!$}while($);k=["string",E.slice(O,N+1),O,N],O=N;break}case w:{x.lastIndex=O+1,x.test(E),x.lastIndex===0?N=E.length-1:N=x.lastIndex-2,k=["at-word",E.slice(O,N+1),O,N],O=N;break}case c:{for(N=O,_=!0;E.charCodeAt(N+1)===c;)N+=1,_=!_;if(P=E.charCodeAt(N+1),_&&P!==o&&P!==f&&P!==i&&P!==h&&P!==d&&P!==u&&(N+=1,S.test(E.charAt(N)))){for(;S.test(E.charAt(N+1));)N+=1;E.charCodeAt(N+1)===f&&(N+=1)}k=["word",E.slice(O,N+1),O,N],O=N;break}default:{P===o&&E.charCodeAt(O+1)===y?(N=E.indexOf("*/",O+2)+1,N===0&&(D||xe?N=E.length:be("comment")),k=["comment",E.slice(O,N+1),O,N],O=N):(R.lastIndex=O+1,R.test(E),R.lastIndex===0?N=E.length-1:N=R.lastIndex-2,k=["word",E.slice(O,N+1),O,N],Se.push(k),O=N);break}}return O++,k}function zr(Q){ne.push(Q)}return{back:zr,endOfFile:Fr,nextToken:$r,position:Ur}},Ye}var Xe,dr;function _r(){if(dr)return Xe;dr=1;let e=ct(),r=ie(),c=ge(),o=se(),i=ht(),f=Pr(),u={empty:!0,space:!0};function h(a){for(let t=a.length-1;t>=0;t--){let l=a[t],n=l[3]||l[2];if(n)return n}}class d{constructor(t){this.input=t,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let l=new e;l.name=t[1].slice(1),l.name===""&&this.unnamedAtrule(l,t),this.init(l,t[2]);let n,s,p,m=!1,y=!1,b=[],w=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?w.push(n==="("?")":"]"):n==="{"&&w.length>0?w.push("}"):n===w[w.length-1]&&w.pop(),w.length===0)if(n===";"){l.source.end=this.getPosition(t[2]),l.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){y=!0;break}else if(n==="}"){if(b.length>0){for(p=b.length-1,s=b[p];s&&s[0]==="space";)s=b[--p];s&&(l.source.end=this.getPosition(s[3]||s[2]),l.source.end.offset++)}this.end(t);break}else b.push(t);else b.push(t);if(this.tokenizer.endOfFile()){m=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(l.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(l,"params",b),m&&(t=b[b.length-1],l.source.end=this.getPosition(t[3]||t[2]),l.source.end.offset++,this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),y&&(l.nodes=[],this.current=l)}checkMissedSemicolon(t){let l=this.colon(t);if(l===!1)return;let n=0,s;for(let p=l-1;p>=0&&(s=t[p],!(s[0]!=="space"&&(n+=1,n===2)));p--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(t){let l=0,n,s,p;for(let[m,y]of t.entries()){if(s=y,p=s[0],p==="("&&(l+=1),p===")"&&(l-=1),l===0&&p===":")if(!n)this.doubleColon(s);else{if(n[0]==="word"&&n[1]==="progid")continue;return m}n=s}return!1}comment(t){let l=new r;this.init(l,t[2]),l.source.end=this.getPosition(t[3]||t[2]),l.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))l.text="",l.raws.left=n,l.raws.right="";else{let s=n.match(/^(\s*)([^]*\S)(\s*)$/);l.text=s[2],l.raws.left=s[1],l.raws.right=s[3]}}createTokenizer(){this.tokenizer=f(this.input)}decl(t,l){let n=new c;this.init(n,t[0][2]);let s=t[t.length-1];for(s[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(s[3]||s[2]||h(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let w=t[0][0];if(w===":"||w==="space"||w==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let p;for(;t.length;)if(p=t.shift(),p[0]===":"){n.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),n.raws.between+=p[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let m=[],y;for(;t.length&&(y=t[0][0],!(y!=="space"&&y!=="comment"));)m.push(t.shift());this.precheckMissedSemicolon(t);for(let w=t.length-1;w>=0;w--){if(p=t[w],p[1].toLowerCase()==="!important"){n.important=!0;let x=this.stringFrom(t,w);x=this.spacesFromEnd(t)+x,x!==" !important"&&(n.raws.important=x);break}else if(p[1].toLowerCase()==="important"){let x=t.slice(0),R="";for(let g=w;g>0;g--){let S=x[g][0];if(R.trim().startsWith("!")&&S!=="space")break;R=x.pop()[1]+R}R.trim().startsWith("!")&&(n.important=!0,n.raws.important=R,t=x)}if(p[0]!=="space"&&p[0]!=="comment")break}t.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(n.raws.between+=m.map(w=>w[1]).join(""),m=[]),this.raw(n,"value",m.concat(t),l),n.value.includes(":")&&!l&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let l=new i;this.init(l,t[2]),l.selector="",l.raws.between="",this.current=l}end(t){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(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}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(t){if(this.spaces+=t[1],this.current.nodes){let l=this.current.nodes[this.current.nodes.length-1];l&&l.type==="rule"&&!l.raws.ownSemicolon&&(l.raws.ownSemicolon=this.spaces,this.spaces="",l.source.end=this.getPosition(t[2]),l.source.end.offset+=l.raws.ownSemicolon.length)}}getPosition(t){let l=this.input.fromOffset(t);return{column:l.col,line:l.line,offset:t}}init(t,l){this.current.push(t),t.source={input:this.input,start:this.getPosition(l)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let l=!1,n=null,s=!1,p=null,m=[],y=t[1].startsWith("--"),b=[],w=t;for(;w;){if(n=w[0],b.push(w),n==="("||n==="[")p||(p=w),m.push(n==="("?")":"]");else if(y&&s&&n==="{")p||(p=w),m.push("}");else if(m.length===0)if(n===";")if(s){this.decl(b,y);return}else break;else if(n==="{"){this.rule(b);return}else if(n==="}"){this.tokenizer.back(b.pop()),l=!0;break}else n===":"&&(s=!0);else n===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(l=!0),m.length>0&&this.unclosedBracket(p),l&&s){if(!y)for(;b.length&&(w=b[b.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,y)}else this.unknownWord(b)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,l,n,s){let p,m,y=n.length,b="",w=!0,x,R;for(let g=0;g<y;g+=1)p=n[g],m=p[0],m==="space"&&g===y-1&&!s?w=!1:m==="comment"?(R=n[g-1]?n[g-1][0]:"empty",x=n[g+1]?n[g+1][0]:"empty",!u[R]&&!u[x]?b.slice(-1)===","?w=!1:b+=p[1]:w=!1):b+=p[1];if(!w){let g=n.reduce((S,C)=>S+C[1],"");t.raws[l]={raw:g,value:b}}t[l]=b}rule(t){t.pop();let l=new i;this.init(l,t[0][2]),l.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(l,"selector",t),this.current=l}spacesAndCommentsFromEnd(t){let l,n="";for(;t.length&&(l=t[t.length-1][0],!(l!=="space"&&l!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let l,n="";for(;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let l,n="";for(;t.length&&(l=t[t.length-1][0],l==="space");)n=t.pop()[1]+n;return n}stringFrom(t,l){let n="";for(let s=l;s<t.length;s++)n+=t[s][1];return t.splice(l,t.length-l),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,l){throw this.input.error("At-rule without name",{offset:l[2]},{offset:l[2]+l[1].length})}}return Xe=d,Xe}var Qe,mr;function pt(){if(mr)return Qe;mr=1;let e=Y(),r=ye(),c=_r();function o(i,f){let u=new r(i,f),h=new c(u);try{h.parse()}catch(d){throw d}return h.root}return Qe=o,o.default=o,e.registerParse(o),Qe}var Ke,gr;function Tr(){if(gr)return Ke;gr=1;class e{constructor(c,o={}){if(this.type="warning",this.text=c,o.node&&o.node.source){let i=o.node.rangeBy(o);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in o)this[i]=o[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ke=e,e.default=e,Ke}var et,yr;function dt(){if(yr)return et;yr=1;let e=Tr();class r{get content(){return this.css}constructor(o,i,f){this.processor=o,this.messages=[],this.root=i,this.opts=f,this.css="",this.map=void 0}toString(){return this.css}warn(o,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let f=new e(o,i);return this.messages.push(f),f}warnings(){return this.messages.filter(o=>o.type==="warning")}}return et=r,r.default=r,et}var tt,wr;function Dr(){if(wr)return tt;wr=1;let e={};return tt=function(c){e[c]||(e[c]=!0,typeof console!="undefined"&&console.warn&&console.warn(c))},tt}var rt,Sr;function kr(){if(Sr)return rt;Sr=1;let e=Y(),r=ft(),c=Ar(),o=pt(),i=dt(),f=se(),u=de(),{isClean:h,my:d}=ut(),a=Dr(),t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},l={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},n={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function p(R){return typeof R=="object"&&typeof R.then=="function"}function m(R){let g=!1,S=t[R.type];return R.type==="decl"?g=R.prop.toLowerCase():R.type==="atrule"&&(g=R.name.toLowerCase()),g&&R.append?[S,S+"-"+g,s,S+"Exit",S+"Exit-"+g]:g?[S,S+"-"+g,S+"Exit",S+"Exit-"+g]:R.append?[S,s,S+"Exit"]:[S,S+"Exit"]}function y(R){let g;return R.type==="document"?g=["Document",s,"DocumentExit"]:R.type==="root"?g=["Root",s,"RootExit"]:g=m(R),{eventIndex:0,events:g,iterator:0,node:R,visitorIndex:0,visitors:[]}}function b(R){return R[h]=!1,R.nodes&&R.nodes.forEach(g=>b(g)),R}let w={};class x{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(g,S,C){this.stringified=!1,this.processed=!1;let v;if(typeof S=="object"&&S!==null&&(S.type==="root"||S.type==="document"))v=b(S);else if(S instanceof x||S instanceof i)v=b(S.root),S.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=S.map);else{let M=o;C.syntax&&(M=C.syntax.parse),C.parser&&(M=C.parser),M.parse&&(M=M.parse);try{v=M(S,C)}catch(E){this.processed=!0,this.error=E}v&&!v[d]&&e.rebuild(v)}this.result=new i(g,v,C),this.helpers=re(H({},w),{postcss:w,result:this.result}),this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?H(H({},M),M.prepare(this.result)):M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(g){return this.async().catch(g)}finally(g){return this.async().then(g,g)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(g,S){let C=this.result.lastPlugin;try{S&&S.addToError(g),this.error=g,g.name==="CssSyntaxError"&&!g.plugin?(g.plugin=C.postcssPlugin,g.setMessage()):C.postcssVersion}catch(v){console&&console.error&&console.error(v)}return g}prepareVisitors(){this.listeners={};let g=(S,C,v)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([S,v])};for(let S of this.plugins)if(typeof S=="object")for(let C in S){if(!l[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${S.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!n[C])if(typeof S[C]=="object")for(let v in S[C])v==="*"?g(S,C,S[C][v]):g(S,C+"-"+v.toLowerCase(),S[C][v]);else typeof S[C]=="function"&&g(S,C,S[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let g=0;g<this.plugins.length;g++){let S=this.plugins[g],C=this.runOnRoot(S);if(p(C))try{await C}catch(v){throw this.handleError(v)}}if(this.prepareVisitors(),this.hasListener){let g=this.result.root;for(;!g[h];){g[h]=!0;let S=[y(g)];for(;S.length>0;){let C=this.visitTick(S);if(p(C))try{await C}catch(v){let M=S[S.length-1].node;throw this.handleError(v,M)}}}if(this.listeners.OnceExit)for(let[S,C]of this.listeners.OnceExit){this.result.lastPlugin=S;try{if(g.type==="document"){let v=g.nodes.map(M=>C(M,this.helpers));await Promise.all(v)}else await C(g,this.helpers)}catch(v){throw this.handleError(v)}}}return this.processed=!0,this.stringify()}runOnRoot(g){this.result.lastPlugin=g;try{if(typeof g=="object"&&g.Once){if(this.result.root.type==="document"){let S=this.result.root.nodes.map(C=>g.Once(C,this.helpers));return p(S[0])?Promise.all(S):S}return g.Once(this.result.root,this.helpers)}else if(typeof g=="function")return g(this.result.root,this.result)}catch(S){throw this.handleError(S)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let g=this.result.opts,S=u;g.syntax&&(S=g.syntax.stringify),g.stringifier&&(S=g.stringifier),S.stringify&&(S=S.stringify);let v=new c(S,this.result.root,this.result.opts).generate();return this.result.css=v[0],this.result.map=v[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 g of this.plugins){let S=this.runOnRoot(g);if(p(S))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let g=this.result.root;for(;!g[h];)g[h]=!0,this.walkSync(g);if(this.listeners.OnceExit)if(g.type==="document")for(let S of g.nodes)this.visitSync(this.listeners.OnceExit,S);else this.visitSync(this.listeners.OnceExit,g)}return this.result}then(g,S){return this.async().then(g,S)}toString(){return this.css}visitSync(g,S){for(let[C,v]of g){this.result.lastPlugin=C;let M;try{M=v(S,this.helpers)}catch(E){throw this.handleError(E,S.proxyOf)}if(S.type!=="root"&&S.type!=="document"&&!S.parent)return!0;if(p(M))throw this.getAsyncError()}}visitTick(g){let S=g[g.length-1],{node:C,visitors:v}=S;if(C.type!=="root"&&C.type!=="document"&&!C.parent){g.pop();return}if(v.length>0&&S.visitorIndex<v.length){let[E,D]=v[S.visitorIndex];S.visitorIndex+=1,S.visitorIndex===v.length&&(S.visitors=[],S.visitorIndex=0),this.result.lastPlugin=E;try{return D(C.toProxy(),this.helpers)}catch(P){throw this.handleError(P,C)}}if(S.iterator!==0){let E=S.iterator,D;for(;D=C.nodes[C.indexes[E]];)if(C.indexes[E]+=1,!D[h]){D[h]=!0,g.push(y(D));return}S.iterator=0,delete C.indexes[E]}let M=S.events;for(;S.eventIndex<M.length;){let E=M[S.eventIndex];if(S.eventIndex+=1,E===s){C.nodes&&C.nodes.length&&(C[h]=!0,S.iterator=C.getIterator());return}else if(this.listeners[E]){S.visitors=this.listeners[E];return}}g.pop()}walkSync(g){g[h]=!0;let S=m(g);for(let C of S)if(C===s)g.nodes&&g.each(v=>{v[h]||this.walkSync(v)});else{let v=this.listeners[C];if(v&&this.visitSync(v,g.toProxy()))return}}warnings(){return this.sync().warnings()}}return x.registerPostcss=R=>{w=R},rt=x,x.default=x,f.registerLazyResult(x),r.registerLazyResult(x),rt}var it,br;function Ki(){if(br)return it;br=1;let e=Ar(),r=pt(),c=dt(),o=de(),i=Dr();class f{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let h,d=r;try{h=d(this._css,this._opts)}catch(a){this.error=a}if(this.error)throw this.error;return this._root=h,h}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(h,d,a){d=d.toString(),this.stringified=!1,this._processor=h,this._css=d,this._opts=a,this._map=void 0;let t,l=o;this.result=new c(this._processor,t,this._opts),this.result.css=d;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let s=new e(l,t,this._opts,d);if(s.isMap()){let[p,m]=s.generate();p&&(this.result.css=p),m&&(this.result.map=m)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(h){return this.async().catch(h)}finally(h){return this.async().then(h,h)}sync(){if(this.error)throw this.error;return this.result}then(h,d){return this.async().then(h,d)}toString(){return this._css}warnings(){return[]}}return it=f,f.default=f,it}var st,xr;function es(){if(xr)return st;xr=1;let e=ft(),r=kr(),c=Ki(),o=se();class i{constructor(u=[]){this.version="8.5.6",this.plugins=this.normalize(u)}normalize(u){let h=[];for(let d of u)if(d.postcss===!0?d=d():d.postcss&&(d=d.postcss),typeof d=="object"&&Array.isArray(d.plugins))h=h.concat(d.plugins);else if(typeof d=="object"&&d.postcssPlugin)h.push(d);else if(typeof d=="function")h.push(d);else if(!(typeof d=="object"&&(d.parse||d.stringify)))throw new Error(d+" is not a PostCSS plugin");return h}process(u,h={}){return!this.plugins.length&&!h.parser&&!h.stringifier&&!h.syntax?new c(this,u,h):new r(this,u,h)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return st=i,i.default=i,o.registerProcessor(i),e.registerProcessor(i),st}var nt,Cr;function Lr(){if(Cr)return nt;Cr=1;let e=ct(),r=ie(),c=Y(),o=lt(),i=ge(),f=ft(),u=Qi(),h=ye(),d=kr(),a=Or(),t=me(),l=pt(),n=es(),s=dt(),p=se(),m=ht(),y=de(),b=Tr();function w(...x){return x.length===1&&Array.isArray(x[0])&&(x=x[0]),new n(x)}return w.plugin=function(R,g){let S=!1;function C(...M){console&&console.warn&&!S&&(S=!0,console.warn(R+`: postcss.plugin was deprecated. Migration guide:
|
|
28
|
+
`),s=w.length-y):s+=w.length,x&&R!=="start"){let g=x.parent||{raws:{}};(!(x.type==="decl"||x.type==="atrule"&&!x.nodes)||x!==g.last||g.raws.semicolon)&&(x.source&&x.source.end?(m.source=this.sourcePath(x),m.original.line=x.source.end.line,m.original.column=x.source.end.column-1,m.generated.line=n,m.generated.column=s-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=n,m.generated.column=s-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(n=>n.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let n=this.mapOpts.annotation;return typeof n!="undefined"&&n!==!0?!1:this.previous().length?this.previous().some(s=>s.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(n=>n.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;let s=this.memoizedPaths.get(n);if(s)return s;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(c(p,this.mapOpts.annotation)));let m=r(p,n);return this.memoizedPaths.set(n,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(n=>{if(n.source&&n.source.input.map){let s=n.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let n=new h(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps}setSourcesContent(){let n={};if(this.root)this.root.walk(s=>{if(s.source){let p=s.source.input.from;if(p&&!n[p]){n[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(m,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))}toBase64(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))}toFileUrl(n){let s=this.memoizedFileURLs.get(n);if(s)return s;if(u){let p=u(n).toString();return this.memoizedFileURLs.set(n,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(n){let s=this.memoizedURLs.get(n);if(s)return s;o==="\\"&&(n=n.replace(/\\/g,"/"));let p=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,p),p}}return Ze=t,Ze}var Ye,dr;function Tr(){if(dr)return Ye;dr=1;let e=39,r=34,c=92,o=47,i=10,f=32,u=12,h=9,d=13,a=91,t=93,l=40,n=41,s=123,p=125,m=59,y=42,b=58,w=64,x=/[\t\n\f\r "#'()/;[\\\]{}]/g,R=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,g=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return Ye=function(v,M={}){let E=v.css.valueOf(),D=M.ignoreErrors,P,G,T,N,X,k,F,V,$,yt,wt=E.length,O=0,Se=[],ne=[];function Fr(){return O}function be(Q){throw v.error("Unclosed "+Q,O)}function $r(){return ne.length===0&&O>=wt}function zr(Q){if(ne.length)return ne.pop();if(O>=wt)return;let xe=Q?Q.ignoreUnclosed:!1;switch(P=E.charCodeAt(O),P){case i:case f:case h:case d:case u:{N=O;do N+=1,P=E.charCodeAt(N);while(P===f||P===i||P===h||P===d||P===u);k=["space",E.slice(O,N)],O=N-1;break}case a:case t:case s:case p:case b:case m:case n:{let St=String.fromCharCode(P);k=[St,St,O];break}case l:{if(yt=Se.length?Se.pop()[1]:"",$=E.charCodeAt(O+1),yt==="url"&&$!==e&&$!==r&&$!==f&&$!==i&&$!==h&&$!==u&&$!==d){N=O;do{if(F=!1,N=E.indexOf(")",N+1),N===-1)if(D||xe){N=O;break}else be("bracket");for(V=N;E.charCodeAt(V-1)===c;)V-=1,F=!F}while(F);k=["brackets",E.slice(O,N+1),O,N],O=N}else N=E.indexOf(")",O+1),G=E.slice(O,N+1),N===-1||g.test(G)?k=["(","(",O]:(k=["brackets",G,O,N],O=N);break}case e:case r:{X=P===e?"'":'"',N=O;do{if(F=!1,N=E.indexOf(X,N+1),N===-1)if(D||xe){N=O+1;break}else be("string");for(V=N;E.charCodeAt(V-1)===c;)V-=1,F=!F}while(F);k=["string",E.slice(O,N+1),O,N],O=N;break}case w:{x.lastIndex=O+1,x.test(E),x.lastIndex===0?N=E.length-1:N=x.lastIndex-2,k=["at-word",E.slice(O,N+1),O,N],O=N;break}case c:{for(N=O,T=!0;E.charCodeAt(N+1)===c;)N+=1,T=!T;if(P=E.charCodeAt(N+1),T&&P!==o&&P!==f&&P!==i&&P!==h&&P!==d&&P!==u&&(N+=1,S.test(E.charAt(N)))){for(;S.test(E.charAt(N+1));)N+=1;E.charCodeAt(N+1)===f&&(N+=1)}k=["word",E.slice(O,N+1),O,N],O=N;break}default:{P===o&&E.charCodeAt(O+1)===y?(N=E.indexOf("*/",O+2)+1,N===0&&(D||xe?N=E.length:be("comment")),k=["comment",E.slice(O,N+1),O,N],O=N):(R.lastIndex=O+1,R.test(E),R.lastIndex===0?N=E.length-1:N=R.lastIndex-2,k=["word",E.slice(O,N+1),O,N],Se.push(k),O=N);break}}return O++,k}function Wr(Q){ne.push(Q)}return{back:Wr,endOfFile:$r,nextToken:zr,position:Fr}},Ye}var Xe,mr;function _r(){if(mr)return Xe;mr=1;let e=ct(),r=ie(),c=ge(),o=se(),i=ht(),f=Tr(),u={empty:!0,space:!0};function h(a){for(let t=a.length-1;t>=0;t--){let l=a[t],n=l[3]||l[2];if(n)return n}}class d{constructor(t){this.input=t,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let l=new e;l.name=t[1].slice(1),l.name===""&&this.unnamedAtrule(l,t),this.init(l,t[2]);let n,s,p,m=!1,y=!1,b=[],w=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?w.push(n==="("?")":"]"):n==="{"&&w.length>0?w.push("}"):n===w[w.length-1]&&w.pop(),w.length===0)if(n===";"){l.source.end=this.getPosition(t[2]),l.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){y=!0;break}else if(n==="}"){if(b.length>0){for(p=b.length-1,s=b[p];s&&s[0]==="space";)s=b[--p];s&&(l.source.end=this.getPosition(s[3]||s[2]),l.source.end.offset++)}this.end(t);break}else b.push(t);else b.push(t);if(this.tokenizer.endOfFile()){m=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(l.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(l,"params",b),m&&(t=b[b.length-1],l.source.end=this.getPosition(t[3]||t[2]),l.source.end.offset++,this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),y&&(l.nodes=[],this.current=l)}checkMissedSemicolon(t){let l=this.colon(t);if(l===!1)return;let n=0,s;for(let p=l-1;p>=0&&(s=t[p],!(s[0]!=="space"&&(n+=1,n===2)));p--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(t){let l=0,n,s,p;for(let[m,y]of t.entries()){if(s=y,p=s[0],p==="("&&(l+=1),p===")"&&(l-=1),l===0&&p===":")if(!n)this.doubleColon(s);else{if(n[0]==="word"&&n[1]==="progid")continue;return m}n=s}return!1}comment(t){let l=new r;this.init(l,t[2]),l.source.end=this.getPosition(t[3]||t[2]),l.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))l.text="",l.raws.left=n,l.raws.right="";else{let s=n.match(/^(\s*)([^]*\S)(\s*)$/);l.text=s[2],l.raws.left=s[1],l.raws.right=s[3]}}createTokenizer(){this.tokenizer=f(this.input)}decl(t,l){let n=new c;this.init(n,t[0][2]);let s=t[t.length-1];for(s[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(s[3]||s[2]||h(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let w=t[0][0];if(w===":"||w==="space"||w==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let p;for(;t.length;)if(p=t.shift(),p[0]===":"){n.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),n.raws.between+=p[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let m=[],y;for(;t.length&&(y=t[0][0],!(y!=="space"&&y!=="comment"));)m.push(t.shift());this.precheckMissedSemicolon(t);for(let w=t.length-1;w>=0;w--){if(p=t[w],p[1].toLowerCase()==="!important"){n.important=!0;let x=this.stringFrom(t,w);x=this.spacesFromEnd(t)+x,x!==" !important"&&(n.raws.important=x);break}else if(p[1].toLowerCase()==="important"){let x=t.slice(0),R="";for(let g=w;g>0;g--){let S=x[g][0];if(R.trim().startsWith("!")&&S!=="space")break;R=x.pop()[1]+R}R.trim().startsWith("!")&&(n.important=!0,n.raws.important=R,t=x)}if(p[0]!=="space"&&p[0]!=="comment")break}t.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(n.raws.between+=m.map(w=>w[1]).join(""),m=[]),this.raw(n,"value",m.concat(t),l),n.value.includes(":")&&!l&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let l=new i;this.init(l,t[2]),l.selector="",l.raws.between="",this.current=l}end(t){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(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}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(t){if(this.spaces+=t[1],this.current.nodes){let l=this.current.nodes[this.current.nodes.length-1];l&&l.type==="rule"&&!l.raws.ownSemicolon&&(l.raws.ownSemicolon=this.spaces,this.spaces="",l.source.end=this.getPosition(t[2]),l.source.end.offset+=l.raws.ownSemicolon.length)}}getPosition(t){let l=this.input.fromOffset(t);return{column:l.col,line:l.line,offset:t}}init(t,l){this.current.push(t),t.source={input:this.input,start:this.getPosition(l)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let l=!1,n=null,s=!1,p=null,m=[],y=t[1].startsWith("--"),b=[],w=t;for(;w;){if(n=w[0],b.push(w),n==="("||n==="[")p||(p=w),m.push(n==="("?")":"]");else if(y&&s&&n==="{")p||(p=w),m.push("}");else if(m.length===0)if(n===";")if(s){this.decl(b,y);return}else break;else if(n==="{"){this.rule(b);return}else if(n==="}"){this.tokenizer.back(b.pop()),l=!0;break}else n===":"&&(s=!0);else n===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(l=!0),m.length>0&&this.unclosedBracket(p),l&&s){if(!y)for(;b.length&&(w=b[b.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,y)}else this.unknownWord(b)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,l,n,s){let p,m,y=n.length,b="",w=!0,x,R;for(let g=0;g<y;g+=1)p=n[g],m=p[0],m==="space"&&g===y-1&&!s?w=!1:m==="comment"?(R=n[g-1]?n[g-1][0]:"empty",x=n[g+1]?n[g+1][0]:"empty",!u[R]&&!u[x]?b.slice(-1)===","?w=!1:b+=p[1]:w=!1):b+=p[1];if(!w){let g=n.reduce((S,C)=>S+C[1],"");t.raws[l]={raw:g,value:b}}t[l]=b}rule(t){t.pop();let l=new i;this.init(l,t[0][2]),l.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(l,"selector",t),this.current=l}spacesAndCommentsFromEnd(t){let l,n="";for(;t.length&&(l=t[t.length-1][0],!(l!=="space"&&l!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let l,n="";for(;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let l,n="";for(;t.length&&(l=t[t.length-1][0],l==="space");)n=t.pop()[1]+n;return n}stringFrom(t,l){let n="";for(let s=l;s<t.length;s++)n+=t[s][1];return t.splice(l,t.length-l),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,l){throw this.input.error("At-rule without name",{offset:l[2]},{offset:l[2]+l[1].length})}}return Xe=d,Xe}var Qe,gr;function pt(){if(gr)return Qe;gr=1;let e=Y(),r=ye(),c=_r();function o(i,f){let u=new r(i,f),h=new c(u);try{h.parse()}catch(d){throw d}return h.root}return Qe=o,o.default=o,e.registerParse(o),Qe}var Ke,yr;function Dr(){if(yr)return Ke;yr=1;class e{constructor(c,o={}){if(this.type="warning",this.text=c,o.node&&o.node.source){let i=o.node.rangeBy(o);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in o)this[i]=o[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ke=e,e.default=e,Ke}var et,wr;function dt(){if(wr)return et;wr=1;let e=Dr();class r{get content(){return this.css}constructor(o,i,f){this.processor=o,this.messages=[],this.root=i,this.opts=f,this.css="",this.map=void 0}toString(){return this.css}warn(o,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let f=new e(o,i);return this.messages.push(f),f}warnings(){return this.messages.filter(o=>o.type==="warning")}}return et=r,r.default=r,et}var tt,Sr;function kr(){if(Sr)return tt;Sr=1;let e={};return tt=function(c){e[c]||(e[c]=!0,typeof console!="undefined"&&console.warn&&console.warn(c))},tt}var rt,br;function Lr(){if(br)return rt;br=1;let e=Y(),r=ft(),c=Pr(),o=pt(),i=dt(),f=se(),u=de(),{isClean:h,my:d}=ut(),a=kr(),t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},l={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},n={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function p(R){return typeof R=="object"&&typeof R.then=="function"}function m(R){let g=!1,S=t[R.type];return R.type==="decl"?g=R.prop.toLowerCase():R.type==="atrule"&&(g=R.name.toLowerCase()),g&&R.append?[S,S+"-"+g,s,S+"Exit",S+"Exit-"+g]:g?[S,S+"-"+g,S+"Exit",S+"Exit-"+g]:R.append?[S,s,S+"Exit"]:[S,S+"Exit"]}function y(R){let g;return R.type==="document"?g=["Document",s,"DocumentExit"]:R.type==="root"?g=["Root",s,"RootExit"]:g=m(R),{eventIndex:0,events:g,iterator:0,node:R,visitorIndex:0,visitors:[]}}function b(R){return R[h]=!1,R.nodes&&R.nodes.forEach(g=>b(g)),R}let w={};class x{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(g,S,C){this.stringified=!1,this.processed=!1;let v;if(typeof S=="object"&&S!==null&&(S.type==="root"||S.type==="document"))v=b(S);else if(S instanceof x||S instanceof i)v=b(S.root),S.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=S.map);else{let M=o;C.syntax&&(M=C.syntax.parse),C.parser&&(M=C.parser),M.parse&&(M=M.parse);try{v=M(S,C)}catch(E){this.processed=!0,this.error=E}v&&!v[d]&&e.rebuild(v)}this.result=new i(g,v,C),this.helpers=re(H({},w),{postcss:w,result:this.result}),this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?H(H({},M),M.prepare(this.result)):M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(g){return this.async().catch(g)}finally(g){return this.async().then(g,g)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(g,S){let C=this.result.lastPlugin;try{S&&S.addToError(g),this.error=g,g.name==="CssSyntaxError"&&!g.plugin?(g.plugin=C.postcssPlugin,g.setMessage()):C.postcssVersion}catch(v){console&&console.error&&console.error(v)}return g}prepareVisitors(){this.listeners={};let g=(S,C,v)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([S,v])};for(let S of this.plugins)if(typeof S=="object")for(let C in S){if(!l[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${S.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!n[C])if(typeof S[C]=="object")for(let v in S[C])v==="*"?g(S,C,S[C][v]):g(S,C+"-"+v.toLowerCase(),S[C][v]);else typeof S[C]=="function"&&g(S,C,S[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let g=0;g<this.plugins.length;g++){let S=this.plugins[g],C=this.runOnRoot(S);if(p(C))try{await C}catch(v){throw this.handleError(v)}}if(this.prepareVisitors(),this.hasListener){let g=this.result.root;for(;!g[h];){g[h]=!0;let S=[y(g)];for(;S.length>0;){let C=this.visitTick(S);if(p(C))try{await C}catch(v){let M=S[S.length-1].node;throw this.handleError(v,M)}}}if(this.listeners.OnceExit)for(let[S,C]of this.listeners.OnceExit){this.result.lastPlugin=S;try{if(g.type==="document"){let v=g.nodes.map(M=>C(M,this.helpers));await Promise.all(v)}else await C(g,this.helpers)}catch(v){throw this.handleError(v)}}}return this.processed=!0,this.stringify()}runOnRoot(g){this.result.lastPlugin=g;try{if(typeof g=="object"&&g.Once){if(this.result.root.type==="document"){let S=this.result.root.nodes.map(C=>g.Once(C,this.helpers));return p(S[0])?Promise.all(S):S}return g.Once(this.result.root,this.helpers)}else if(typeof g=="function")return g(this.result.root,this.result)}catch(S){throw this.handleError(S)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let g=this.result.opts,S=u;g.syntax&&(S=g.syntax.stringify),g.stringifier&&(S=g.stringifier),S.stringify&&(S=S.stringify);let v=new c(S,this.result.root,this.result.opts).generate();return this.result.css=v[0],this.result.map=v[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 g of this.plugins){let S=this.runOnRoot(g);if(p(S))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let g=this.result.root;for(;!g[h];)g[h]=!0,this.walkSync(g);if(this.listeners.OnceExit)if(g.type==="document")for(let S of g.nodes)this.visitSync(this.listeners.OnceExit,S);else this.visitSync(this.listeners.OnceExit,g)}return this.result}then(g,S){return this.async().then(g,S)}toString(){return this.css}visitSync(g,S){for(let[C,v]of g){this.result.lastPlugin=C;let M;try{M=v(S,this.helpers)}catch(E){throw this.handleError(E,S.proxyOf)}if(S.type!=="root"&&S.type!=="document"&&!S.parent)return!0;if(p(M))throw this.getAsyncError()}}visitTick(g){let S=g[g.length-1],{node:C,visitors:v}=S;if(C.type!=="root"&&C.type!=="document"&&!C.parent){g.pop();return}if(v.length>0&&S.visitorIndex<v.length){let[E,D]=v[S.visitorIndex];S.visitorIndex+=1,S.visitorIndex===v.length&&(S.visitors=[],S.visitorIndex=0),this.result.lastPlugin=E;try{return D(C.toProxy(),this.helpers)}catch(P){throw this.handleError(P,C)}}if(S.iterator!==0){let E=S.iterator,D;for(;D=C.nodes[C.indexes[E]];)if(C.indexes[E]+=1,!D[h]){D[h]=!0,g.push(y(D));return}S.iterator=0,delete C.indexes[E]}let M=S.events;for(;S.eventIndex<M.length;){let E=M[S.eventIndex];if(S.eventIndex+=1,E===s){C.nodes&&C.nodes.length&&(C[h]=!0,S.iterator=C.getIterator());return}else if(this.listeners[E]){S.visitors=this.listeners[E];return}}g.pop()}walkSync(g){g[h]=!0;let S=m(g);for(let C of S)if(C===s)g.nodes&&g.each(v=>{v[h]||this.walkSync(v)});else{let v=this.listeners[C];if(v&&this.visitSync(v,g.toProxy()))return}}warnings(){return this.sync().warnings()}}return x.registerPostcss=R=>{w=R},rt=x,x.default=x,f.registerLazyResult(x),r.registerLazyResult(x),rt}var it,xr;function es(){if(xr)return it;xr=1;let e=Pr(),r=pt(),c=dt(),o=de(),i=kr();class f{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let h,d=r;try{h=d(this._css,this._opts)}catch(a){this.error=a}if(this.error)throw this.error;return this._root=h,h}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(h,d,a){d=d.toString(),this.stringified=!1,this._processor=h,this._css=d,this._opts=a,this._map=void 0;let t,l=o;this.result=new c(this._processor,t,this._opts),this.result.css=d;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let s=new e(l,t,this._opts,d);if(s.isMap()){let[p,m]=s.generate();p&&(this.result.css=p),m&&(this.result.map=m)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(h){return this.async().catch(h)}finally(h){return this.async().then(h,h)}sync(){if(this.error)throw this.error;return this.result}then(h,d){return this.async().then(h,d)}toString(){return this._css}warnings(){return[]}}return it=f,f.default=f,it}var st,Cr;function ts(){if(Cr)return st;Cr=1;let e=ft(),r=Lr(),c=es(),o=se();class i{constructor(u=[]){this.version="8.5.6",this.plugins=this.normalize(u)}normalize(u){let h=[];for(let d of u)if(d.postcss===!0?d=d():d.postcss&&(d=d.postcss),typeof d=="object"&&Array.isArray(d.plugins))h=h.concat(d.plugins);else if(typeof d=="object"&&d.postcssPlugin)h.push(d);else if(typeof d=="function")h.push(d);else if(!(typeof d=="object"&&(d.parse||d.stringify)))throw new Error(d+" is not a PostCSS plugin");return h}process(u,h={}){return!this.plugins.length&&!h.parser&&!h.stringifier&&!h.syntax?new c(this,u,h):new r(this,u,h)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return st=i,i.default=i,o.registerProcessor(i),e.registerProcessor(i),st}var nt,vr;function Br(){if(vr)return nt;vr=1;let e=ct(),r=ie(),c=Y(),o=lt(),i=ge(),f=ft(),u=Ki(),h=ye(),d=Lr(),a=Ar(),t=me(),l=pt(),n=ts(),s=dt(),p=se(),m=ht(),y=de(),b=Dr();function w(...x){return x.length===1&&Array.isArray(x[0])&&(x=x[0]),new n(x)}return w.plugin=function(R,g){let S=!1;function C(...M){console&&console.warn&&!S&&(S=!0,console.warn(R+`: postcss.plugin was deprecated. Migration guide:
|
|
29
29
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(R+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
30
|
-
https://www.w3ctech.com/topic/2226`));let E=g(...M);return E.postcssPlugin=R,E.postcssVersion=new n().version,E}let v;return Object.defineProperty(C,"postcss",{get(){return v||(v=C()),v}}),C.process=function(M,E,D){return w([C(D)]).process(M,E)},C},w.stringify=y,w.parse=l,w.fromJSON=u,w.list=a,w.comment=x=>new r(x),w.atRule=x=>new e(x),w.decl=x=>new i(x),w.rule=x=>new m(x),w.root=x=>new p(x),w.document=x=>new f(x),w.CssSyntaxError=o,w.Declaration=i,w.Container=c,w.Processor=n,w.Document=f,w.Comment=r,w.Warning=b,w.AtRule=e,w.Result=s,w.Input=h,w.Rule=m,w.Root=p,w.Node=t,d.registerPostcss(w),nt=w,w.default=w,nt}var ot,vr;function ts(){if(vr)return ot;vr=1;let e=ie(),r=_r(),c=Pr();class o extends r{checkMissedSemicolon(){}comment(f){let u=new e;this.init(u,f[2]);let h=this.input.fromOffset(f[3])||this.input.fromOffset(this.input.css.length-1);u.source.end={column:h.col,line:h.line,offset:f[3]+1};let d=f[1].slice(2);if(d.slice(-2)==="*/"&&(d=d.slice(0,-2)),/^\s*$/.test(d))u.text="",u.raws.left=d,u.raws.right="";else{let a=d.match(/^(\s*)([^]*\S)(\s*)$/);u.text=a[2],u.raws.left=a[1],u.raws.right=a[3]}}createTokenizer(){this.tokenizer=c(this.input,{ignoreErrors:!0})}decl(f){f.length>1&&f.some(u=>u[0]==="word")&&super.decl(f)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(f){let u=this.colon(f);if(u===!1)return;let h,d;for(h=u-1;h>=0&&f[h][0]!=="word";h--);if(h===0||h<0)return;for(d=h-1;d>=0;d--)if(f[d][0]!=="space"){d+=1;break}let a=f.slice(h),t=f.slice(d,h);f.splice(d,f.length-d),this.spaces=t.map(l=>l[1]).join(""),this.decl(a)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(f){this.spaces+=f.map(u=>u[1]).join("")}unnamedAtrule(f){f.name=""}}return ot=o,ot}var at,Rr;function rs(){if(Rr)return at;Rr=1;let{Input:e}=Lr(),r=ts();return at=function(o,i){let f=new e(o,i),u=new r(f);return u.parse(),u.root},at}var is=rs(),ss=Nr(is),ns=Lr(),B=Nr(ns);B.stringify;B.fromJSON;B.plugin;B.parse;B.list;B.document;B.comment;B.atRule;B.rule;B.decl;B.root;B.CssSyntaxError;B.Declaration;B.Container;B.Processor;B.Document;B.Comment;B.Warning;B.AtRule;B.Result;B.Input;B.Rule;B.Root;B.Node;var Er={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 os(e){let r=Er[e.tagName]?Er[e.tagName]:e.tagName;return r==="link"&&e.attributes._cssText&&(r="style"),r}function mt(e,r){let c=r==null?void 0:r.stylesWithHoverClass.get(e);if(c)return c;let o=e;try{o=B([Vi,Gi]).process(e,{parser:ss}).css}catch(i){console.warn("Failed to adapt css for replay",i)}return r==null||r.stylesWithHoverClass.set(e,o),o}function as(){return{stylesWithHoverClass:new Map}}function ls(e,r){let c=e.textContent;if(e.isStyle&&r.hackCss)try{c=mt(e.textContent,r.cache)}catch(o){}return r.doc.createTextNode(c)}function us(e,r){var c;let{doc:o,hackCss:i,cache:f}=r;switch(e.type){case A.NodeType$1.Document:return o.implementation.createDocument(null,"",null);case A.NodeType$1.DocumentType:return o.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case A.NodeType$1.Element:{let u=os(e),h;e.isSVG?h=o.createElementNS("http://www.w3.org/2000/svg",u):(e.isCustom&&((c=o.defaultView)!=null&&c.customElements)&&!o.defaultView.customElements.get(e.tagName)&&o.defaultView.customElements.define(e.tagName,class extends o.defaultView.HTMLElement{}),h=o.createElement(u));let d={};for(let a in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,a))continue;let t=e.attributes[a];if(u==="option"&&a==="selected"&&t===!1||t===null)continue;if(t===!0&&(t=""),a.startsWith("rr_")){d[a]=t;continue}let l=u==="textarea"&&a==="value",n=u==="style"&&a==="_cssText";if(n&&i&&typeof t=="string"&&(t=mt(t,f)),(l||n)&&typeof t=="string"){h.appendChild(o.createTextNode(t)),e.childNodes=[];continue}try{if(e.isSVG&&a==="xlink:href")h.setAttributeNS("http://www.w3.org/1999/xlink",a,t.toString());else if(a==="onload"||a==="onclick"||a.substring(0,7)==="onmouse")h.setAttribute("_"+a,t.toString());else if(u==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&a==="content"){h.setAttribute("csp-content",t.toString());continue}else u==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||u==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&A.extractFileExtension(e.attributes.href)==="js"||(u==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?h.setAttribute("rrweb-original-srcset",e.attributes.srcset):h.setAttribute(a,t.toString()))}catch(s){}}for(let a in d){let t=d[a];if(u==="canvas"&&a==="rr_dataURL"){let l=o.createElement("img");l.onload=()=>{let n=h.getContext("2d");n&&n.drawImage(l,0,0,l.width,l.height)},l.src=t.toString(),h.RRNodeType&&(h.rr_dataURL=t.toString())}else if(u==="img"&&a==="rr_dataURL"){let l=h;l.currentSrc.startsWith("data:")||(l.setAttribute("rrweb-original-src",e.attributes.src),l.src=t.toString())}if(a==="rr_width")h.style.setProperty("width",t.toString());else if(a==="rr_height")h.style.setProperty("height",t.toString());else if(a==="rr_left")h.style.setProperty("left",t.toString()),h.style.setProperty("position","absolute");else if(a==="rr_top")h.style.setProperty("top",t.toString()),h.style.setProperty("position","absolute");else if(a==="rr_mediaCurrentTime"&&typeof t=="number")h.currentTime=t;else if(a==="rr_mediaState")switch(t){case"played":h.play().catch(l=>console.warn("media playback error",l));break;case"paused":h.pause();break}else a==="rr_mediaPlaybackRate"&&typeof t=="number"?h.playbackRate=t:a==="rr_mediaMuted"&&typeof t=="boolean"?h.muted=t:a==="rr_mediaLoop"&&typeof t=="boolean"?h.loop=t:a==="rr_mediaVolume"&&typeof t=="number"?h.volume=t:a==="rr_open_mode"&&h.setAttribute("rr_open_mode",t)}if(e.isShadowHost)if(!h.shadowRoot)h.attachShadow({mode:"open"});else for(;h.shadowRoot.firstChild;)h.shadowRoot.removeChild(h.shadowRoot.firstChild);return h}case A.NodeType$1.Text:return ls(e,{cache:f,doc:o,hackCss:i});case A.NodeType$1.CDATA:return e.textContent.trim()===""?null:o.createCDATASection(e.textContent);case A.NodeType$1.Comment:return o.createComment(e.textContent);default:return null}}function gt(e,r){let{doc:c,mirror:o,skipChild:i=!1,hackCss:f=!0,afterAppend:u,cache:h}=r;if(o.has(e.id)){let a=o.getNode(e.id),t=o.getMeta(a);if(A.isNodeMetaEqual(t,e))return o.getNode(e.id)}let d=us(e,{doc:c,hackCss:f,cache:h});if(!d)return null;if(e.rootId&&o.getNode(e.rootId)!==c&&o.replace(e.rootId,c),e.type===A.NodeType$1.Document&&(c.close(),c.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==A.NodeType$1.DocumentType&&(e.childNodes[0].type===A.NodeType$1.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?c.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):c.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),d=c),o.add(d,e),(e.type===A.NodeType$1.Document||e.type===A.NodeType$1.Element)&&!i)for(let a of e.childNodes){let t=gt(a,{doc:c,mirror:o,skipChild:!1,hackCss:f,afterAppend:u,cache:h});if(!t){console.warn("Failed to rebuild",a);continue}if(a.isShadow&&A.isElement(d)&&d.shadowRoot)d.shadowRoot.appendChild(t);else if(e.type===A.NodeType$1.Document&&a.type==A.NodeType$1.Element){let l=t,n=null;l.childNodes.forEach(s=>{s.nodeName==="BODY"&&(n=s)}),n?(l.removeChild(n),d.appendChild(t),l.appendChild(n)):d.appendChild(t)}else e.type===A.NodeType$1.Document&&a.type===A.NodeType$1.DocumentType&&d.firstChild&&d.firstChild.nodeType===1?d.insertBefore(t,d.firstChild):d.appendChild(t);u&&u(t,a.id)}return d}function cs(e,r){function c(o){r(o)}for(let o of e.getIds())e.has(o)&&c(e.getNode(o))}function fs(e,r){let c=r.getMeta(e);if((c==null?void 0:c.type)!==A.NodeType$1.Element)return;let o=e;for(let i in c.attributes){if(!(Object.prototype.hasOwnProperty.call(c.attributes,i)&&i.startsWith("rr_")))continue;let f=c.attributes[i];i==="rr_scrollLeft"&&(o.scrollLeft=f),i==="rr_scrollTop"&&(o.scrollTop=f)}}function hs(e,r){let{doc:c,onVisit:o,hackCss:i=!0,afterAppend:f,cache:u,mirror:h=new A.Mirror}=r,d=gt(e,{doc:c,mirror:h,skipChild:!1,hackCss:i,afterAppend:f,cache:u});return cs(h,a=>{o&&o(a),fs(a,h)}),d}T.Mirror=A.Mirror;T.NodeType=A.NodeType;T.absolutifyURLs=A.absolutifyURLs;T.checkDataURLSize=A.checkDataURLSize;T.createMirror=A.createMirror;T.escapeImportStatement=A.escapeImportStatement;T.extractFileExtension=A.extractFileExtension;T.fixSafariColons=A.fixSafariColons;T.getInputType=A.getInputType;T.is2DCanvasBlank=A.is2DCanvasBlank;T.isCSSImportRule=A.isCSSImportRule;T.isCSSStyleRule=A.isCSSStyleRule;T.isElement=A.isElement;T.isNativeShadowDom=A.isNativeShadowDom;T.isNodeMetaEqual=A.isNodeMetaEqual;T.isShadowRoot=A.isShadowRoot;T.maskInputValue=A.maskInputValue;T.recompressBase64Image=A.recompressBase64Image;T.stringifyRule=A.stringifyRule;T.stringifyStylesheet=A.stringifyStylesheet;T.toLowerCase=A.toLowerCase;T.adaptCssForReplay=mt;T.buildNodeWithSN=gt;T.createCache=as;T.rebuild=hs});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var q=Gt(),we=Br(),F=ce();exports.DEFAULT_MAX_DEPTH=q.DEFAULT_MAX_DEPTH;exports.IGNORED_NODE=q.IGNORED_NODE;exports.classMatchesRegex=q.classMatchesRegex;exports.cleanupSnapshot=q.cleanupSnapshot;exports.genId=q.genId;exports.ignoreAttribute=q.ignoreAttribute;exports.needMaskingText=q.needMaskingText;exports.resetMaxDepthState=q.resetMaxDepthState;exports.serializeNodeWithId=q.serializeNodeWithId;exports.snapshot=q.snapshot;exports.transformAttribute=q.transformAttribute;exports.visitSnapshot=q.visitSnapshot;exports.wasMaxDepthReached=q.wasMaxDepthReached;exports.adaptCssForReplay=we.adaptCssForReplay;exports.buildNodeWithSN=we.buildNodeWithSN;exports.createCache=we.createCache;exports.rebuild=we.rebuild;exports.Mirror=F.Mirror;exports.NodeType=F.NodeType;exports.absolutifyURLs=F.absolutifyURLs;exports.checkDataURLSize=F.checkDataURLSize;exports.createMirror=F.createMirror;exports.escapeImportStatement=F.escapeImportStatement;exports.extractFileExtension=F.extractFileExtension;exports.fixSafariColons=F.fixSafariColons;exports.getInputType=F.getInputType;exports.is2DCanvasBlank=F.is2DCanvasBlank;exports.isCSSImportRule=F.isCSSImportRule;exports.isCSSStyleRule=F.isCSSStyleRule;exports.isElement=F.isElement;exports.isNativeShadowDom=F.isNativeShadowDom;exports.isNodeMetaEqual=F.isNodeMetaEqual;exports.isShadowRoot=F.isShadowRoot;exports.maskInputValue=F.maskInputValue;exports.recompressBase64Image=F.recompressBase64Image;exports.stringifyRule=F.stringifyRule;exports.stringifyStylesheet=F.stringifyStylesheet;exports.toLowerCase=F.toLowerCase;
|
|
30
|
+
https://www.w3ctech.com/topic/2226`));let E=g(...M);return E.postcssPlugin=R,E.postcssVersion=new n().version,E}let v;return Object.defineProperty(C,"postcss",{get(){return v||(v=C()),v}}),C.process=function(M,E,D){return w([C(D)]).process(M,E)},C},w.stringify=y,w.parse=l,w.fromJSON=u,w.list=a,w.comment=x=>new r(x),w.atRule=x=>new e(x),w.decl=x=>new i(x),w.rule=x=>new m(x),w.root=x=>new p(x),w.document=x=>new f(x),w.CssSyntaxError=o,w.Declaration=i,w.Container=c,w.Processor=n,w.Document=f,w.Comment=r,w.Warning=b,w.AtRule=e,w.Result=s,w.Input=h,w.Rule=m,w.Root=p,w.Node=t,d.registerPostcss(w),nt=w,w.default=w,nt}var ot,Rr;function rs(){if(Rr)return ot;Rr=1;let e=ie(),r=_r(),c=Tr();class o extends r{checkMissedSemicolon(){}comment(f){let u=new e;this.init(u,f[2]);let h=this.input.fromOffset(f[3])||this.input.fromOffset(this.input.css.length-1);u.source.end={column:h.col,line:h.line,offset:f[3]+1};let d=f[1].slice(2);if(d.slice(-2)==="*/"&&(d=d.slice(0,-2)),/^\s*$/.test(d))u.text="",u.raws.left=d,u.raws.right="";else{let a=d.match(/^(\s*)([^]*\S)(\s*)$/);u.text=a[2],u.raws.left=a[1],u.raws.right=a[3]}}createTokenizer(){this.tokenizer=c(this.input,{ignoreErrors:!0})}decl(f){f.length>1&&f.some(u=>u[0]==="word")&&super.decl(f)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(f){let u=this.colon(f);if(u===!1)return;let h,d;for(h=u-1;h>=0&&f[h][0]!=="word";h--);if(h===0||h<0)return;for(d=h-1;d>=0;d--)if(f[d][0]!=="space"){d+=1;break}let a=f.slice(h),t=f.slice(d,h);f.splice(d,f.length-d),this.spaces=t.map(l=>l[1]).join(""),this.decl(a)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(f){this.spaces+=f.map(u=>u[1]).join("")}unnamedAtrule(f){f.name=""}}return ot=o,ot}var at,Er;function is(){if(Er)return at;Er=1;let{Input:e}=Br(),r=rs();return at=function(o,i){let f=new e(o,i),u=new r(f);return u.parse(),u.root},at}var ss=is(),ns=Ir(ss),os=Br(),L=Ir(os);L.stringify;L.fromJSON;L.plugin;L.parse;L.list;L.document;L.comment;L.atRule;L.rule;L.decl;L.root;L.CssSyntaxError;L.Declaration;L.Container;L.Processor;L.Document;L.Comment;L.Warning;L.AtRule;L.Result;L.Input;L.Rule;L.Root;L.Node;var Nr={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 as(e){let r=Nr[e.tagName]?Nr[e.tagName]:e.tagName;return r==="link"&&e.attributes._cssText&&(r="style"),r}function mt(e,r){let c=r==null?void 0:r.stylesWithHoverClass.get(e);if(c)return c;let o=e;try{o=L([Gi,Hi]).process(e,{parser:ns}).css}catch(i){console.warn("Failed to adapt css for replay",i)}return r==null||r.stylesWithHoverClass.set(e,o),o}function ls(){return{stylesWithHoverClass:new Map}}function us(e,r){let c=e.textContent;if(e.isStyle&&r.hackCss)try{c=mt(e.textContent,r.cache)}catch(o){}return r.doc.createTextNode(c)}function cs(e,r){var c;let{doc:o,hackCss:i,cache:f}=r;switch(e.type){case A.NodeType$1.Document:return o.implementation.createDocument(null,"",null);case A.NodeType$1.DocumentType:return o.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case A.NodeType$1.Element:{let u=as(e),h;e.isSVG?h=o.createElementNS("http://www.w3.org/2000/svg",u):(e.isCustom&&((c=o.defaultView)!=null&&c.customElements)&&!o.defaultView.customElements.get(e.tagName)&&o.defaultView.customElements.define(e.tagName,class extends o.defaultView.HTMLElement{}),h=o.createElement(u));let d={};for(let a in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,a))continue;let t=e.attributes[a];if(u==="option"&&a==="selected"&&t===!1||t===null)continue;if(t===!0&&(t=""),a.startsWith("rr_")){d[a]=t;continue}let l=u==="textarea"&&a==="value",n=u==="style"&&a==="_cssText";if(n&&i&&typeof t=="string"&&(t=mt(t,f)),(l||n)&&typeof t=="string"){h.appendChild(o.createTextNode(t)),e.childNodes=[];continue}try{if(e.isSVG&&a==="xlink:href")h.setAttributeNS("http://www.w3.org/1999/xlink",a,t.toString());else if(a==="onload"||a==="onclick"||a.substring(0,7)==="onmouse")h.setAttribute("_"+a,t.toString());else if(u==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&a==="content"){h.setAttribute("csp-content",t.toString());continue}else u==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||u==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&A.extractFileExtension(e.attributes.href)==="js"||(u==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?h.setAttribute("rrweb-original-srcset",e.attributes.srcset):h.setAttribute(a,t.toString()))}catch(s){}}for(let a in d){let t=d[a];if(u==="canvas"&&a==="rr_dataURL"){let l=o.createElement("img");l.onload=()=>{let n=h.getContext("2d");n&&n.drawImage(l,0,0,l.width,l.height)},l.src=t.toString(),h.RRNodeType&&(h.rr_dataURL=t.toString())}else if(u==="img"&&a==="rr_dataURL"){let l=h;l.currentSrc.startsWith("data:")||(l.setAttribute("rrweb-original-src",e.attributes.src),l.src=t.toString())}if(a==="rr_width")h.style.setProperty("width",t.toString());else if(a==="rr_height")h.style.setProperty("height",t.toString());else if(a==="rr_left")h.style.setProperty("left",t.toString()),h.style.setProperty("position","absolute");else if(a==="rr_top")h.style.setProperty("top",t.toString()),h.style.setProperty("position","absolute");else if(a==="rr_mediaCurrentTime"&&typeof t=="number")h.currentTime=t;else if(a==="rr_mediaState")switch(t){case"played":h.play().catch(l=>console.warn("media playback error",l));break;case"paused":h.pause();break}else a==="rr_mediaPlaybackRate"&&typeof t=="number"?h.playbackRate=t:a==="rr_mediaMuted"&&typeof t=="boolean"?h.muted=t:a==="rr_mediaLoop"&&typeof t=="boolean"?h.loop=t:a==="rr_mediaVolume"&&typeof t=="number"?h.volume=t:a==="rr_open_mode"&&h.setAttribute("rr_open_mode",t)}if(e.isShadowHost)if(!h.shadowRoot)h.attachShadow({mode:"open"});else for(;h.shadowRoot.firstChild;)h.shadowRoot.removeChild(h.shadowRoot.firstChild);return h}case A.NodeType$1.Text:return us(e,{cache:f,doc:o,hackCss:i});case A.NodeType$1.CDATA:return e.textContent.trim()===""?null:o.createCDATASection(e.textContent);case A.NodeType$1.Comment:return o.createComment(e.textContent);default:return null}}function gt(e,r){let{doc:c,mirror:o,skipChild:i=!1,hackCss:f=!0,afterAppend:u,cache:h}=r;if(o.has(e.id)){let a=o.getNode(e.id),t=o.getMeta(a);if(A.isNodeMetaEqual(t,e))return o.getNode(e.id)}let d=cs(e,{doc:c,hackCss:f,cache:h});if(!d)return null;if(e.rootId&&o.getNode(e.rootId)!==c&&o.replace(e.rootId,c),e.type===A.NodeType$1.Document&&(c.close(),c.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==A.NodeType$1.DocumentType&&(e.childNodes[0].type===A.NodeType$1.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?c.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):c.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),d=c),o.add(d,e),(e.type===A.NodeType$1.Document||e.type===A.NodeType$1.Element)&&!i)for(let a of e.childNodes){let t=gt(a,{doc:c,mirror:o,skipChild:!1,hackCss:f,afterAppend:u,cache:h});if(!t){console.warn("Failed to rebuild",a);continue}if(a.isShadow&&A.isElement(d)&&d.shadowRoot)d.shadowRoot.appendChild(t);else if(e.type===A.NodeType$1.Document&&a.type==A.NodeType$1.Element){let l=t,n=null;l.childNodes.forEach(s=>{s.nodeName==="BODY"&&(n=s)}),n?(l.removeChild(n),d.appendChild(t),l.appendChild(n)):d.appendChild(t)}else e.type===A.NodeType$1.Document&&a.type===A.NodeType$1.DocumentType&&d.firstChild&&d.firstChild.nodeType===1?d.insertBefore(t,d.firstChild):d.appendChild(t);u&&u(t,a.id)}return d}function fs(e,r){function c(o){r(o)}for(let o of e.getIds())e.has(o)&&c(e.getNode(o))}function hs(e,r){let c=r.getMeta(e);if((c==null?void 0:c.type)!==A.NodeType$1.Element)return;let o=e;for(let i in c.attributes){if(!(Object.prototype.hasOwnProperty.call(c.attributes,i)&&i.startsWith("rr_")))continue;let f=c.attributes[i];i==="rr_scrollLeft"&&(o.scrollLeft=f),i==="rr_scrollTop"&&(o.scrollTop=f)}}function ps(e,r){let{doc:c,onVisit:o,hackCss:i=!0,afterAppend:f,cache:u,mirror:h=new A.Mirror}=r,d=gt(e,{doc:c,mirror:h,skipChild:!1,hackCss:i,afterAppend:f,cache:u});return fs(h,a=>{o&&o(a),hs(a,h)}),d}_.Mirror=A.Mirror;_.NodeType=A.NodeType;_.absolutifyURLs=A.absolutifyURLs;_.checkDataURLSize=A.checkDataURLSize;_.createMirror=A.createMirror;_.escapeImportStatement=A.escapeImportStatement;_.extractFileExtension=A.extractFileExtension;_.fixSafariColons=A.fixSafariColons;_.getInputType=A.getInputType;_.is2DCanvasBlank=A.is2DCanvasBlank;_.isCSSImportRule=A.isCSSImportRule;_.isCSSStyleRule=A.isCSSStyleRule;_.isElement=A.isElement;_.isNativeShadowDom=A.isNativeShadowDom;_.isNodeMetaEqual=A.isNodeMetaEqual;_.isShadowRoot=A.isShadowRoot;_.maskInputValue=A.maskInputValue;_.recompressBase64Image=A.recompressBase64Image;_.stringifyRule=A.stringifyRule;_.stringifyStylesheet=A.stringifyStylesheet;_.toLowerCase=A.toLowerCase;_.adaptCssForReplay=mt;_.buildNodeWithSN=gt;_.createCache=ls;_.rebuild=ps});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var W=Ht(),we=Ur(),U=ce();exports.DEFAULT_MAX_DEPTH=W.DEFAULT_MAX_DEPTH;exports.IGNORED_NODE=W.IGNORED_NODE;exports.classMatchesRegex=W.classMatchesRegex;exports.cleanupSnapshot=W.cleanupSnapshot;exports.genId=W.genId;exports.ignoreAttribute=W.ignoreAttribute;exports.needMaskingText=W.needMaskingText;exports.resetMaxDepthState=W.resetMaxDepthState;exports.serializeNodeWithId=W.serializeNodeWithId;exports.slimDOMDefaults=W.slimDOMDefaults;exports.snapshot=W.snapshot;exports.transformAttribute=W.transformAttribute;exports.visitSnapshot=W.visitSnapshot;exports.wasMaxDepthReached=W.wasMaxDepthReached;exports.adaptCssForReplay=we.adaptCssForReplay;exports.buildNodeWithSN=we.buildNodeWithSN;exports.createCache=we.createCache;exports.rebuild=we.rebuild;exports.Mirror=U.Mirror;exports.NodeType=U.NodeType;exports.absolutifyURLs=U.absolutifyURLs;exports.checkDataURLSize=U.checkDataURLSize;exports.createMirror=U.createMirror;exports.escapeImportStatement=U.escapeImportStatement;exports.extractFileExtension=U.extractFileExtension;exports.fixSafariColons=U.fixSafariColons;exports.getInputType=U.getInputType;exports.is2DCanvasBlank=U.is2DCanvasBlank;exports.isCSSImportRule=U.isCSSImportRule;exports.isCSSStyleRule=U.isCSSStyleRule;exports.isElement=U.isElement;exports.isNativeShadowDom=U.isNativeShadowDom;exports.isNodeMetaEqual=U.isNodeMetaEqual;exports.isShadowRoot=U.isShadowRoot;exports.maskInputValue=U.maskInputValue;exports.recompressBase64Image=U.recompressBase64Image;exports.stringifyRule=U.stringifyRule;exports.stringifyStylesheet=U.stringifyStylesheet;exports.toLowerCase=U.toLowerCase;
|
|
31
31
|
;if (typeof module.exports == "object" && typeof exports == "object") {
|
|
32
32
|
var __cp = (to, from, except, desc) => {
|
|
33
33
|
if ((from && typeof from === "object") || typeof from === "function") {
|