@betterbugs/rrdom-nodejs 2.0.0-alpha.20 → 2.0.0-alpha.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,32 +11,32 @@
11
11
  }(this, () => {
12
12
  var exports = {};
13
13
  var module = { exports };
14
- "use strict";var Rr=Object.defineProperty,xr=Object.defineProperties;var Cr=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var Ze=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable;var Xe=(i,e,t)=>e in i?Rr(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,v=(i,e)=>{for(var t in e||(e={}))Ze.call(e,t)&&Xe(i,t,e[t]);if(V)for(var t of V(e))Ke.call(e,t)&&Xe(i,t,e[t]);return i},_=(i,e)=>xr(i,Cr(e));var me=(i,e)=>{var t={};for(var r in i)Ze.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&V)for(var r of V(i))e.indexOf(r)<0&&Ke.call(i,r)&&(t[r]=i[r]);return t};var Sr=Object.defineProperty,Er=(i,e,t)=>e in i?Sr(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,w=(i,e,t)=>Er(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var vr=Object.defineProperty,Or=(i,e,t)=>e in i?vr(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,h=(i,e,t)=>Or(i,typeof e!="symbol"?e+"":e,t);function Ar(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Nr(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var s=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return i[r]}})}),t}var Ie={exports:{}},g=String,yt=function(){return{isColorSupported:!1,reset:g,bold:g,dim:g,italic:g,underline:g,inverse:g,hidden:g,strikethrough:g,black:g,red:g,green:g,yellow:g,blue:g,magenta:g,cyan:g,white:g,gray:g,bgBlack:g,bgRed:g,bgGreen:g,bgYellow:g,bgBlue:g,bgMagenta:g,bgCyan:g,bgWhite:g}};Ie.exports=yt();Ie.exports.createColors=yt;var Dr=Ie.exports;const Pr={},Tr=Object.freeze(Object.defineProperty({__proto__:null,default:Pr},Symbol.toStringTag,{value:"Module"})),S=Nr(Tr);let et=Dr,tt=S,be=class wt extends Error{constructor(e,t,r,s,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),s&&(this.source=s),n&&(this.plugin=n),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,wt)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=et.isColorSupported),tt&&e&&(t=tt(t));let r=t.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,r.length),n=String(o).length,a,l;if(e){let{bold:u,gray:c,red:m}=et.createColors(!0);a=d=>u(m(d)),l=d=>c(d)}else a=l=u=>u;return r.slice(s,o).map((u,c)=>{let m=s+1+c,d=" "+(" "+m).slice(-n)+" | ";if(m===this.line){let R=l(d.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(d)+u+`
15
- `+R+a("^")}return" "+l(d)+u}).join(`
16
- `)}toString(){let e=this.showSourceCode();return e&&(e=`
14
+ "use strict";var nr=Object.defineProperty,or=Object.defineProperties;var lr=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var Ke=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable;var Ze=(i,e,r)=>e in i?nr(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r,U=(i,e)=>{for(var r in e||(e={}))Ke.call(e,r)&&Ze(i,r,e[r]);if(Q)for(var r of Q(e))et.call(e,r)&&Ze(i,r,e[r]);return i},V=(i,e)=>or(i,lr(e));var ae=(i,e)=>{var r={};for(var f in i)Ke.call(i,f)&&e.indexOf(f)<0&&(r[f]=i[f]);if(i!=null&&Q)for(var f of Q(i))e.indexOf(f)<0&&et.call(i,f)&&(r[f]=i[f]);return r};var ar=Object.defineProperty,ur=(i,e,r)=>e in i?ar(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r,_=(i,e,r)=>ur(i,typeof e!="symbol"?e+"":e,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var hr=Object.defineProperty,cr=(i,e,r)=>e in i?hr(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r,O=(i,e,r)=>cr(i,typeof e!="symbol"?e+"":e,r);function fr(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function pr(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var r=function f(){return this instanceof f?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(i).forEach(function(f){var n=Object.getOwnPropertyDescriptor(i,f);Object.defineProperty(r,f,n.get?n:{enumerable:!0,get:function(){return i[f]}})}),r}var X={exports:{}},tt;function mr(){if(tt)return X.exports;tt=1;var i=String,e=function(){return{isColorSupported:!1,reset:i,bold:i,dim:i,italic:i,underline:i,inverse:i,hidden:i,strikethrough:i,black:i,red:i,green:i,yellow:i,blue:i,magenta:i,cyan:i,white:i,gray:i,bgBlack:i,bgRed:i,bgGreen:i,bgYellow:i,bgBlue:i,bgMagenta:i,bgCyan:i,bgWhite:i}};return X.exports=e(),X.exports.createColors=e,X.exports}const dr={},gr=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"})),B=pr(gr);var ue,rt;function Be(){if(rt)return ue;rt=1;let i=mr(),e=B;class r extends Error{constructor(n,m,p,d,u,c){super(n),this.name="CssSyntaxError",this.reason=n,u&&(this.file=u),d&&(this.source=d),c&&(this.plugin=c),typeof m!="undefined"&&typeof p!="undefined"&&(typeof m=="number"?(this.line=m,this.column=p):(this.line=m.line,this.column=m.column,this.endLine=p.line,this.endColumn=p.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}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(n){if(!this.source)return"";let m=this.source;n==null&&(n=i.isColorSupported),e&&n&&(m=e(m));let p=m.split(/\r?\n/),d=Math.max(this.line-3,0),u=Math.min(this.line+2,p.length),c=String(u).length,t,l;if(n){let{bold:o,gray:s,red:h}=i.createColors(!0);t=a=>o(h(a)),l=a=>s(a)}else t=l=o=>o;return p.slice(d,u).map((o,s)=>{let h=d+1+s,a=" "+(" "+h).slice(-c)+" | ";if(h===this.line){let g=l(a.replace(/\d/g," "))+o.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+l(a)+o+`
15
+ `+g+t("^")}return" "+l(a)+o}).join(`
16
+ `)}toString(){let n=this.showSourceCode();return n&&(n=`
17
17
 
18
- `+e+`
19
- `),this.name+": "+this.message+e}};var Le=be;be.default=be;var F={};F.isClean=Symbol("isClean");F.my=Symbol("my");const rt={after:`
18
+ `+n+`
19
+ `),this.name+": "+this.message+n}}return ue=r,r.default=r,ue}var Z={},st;function Ue(){return st||(st=1,Z.isClean=Symbol("isClean"),Z.my=Symbol("my")),Z}var he,it;function Tt(){if(it)return he;it=1;const i={after:`
20
20
  `,beforeClose:`
21
21
  `,beforeComment:`
22
22
  `,beforeDecl:`
23
23
  `,beforeOpen:" ",beforeRule:`
24
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function $r(i){return i[0].toUpperCase()+i.slice(1)}let Re=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let o=(e.raws.between||"")+(t?";":"");this.builder(r+s+o,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let s=e.parent,o=0;for(;s&&s.type!=="root";)o+=1,s=s.parent;if(r.includes(`
25
- `)){let n=this.raw(e,null,"indent");if(n.length)for(let a=0;a<o;a++)r+=n}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let o=e.nodes[s],n=this.raw(o,"before");n&&this.builder(n),this.stringify(o,t!==s||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,r){let s;if(r||(r=t),t&&(s=e.raws[t],typeof s!="undefined"))return s;let o=e.parent;if(r==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return rt[r];let n=e.root();if(n.rawCache||(n.rawCache={}),typeof n.rawCache[r]!="undefined")return n.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let a="raw"+$r(r);this[a]?s=this[a](n,e):n.walk(l=>{if(s=l.raws[t],typeof s!="undefined")return!1})}return typeof s=="undefined"&&(s=rt[r]),n.rawCache[r]=s,s}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(`
26
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(s=>{if(typeof s.raws.before!="undefined")return r=s.raws.before,r.includes(`
27
- `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(s=>{if(typeof s.raws.before!="undefined")return r=s.raws.before,r.includes(`
28
- `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t!="undefined"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before!="undefined")return t=r.raws.before,t.includes(`
29
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between!="undefined")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof r.raws.before!="undefined"){let o=r.raws.before.split(`
30
- `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var bt=Re;Re.default=Re;let _r=bt;function xe(i,e){new _r(e).stringify(i)}var oe=xe;xe.default=xe;let{isClean:H,my:Mr}=F,Ir=Le,Lr=bt,Br=oe;function Ce(i,e){let t=new i.constructor;for(let r in i){if(!Object.prototype.hasOwnProperty.call(i,r)||r==="proxyCache")continue;let s=i[r],o=typeof s;r==="parent"&&o==="object"?e&&(t[r]=e):r==="source"?t[r]=s:Array.isArray(s)?t[r]=s.map(n=>Ce(n,t)):(o==="object"&&s!==null&&(s=Ce(s)),t[r]=s)}return t}let Se=class{constructor(e={}){this.raws={},this[H]=!1,this[Mr]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Ce(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new Ir(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[H]){this[H]=!1;let e=this;for(;e=e.parent;)e[H]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();let s=t.indexOf(e.word);s!==-1&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,o=this.source.start.line;for(let n=0;n<e;n++)r[n]===`
31
- `?(s=1,o+=1):s+=1;return{column:s,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),o=s.indexOf(e.word);o!==-1&&(t=this.positionInside(o,s),r=this.positionInside(o+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new Lr().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},s=t==null;t=t||new Map;let o=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let a=this[n];if(Array.isArray(a))r[n]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)r[n]=a.toJSON(null,t);else if(n==="source"){let l=t.get(a.input);l==null&&(l=o,t.set(a.input,o),o++),r[n]={end:a.end,inputId:l,start:a.start}}else r[n]=a}return s&&(r.inputs=[...t.keys()].map(n=>n.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Br){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let s={node:this};for(let o in r)s[o]=r[o];return e.warn(t,s)}get proxyOf(){return this}};var le=Se;Se.default=Se;let Ur=le,Ee=class extends Ur{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=_(v({},e),{value:String(e.value)})),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var ae=Ee;Ee.default=Ee;let kr="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Fr=(i,e=21)=>(t=e)=>{let r="",s=t;for(;s--;)r+=i[Math.random()*i.length|0];return r},zr=(i=21)=>{let e="",t=i;for(;t--;)e+=kr[Math.random()*64|0];return e};var jr={nanoid:zr,customAlphabet:Fr};let{SourceMapConsumer:st,SourceMapGenerator:it}=S,{existsSync:Wr,readFileSync:Vr}=S,{dirname:de,join:Hr}=S;function Gr(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let ve=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=de(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new st(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(s.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return Gr(e.substr(RegExp.lastMatch.length));let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=de(e),Wr(e))return this.mapFile=e,Vr(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let s=this.loadFile(r);if(!s)throw new Error("Unable to load previous source map: "+r.toString());return s}}else{if(t instanceof st)return it.fromSourceMap(t).toString();if(t instanceof it)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=Hr(de(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Rt=ve;ve.default=ve;let{SourceMapConsumer:qr,SourceMapGenerator:Jr}=S,{fileURLToPath:nt,pathToFileURL:G}=S,{isAbsolute:Oe,resolve:Ae}=S,{nanoid:Yr}=jr,ge=S,ot=Le,Qr=Rt,ye=Symbol("fromOffsetCache"),Xr=!!(qr&&Jr),lt=!!(Ae&&Oe),re=class{constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!lt||/^\w+:\/\//.test(t.from)||Oe(t.from)?this.file=t.from:this.file=Ae(t.from)),lt&&Xr){let r=new Qr(this.css,t);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+Yr(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let o,n,a;if(t&&typeof t=="object"){let u=t,c=r;if(typeof u.offset=="number"){let m=this.fromOffset(u.offset);t=m.line,r=m.col}else t=u.line,r=u.column;if(typeof c.offset=="number"){let m=this.fromOffset(c.offset);n=m.line,a=m.col}else n=c.line,a=c.column}else if(!r){let u=this.fromOffset(t);t=u.line,r=u.col}let l=this.origin(t,r,n,a);return l?o=new ot(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,s.plugin):o=new ot(e,n===void 0?t:{column:r,line:t},n===void 0?r:{column:a,line:n},this.css,this.file,s.plugin),o.input={column:r,endColumn:a,endLine:n,line:t,source:this.css},this.file&&(G&&(o.input.url=G(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,r;if(this[ye])r=this[ye];else{let o=this.css.split(`
32
- `);r=new Array(o.length);let n=0;for(let a=0,l=o.length;a<l;a++)r[a]=n,n+=o[a].length+1;this[ye]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let o=r.length-2,n;for(;s<o;)if(n=s+(o-s>>1),e<r[n])o=n-1;else if(e>=r[n+1])s=n+1;else{s=n;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ae(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){if(!this.map)return!1;let o=this.map.consumer(),n=o.originalPositionFor({column:t,line:e});if(!n.source)return!1;let a;typeof r=="number"&&(a=o.originalPositionFor({column:s,line:r}));let l;Oe(n.source)?l=G(n.source):l=new URL(n.source,this.map.consumer().sourceRoot||G(this.map.mapFile));let u={column:n.column,endColumn:a&&a.column,endLine:a&&a.line,line:n.line,url:l.toString()};if(l.protocol==="file:")if(nt)u.file=nt(l);else throw new Error("file: protocol is not available in this PostCSS build");let c=o.sourceContentFor(n.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=v({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var ue=re;re.default=re;ge&&ge.registerInput&&ge.registerInput(re);let{SourceMapConsumer:xt,SourceMapGenerator:ee}=S,{dirname:te,relative:Ct,resolve:St,sep:Et}=S,{pathToFileURL:at}=S,Zr=ue,Kr=!!(xt&&ee),es=!!(te&&St&&Ct&&Et),ts=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
24
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(f){return f[0].toUpperCase()+f.slice(1)}class r{constructor(n){this.builder=n}atrule(n,m){let p="@"+n.name,d=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName!="undefined"?p+=n.raws.afterName:d&&(p+=" "),n.nodes)this.block(n,p+d);else{let u=(n.raws.between||"")+(m?";":"");this.builder(p+d+u,n)}}beforeAfter(n,m){let p;n.type==="decl"?p=this.raw(n,null,"beforeDecl"):n.type==="comment"?p=this.raw(n,null,"beforeComment"):m==="before"?p=this.raw(n,null,"beforeRule"):p=this.raw(n,null,"beforeClose");let d=n.parent,u=0;for(;d&&d.type!=="root";)u+=1,d=d.parent;if(p.includes(`
25
+ `)){let c=this.raw(n,null,"indent");if(c.length)for(let t=0;t<u;t++)p+=c}return p}block(n,m){let p=this.raw(n,"between","beforeOpen");this.builder(m+p+"{",n,"start");let d;n.nodes&&n.nodes.length?(this.body(n),d=this.raw(n,"after")):d=this.raw(n,"after","emptyBody"),d&&this.builder(d),this.builder("}",n,"end")}body(n){let m=n.nodes.length-1;for(;m>0&&n.nodes[m].type==="comment";)m-=1;let p=this.raw(n,"semicolon");for(let d=0;d<n.nodes.length;d++){let u=n.nodes[d],c=this.raw(u,"before");c&&this.builder(c),this.stringify(u,m!==d||p)}}comment(n){let m=this.raw(n,"left","commentLeft"),p=this.raw(n,"right","commentRight");this.builder("/*"+m+n.text+p+"*/",n)}decl(n,m){let p=this.raw(n,"between","colon"),d=n.prop+p+this.rawValue(n,"value");n.important&&(d+=n.raws.important||" !important"),m&&(d+=";"),this.builder(d,n)}document(n){this.body(n)}raw(n,m,p){let d;if(p||(p=m),m&&(d=n.raws[m],typeof d!="undefined"))return d;let u=n.parent;if(p==="before"&&(!u||u.type==="root"&&u.first===n||u&&u.type==="document"))return"";if(!u)return i[p];let c=n.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[p]!="undefined")return c.rawCache[p];if(p==="before"||p==="after")return this.beforeAfter(n,p);{let t="raw"+e(p);this[t]?d=this[t](c,n):c.walk(l=>{if(d=l.raws[m],typeof d!="undefined")return!1})}return typeof d=="undefined"&&(d=i[p]),c.rawCache[p]=d,d}rawBeforeClose(n){let m;return n.walk(p=>{if(p.nodes&&p.nodes.length>0&&typeof p.raws.after!="undefined")return m=p.raws.after,m.includes(`
26
+ `)&&(m=m.replace(/[^\n]+$/,"")),!1}),m&&(m=m.replace(/\S/g,"")),m}rawBeforeComment(n,m){let p;return n.walkComments(d=>{if(typeof d.raws.before!="undefined")return p=d.raws.before,p.includes(`
27
+ `)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p=="undefined"?p=this.raw(m,null,"beforeDecl"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeDecl(n,m){let p;return n.walkDecls(d=>{if(typeof d.raws.before!="undefined")return p=d.raws.before,p.includes(`
28
+ `)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p=="undefined"?p=this.raw(m,null,"beforeRule"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeOpen(n){let m;return n.walk(p=>{if(p.type!=="decl"&&(m=p.raws.between,typeof m!="undefined"))return!1}),m}rawBeforeRule(n){let m;return n.walk(p=>{if(p.nodes&&(p.parent!==n||n.first!==p)&&typeof p.raws.before!="undefined")return m=p.raws.before,m.includes(`
29
+ `)&&(m=m.replace(/[^\n]+$/,"")),!1}),m&&(m=m.replace(/\S/g,"")),m}rawColon(n){let m;return n.walkDecls(p=>{if(typeof p.raws.between!="undefined")return m=p.raws.between.replace(/[^\s:]/g,""),!1}),m}rawEmptyBody(n){let m;return n.walk(p=>{if(p.nodes&&p.nodes.length===0&&(m=p.raws.after,typeof m!="undefined"))return!1}),m}rawIndent(n){if(n.raws.indent)return n.raws.indent;let m;return n.walk(p=>{let d=p.parent;if(d&&d!==n&&d.parent&&d.parent===n&&typeof p.raws.before!="undefined"){let u=p.raws.before.split(`
30
+ `);return m=u[u.length-1],m=m.replace(/\S/g,""),!1}}),m}rawSemicolon(n){let m;return n.walk(p=>{if(p.nodes&&p.nodes.length&&p.last.type==="decl"&&(m=p.raws.semicolon,typeof m!="undefined"))return!1}),m}rawValue(n,m){let p=n[m],d=n.raws[m];return d&&d.value===p?d.raw:p}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,m){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,m)}}return he=r,r.default=r,he}var ce,nt;function K(){if(nt)return ce;nt=1;let i=Tt();function e(r,f){new i(f).stringify(r)}return ce=e,e.default=e,ce}var fe,ot;function ee(){if(ot)return fe;ot=1;let{isClean:i,my:e}=Ue(),r=Be(),f=Tt(),n=K();function m(d,u){let c=new d.constructor;for(let t in d){if(!Object.prototype.hasOwnProperty.call(d,t)||t==="proxyCache")continue;let l=d[t],o=typeof l;t==="parent"&&o==="object"?u&&(c[t]=u):t==="source"?c[t]=l:Array.isArray(l)?c[t]=l.map(s=>m(s,c)):(o==="object"&&l!==null&&(l=m(l)),c[t]=l)}return c}class p{constructor(u={}){this.raws={},this[i]=!1,this[e]=!0;for(let c in u)if(c==="nodes"){this.nodes=[];for(let t of u[c])typeof t.clone=="function"?this.append(t.clone()):this.append(t)}else this[c]=u[c]}addToError(u){if(u.postcssNode=this,u.stack&&this.source&&/\n\s{4}at /.test(u.stack)){let c=this.source;u.stack=u.stack.replace(/\n\s{4}at /,`$&${c.input.from}:${c.start.line}:${c.start.column}$&`)}return u}after(u){return this.parent.insertAfter(this,u),this}assign(u={}){for(let c in u)this[c]=u[c];return this}before(u){return this.parent.insertBefore(this,u),this}cleanRaws(u){delete this.raws.before,delete this.raws.after,u||delete this.raws.between}clone(u={}){let c=m(this);for(let t in u)c[t]=u[t];return c}cloneAfter(u={}){let c=this.clone(u);return this.parent.insertAfter(this,c),c}cloneBefore(u={}){let c=this.clone(u);return this.parent.insertBefore(this,c),c}error(u,c={}){if(this.source){let{end:t,start:l}=this.rangeBy(c);return this.source.input.error(u,{column:l.column,line:l.line},{column:t.column,line:t.line},c)}return new r(u)}getProxyProcessor(){return{get(u,c){return c==="proxyOf"?u:c==="root"?()=>u.root().toProxy():u[c]},set(u,c,t){return u[c]===t||(u[c]=t,(c==="prop"||c==="value"||c==="name"||c==="params"||c==="important"||c==="text")&&u.markDirty()),!0}}}markDirty(){if(this[i]){this[i]=!1;let u=this;for(;u=u.parent;)u[i]=!1}}next(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u+1]}positionBy(u,c){let t=this.source.start;if(u.index)t=this.positionInside(u.index,c);else if(u.word){c=this.toString();let l=c.indexOf(u.word);l!==-1&&(t=this.positionInside(l,c))}return t}positionInside(u,c){let t=c||this.toString(),l=this.source.start.column,o=this.source.start.line;for(let s=0;s<u;s++)t[s]===`
31
+ `?(l=1,o+=1):l+=1;return{column:l,line:o}}prev(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u-1]}rangeBy(u){let c={column:this.source.start.column,line:this.source.start.line},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:c.column+1,line:c.line};if(u.word){let l=this.toString(),o=l.indexOf(u.word);o!==-1&&(c=this.positionInside(o,l),t=this.positionInside(o+u.word.length,l))}else u.start?c={column:u.start.column,line:u.start.line}:u.index&&(c=this.positionInside(u.index)),u.end?t={column:u.end.column,line:u.end.line}:typeof u.endIndex=="number"?t=this.positionInside(u.endIndex):u.index&&(t=this.positionInside(u.index+1));return(t.line<c.line||t.line===c.line&&t.column<=c.column)&&(t={column:c.column+1,line:c.line}),{end:t,start:c}}raw(u,c){return new f().raw(this,u,c)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...u){if(this.parent){let c=this,t=!1;for(let l of u)l===this?t=!0:t?(this.parent.insertAfter(c,l),c=l):this.parent.insertBefore(c,l);t||this.remove()}return this}root(){let u=this;for(;u.parent&&u.parent.type!=="document";)u=u.parent;return u}toJSON(u,c){let t={},l=c==null;c=c||new Map;let o=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let h=this[s];if(Array.isArray(h))t[s]=h.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,c):a);else if(typeof h=="object"&&h.toJSON)t[s]=h.toJSON(null,c);else if(s==="source"){let a=c.get(h.input);a==null&&(a=o,c.set(h.input,o),o++),t[s]={end:h.end,inputId:a,start:h.start}}else t[s]=h}return l&&(t.inputs=[...c.keys()].map(s=>s.toJSON())),t}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(u=n){u.stringify&&(u=u.stringify);let c="";return u(this,t=>{c+=t}),c}warn(u,c,t){let l={node:this};for(let o in t)l[o]=t[o];return u.warn(c,l)}get proxyOf(){return this}}return fe=p,p.default=p,fe}var pe,lt;function te(){if(lt)return pe;lt=1;let i=ee();class e extends i{constructor(f){f&&typeof f.value!="undefined"&&typeof f.value!="string"&&(f=V(U({},f),{value:String(f.value)})),super(f),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return pe=e,e.default=e,pe}var me,at;function yr(){if(at)return me;at=1;let i="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return me={nanoid:(f=21)=>{let n="",m=f;for(;m--;)n+=i[Math.random()*64|0];return n},customAlphabet:(f,n=21)=>(m=n)=>{let p="",d=m;for(;d--;)p+=f[Math.random()*f.length|0];return p}},me}var de,ut;function _t(){if(ut)return de;ut=1;let{SourceMapConsumer:i,SourceMapGenerator:e}=B,{existsSync:r,readFileSync:f}=B,{dirname:n,join:m}=B;function p(u){return Buffer?Buffer.from(u,"base64").toString():window.atob(u)}class d{constructor(c,t){if(t.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let l=t.map?t.map.prev:void 0,o=this.loadMap(t.from,l);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=n(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(c){let t=/^data:application\/json;charset=utf-?8;base64,/,l=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(o.test(c)||s.test(c))return decodeURIComponent(c.substr(RegExp.lastMatch.length));if(t.test(c)||l.test(c))return p(c.substr(RegExp.lastMatch.length));let h=c.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+h)}getAnnotationURL(c){return c.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(c){return typeof c!="object"?!1:typeof c.mappings=="string"||typeof c._mappings=="string"||Array.isArray(c.sections)}loadAnnotation(c){let t=c.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let l=c.lastIndexOf(t.pop()),o=c.indexOf("*/",l);l>-1&&o>-1&&(this.annotation=this.getAnnotationURL(c.substring(l,o)))}loadFile(c){if(this.root=n(c),r(c))return this.mapFile=c,f(c,"utf-8").toString().trim()}loadMap(c,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let l=t(c);if(l){let o=this.loadFile(l);if(!o)throw new Error("Unable to load previous source map: "+l.toString());return o}}else{if(t instanceof i)return e.fromSourceMap(t).toString();if(t instanceof e)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 c&&(l=m(n(c),l)),this.loadFile(l)}}}startWith(c,t){return c?c.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return de=d,d.default=d,de}var ge,ht;function re(){if(ht)return ge;ht=1;let{SourceMapConsumer:i,SourceMapGenerator:e}=B,{fileURLToPath:r,pathToFileURL:f}=B,{isAbsolute:n,resolve:m}=B,{nanoid:p}=yr(),d=B,u=Be(),c=_t(),t=Symbol("fromOffsetCache"),l=!!(i&&e),o=!!(m&&n);class s{constructor(a,g={}){if(a===null||typeof a=="undefined"||typeof a=="object"&&!a.toString)throw new Error(`PostCSS received ${a} instead of CSS string`);if(this.css=a.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!o||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=m(g.from)),o&&l){let S=new c(this.css,g);if(S.text){this.map=S;let R=S.consumer().file;!this.file&&R&&(this.file=this.mapResolve(R))}}this.file||(this.id="<input css "+p(6)+">"),this.map&&(this.map.file=this.from)}error(a,g,S,R={}){let b,v,w;if(g&&typeof g=="object"){let x=g,E=S;if(typeof x.offset=="number"){let D=this.fromOffset(x.offset);g=D.line,S=D.col}else g=x.line,S=x.column;if(typeof E.offset=="number"){let D=this.fromOffset(E.offset);v=D.line,w=D.col}else v=E.line,w=E.column}else if(!S){let x=this.fromOffset(g);g=x.line,S=x.col}let y=this.origin(g,S,v,w);return y?b=new u(a,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,R.plugin):b=new u(a,v===void 0?g:{column:S,line:g},v===void 0?S:{column:w,line:v},this.css,this.file,R.plugin),b.input={column:S,endColumn:w,endLine:v,line:g,source:this.css},this.file&&(f&&(b.input.url=f(this.file).toString()),b.input.file=this.file),b}fromOffset(a){let g,S;if(this[t])S=this[t];else{let b=this.css.split(`
32
+ `);S=new Array(b.length);let v=0;for(let w=0,y=b.length;w<y;w++)S[w]=v,v+=b[w].length+1;this[t]=S}g=S[S.length-1];let R=0;if(a>=g)R=S.length-1;else{let b=S.length-2,v;for(;R<b;)if(v=R+(b-R>>1),a<S[v])b=v-1;else if(a>=S[v+1])R=v+1;else{R=v;break}}return{col:a-S[R]+1,line:R+1}}mapResolve(a){return/^\w+:\/\//.test(a)?a:m(this.map.consumer().sourceRoot||this.map.root||".",a)}origin(a,g,S,R){if(!this.map)return!1;let b=this.map.consumer(),v=b.originalPositionFor({column:g,line:a});if(!v.source)return!1;let w;typeof S=="number"&&(w=b.originalPositionFor({column:R,line:S}));let y;n(v.source)?y=f(v.source):y=new URL(v.source,this.map.consumer().sourceRoot||f(this.map.mapFile));let x={column:v.column,endColumn:w&&w.column,endLine:w&&w.line,line:v.line,url:y.toString()};if(y.protocol==="file:")if(r)x.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let E=b.sourceContentFor(v.source);return E&&(x.source=E),x}toJSON(){let a={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(a[g]=this[g]);return this.map&&(a.map=U({},this.map),a.map.consumerCache&&(a.map.consumerCache=void 0)),a}get from(){return this.file||this.id}}return ge=s,s.default=s,d&&d.registerInput&&d.registerInput(s),ge}var ye,ct;function Mt(){if(ct)return ye;ct=1;let{SourceMapConsumer:i,SourceMapGenerator:e}=B,{dirname:r,relative:f,resolve:n,sep:m}=B,{pathToFileURL:p}=B,d=re(),u=!!(i&&e),c=!!(r&&n&&f&&m);class t{constructor(o,s,h,a){this.stringify=o,this.mapOpts=h.map||{},this.root=s,this.opts=h,this.css=a,this.originalCSS=a,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let s=`
33
33
  `;this.css.includes(`\r
34
- `)&&(t=`\r
35
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||te(e.file),s;this.mapOpts.sourcesContent===!1?(s=new xt(e.text),s.sourcesContent&&(s.sourcesContent=null)):s=e.consumer(),this.map.applySourceMap(s,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),es&&Kr&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ee.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ee({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 ee({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,n;this.stringify(this.root,(a,l,u)=>{if(this.css+=a,l&&u!=="end"&&(s.generated.line=e,s.generated.column=t-1,l.source&&l.source.start?(s.source=this.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,this.map.addMapping(s))),o=a.match(/\n/g),o?(e+=o.length,n=a.lastIndexOf(`
36
- `),t=a.length-n):t+=a.length,l&&u!=="start"){let c=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==c.last||c.raws.semicolon)&&(l.source&&l.source.end?(s.source=this.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?te(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=te(St(r,this.mapOpts.annotation)));let s=Ct(r,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Zr(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(at){let r=at(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Et==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var vt=ts;let rs=le,Ne=class extends rs{constructor(e){super(e),this.type="comment"}};var he=Ne;Ne.default=Ne;let{isClean:Ot,my:At}=F,Nt=ae,Dt=he,ss=le,Pt,Be,Ue,Tt;function $t(i){return i.map(e=>(e.nodes&&(e.nodes=$t(e.nodes)),delete e.source,e))}function _t(i){if(i[Ot]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)_t(e)}let O=class Mt extends ss{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],s=e(this.proxyOf.nodes[r],r),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(s=>typeof s=="function"?(o,n)=>s(o.toProxy(),n):s)):t==="every"||t==="some"?r=>e[t]((s,...o)=>r(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),s=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let n of s)this.proxyOf.nodes.splice(r+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],r<o&&(this.indexes[n]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),s=r===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[r],s).reverse();r=this.index(e);for(let a of o)this.proxyOf.nodes.splice(r,0,a);let n;for(let a in this.indexes)n=this.indexes[a],r<=n&&(this.indexes[a]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=$t(Pt(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Nt(e)]}else if(e.selector)e=[new Be(e)];else if(e.name)e=[new Ue(e)];else if(e.text)e=[new Dt(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[At]||Mt.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Ot]&&_t(s),typeof s.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="atrule")return t(r,s)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="decl")return t(r,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="rule")return t(r,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};O.registerParse=i=>{Pt=i};O.registerRule=i=>{Be=i};O.registerAtRule=i=>{Ue=i};O.registerRoot=i=>{Tt=i};var N=O;O.default=O;O.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Ue.prototype):i.type==="rule"?Object.setPrototypeOf(i,Be.prototype):i.type==="decl"?Object.setPrototypeOf(i,Nt.prototype):i.type==="comment"?Object.setPrototypeOf(i,Dt.prototype):i.type==="root"&&Object.setPrototypeOf(i,Tt.prototype),i[At]=!0,i.nodes&&i.nodes.forEach(e=>{O.rebuild(e)})};let is=N,It,Lt,L=class extends is{constructor(e){super(v({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new It(new Lt,this,e).stringify()}};L.registerLazyResult=i=>{It=i};L.registerProcessor=i=>{Lt=i};var ke=L;L.default=L;let De=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Bt=De;De.default=De;let ns=Bt,Pe=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new ns(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Fe=Pe;Pe.default=Pe;const we=39,ut=34,q=92,ht=47,J=10,M=32,Y=12,Q=9,X=13,os=91,ls=93,as=40,us=41,hs=123,cs=125,fs=59,ps=42,ms=58,ds=64,Z=/[\t\n\f\r "#'()/;[\\\]{}]/g,K=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,gs=/.[\r\n"'(/\\]/,ct=/[\da-f]/i;var ys=function(e,t={}){let r=e.css.valueOf(),s=t.ignoreErrors,o,n,a,l,u,c,m,d,R,x,Ye=r.length,f=0,ce=[],W=[];function gr(){return f}function fe(D){throw e.error("Unclosed "+D,f)}function yr(){return W.length===0&&f>=Ye}function wr(D){if(W.length)return W.pop();if(f>=Ye)return;let pe=D?D.ignoreUnclosed:!1;switch(o=r.charCodeAt(f),o){case J:case M:case Q:case X:case Y:{n=f;do n+=1,o=r.charCodeAt(n);while(o===M||o===J||o===Q||o===X||o===Y);x=["space",r.slice(f,n)],f=n-1;break}case os:case ls:case hs:case cs:case ms:case fs:case us:{let Qe=String.fromCharCode(o);x=[Qe,Qe,f];break}case as:{if(d=ce.length?ce.pop()[1]:"",R=r.charCodeAt(f+1),d==="url"&&R!==we&&R!==ut&&R!==M&&R!==J&&R!==Q&&R!==Y&&R!==X){n=f;do{if(c=!1,n=r.indexOf(")",n+1),n===-1)if(s||pe){n=f;break}else fe("bracket");for(m=n;r.charCodeAt(m-1)===q;)m-=1,c=!c}while(c);x=["brackets",r.slice(f,n+1),f,n],f=n}else n=r.indexOf(")",f+1),l=r.slice(f,n+1),n===-1||gs.test(l)?x=["(","(",f]:(x=["brackets",l,f,n],f=n);break}case we:case ut:{a=o===we?"'":'"',n=f;do{if(c=!1,n=r.indexOf(a,n+1),n===-1)if(s||pe){n=f+1;break}else fe("string");for(m=n;r.charCodeAt(m-1)===q;)m-=1,c=!c}while(c);x=["string",r.slice(f,n+1),f,n],f=n;break}case ds:{Z.lastIndex=f+1,Z.test(r),Z.lastIndex===0?n=r.length-1:n=Z.lastIndex-2,x=["at-word",r.slice(f,n+1),f,n],f=n;break}case q:{for(n=f,u=!0;r.charCodeAt(n+1)===q;)n+=1,u=!u;if(o=r.charCodeAt(n+1),u&&o!==ht&&o!==M&&o!==J&&o!==Q&&o!==X&&o!==Y&&(n+=1,ct.test(r.charAt(n)))){for(;ct.test(r.charAt(n+1));)n+=1;r.charCodeAt(n+1)===M&&(n+=1)}x=["word",r.slice(f,n+1),f,n],f=n;break}default:{o===ht&&r.charCodeAt(f+1)===ps?(n=r.indexOf("*/",f+2)+1,n===0&&(s||pe?n=r.length:fe("comment")),x=["comment",r.slice(f,n+1),f,n],f=n):(K.lastIndex=f+1,K.test(r),K.lastIndex===0?n=r.length-1:n=K.lastIndex-2,x=["word",r.slice(f,n+1),f,n],ce.push(x),f=n);break}}return f++,x}function br(D){W.push(D)}return{back:br,endOfFile:yr,nextToken:wr,position:gr}};let Ut=N,se=class extends Ut{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var ze=se;se.default=se;Ut.registerAtRule(se);let kt=N,Ft,zt,P=class extends kt{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)o.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Ft(new zt,this,e).stringify()}};P.registerLazyResult=i=>{Ft=i};P.registerProcessor=i=>{zt=i};var z=P;P.default=P;kt.registerRoot(P);let B={comma(i){return B.split(i,[","],!0)},space(i){let e=[" ",`
37
- `," "];return B.split(i,e)},split(i,e,t){let r=[],s="",o=!1,n=0,a=!1,l="",u=!1;for(let c of i)u?u=!1:c==="\\"?u=!0:a?c===l&&(a=!1):c==='"'||c==="'"?(a=!0,l=c):c==="("?n+=1:c===")"?n>0&&(n-=1):n===0&&e.includes(c)&&(o=!0),o?(s!==""&&r.push(s.trim()),s="",o=!1):s+=c;return(t||s!=="")&&r.push(s.trim()),r}};var jt=B;B.default=B;let Wt=N,ws=jt,ie=class extends Wt{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return ws.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var je=ie;ie.default=ie;Wt.registerRule(ie);let bs=ae,Rs=ys,xs=he,Cs=ze,Ss=z,ft=je;const pt={empty:!0,space:!0};function Es(i){for(let e=i.length-1;e>=0;e--){let t=i[e],r=t[3]||t[2];if(r)return r}}let vs=class{constructor(e){this.input=e,this.root=new Ss,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Cs;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,s,o,n=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(o=l.length-1,s=l[o];s&&s[0]==="space";)s=l[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),n&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(r+=1,r===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,r,s,o;for(let[n,a]of e.entries()){if(r=a,s=r[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(r);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=r}return!1}comment(e){let t=new xs;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Rs(this.input)}decl(e,t){let r=new bs;this.init(r,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||Es(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){r.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let n=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),m="";for(let d=u;d>0;d--){let R=c[d][0];if(m.trim().indexOf("!")===0&&R!=="space")break;m=c.pop()[1]+m}m.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=m,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(r,"value",n.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new ft;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,o=null,n=[],a=e[1].startsWith("--"),l=[],u=e;for(;u;){if(r=u[0],l.push(u),r==="("||r==="[")o||(o=u),n.push(r==="("?")":"]");else if(a&&s&&r==="{")o||(o=u),n.push("}");else if(n.length===0)if(r===";")if(s){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(s=!0);else r===n[n.length-1]&&(n.pop(),n.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(o),t&&s){if(!a)for(;l.length&&(u=l[l.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let o,n,a=r.length,l="",u=!0,c,m;for(let d=0;d<a;d+=1)o=r[d],n=o[0],n==="space"&&d===a-1&&!s?u=!1:n==="comment"?(m=r[d-1]?r[d-1][0]:"empty",c=r[d+1]?r[d+1][0]:"empty",!pt[m]&&!pt[c]?l.slice(-1)===","?u=!1:l+=o[1]:u=!1):l+=o[1];if(!u){let d=r.reduce((R,x)=>R+x[1],"");e.raws[t]={raw:d,value:l}}e[t]=l}rule(e){e.pop();let t=new ft;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Os=vs;let As=N,Ns=Os,Ds=ue;function ne(i,e){let t=new Ds(i,e),r=new Ns(t);try{r.parse()}catch(s){throw s}return r.root}var We=ne;ne.default=ne;As.registerParse(ne);let{isClean:E,my:Ps}=F,Ts=vt,$s=oe,_s=N,Ms=ke;let mt=Fe,Is=We,Ls=z;const Bs={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Us={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},ks={Once:!0,postcssPlugin:!0,prepare:!0},T=0;function I(i){return typeof i=="object"&&typeof i.then=="function"}function Vt(i){let e=!1,t=Bs[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,T,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,T,t+"Exit"]:[t,t+"Exit"]}function dt(i){let e;return i.type==="document"?e=["Document",T,"DocumentExit"]:i.type==="root"?e=["Root",T,"RootExit"]:e=Vt(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function Te(i){return i[E]=!1,i.nodes&&i.nodes.forEach(e=>Te(e)),i}let $e={},$=class Ht{constructor(e,t,r){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Te(t);else if(t instanceof Ht||t instanceof mt)s=Te(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let o=Is;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{s=o(t,r)}catch(n){this.processed=!0,this.error=n}s&&!s[Ps]&&_s.rebuild(s)}this.result=new mt(e,s,r),this.helpers=_(v({},$e),{postcss:$e,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?v(v({},o),o.prepare(this.result)):o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,r,s)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Us[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ks[r])if(typeof t[r]=="object")for(let s in t[r])s==="*"?e(t,r,t[r][s]):e(t,r+"-"+s.toLowerCase(),t[r][s]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(I(r))try{await r}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[E];){e[E]=!0;let t=[dt(e)];for(;t.length>0;){let r=this.visitTick(t);if(I(r))try{await r}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>r(o,this.helpers));await Promise.all(s)}else await r(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return I(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=$s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new Ts(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(I(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[E];)e[E]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){this.result.lastPlugin=r;let o;try{o=s(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(I(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[n,a]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return a(r.toProxy(),this.helpers)}catch(l){throw this.handleError(l,r)}}if(t.iterator!==0){let n=t.iterator,a;for(;a=r.nodes[r.indexes[n]];)if(r.indexes[n]+=1,!a[E]){a[E]=!0,e.push(dt(a));return}t.iterator=0,delete r.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===T){r.nodes&&r.nodes.length&&(r[E]=!0,t.iterator=r.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[E]=!0;let t=Vt(e);for(let r of t)if(r===T)e.nodes&&e.each(s=>{s[E]||this.walkSync(s)});else{let s=this.listeners[r];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};$.registerPostcss=i=>{$e=i};var Gt=$;$.default=$;Ls.registerLazyResult($);Ms.registerLazyResult($);let Fs=vt,zs=oe;let js=We;const Ws=Fe;let _e=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s,o=zs;this.result=new Ws(this._processor,s,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let a=new Fs(o,s,this._opts,t);if(a.isMap()){let[l,u]=a.generate();l&&(this.result.css=l),u&&(this.result.map=u)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=js;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Vs=_e;_e.default=_e;let Hs=Vs,Gs=Gt,qs=ke,Js=z,U=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Hs(this,e,t):new Gs(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Ys=U;U.default=U;Js.registerProcessor(U);qs.registerProcessor(U);let Qs=ae,Xs=Rt,Zs=he,Ks=ze,ei=ue,ti=z,ri=je;function k(i,e){if(Array.isArray(i))return i.map(n=>k(n));let s=i,{inputs:t}=s,r=me(s,["inputs"]);if(t){e=[];for(let n of t){let a=_(v({},n),{__proto__:ei.prototype});a.map&&(a.map=_(v({},a.map),{__proto__:Xs.prototype})),e.push(a)}}if(r.nodes&&(r.nodes=i.nodes.map(n=>k(n,e))),r.source){let o=r.source,{inputId:n}=o,a=me(o,["inputId"]);r.source=a,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new ti(r);if(r.type==="decl")return new Qs(r);if(r.type==="rule")return new ri(r);if(r.type==="comment")return new Zs(r);if(r.type==="atrule")return new Ks(r);throw new Error("Unknown node type: "+i.type)}var si=k;k.default=k;let ii=Le,qt=ae,ni=Gt,oi=N,Ve=Ys,li=oe,ai=si,Jt=ke,ui=Bt,Yt=he,Qt=ze,hi=Fe,ci=ue,fi=We,pi=jt,Xt=je,Zt=z,mi=le;function p(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Ve(i)}p.plugin=function(e,t){let r=!1;function s(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
38
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
39
- https://www.w3ctech.com/topic/2226`));let a=t(...n);return a.postcssPlugin=e,a.postcssVersion=new Ve().version,a}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(n,a,l){return p([s(l)]).process(n,a)},s};p.stringify=li;p.parse=fi;p.fromJSON=ai;p.list=pi;p.comment=i=>new Yt(i);p.atRule=i=>new Qt(i);p.decl=i=>new qt(i);p.rule=i=>new Xt(i);p.root=i=>new Zt(i);p.document=i=>new Jt(i);p.CssSyntaxError=ii;p.Declaration=qt;p.Container=oi;p.Processor=Ve;p.Document=Jt;p.Comment=Yt;p.Warning=ui;p.AtRule=Qt;p.Result=hi;p.Input=ci;p.Rule=Xt;p.Root=Zt;p.Node=mi;ni.registerPostcss(p);var di=p;p.default=p;const y=Ar(di);y.stringify;y.fromJSON;y.plugin;y.parse;y.list;y.document;y.comment;y.atRule;y.rule;y.decl;y.root;y.CssSyntaxError;y.Declaration;y.Container;y.Processor;y.Document;y.Comment;y.Warning;y.AtRule;y.Result;y.Input;y.Rule;y.Root;y.Node;var b=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(b||{});function gi(i){const e={},t=/;(?![^(]*\))/g,r=/:(.+)/,s=/\/\*.*?\*\//g;return i.replace(s,"").split(t).forEach(function(o){if(o){const n=o.split(r);n.length>1&&(e[Me(n[0].trim())]=n[1].trim())}}),e}function gt(i){const e=[];for(const t in i){const r=i[t];if(typeof r!="string")continue;const s=Ri(t);e.push(`${s}: ${r};`)}return e.join(" ")}const yi=/-([a-z])/g,wi=/^--[a-zA-Z0-9-]+$/,Me=i=>wi.test(i)?i:i.replace(yi,(e,t)=>t?t.toUpperCase():""),bi=/\B([A-Z])/g,Ri=i=>i.replace(bi,"-$1").toLowerCase();class A{constructor(...e){h(this,"parentElement",null),h(this,"parentNode",null),h(this,"ownerDocument"),h(this,"firstChild",null),h(this,"lastChild",null),h(this,"previousSibling",null),h(this,"nextSibling",null),h(this,"ELEMENT_NODE",1),h(this,"TEXT_NODE",3),h(this,"nodeType"),h(this,"nodeName"),h(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof A){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class He extends A{constructor(...e){super(e),h(this,"nodeType",9),h(this,"nodeName","#document"),h(this,"compatMode","CSS1Compat"),h(this,"RRNodeType",b.Document),h(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===b.Element&&e.tagName==="HTML")||null}get body(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===b.Element&&t.tagName==="BODY"))||null}get head(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===b.Element&&t.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===b.Element||t===b.DocumentType)&&this.childNodes.some(s=>s.RRNodeType===t))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===b.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const r=qe(this,e);return r.parentElement=null,r}insertBefore(e,t){const r=e.RRNodeType;if((r===b.Element||r===b.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${r===b.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=ir(this,e,t);return s.parentElement=null,s}removeChild(e){return nr(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if(e==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?t="-//W3C//DTD XHTML 1.0 Transitional//EN":e==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(t="-//W3C//DTD HTML 4.0 Transitional//EN"),t){const r=this.createDocumentType("html",t,"");this.open(),this.appendChild(r)}}createDocument(e,t,r){return new He}createDocumentType(e,t,r){const s=new Kt(e,t,r);return s.ownerDocument=this,s}createElement(e){const t=new Ge(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new er(e);return t.ownerDocument=this,t}createComment(e){const t=new tr(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new rr(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class Kt extends A{constructor(e,t,r){super(),h(this,"nodeType",10),h(this,"RRNodeType",b.DocumentType),h(this,"name"),h(this,"publicId"),h(this,"systemId"),h(this,"textContent",null),this.name=e,this.publicId=t,this.systemId=r,this.nodeName=e}toString(){return"RRDocumentType"}}class Ge extends A{constructor(e){super(),h(this,"nodeType",1),h(this,"RRNodeType",b.Element),h(this,"tagName"),h(this,"attributes",{}),h(this,"shadowRoot",null),h(this,"scrollLeft"),h(this,"scrollTop"),this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach(t=>e+=t.textContent),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new sr(this.attributes.class,e=>{this.attributes.class=e})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const e=this.attributes.style?gi(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(r,s,o)=>{if(t.test(r))return;const n=Me(r);s?e[n]=s:delete e[n],o==="important"&&(e[n]+=" !important"),this.attributes.style=gt(e)},e.removeProperty=r=>{if(t.test(r))return"";const s=Me(r),o=e[s]||"";return delete e[s],this.attributes.style=gt(e),o},e}getAttribute(e){return this.attributes[e]===void 0?null:this.attributes[e]}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,r){this.setAttribute(t,r)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return qe(this,e)}insertBefore(e,t){return ir(this,e,t)}removeChild(e){return nr(this,e)}attachShadow(e){const t=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e="";for(const t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}}class xi extends Ge{constructor(){super(...arguments),h(this,"currentTime"),h(this,"volume"),h(this,"paused"),h(this,"muted"),h(this,"playbackRate"),h(this,"loop")}attachShadow(e){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class er extends A{constructor(e){super(),h(this,"nodeType",3),h(this,"nodeName","#text"),h(this,"RRNodeType",b.Text),h(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class tr extends A{constructor(e){super(),h(this,"nodeType",8),h(this,"nodeName","#comment"),h(this,"RRNodeType",b.Comment),h(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class rr extends A{constructor(e){super(),h(this,"nodeName","#cdata-section"),h(this,"nodeType",4),h(this,"RRNodeType",b.CDATA),h(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class sr{constructor(e,t){if(h(this,"onChange"),h(this,"classes",[]),h(this,"add",(...r)=>{for(const s of r){const o=String(s);this.classes.indexOf(o)>=0||this.classes.push(o)}this.onChange&&this.onChange(this.classes.join(" "))}),h(this,"remove",(...r)=>{this.classes=this.classes.filter(s=>r.indexOf(s)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),e){const r=e.trim().split(/\s+/);this.classes.push(...r)}this.onChange=t}}function qe(i,e){return e.parentNode&&e.parentNode.removeChild(e),i.lastChild?(i.lastChild.nextSibling=e,e.previousSibling=i.lastChild):(i.firstChild=e,e.previousSibling=null),i.lastChild=e,e.nextSibling=null,e.parentNode=i,e.parentElement=i,e.ownerDocument=i.ownerDocument,e}function ir(i,e,t){if(!t)return qe(i,e);if(t.parentNode!==i)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return e===t||(e.parentNode&&e.parentNode.removeChild(e),e.previousSibling=t.previousSibling,t.previousSibling=e,e.nextSibling=t,e.previousSibling?e.previousSibling.nextSibling=e:i.firstChild=e,e.parentElement=i,e.parentNode=i,e.ownerDocument=i.ownerDocument),e}function nr(i,e){if(e.parentNode!==i)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return e.previousSibling?e.previousSibling.nextSibling=e.nextSibling:i.firstChild=e.nextSibling,e.nextSibling?e.nextSibling.previousSibling=e.previousSibling:i.lastChild=e.previousSibling,e.previousSibling=null,e.nextSibling=null,e.parentElement=null,e.parentNode=null,e}var Je=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(Je||{});const Ci=require("nwsapi"),Si=require("cssom"),Ei=require("cssstyle");class or{constructor(){w(this,"scrollLeft",0),w(this,"scrollTop",0)}scrollTo(e){e&&(typeof e.left=="number"&&(this.scrollLeft=e.left),typeof e.top=="number"&&(this.scrollTop=e.top))}}class j extends He{constructor(){super(...arguments),w(this,"nodeName","#document"),w(this,"_nwsapi")}get nwsapi(){return this._nwsapi||(this._nwsapi=Ci({document:this,DOMException:null}),this._nwsapi.configure({LOGERRORS:!1,IDS_DUPES:!0,MIXEDCASE:!0})),this._nwsapi}get documentElement(){return super.documentElement}get body(){return super.body}get head(){return super.head}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){return super.appendChild(e)}insertBefore(e,t){return super.insertBefore(e,t)}querySelectorAll(e){return this.nwsapi.select(e)}getElementsByTagName(e){return this.documentElement?this.documentElement.getElementsByTagName(e):[]}getElementsByClassName(e){return this.documentElement?this.documentElement.getElementsByClassName(e):[]}getElementById(e){return this.documentElement?this.documentElement.getElementById(e):null}createDocument(e,t,r){return new j}createDocumentType(e,t,r){const s=new lr(e,t,r);return s.ownerDocument=this,s}createElement(e){const t=e.toUpperCase();let r;switch(t){case"AUDIO":case"VIDEO":r=new ur(t);break;case"IFRAME":r=new fr(t);break;case"IMG":r=new ar(t);break;case"CANVAS":r=new hr(t);break;case"STYLE":r=new cr(t);break;default:r=new C(t);break}return r.ownerDocument=this,r}createElementNS(e,t){return this.createElement(t)}createComment(e){const t=new mr(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new dr(e);return t.ownerDocument=this,t}createTextNode(e){const t=new pr(e);return t.ownerDocument=this,t}}class lr extends Kt{}class C extends Ge{constructor(e){super(e),w(this,"_style"),this._style=new Ei.CSSStyleDeclaration;const t=this._style;Object.defineProperty(this.attributes,"style",{get(){return t.cssText},set(r){t.cssText=r}})}get style(){return this._style}attachShadow(e){return super.attachShadow(e)}appendChild(e){return super.appendChild(e)}insertBefore(e,t){return super.insertBefore(e,t)}getAttribute(e){const t=e&&e.toLowerCase();return t in this.attributes?this.attributes[t]:null}setAttribute(e,t){this.attributes[e.toLowerCase()]=t}removeAttribute(e){delete this.attributes[e.toLowerCase()]}get firstElementChild(){for(const e of this.childNodes)if(e.RRNodeType===Je.Element)return e;return null}get nextElementSibling(){const e=this.parentNode;if(!e)return null;const t=e.childNodes,r=t.indexOf(this);for(let s=r+1;s<t.length;s++)if(t[s]instanceof C)return t[s];return null}querySelectorAll(e){const t=[];return this.ownerDocument!==null&&this.ownerDocument.nwsapi.select(e,this,r=>{r!==this&&t.push(r)}),t}getElementById(e){if(this.id===e)return this;for(const t of this.childNodes)if(t instanceof C){const r=t.getElementById(e);if(r!==null)return r}return null}getElementsByClassName(e){let t=[];const r=new sr(e);this instanceof C&&r.classes.filter(s=>this.classList.classes.some(o=>o===s)).length==r.classes.length&&t.push(this);for(const s of this.childNodes)s instanceof C&&(t=t.concat(s.getElementsByClassName(e)));return t}getElementsByTagName(e){let t=[];const r=e.toUpperCase();this instanceof C&&this.tagName===r&&t.push(this);for(const s of this.childNodes)s instanceof C&&(t=t.concat(s.getElementsByTagName(e)));return t}}class ar extends C{constructor(){super(...arguments),w(this,"src",""),w(this,"width",0),w(this,"height",0),w(this,"onload",null)}}class ur extends xi{}class hr extends C{getContext(){return null}}class cr extends C{constructor(){super(...arguments),w(this,"_sheet",null)}get sheet(){if(!this._sheet){let e="";for(const t of this.childNodes)t.RRNodeType===Je.Text&&(e+=t.textContent);this._sheet=Si.parse(e)}return this._sheet}}class fr extends C{constructor(e){super(e),w(this,"width",""),w(this,"height",""),w(this,"src",""),w(this,"contentDocument",new j),w(this,"contentWindow",new or);const t=this.contentDocument.createElement("HTML");this.contentDocument.appendChild(t),t.appendChild(this.contentDocument.createElement("HEAD")),t.appendChild(this.contentDocument.createElement("BODY"))}}class pr extends er{constructor(){super(...arguments),w(this,"nodeName","#text")}}class mr extends tr{constructor(){super(...arguments),w(this,"nodeName","#comment")}}class dr extends rr{constructor(){super(...arguments),w(this,"nodeName","#cdata-section")}}function vi(){if(typeof window!="undefined"||"performance"in global)return;const i=require("perf_hooks").performance;global.performance=i}function Oi(){if(typeof window!="undefined"||"requestAnimationFrame"in global)return;const i=60,e=1e3/i;let t=null,r=0,s=Object.create(null);function o(){const l=s;s=Object.create(null),t=null,Object.keys(l).forEach(function(u){const c=l[u];c&&c(Date.now())})}function n(l){const u=++r;return s[u]=l,t===null&&(t=setTimeout(o,e)),u}function a(l){delete s[l],Object.keys(s).length===0&&t!==null&&(clearTimeout(t),t=null)}global.requestAnimationFrame=n,global.cancelAnimationFrame=a}function Ai(){typeof Event=="undefined"&&(global.Event=function(){})}function Ni(){typeof Node=="undefined"&&(global.Node=A)}function Di(){if(typeof document!="undefined")return;const i=new j;(()=>{var e,t;i.appendChild(i.createElement("html")),(e=i.documentElement)==null||e.appendChild(i.createElement("head")),(t=i.documentElement)==null||t.appendChild(i.createElement("body"))})(),global.document=i}vi();Oi();Ai();Ni();Di();exports.RRCDATASection=dr;exports.RRCanvasElement=hr;exports.RRComment=mr;exports.RRDocument=j;exports.RRDocumentType=lr;exports.RRElement=C;exports.RRIFrameElement=fr;exports.RRImageElement=ar;exports.RRMediaElement=ur;exports.RRStyleElement=cr;exports.RRText=pr;exports.RRWindow=or;
34
+ `)&&(s=`\r
35
+ `),this.css+=s+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let s=this.toUrl(this.path(o.file)),h=o.root||r(o.file),a;this.mapOpts.sourcesContent===!1?(a=new i(o.text),a.sourcesContent&&(a.sourcesContent=null)):a=o.consumer(),this.map.applySourceMap(a,s,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let s=this.root.nodes.length-1;s>=0;s--)o=this.root.nodes[s],o.type==="comment"&&o.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&u&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,s=>{o+=s}),[o]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let o=this.previous()[0].consumer();o.file=this.outputFile(),this.map=e.fromSourceMap(o,{ignoreInvalidMapping:!0})}else this.map=new e({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 e({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,s=1,h="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,S;this.stringify(this.root,(R,b,v)=>{if(this.css+=R,b&&v!=="end"&&(a.generated.line=o,a.generated.column=s-1,b.source&&b.source.start?(a.source=this.sourcePath(b),a.original.line=b.source.start.line,a.original.column=b.source.start.column-1,this.map.addMapping(a)):(a.source=h,a.original.line=1,a.original.column=0,this.map.addMapping(a))),g=R.match(/\n/g),g?(o+=g.length,S=R.lastIndexOf(`
36
+ `),s=R.length-S):s+=R.length,b&&v!=="start"){let w=b.parent||{raws:{}};(!(b.type==="decl"||b.type==="atrule"&&!b.nodes)||b!==w.last||w.raws.semicolon)&&(b.source&&b.source.end?(a.source=this.sourcePath(b),a.original.line=b.source.end.line,a.original.column=b.source.end.column-1,a.generated.line=o,a.generated.column=s-2,this.map.addMapping(a)):(a.source=h,a.original.line=1,a.original.column=0,a.generated.line=o,a.generated.column=s-1,this.map.addMapping(a)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o!="undefined"&&o!==!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(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let s=this.memoizedPaths.get(o);if(s)return s;let h=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=r(n(h,this.mapOpts.annotation)));let a=f(h,o);return this.memoizedPaths.set(o,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let s=o.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let o=new d(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(s=>{if(s.source){let h=s.source.input.from;if(h&&!o[h]){o[h]=!0;let a=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(a,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(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let s=this.memoizedFileURLs.get(o);if(s)return s;if(p){let h=p(o).toString();return this.memoizedFileURLs.set(o,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let s=this.memoizedURLs.get(o);if(s)return s;m==="\\"&&(o=o.replace(/\\/g,"/"));let h=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,h),h}}return ye=t,ye}var we,ft;function se(){if(ft)return we;ft=1;let i=ee();class e extends i{constructor(f){super(f),this.type="comment"}}return we=e,e.default=e,we}var Re,pt;function j(){if(pt)return Re;pt=1;let{isClean:i,my:e}=Ue(),r=te(),f=se(),n=ee(),m,p,d,u;function c(o){return o.map(s=>(s.nodes&&(s.nodes=c(s.nodes)),delete s.source,s))}function t(o){if(o[i]=!1,o.proxyOf.nodes)for(let s of o.proxyOf.nodes)t(s)}class l extends n{append(...s){for(let h of s){let a=this.normalize(h,this.last);for(let g of a)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let h of this.nodes)h.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let h=this.getIterator(),a,g;for(;this.indexes[h]<this.proxyOf.nodes.length&&(a=this.indexes[h],g=s(this.proxyOf.nodes[a],a),g!==!1);)this.indexes[h]+=1;return delete this.indexes[h],g}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,h){return h==="proxyOf"?s:s[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...a)=>s[h](...a.map(g=>typeof g=="function"?(S,R)=>g(S.toProxy(),R):g)):h==="every"||h==="some"?a=>s[h]((g,...S)=>a(g.toProxy(),...S)):h==="root"?()=>s.root().toProxy():h==="nodes"?s.nodes.map(a=>a.toProxy()):h==="first"||h==="last"?s[h].toProxy():s[h]:s[h]},set(s,h,a){return s[h]===a||(s[h]=a,(h==="name"||h==="params"||h==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,h){let a=this.index(s),g=this.normalize(h,this.proxyOf.nodes[a]).reverse();a=this.index(s);for(let R of g)this.proxyOf.nodes.splice(a+1,0,R);let S;for(let R in this.indexes)S=this.indexes[R],a<S&&(this.indexes[R]=S+g.length);return this.markDirty(),this}insertBefore(s,h){let a=this.index(s),g=a===0?"prepend":!1,S=this.normalize(h,this.proxyOf.nodes[a],g).reverse();a=this.index(s);for(let b of S)this.proxyOf.nodes.splice(a,0,b);let R;for(let b in this.indexes)R=this.indexes[b],a<=R&&(this.indexes[b]=R+S.length);return this.markDirty(),this}normalize(s,h){if(typeof s=="string")s=c(m(s).nodes);else if(typeof s=="undefined")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"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=[new p(s)];else if(s.name)s=[new d(s)];else if(s.text)s=[new f(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[e]||l.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[i]&&t(g),typeof g.raws.before=="undefined"&&h&&typeof h.raws.before!="undefined"&&(g.raws.before=h.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...s){s=s.reverse();for(let h of s){let a=this.normalize(h,this.first,"prepend").reverse();for(let g of a)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+a.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 h;for(let a in this.indexes)h=this.indexes[a],h>=s&&(this.indexes[a]=h-1);return this.markDirty(),this}replaceValues(s,h,a){return a||(a=h,h={}),this.walkDecls(g=>{h.props&&!h.props.includes(g.prop)||h.fast&&!g.value.includes(h.fast)||(g.value=g.value.replace(s,a))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((h,a)=>{let g;try{g=s(h,a)}catch(S){throw h.addToError(S)}return g!==!1&&h.walk&&(g=h.walk(s)),g})}walkAtRules(s,h){return h?s instanceof RegExp?this.walk((a,g)=>{if(a.type==="atrule"&&s.test(a.name))return h(a,g)}):this.walk((a,g)=>{if(a.type==="atrule"&&a.name===s)return h(a,g)}):(h=s,this.walk((a,g)=>{if(a.type==="atrule")return h(a,g)}))}walkComments(s){return this.walk((h,a)=>{if(h.type==="comment")return s(h,a)})}walkDecls(s,h){return h?s instanceof RegExp?this.walk((a,g)=>{if(a.type==="decl"&&s.test(a.prop))return h(a,g)}):this.walk((a,g)=>{if(a.type==="decl"&&a.prop===s)return h(a,g)}):(h=s,this.walk((a,g)=>{if(a.type==="decl")return h(a,g)}))}walkRules(s,h){return h?s instanceof RegExp?this.walk((a,g)=>{if(a.type==="rule"&&s.test(a.selector))return h(a,g)}):this.walk((a,g)=>{if(a.type==="rule"&&a.selector===s)return h(a,g)}):(h=s,this.walk((a,g)=>{if(a.type==="rule")return h(a,g)}))}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]}}return l.registerParse=o=>{m=o},l.registerRule=o=>{p=o},l.registerAtRule=o=>{d=o},l.registerRoot=o=>{u=o},Re=l,l.default=l,l.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,d.prototype):o.type==="rule"?Object.setPrototypeOf(o,p.prototype):o.type==="decl"?Object.setPrototypeOf(o,r.prototype):o.type==="comment"?Object.setPrototypeOf(o,f.prototype):o.type==="root"&&Object.setPrototypeOf(o,u.prototype),o[e]=!0,o.nodes&&o.nodes.forEach(s=>{l.rebuild(s)})},Re}var be,mt;function qe(){if(mt)return be;mt=1;let i=j(),e,r;class f extends i{constructor(m){super(U({type:"document"},m)),this.nodes||(this.nodes=[])}toResult(m={}){return new e(new r,this,m).stringify()}}return f.registerLazyResult=n=>{e=n},f.registerProcessor=n=>{r=n},be=f,f.default=f,be}var xe,dt;function It(){if(dt)return xe;dt=1;let i={};return xe=function(r){i[r]||(i[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},xe}var Se,gt;function Lt(){if(gt)return Se;gt=1;class i{constructor(r,f={}){if(this.type="warning",this.text=r,f.node&&f.node.source){let n=f.node.rangeBy(f);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in f)this[n]=f[n]}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 Se=i,i.default=i,Se}var ve,yt;function Fe(){if(yt)return ve;yt=1;let i=Lt();class e{constructor(f,n,m){this.processor=f,this.messages=[],this.root=n,this.opts=m,this.css=void 0,this.map=void 0}toString(){return this.css}warn(f,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let m=new i(f,n);return this.messages.push(m),m}warnings(){return this.messages.filter(f=>f.type==="warning")}get content(){return this.css}}return ve=e,e.default=e,ve}var Ce,wt;function wr(){if(wt)return Ce;wt=1;const i=39,e=34,r=92,f=47,n=10,m=32,p=12,d=9,u=13,c=91,t=93,l=40,o=41,s=123,h=125,a=59,g=42,S=58,R=64,b=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Ce=function(E,D={}){let A=E.css.valueOf(),I=D.ignoreErrors,T,C,Je,ie,J,F,W,Ye,z,k,Qe=A.length,N=0,ne=[],Y=[];function tr(){return N}function oe($){throw E.error("Unclosed "+$,N)}function rr(){return Y.length===0&&N>=Qe}function sr($){if(Y.length)return Y.pop();if(N>=Qe)return;let le=$?$.ignoreUnclosed:!1;switch(T=A.charCodeAt(N),T){case n:case m:case d:case u:case p:{C=N;do C+=1,T=A.charCodeAt(C);while(T===m||T===n||T===d||T===u||T===p);k=["space",A.slice(N,C)],N=C-1;break}case c:case t:case s:case h:case S:case a:case o:{let Xe=String.fromCharCode(T);k=[Xe,Xe,N];break}case l:{if(Ye=ne.length?ne.pop()[1]:"",z=A.charCodeAt(N+1),Ye==="url"&&z!==i&&z!==e&&z!==m&&z!==n&&z!==d&&z!==p&&z!==u){C=N;do{if(F=!1,C=A.indexOf(")",C+1),C===-1)if(I||le){C=N;break}else oe("bracket");for(W=C;A.charCodeAt(W-1)===r;)W-=1,F=!F}while(F);k=["brackets",A.slice(N,C+1),N,C],N=C}else C=A.indexOf(")",N+1),ie=A.slice(N,C+1),C===-1||w.test(ie)?k=["(","(",N]:(k=["brackets",ie,N,C],N=C);break}case i:case e:{Je=T===i?"'":'"',C=N;do{if(F=!1,C=A.indexOf(Je,C+1),C===-1)if(I||le){C=N+1;break}else oe("string");for(W=C;A.charCodeAt(W-1)===r;)W-=1,F=!F}while(F);k=["string",A.slice(N,C+1),N,C],N=C;break}case R:{b.lastIndex=N+1,b.test(A),b.lastIndex===0?C=A.length-1:C=b.lastIndex-2,k=["at-word",A.slice(N,C+1),N,C],N=C;break}case r:{for(C=N,J=!0;A.charCodeAt(C+1)===r;)C+=1,J=!J;if(T=A.charCodeAt(C+1),J&&T!==f&&T!==m&&T!==n&&T!==d&&T!==u&&T!==p&&(C+=1,y.test(A.charAt(C)))){for(;y.test(A.charAt(C+1));)C+=1;A.charCodeAt(C+1)===m&&(C+=1)}k=["word",A.slice(N,C+1),N,C],N=C;break}default:{T===f&&A.charCodeAt(N+1)===g?(C=A.indexOf("*/",N+2)+1,C===0&&(I||le?C=A.length:oe("comment")),k=["comment",A.slice(N,C+1),N,C],N=C):(v.lastIndex=N+1,v.test(A),v.lastIndex===0?C=A.length-1:C=v.lastIndex-2,k=["word",A.slice(N,C+1),N,C],ne.push(k),N=C);break}}return N++,k}function ir($){Y.push($)}return{back:ir,endOfFile:rr,nextToken:sr,position:tr}},Ce}var Ee,Rt;function ze(){if(Rt)return Ee;Rt=1;let i=j();class e extends i{constructor(f){super(f),this.type="atrule"}append(...f){return this.proxyOf.nodes||(this.nodes=[]),super.append(...f)}prepend(...f){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...f)}}return Ee=e,e.default=e,i.registerAtRule(e),Ee}var Oe,bt;function H(){if(bt)return Oe;bt=1;let i=j(),e,r;class f extends i{constructor(m){super(m),this.type="root",this.nodes||(this.nodes=[])}normalize(m,p,d){let u=super.normalize(m);if(p){if(d==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let c of u)c.raws.before=p.raws.before}return u}removeChild(m,p){let d=this.index(m);return!p&&d===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[d].raws.before),super.removeChild(m)}toResult(m={}){return new e(new r,this,m).stringify()}}return f.registerLazyResult=n=>{e=n},f.registerProcessor=n=>{r=n},Oe=f,f.default=f,i.registerRoot(f),Oe}var Ae,xt;function kt(){if(xt)return Ae;xt=1;let i={comma(e){return i.split(e,[","],!0)},space(e){let r=[" ",`
37
+ `," "];return i.split(e,r)},split(e,r,f){let n=[],m="",p=!1,d=0,u=!1,c="",t=!1;for(let l of e)t?t=!1:l==="\\"?t=!0:u?l===c&&(u=!1):l==='"'||l==="'"?(u=!0,c=l):l==="("?d+=1:l===")"?d>0&&(d-=1):d===0&&r.includes(l)&&(p=!0),p?(m!==""&&n.push(m.trim()),m="",p=!1):m+=l;return(f||m!=="")&&n.push(m.trim()),n}};return Ae=i,i.default=i,Ae}var Ne,St;function je(){if(St)return Ne;St=1;let i=j(),e=kt();class r extends i{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return e.comma(this.selector)}set selectors(n){let m=this.selector?this.selector.match(/,\s*/):null,p=m?m[0]:","+this.raw("between","beforeOpen");this.selector=n.join(p)}}return Ne=r,r.default=r,i.registerRule(r),Ne}var De,vt;function Rr(){if(vt)return De;vt=1;let i=te(),e=wr(),r=se(),f=ze(),n=H(),m=je();const p={empty:!0,space:!0};function d(c){for(let t=c.length-1;t>=0;t--){let l=c[t],o=l[3]||l[2];if(o)return o}}class u{constructor(t){this.input=t,this.root=new n,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 f;l.name=t[1].slice(1),l.name===""&&this.unnamedAtrule(l,t),this.init(l,t[2]);let o,s,h,a=!1,g=!1,S=[],R=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),o=t[0],o==="("||o==="["?R.push(o==="("?")":"]"):o==="{"&&R.length>0?R.push("}"):o===R[R.length-1]&&R.pop(),R.length===0)if(o===";"){l.source.end=this.getPosition(t[2]),l.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){g=!0;break}else if(o==="}"){if(S.length>0){for(h=S.length-1,s=S[h];s&&s[0]==="space";)s=S[--h];s&&(l.source.end=this.getPosition(s[3]||s[2]),l.source.end.offset++)}this.end(t);break}else S.push(t);else S.push(t);if(this.tokenizer.endOfFile()){a=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(l.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(l,"params",S),a&&(t=S[S.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=""),g&&(l.nodes=[],this.current=l)}checkMissedSemicolon(t){let l=this.colon(t);if(l===!1)return;let o=0,s;for(let h=l-1;h>=0&&(s=t[h],!(s[0]!=="space"&&(o+=1,o===2)));h--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(t){let l=0,o,s,h;for(let[a,g]of t.entries()){if(o=g,s=o[0],s==="("&&(l+=1),s===")"&&(l-=1),l===0&&s===":")if(!h)this.doubleColon(o);else{if(h[0]==="word"&&h[1]==="progid")continue;return a}h=o}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 o=t[1].slice(2,-2);if(/^\s*$/.test(o))l.text="",l.raws.left=o,l.raws.right="";else{let s=o.match(/^(\s*)([^]*\S)(\s*)$/);l.text=s[2],l.raws.left=s[1],l.raws.right=s[3]}}createTokenizer(){this.tokenizer=e(this.input)}decl(t,l){let o=new i;this.init(o,t[0][2]);let s=t[t.length-1];for(s[0]===";"&&(this.semicolon=!0,t.pop()),o.source.end=this.getPosition(s[3]||s[2]||d(t)),o.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),o.raws.before+=t.shift()[1];for(o.source.start=this.getPosition(t[0][2]),o.prop="";t.length;){let R=t[0][0];if(R===":"||R==="space"||R==="comment")break;o.prop+=t.shift()[1]}o.raws.between="";let h;for(;t.length;)if(h=t.shift(),h[0]===":"){o.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),o.raws.between+=h[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let a=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)a.push(t.shift());this.precheckMissedSemicolon(t);for(let R=t.length-1;R>=0;R--){if(h=t[R],h[1].toLowerCase()==="!important"){o.important=!0;let b=this.stringFrom(t,R);b=this.spacesFromEnd(t)+b,b!==" !important"&&(o.raws.important=b);break}else if(h[1].toLowerCase()==="important"){let b=t.slice(0),v="";for(let w=R;w>0;w--){let y=b[w][0];if(v.trim().indexOf("!")===0&&y!=="space")break;v=b.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,t=b)}if(h[0]!=="space"&&h[0]!=="comment")break}t.some(R=>R[0]!=="space"&&R[0]!=="comment")&&(o.raws.between+=a.map(R=>R[1]).join(""),a=[]),this.raw(o,"value",a.concat(t),l),o.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 m;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="")}}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,o=null,s=!1,h=null,a=[],g=t[1].startsWith("--"),S=[],R=t;for(;R;){if(o=R[0],S.push(R),o==="("||o==="[")h||(h=R),a.push(o==="("?")":"]");else if(g&&s&&o==="{")h||(h=R),a.push("}");else if(a.length===0)if(o===";")if(s){this.decl(S,g);return}else break;else if(o==="{"){this.rule(S);return}else if(o==="}"){this.tokenizer.back(S.pop()),l=!0;break}else o===":"&&(s=!0);else o===a[a.length-1]&&(a.pop(),a.length===0&&(h=null));R=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(l=!0),a.length>0&&this.unclosedBracket(h),l&&s){if(!g)for(;S.length&&(R=S[S.length-1][0],!(R!=="space"&&R!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,g)}else this.unknownWord(S)}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,o,s){let h,a,g=o.length,S="",R=!0,b,v;for(let w=0;w<g;w+=1)h=o[w],a=h[0],a==="space"&&w===g-1&&!s?R=!1:a==="comment"?(v=o[w-1]?o[w-1][0]:"empty",b=o[w+1]?o[w+1][0]:"empty",!p[v]&&!p[b]?S.slice(-1)===","?R=!1:S+=h[1]:R=!1):S+=h[1];if(!R){let w=o.reduce((y,x)=>y+x[1],"");t.raws[l]={raw:w,value:S}}t[l]=S}rule(t){t.pop();let l=new m;this.init(l,t[0][2]),l.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(l,"selector",t),this.current=l}spacesAndCommentsFromEnd(t){let l,o="";for(;t.length&&(l=t[t.length-1][0],!(l!=="space"&&l!=="comment"));)o=t.pop()[1]+o;return o}spacesAndCommentsFromStart(t){let l,o="";for(;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)o+=t.shift()[1];return o}spacesFromEnd(t){let l,o="";for(;t.length&&(l=t[t.length-1][0],l==="space");)o=t.pop()[1]+o;return o}stringFrom(t,l){let o="";for(let s=l;s<t.length;s++)o+=t[s][1];return t.splice(l,t.length-l),o}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",{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 De=u,De}var Pe,Ct;function We(){if(Ct)return Pe;Ct=1;let i=j(),e=Rr(),r=re();function f(n,m){let p=new r(n,m),d=new e(p);try{d.parse()}catch(u){throw u}return d.root}return Pe=f,f.default=f,i.registerParse(f),Pe}var Te,Et;function Bt(){if(Et)return Te;Et=1;let{isClean:i,my:e}=Ue(),r=Mt(),f=K(),n=j(),m=qe(),p=It(),d=Fe(),u=We(),c=H();const 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},o={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function h(v){return typeof v=="object"&&typeof v.then=="function"}function a(v){let w=!1,y=t[v.type];return v.type==="decl"?w=v.prop.toLowerCase():v.type==="atrule"&&(w=v.name.toLowerCase()),w&&v.append?[y,y+"-"+w,s,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:v.append?[y,s,y+"Exit"]:[y,y+"Exit"]}function g(v){let w;return v.type==="document"?w=["Document",s,"DocumentExit"]:v.type==="root"?w=["Root",s,"RootExit"]:w=a(v),{eventIndex:0,events:w,iterator:0,node:v,visitorIndex:0,visitors:[]}}function S(v){return v[i]=!1,v.nodes&&v.nodes.forEach(w=>S(w)),v}let R={};class b{constructor(w,y,x){this.stringified=!1,this.processed=!1;let E;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))E=S(y);else if(y instanceof b||y instanceof d)E=S(y.root),y.map&&(typeof x.map=="undefined"&&(x.map={}),x.map.inline||(x.map.inline=!1),x.map.prev=y.map);else{let D=u;x.syntax&&(D=x.syntax.parse),x.parser&&(D=x.parser),D.parse&&(D=D.parse);try{E=D(y,x)}catch(A){this.processed=!0,this.error=A}E&&!E[e]&&n.rebuild(E)}this.result=new d(w,E,x),this.helpers=V(U({},R),{postcss:R,result:this.result}),this.plugins=this.processor.plugins.map(D=>typeof D=="object"&&D.prepare?U(U({},D),D.prepare(this.result)):D)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let x=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=x.postcssPlugin,w.setMessage()):x.postcssVersion}catch(E){console&&console.error&&console.error(E)}return w}prepareVisitors(){this.listeners={};let w=(y,x,E)=>{this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push([y,E])};for(let y of this.plugins)if(typeof y=="object")for(let x in y){if(!l[x]&&/^[A-Z]/.test(x))throw new Error(`Unknown event ${x} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!o[x])if(typeof y[x]=="object")for(let E in y[x])E==="*"?w(y,x,y[x][E]):w(y,x+"-"+E.toLowerCase(),y[x][E]);else typeof y[x]=="function"&&w(y,x,y[x])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],x=this.runOnRoot(y);if(h(x))try{await x}catch(E){throw this.handleError(E)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[i];){w[i]=!0;let y=[g(w)];for(;y.length>0;){let x=this.visitTick(y);if(h(x))try{await x}catch(E){let D=y[y.length-1].node;throw this.handleError(E,D)}}}if(this.listeners.OnceExit)for(let[y,x]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let E=w.nodes.map(D=>x(D,this.helpers));await Promise.all(E)}else await x(w,this.helpers)}catch(E){throw this.handleError(E)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(x=>w.Once(x,this.helpers));return h(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=f;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let E=new r(y,this.result.root,this.result.opts).generate();return this.result.css=E[0],this.result.map=E[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 w of this.plugins){let y=this.runOnRoot(w);if(h(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[i];)w[i]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[x,E]of w){this.result.lastPlugin=x;let D;try{D=E(y,this.helpers)}catch(A){throw this.handleError(A,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(h(D))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:x,visitors:E}=y;if(x.type!=="root"&&x.type!=="document"&&!x.parent){w.pop();return}if(E.length>0&&y.visitorIndex<E.length){let[A,I]=E[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===E.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=A;try{return I(x.toProxy(),this.helpers)}catch(T){throw this.handleError(T,x)}}if(y.iterator!==0){let A=y.iterator,I;for(;I=x.nodes[x.indexes[A]];)if(x.indexes[A]+=1,!I[i]){I[i]=!0,w.push(g(I));return}y.iterator=0,delete x.indexes[A]}let D=y.events;for(;y.eventIndex<D.length;){let A=D[y.eventIndex];if(y.eventIndex+=1,A===s){x.nodes&&x.nodes.length&&(x[i]=!0,y.iterator=x.getIterator());return}else if(this.listeners[A]){y.visitors=this.listeners[A];return}}w.pop()}walkSync(w){w[i]=!0;let y=a(w);for(let x of y)if(x===s)w.nodes&&w.each(E=>{E[i]||this.walkSync(E)});else{let E=this.listeners[x];if(E&&this.visitSync(E,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return b.registerPostcss=v=>{R=v},Te=b,b.default=b,c.registerLazyResult(b),m.registerLazyResult(b),Te}var _e,Ot;function br(){if(Ot)return _e;Ot=1;let i=Mt(),e=K(),r=It(),f=We();const n=Fe();class m{constructor(d,u,c){u=u.toString(),this.stringified=!1,this._processor=d,this._css=u,this._opts=c,this._map=void 0;let t,l=e;this.result=new n(this._processor,t,this._opts),this.result.css=u;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let s=new i(l,t,this._opts,u);if(s.isMap()){let[h,a]=s.generate();h&&(this.result.css=h),a&&(this.result.map=a)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(d){return this.async().catch(d)}finally(d){return this.async().then(d,d)}sync(){if(this.error)throw this.error;return this.result}then(d,u){return this.async().then(d,u)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let d,u=f;try{d=u(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=d,d}get[Symbol.toStringTag](){return"NoWorkResult"}}return _e=m,m.default=m,_e}var Me,At;function xr(){if(At)return Me;At=1;let i=br(),e=Bt(),r=qe(),f=H();class n{constructor(p=[]){this.version="8.4.38",this.plugins=this.normalize(p)}normalize(p){let d=[];for(let u of p)if(u.postcss===!0?u=u():u.postcss&&(u=u.postcss),typeof u=="object"&&Array.isArray(u.plugins))d=d.concat(u.plugins);else if(typeof u=="object"&&u.postcssPlugin)d.push(u);else if(typeof u=="function")d.push(u);else if(!(typeof u=="object"&&(u.parse||u.stringify)))throw new Error(u+" is not a PostCSS plugin");return d}process(p,d={}){return!this.plugins.length&&!d.parser&&!d.stringifier&&!d.syntax?new i(this,p,d):new e(this,p,d)}use(p){return this.plugins=this.plugins.concat(this.normalize([p])),this}}return Me=n,n.default=n,f.registerProcessor(n),r.registerProcessor(n),Me}var Ie,Nt;function Sr(){if(Nt)return Ie;Nt=1;let i=te(),e=_t(),r=se(),f=ze(),n=re(),m=H(),p=je();function d(u,c){if(Array.isArray(u))return u.map(h=>d(h));let o=u,{inputs:t}=o,l=ae(o,["inputs"]);if(t){c=[];for(let h of t){let a=V(U({},h),{__proto__:n.prototype});a.map&&(a.map=V(U({},a.map),{__proto__:e.prototype})),c.push(a)}}if(l.nodes&&(l.nodes=u.nodes.map(h=>d(h,c))),l.source){let s=l.source,{inputId:h}=s,a=ae(s,["inputId"]);l.source=a,h!=null&&(l.source.input=c[h])}if(l.type==="root")return new m(l);if(l.type==="decl")return new i(l);if(l.type==="rule")return new p(l);if(l.type==="comment")return new r(l);if(l.type==="atrule")return new f(l);throw new Error("Unknown node type: "+u.type)}return Ie=d,d.default=d,Ie}var Le,Dt;function vr(){if(Dt)return Le;Dt=1;let i=Be(),e=te(),r=Bt(),f=j(),n=xr(),m=K(),p=Sr(),d=qe(),u=Lt(),c=se(),t=ze(),l=Fe(),o=re(),s=We(),h=kt(),a=je(),g=H(),S=ee();function R(...b){return b.length===1&&Array.isArray(b[0])&&(b=b[0]),new n(b)}return R.plugin=function(v,w){let y=!1;function x(...D){console&&console.warn&&!y&&(y=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
38
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(v+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
39
+ https://www.w3ctech.com/topic/2226`));let A=w(...D);return A.postcssPlugin=v,A.postcssVersion=new n().version,A}let E;return Object.defineProperty(x,"postcss",{get(){return E||(E=x()),E}}),x.process=function(D,A,I){return R([x(I)]).process(D,A)},x},R.stringify=m,R.parse=s,R.fromJSON=p,R.list=h,R.comment=b=>new c(b),R.atRule=b=>new t(b),R.decl=b=>new e(b),R.rule=b=>new a(b),R.root=b=>new g(b),R.document=b=>new d(b),R.CssSyntaxError=i,R.Declaration=e,R.Container=f,R.Processor=n,R.Document=d,R.Comment=c,R.Warning=u,R.AtRule=t,R.Result=l,R.Input=o,R.Rule=a,R.Root=g,R.Node=S,r.registerPostcss(R),Le=R,R.default=R,Le}var Cr=vr();const P=fr(Cr);P.stringify;P.fromJSON;P.plugin;P.parse;P.list;P.document;P.comment;P.atRule;P.rule;P.decl;P.root;P.CssSyntaxError;P.Declaration;P.Container;P.Processor;P.Document;P.Comment;P.Warning;P.AtRule;P.Result;P.Input;P.Rule;P.Root;P.Node;var M=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(M||{});function Er(i){const e={},r=/;(?![^(]*\))/g,f=/:(.+)/,n=/\/\*.*?\*\//g;return i.replace(n,"").split(r).forEach(function(m){if(m){const p=m.split(f);p.length>1&&(e[ke(p[0].trim())]=p[1].trim())}}),e}function Pt(i){const e=[];for(const r in i){const f=i[r];if(typeof f!="string")continue;const n=Dr(r);e.push(`${n}: ${f};`)}return e.join(" ")}const Or=/-([a-z])/g,Ar=/^--[a-zA-Z0-9-]+$/,ke=i=>Ar.test(i)?i:i.replace(Or,(e,r)=>r?r.toUpperCase():""),Nr=/\B([A-Z])/g,Dr=i=>i.replace(Nr,"-$1").toLowerCase();class q{constructor(...e){O(this,"parentElement",null),O(this,"parentNode",null),O(this,"ownerDocument"),O(this,"firstChild",null),O(this,"lastChild",null),O(this,"previousSibling",null),O(this,"nextSibling",null),O(this,"ELEMENT_NODE",1),O(this,"TEXT_NODE",3),O(this,"nodeType"),O(this,"nodeName"),O(this,"RRNodeType")}get childNodes(){const e=[];let r=this.firstChild;for(;r;)e.push(r),r=r.nextSibling;return e}contains(e){if(e instanceof q){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class $e extends q{constructor(...e){super(e),O(this,"nodeType",9),O(this,"nodeName","#document"),O(this,"compatMode","CSS1Compat"),O(this,"RRNodeType",M.Document),O(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===M.Element&&e.tagName==="HTML")||null}get body(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(r=>r.RRNodeType===M.Element&&r.tagName==="BODY"))||null}get head(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(r=>r.RRNodeType===M.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const r=e.RRNodeType;if((r===M.Element||r===M.DocumentType)&&this.childNodes.some(n=>n.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===M.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const f=He(this,e);return f.parentElement=null,f}insertBefore(e,r){const f=e.RRNodeType;if((f===M.Element||f===M.DocumentType)&&this.childNodes.some(m=>m.RRNodeType===f))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${f===M.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const n=Wt(this,e,r);return n.parentElement=null,n}removeChild(e){return $t(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let r;if(e==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?r="-//W3C//DTD XHTML 1.0 Transitional//EN":e==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(r="-//W3C//DTD HTML 4.0 Transitional//EN"),r){const f=this.createDocumentType("html",r,"");this.open(),this.appendChild(f)}}createDocument(e,r,f){return new $e}createDocumentType(e,r,f){const n=new Ut(e,r,f);return n.ownerDocument=this,n}createElement(e){const r=new Ve(e);return r.ownerDocument=this,r}createElementNS(e,r){return this.createElement(r)}createTextNode(e){const r=new qt(e);return r.ownerDocument=this,r}createComment(e){const r=new Ft(e);return r.ownerDocument=this,r}createCDATASection(e){const r=new zt(e);return r.ownerDocument=this,r}toString(){return"RRDocument"}}class Ut extends q{constructor(e,r,f){super(),O(this,"nodeType",10),O(this,"RRNodeType",M.DocumentType),O(this,"name"),O(this,"publicId"),O(this,"systemId"),O(this,"textContent",null),this.name=e,this.publicId=r,this.systemId=f,this.nodeName=e}toString(){return"RRDocumentType"}}class Ve extends q{constructor(e){super(),O(this,"nodeType",1),O(this,"RRNodeType",M.Element),O(this,"tagName"),O(this,"attributes",{}),O(this,"shadowRoot",null),O(this,"scrollLeft"),O(this,"scrollTop"),this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach(r=>e+=r.textContent),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new jt(this.attributes.class,e=>{this.attributes.class=e})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const e=this.attributes.style?Er(this.attributes.style):{},r=/\B([A-Z])/g;return e.setProperty=(f,n,m)=>{if(r.test(f))return;const p=ke(f);n?e[p]=n:delete e[p],m==="important"&&(e[p]+=" !important"),this.attributes.style=Pt(e)},e.removeProperty=f=>{if(r.test(f))return"";const n=ke(f),m=e[n]||"";return delete e[n],this.attributes.style=Pt(e),m},e}getAttribute(e){return this.attributes[e]===void 0?null:this.attributes[e]}setAttribute(e,r){this.attributes[e]=r}setAttributeNS(e,r,f){this.setAttribute(r,f)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return He(this,e)}insertBefore(e,r){return Wt(this,e,r)}removeChild(e){return $t(this,e)}attachShadow(e){const r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(e){return!0}toString(){let e="";for(const r in this.attributes)e+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${e}`}}class Pr extends Ve{constructor(){super(...arguments),O(this,"currentTime"),O(this,"volume"),O(this,"paused"),O(this,"muted"),O(this,"playbackRate"),O(this,"loop")}attachShadow(e){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class qt extends q{constructor(e){super(),O(this,"nodeType",3),O(this,"nodeName","#text"),O(this,"RRNodeType",M.Text),O(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class Ft extends q{constructor(e){super(),O(this,"nodeType",8),O(this,"nodeName","#comment"),O(this,"RRNodeType",M.Comment),O(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class zt extends q{constructor(e){super(),O(this,"nodeName","#cdata-section"),O(this,"nodeType",4),O(this,"RRNodeType",M.CDATA),O(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class jt{constructor(e,r){if(O(this,"onChange"),O(this,"classes",[]),O(this,"add",(...f)=>{for(const n of f){const m=String(n);this.classes.indexOf(m)>=0||this.classes.push(m)}this.onChange&&this.onChange(this.classes.join(" "))}),O(this,"remove",(...f)=>{this.classes=this.classes.filter(n=>f.indexOf(n)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),e){const f=e.trim().split(/\s+/);this.classes.push(...f)}this.onChange=r}}function He(i,e){return e.parentNode&&e.parentNode.removeChild(e),i.lastChild?(i.lastChild.nextSibling=e,e.previousSibling=i.lastChild):(i.firstChild=e,e.previousSibling=null),i.lastChild=e,e.nextSibling=null,e.parentNode=i,e.parentElement=i,e.ownerDocument=i.ownerDocument,e}function Wt(i,e,r){if(!r)return He(i,e);if(r.parentNode!==i)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return e===r||(e.parentNode&&e.parentNode.removeChild(e),e.previousSibling=r.previousSibling,r.previousSibling=e,e.nextSibling=r,e.previousSibling?e.previousSibling.nextSibling=e:i.firstChild=e,e.parentElement=i,e.parentNode=i,e.ownerDocument=i.ownerDocument),e}function $t(i,e){if(e.parentNode!==i)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return e.previousSibling?e.previousSibling.nextSibling=e.nextSibling:i.firstChild=e.nextSibling,e.nextSibling?e.nextSibling.previousSibling=e.previousSibling:i.lastChild=e.previousSibling,e.previousSibling=null,e.nextSibling=null,e.parentElement=null,e.parentNode=null,e}var Ge=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(Ge||{});const Tr=require("nwsapi"),_r=require("cssom"),Mr=require("cssstyle");class Vt{constructor(){_(this,"scrollLeft",0),_(this,"scrollTop",0)}scrollTo(e){e&&(typeof e.left=="number"&&(this.scrollLeft=e.left),typeof e.top=="number"&&(this.scrollTop=e.top))}}class G extends $e{constructor(){super(...arguments),_(this,"nodeName","#document"),_(this,"_nwsapi")}get nwsapi(){return this._nwsapi||(this._nwsapi=Tr({document:this,DOMException:null}),this._nwsapi.configure({LOGERRORS:!1,IDS_DUPES:!0,MIXEDCASE:!0})),this._nwsapi}get documentElement(){return super.documentElement}get body(){return super.body}get head(){return super.head}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){return super.appendChild(e)}insertBefore(e,r){return super.insertBefore(e,r)}querySelectorAll(e){return this.nwsapi.select(e)}getElementsByTagName(e){return this.documentElement?this.documentElement.getElementsByTagName(e):[]}getElementsByClassName(e){return this.documentElement?this.documentElement.getElementsByClassName(e):[]}getElementById(e){return this.documentElement?this.documentElement.getElementById(e):null}createDocument(e,r,f){return new G}createDocumentType(e,r,f){const n=new Ht(e,r,f);return n.ownerDocument=this,n}createElement(e){const r=e.toUpperCase();let f;switch(r){case"AUDIO":case"VIDEO":f=new Jt(r);break;case"IFRAME":f=new Xt(r);break;case"IMG":f=new Gt(r);break;case"CANVAS":f=new Yt(r);break;case"STYLE":f=new Qt(r);break;default:f=new L(r);break}return f.ownerDocument=this,f}createElementNS(e,r){return this.createElement(r)}createComment(e){const r=new Kt(e);return r.ownerDocument=this,r}createCDATASection(e){const r=new er(e);return r.ownerDocument=this,r}createTextNode(e){const r=new Zt(e);return r.ownerDocument=this,r}}class Ht extends Ut{}class L extends Ve{constructor(e){super(e),_(this,"_style"),this._style=new Mr.CSSStyleDeclaration;const r=this._style;Object.defineProperty(this.attributes,"style",{get(){return r.cssText},set(f){r.cssText=f}})}get style(){return this._style}attachShadow(e){return super.attachShadow(e)}appendChild(e){return super.appendChild(e)}insertBefore(e,r){return super.insertBefore(e,r)}getAttribute(e){const r=e&&e.toLowerCase();return r in this.attributes?this.attributes[r]:null}setAttribute(e,r){this.attributes[e.toLowerCase()]=r}removeAttribute(e){delete this.attributes[e.toLowerCase()]}get firstElementChild(){for(const e of this.childNodes)if(e.RRNodeType===Ge.Element)return e;return null}get nextElementSibling(){const e=this.parentNode;if(!e)return null;const r=e.childNodes,f=r.indexOf(this);for(let n=f+1;n<r.length;n++)if(r[n]instanceof L)return r[n];return null}querySelectorAll(e){const r=[];return this.ownerDocument!==null&&this.ownerDocument.nwsapi.select(e,this,f=>{f!==this&&r.push(f)}),r}getElementById(e){if(this.id===e)return this;for(const r of this.childNodes)if(r instanceof L){const f=r.getElementById(e);if(f!==null)return f}return null}getElementsByClassName(e){let r=[];const f=new jt(e);this instanceof L&&f.classes.filter(n=>this.classList.classes.some(m=>m===n)).length==f.classes.length&&r.push(this);for(const n of this.childNodes)n instanceof L&&(r=r.concat(n.getElementsByClassName(e)));return r}getElementsByTagName(e){let r=[];const f=e.toUpperCase();this instanceof L&&this.tagName===f&&r.push(this);for(const n of this.childNodes)n instanceof L&&(r=r.concat(n.getElementsByTagName(e)));return r}}class Gt extends L{constructor(){super(...arguments),_(this,"src",""),_(this,"width",0),_(this,"height",0),_(this,"onload",null)}}class Jt extends Pr{}class Yt extends L{getContext(){return null}}class Qt extends L{constructor(){super(...arguments),_(this,"_sheet",null)}get sheet(){if(!this._sheet){let e="";for(const r of this.childNodes)r.RRNodeType===Ge.Text&&(e+=r.textContent);this._sheet=_r.parse(e)}return this._sheet}}class Xt extends L{constructor(e){super(e),_(this,"width",""),_(this,"height",""),_(this,"src",""),_(this,"contentDocument",new G),_(this,"contentWindow",new Vt);const r=this.contentDocument.createElement("HTML");this.contentDocument.appendChild(r),r.appendChild(this.contentDocument.createElement("HEAD")),r.appendChild(this.contentDocument.createElement("BODY"))}}class Zt extends qt{constructor(){super(...arguments),_(this,"nodeName","#text")}}class Kt extends Ft{constructor(){super(...arguments),_(this,"nodeName","#comment")}}class er extends zt{constructor(){super(...arguments),_(this,"nodeName","#cdata-section")}}function Ir(){if(typeof window!="undefined"||"performance"in global)return;const i=require("perf_hooks").performance;global.performance=i}function Lr(){if(typeof window!="undefined"||"requestAnimationFrame"in global)return;const i=60,e=1e3/i;let r=null,f=0,n=Object.create(null);function m(){const u=n;n=Object.create(null),r=null,Object.keys(u).forEach(function(c){const t=u[c];t&&t(Date.now())})}function p(u){const c=++f;return n[c]=u,r===null&&(r=setTimeout(m,e)),c}function d(u){delete n[u],Object.keys(n).length===0&&r!==null&&(clearTimeout(r),r=null)}global.requestAnimationFrame=p,global.cancelAnimationFrame=d}function kr(){typeof Event=="undefined"&&(global.Event=function(){})}function Br(){typeof Node=="undefined"&&(global.Node=q)}function Ur(){if(typeof document!="undefined")return;const i=new G;(()=>{var e,r;i.appendChild(i.createElement("html")),(e=i.documentElement)==null||e.appendChild(i.createElement("head")),(r=i.documentElement)==null||r.appendChild(i.createElement("body"))})(),global.document=i}Ir();Lr();kr();Br();Ur();exports.RRCDATASection=er;exports.RRCanvasElement=Yt;exports.RRComment=Kt;exports.RRDocument=G;exports.RRDocumentType=Ht;exports.RRElement=L;exports.RRIFrameElement=Xt;exports.RRImageElement=Gt;exports.RRMediaElement=Jt;exports.RRStyleElement=Qt;exports.RRText=Zt;exports.RRWindow=Vt;
40
40
  if (typeof module.exports == "object" && typeof exports == "object") {
41
41
  var __cp = (to, from, except, desc) => {
42
42
  if ((from && typeof from === "object") || typeof from === "function") {