aliascss
Version:
AliasCSS is a CSS post processor.
1 lines • 350 kB
JavaScript
(()=>{var e={633:e=>{var r=String,a=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};e.exports=a(),e.exports.createColors=a},396:(e,r,a)=>{"use strict";let t=a(793);class o extends t{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)}}e.exports=o,o.default=o,t.registerAtRule(o)},371:(e,r,a)=>{"use strict";let t=a(152);class o extends t{constructor(e){super(e),this.type="comment"}}e.exports=o,o.default=o},793:(e,r,a)=>{"use strict";let t,o,l,i,s=a(371),n=a(238),c=a(152),{isClean:p,my:d}=a(151);function f(e){return e.map((e=>(e.nodes&&(e.nodes=f(e.nodes)),delete e.source,e)))}function u(e){if(e[p]=!1,e.proxyOf.nodes)for(let r of e.proxyOf.nodes)u(r)}class b extends c{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let r of e){let e=this.normalize(r,this.last);for(let r of e)this.proxyOf.nodes.push(r)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r,a,t=this.getIterator();for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],a=e(this.proxyOf.nodes[r],r),!1!==a);)this.indexes[t]+=1;return delete this.indexes[t],a}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,r)=>"proxyOf"===r?e:e[r]?"each"===r||"string"==typeof r&&r.startsWith("walk")?(...a)=>e[r](...a.map((e=>"function"==typeof e?(r,a)=>e(r.toProxy(),a):e))):"every"===r||"some"===r?a=>e[r](((e,...r)=>a(e.toProxy(),...r))):"root"===r?()=>e.root().toProxy():"nodes"===r?e.nodes.map((e=>e.toProxy())):"first"===r||"last"===r?e[r].toProxy():e[r]:e[r],set:(e,r,a)=>(e[r]===a||(e[r]=a,"name"!==r&&"params"!==r&&"selector"!==r||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let a,t=this.index(e),o=this.normalize(r,this.proxyOf.nodes[t]).reverse();t=this.index(e);for(let e of o)this.proxyOf.nodes.splice(t+1,0,e);for(let e in this.indexes)a=this.indexes[e],t<a&&(this.indexes[e]=a+o.length);return this.markDirty(),this}insertBefore(e,r){let a,t=this.index(e),o=0===t&&"prepend",l=this.normalize(r,this.proxyOf.nodes[t],o).reverse();t=this.index(e);for(let e of l)this.proxyOf.nodes.splice(t,0,e);for(let e in this.indexes)a=this.indexes[e],t<=a&&(this.indexes[e]=a+l.length);return this.markDirty(),this}normalize(e,r){if("string"==typeof e)e=f(o(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new n(e)]}else if(e.selector||e.selectors)e=[new i(e)];else if(e.name)e=[new t(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new s(e)]}return e.map((e=>(e[d]||b.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[p]&&u(e),e.raws||(e.raws={}),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let r of e){let e=this.normalize(r,this.first,"prepend").reverse();for(let r of e)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+e.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){let r;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let a in this.indexes)r=this.indexes[a],r>=e&&(this.indexes[a]=r-1);return this.markDirty(),this}replaceValues(e,r,a){return a||(a=r,r={}),this.walkDecls((t=>{r.props&&!r.props.includes(t.prop)||r.fast&&!t.value.includes(r.fast)||(t.value=t.value.replace(e,a))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((r,a)=>{let t;try{t=e(r,a)}catch(e){throw r.addToError(e)}return!1!==t&&r.walk&&(t=r.walk(e)),t}))}walkAtRules(e,r){return r?e instanceof RegExp?this.walk(((a,t)=>{if("atrule"===a.type&&e.test(a.name))return r(a,t)})):this.walk(((a,t)=>{if("atrule"===a.type&&a.name===e)return r(a,t)})):(r=e,this.walk(((e,a)=>{if("atrule"===e.type)return r(e,a)})))}walkComments(e){return this.walk(((r,a)=>{if("comment"===r.type)return e(r,a)}))}walkDecls(e,r){return r?e instanceof RegExp?this.walk(((a,t)=>{if("decl"===a.type&&e.test(a.prop))return r(a,t)})):this.walk(((a,t)=>{if("decl"===a.type&&a.prop===e)return r(a,t)})):(r=e,this.walk(((e,a)=>{if("decl"===e.type)return r(e,a)})))}walkRules(e,r){return r?e instanceof RegExp?this.walk(((a,t)=>{if("rule"===a.type&&e.test(a.selector))return r(a,t)})):this.walk(((a,t)=>{if("rule"===a.type&&a.selector===e)return r(a,t)})):(r=e,this.walk(((e,a)=>{if("rule"===e.type)return r(e,a)})))}}b.registerParse=e=>{o=e},b.registerRule=e=>{i=e},b.registerAtRule=e=>{t=e},b.registerRoot=e=>{l=e},e.exports=b,b.default=b,b.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,t.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,n.prototype):"comment"===e.type?Object.setPrototypeOf(e,s.prototype):"root"===e.type&&Object.setPrototypeOf(e,l.prototype),e[d]=!0,e.nodes&&e.nodes.forEach((e=>{b.rebuild(e)}))}},614:(e,r,a)=>{"use strict";let t=a(633),o=a(746);class l extends Error{constructor(e,r,a,t,o,i){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),t&&(this.source=t),i&&(this.plugin=i),void 0!==r&&void 0!==a&&("number"==typeof r?(this.line=r,this.column=a):(this.line=r.line,this.column=r.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,l)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;null==e&&(e=t.isColorSupported);let a=e=>e,l=e=>e,i=e=>e;if(e){let{bold:e,gray:r,red:s}=t.createColors(!0);l=r=>e(s(r)),a=e=>r(e),o&&(i=e=>o(e))}let s=r.split(/\r?\n/),n=Math.max(this.line-3,0),c=Math.min(this.line+2,s.length),p=String(c).length;return s.slice(n,c).map(((e,r)=>{let t=n+1+r,o=" "+(" "+t).slice(-p)+" | ";if(t===this.line){if(e.length>160){let r=20,t=Math.max(0,this.column-r),s=Math.max(this.column+r,this.endColumn+r),n=e.slice(t,s),c=a(o.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,r-1)).replace(/[^\t]/g," ");return l(">")+a(o)+i(n)+"\n "+c+l("^")}let r=a(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(o)+i(e)+"\n "+r+l("^")}return" "+a(o)+i(e)})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=l,l.default=l},238:(e,r,a)=>{"use strict";let t=a(152);class o extends t{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}}e.exports=o,o.default=o},145:(e,r,a)=>{"use strict";let t,o,l=a(793);class i extends l{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new t(new o,this,e).stringify()}}i.registerLazyResult=e=>{t=e},i.registerProcessor=e=>{o=e},e.exports=i,i.default=i},438:(e,r,a)=>{"use strict";let t=a(396),o=a(371),l=a(238),i=a(106),s=a(878),n=a(644),c=a(534);function p(e,r){if(Array.isArray(e))return e.map((e=>p(e)));let{inputs:a,...d}=e;if(a){r=[];for(let e of a){let a={...e,__proto__:i.prototype};a.map&&(a.map={...a.map,__proto__:s.prototype}),r.push(a)}}if(d.nodes&&(d.nodes=e.nodes.map((e=>p(e,r)))),d.source){let{inputId:e,...a}=d.source;d.source=a,null!=e&&(d.source.input=r[e])}if("root"===d.type)return new n(d);if("decl"===d.type)return new l(d);if("rule"===d.type)return new c(d);if("comment"===d.type)return new o(d);if("atrule"===d.type)return new t(d);throw new Error("Unknown node type: "+e.type)}e.exports=p,p.default=p},106:(e,r,a)=>{"use strict";let{nanoid:t}=a(42),{isAbsolute:o,resolve:l}=a(197),{SourceMapConsumer:i,SourceMapGenerator:s}=a(866),{fileURLToPath:n,pathToFileURL:c}=a(739),p=a(614),d=a(878),f=a(746),u=Symbol("fromOffsetCache"),b=Boolean(i&&s),m=Boolean(l&&o);class y{get from(){return this.file||this.id}constructor(e,r={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!m||/^\w+:\/\//.test(r.from)||o(r.from)?this.file=r.from:this.file=l(r.from)),m&&b){let e=new d(this.css,r);if(e.text){this.map=e;let r=e.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,a,t={}){let o,l,i;if(r&&"object"==typeof r){let e=r,t=a;if("number"==typeof e.offset){let t=this.fromOffset(e.offset);r=t.line,a=t.col}else r=e.line,a=e.column;if("number"==typeof t.offset){let e=this.fromOffset(t.offset);l=e.line,o=e.col}else l=t.line,o=t.column}else if(!a){let e=this.fromOffset(r);r=e.line,a=e.col}let s=this.origin(r,a,l,o);return i=s?new p(e,void 0===s.endLine?s.line:{column:s.column,line:s.line},void 0===s.endLine?s.column:{column:s.endColumn,line:s.endLine},s.source,s.file,t.plugin):new p(e,void 0===l?r:{column:a,line:r},void 0===l?a:{column:o,line:l},this.css,this.file,t.plugin),i.input={column:a,endColumn:o,endLine:l,line:r,source:this.css},this.file&&(c&&(i.input.url=c(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let r,a;if(this[u])a=this[u];else{let e=this.css.split("\n");a=new Array(e.length);let r=0;for(let t=0,o=e.length;t<o;t++)a[t]=r,r+=e[t].length+1;this[u]=a}r=a[a.length-1];let t=0;if(e>=r)t=a.length-1;else{let r,o=a.length-2;for(;t<o;)if(r=t+(o-t>>1),e<a[r])o=r-1;else{if(!(e>=a[r+1])){t=r;break}t=r+1}}return{col:e-a[t]+1,line:t+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,a,t){if(!this.map)return!1;let l,i,s=this.map.consumer(),p=s.originalPositionFor({column:r,line:e});if(!p.source)return!1;"number"==typeof a&&(l=s.originalPositionFor({column:t,line:a})),i=o(p.source)?c(p.source):new URL(p.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:p.column,endColumn:l&&l.column,endLine:l&&l.line,line:p.line,url:i.toString()};if("file:"===i.protocol){if(!n)throw new Error("file: protocol is not available in this PostCSS build");d.file=n(i)}let f=s.sourceContentFor(p.source);return f&&(d.source=f),d}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])null!=this[r]&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=y,y.default=y,f&&f.registerInput&&f.registerInput(y)},966:(e,r,a)=>{"use strict";let t=a(793),o=a(145),l=a(604),i=a(577),s=a(717),n=a(644),c=a(303),{isClean:p,my:d}=a(151);a(156);const f={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},b={Once:!0,postcssPlugin:!0,prepare:!0},m=0;function y(e){return"object"==typeof e&&"function"==typeof e.then}function g(e){let r=!1,a=f[e.type];return"decl"===e.type?r=e.prop.toLowerCase():"atrule"===e.type&&(r=e.name.toLowerCase()),r&&e.append?[a,a+"-"+r,m,a+"Exit",a+"Exit-"+r]:r?[a,a+"-"+r,a+"Exit",a+"Exit-"+r]:e.append?[a,m,a+"Exit"]:[a,a+"Exit"]}function h(e){let r;return r="document"===e.type?["Document",m,"DocumentExit"]:"root"===e.type?["Root",m,"RootExit"]:g(e),{eventIndex:0,events:r,iterator:0,node:e,visitorIndex:0,visitors:[]}}function v(e){return e[p]=!1,e.nodes&&e.nodes.forEach((e=>v(e))),e}let A={};class x{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,a){let o;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof x||r instanceof s)o=v(r.root),r.map&&(void 0===a.map&&(a.map={}),a.map.inline||(a.map.inline=!1),a.map.prev=r.map);else{let e=i;a.syntax&&(e=a.syntax.parse),a.parser&&(e=a.parser),e.parse&&(e=e.parse);try{o=e(r,a)}catch(e){this.processed=!0,this.error=e}o&&!o[d]&&t.rebuild(o)}else o=v(r);this.result=new s(e,o,a),this.helpers={...A,postcss:A,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}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,r){let a=this.result.lastPlugin;try{r&&r.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?a.postcssVersion:(e.plugin=a.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,r,a)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([e,a])};for(let r of this.plugins)if("object"==typeof r)for(let a in r){if(!u[a]&&/^[A-Z]/.test(a))throw new Error(`Unknown event ${a} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!b[a])if("object"==typeof r[a])for(let t in r[a])e(r,"*"===t?a:a+"-"+t.toLowerCase(),r[a][t]);else"function"==typeof r[a]&&e(r,a,r[a])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],a=this.runOnRoot(r);if(y(a))try{await a}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[p];){e[p]=!0;let r=[h(e)];for(;r.length>0;){let e=this.visitTick(r);if(y(e))try{await e}catch(e){let a=r[r.length-1].node;throw this.handleError(e,a)}}}if(this.listeners.OnceExit)for(let[r,a]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if("document"===e.type){let r=e.nodes.map((e=>a(e,this.helpers)));await Promise.all(r)}else await a(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let r=this.result.root.nodes.map((r=>e.Once(r,this.helpers)));return y(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=c;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let a=new l(r,this.result.root,this.result.opts).generate();return this.result.css=a[0],this.result.map=a[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)if(y(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[p];)e[p]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[a,t]of e){let e;this.result.lastPlugin=a;try{e=t(r,this.helpers)}catch(e){throw this.handleError(e,r.proxyOf)}if("root"!==r.type&&"document"!==r.type&&!r.parent)return!0;if(y(e))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:a,visitors:t}=r;if("root"!==a.type&&"document"!==a.type&&!a.parent)return void e.pop();if(t.length>0&&r.visitorIndex<t.length){let[e,o]=t[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===t.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=e;try{return o(a.toProxy(),this.helpers)}catch(e){throw this.handleError(e,a)}}if(0!==r.iterator){let t,o=r.iterator;for(;t=a.nodes[a.indexes[o]];)if(a.indexes[o]+=1,!t[p])return t[p]=!0,void e.push(h(t));r.iterator=0,delete a.indexes[o]}let o=r.events;for(;r.eventIndex<o.length;){let e=o[r.eventIndex];if(r.eventIndex+=1,e===m)return void(a.nodes&&a.nodes.length&&(a[p]=!0,r.iterator=a.getIterator()));if(this.listeners[e])return void(r.visitors=this.listeners[e])}e.pop()}walkSync(e){e[p]=!0;let r=g(e);for(let a of r)if(a===m)e.nodes&&e.each((e=>{e[p]||this.walkSync(e)}));else{let r=this.listeners[a];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}}x.registerPostcss=e=>{A=e},e.exports=x,x.default=x,n.registerLazyResult(x),o.registerLazyResult(x)},752:e=>{"use strict";let r={comma:e=>r.split(e,[","],!0),space:e=>r.split(e,[" ","\n","\t"]),split(e,r,a){let t=[],o="",l=!1,i=0,s=!1,n="",c=!1;for(let a of e)c?c=!1:"\\"===a?c=!0:s?a===n&&(s=!1):'"'===a||"'"===a?(s=!0,n=a):"("===a?i+=1:")"===a?i>0&&(i-=1):0===i&&r.includes(a)&&(l=!0),l?(""!==o&&t.push(o.trim()),o="",l=!1):o+=a;return(a||""!==o)&&t.push(o.trim()),t}};e.exports=r,r.default=r},604:(e,r,a)=>{"use strict";let{dirname:t,relative:o,resolve:l,sep:i}=a(197),{SourceMapConsumer:s,SourceMapGenerator:n}=a(866),{pathToFileURL:c}=a(739),p=a(106),d=Boolean(s&&n),f=Boolean(t&&l&&o&&i);e.exports=class{constructor(e,r,a,t){this.stringify=e,this.mapOpts=a.map||{},this.root=r,this.opts=a,this.css=t,this.originalCSS=t,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r,a=this.toUrl(this.path(e.file)),o=e.root||t(e.file);!1===this.mapOpts.sourcesContent?(r=new s(e.text),r.sourcesContent&&(r.sourcesContent=null)):r=e.consumer(),this.map.applySourceMap(r,a,this.toUrl(this.path(o)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),f&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(r=>{e+=r})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=n.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new n({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 n({file:this.outputFile(),ignoreInvalidMapping:!0});let e,r,a=1,t=1,o="<no source>",l={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((i,s,n)=>{if(this.css+=i,s&&"end"!==n&&(l.generated.line=a,l.generated.column=t-1,s.source&&s.source.start?(l.source=this.sourcePath(s),l.original.line=s.source.start.line,l.original.column=s.source.start.column-1,this.map.addMapping(l)):(l.source=o,l.original.line=1,l.original.column=0,this.map.addMapping(l))),r=i.match(/\n/g),r?(a+=r.length,e=i.lastIndexOf("\n"),t=i.length-e):t+=i.length,s&&"start"!==n){let e=s.parent||{raws:{}};("decl"===s.type||"atrule"===s.type&&!s.nodes)&&s===e.last&&!e.raws.semicolon||(s.source&&s.source.end?(l.source=this.sourcePath(s),l.original.line=s.source.end.line,l.original.column=s.source.end.column-1,l.generated.line=a,l.generated.column=t-2,this.map.addMapping(l)):(l.source=o,l.original.line=1,l.original.column=0,l.generated.line=a,l.generated.column=t-1,this.map.addMapping(l)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let a=this.opts.to?t(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(a=t(l(a,this.mapOpts.annotation)));let i=o(a,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}}));else{let e=new p(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((r=>{if(r.source){let a=r.source.input.from;if(a&&!e[a]){e[a]=!0;let t=this.usesFileUrls?this.toFileUrl(a):this.toUrl(this.path(a));this.map.setSourceContent(t,r.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,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 r=this.memoizedFileURLs.get(e);if(r)return r;if(c){let r=c(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;"\\"===i&&(e=e.replace(/\\/g,"/"));let a=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,a),a}}},211:(e,r,a)=>{"use strict";let t=a(604),o=a(577);const l=a(717);let i=a(303);a(156);class s{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,r=o;try{e=r(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,a){let o;r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=a,this._map=void 0;let s=i;this.result=new l(this._processor,o,this._opts),this.result.css=r;let n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});let c=new t(s,o,this._opts,r);if(c.isMap()){let[e,r]=c.generate();e&&(this.result.css=e),r&&(this.result.map=r)}else c.clearAnnotation(),this.result.css=c.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,r){return this.async().then(e,r)}toString(){return this._css}warnings(){return[]}}e.exports=s,s.default=s},152:(e,r,a)=>{"use strict";let t=a(614),o=a(668),l=a(303),{isClean:i,my:s}=a(151);function n(e,r){let a=new e.constructor;for(let t in e){if(!Object.prototype.hasOwnProperty.call(e,t))continue;if("proxyCache"===t)continue;let o=e[t],l=typeof o;"parent"===t&&"object"===l?r&&(a[t]=r):"source"===t?a[t]=o:Array.isArray(o)?a[t]=o.map((e=>n(e,a))):("object"===l&&null!==o&&(o=n(o)),a[t]=o)}return a}function c(e,r){if(r&&void 0!==r.offset)return r.offset;let a=1,t=1,o=0;for(let l=0;l<e.length;l++){if(t===r.line&&a===r.column){o=l;break}"\n"===e[l]?(a=1,t+=1):a+=1}return o}class p{get proxyOf(){return this}constructor(e={}){this.raws={},this[i]=!1,this[s]=!0;for(let r in e)if("nodes"===r){this.nodes=[];for(let a of e[r])"function"==typeof a.clone?this.append(a.clone()):this.append(a)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];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 r=n(this);for(let a in e)r[a]=e[a];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:a,start:t}=this.rangeBy(r);return this.source.input.error(e,{column:t.column,line:t.line},{column:a.column,line:a.line},r)}return new t(e)}getProxyProcessor(){return{get:(e,r)=>"proxyOf"===r?e:"root"===r?()=>e.root().toProxy():e[r],set:(e,r,a)=>(e[r]===a||(e[r]=a,"prop"!==r&&"value"!==r&&"name"!==r&&"params"!==r&&"important"!==r&&"text"!==r||e.markDirty()),!0)}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let e=this;for(;e=e.parent;)e[i]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let a="document"in this.source.input?this.source.input.document:this.source.input.css,t=a.slice(c(a,this.source.start),c(a,this.source.end)).indexOf(e.word);-1!==t&&(r=this.positionInside(t))}return r}positionInside(e){let r=this.source.start.column,a=this.source.start.line,t="document"in this.source.input?this.source.input.document:this.source.input.css,o=c(t,this.source.start),l=o+e;for(let e=o;e<l;e++)"\n"===t[e]?(r=1,a+=1):r+=1;return{column:r,line:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let r={column:this.source.start.column,line:this.source.start.line},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){let t="document"in this.source.input?this.source.input.document:this.source.input.css,o=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);-1!==o&&(r=this.positionInside(o),a=this.positionInside(o+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?a={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?a=this.positionInside(e.endIndex):e.index&&(a=this.positionInside(e.index+1));return(a.line<r.line||a.line===r.line&&a.column<=r.column)&&(a={column:r.column+1,line:r.line}),{end:a,start:r}}raw(e,r){return(new o).raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let r=this,a=!1;for(let t of e)t===this?a=!0:a?(this.parent.insertAfter(r,t),r=t):this.parent.insertBefore(r,t);a||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,r){let a={},t=null==r;r=r||new Map;let o=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let t=this[e];if(Array.isArray(t))a[e]=t.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,r):e));else if("object"==typeof t&&t.toJSON)a[e]=t.toJSON(null,r);else if("source"===e){let l=r.get(t.input);null==l&&(l=o,r.set(t.input,o),o++),a[e]={end:t.end,inputId:l,start:t.start}}else a[e]=t}return t&&(a.inputs=[...r.keys()].map((e=>e.toJSON()))),a}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=l){e.stringify&&(e=e.stringify);let r="";return e(this,(e=>{r+=e})),r}warn(e,r,a){let t={node:this};for(let e in a)t[e]=a[e];return e.warn(r,t)}}e.exports=p,p.default=p},577:(e,r,a)=>{"use strict";let t=a(793),o=a(106),l=a(339);function i(e,r){let a=new o(e,r),t=new l(a);try{t.parse()}catch(e){throw e}return t.root}e.exports=i,i.default=i,t.registerParse(i)},339:(e,r,a)=>{"use strict";let t=a(396),o=a(371),l=a(238),i=a(644),s=a(534),n=a(781);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new i,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 r,a,o,l=new t;l.name=e[1].slice(1),""===l.name&&this.unnamedAtrule(l,e),this.init(l,e[2]);let i=!1,s=!1,n=[],c=[];for(;!this.tokenizer.endOfFile();){if(r=(e=this.tokenizer.nextToken())[0],"("===r||"["===r?c.push("("===r?")":"]"):"{"===r&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),0===c.length){if(";"===r){l.source.end=this.getPosition(e[2]),l.source.end.offset++,this.semicolon=!0;break}if("{"===r){s=!0;break}if("}"===r){if(n.length>0){for(o=n.length-1,a=n[o];a&&"space"===a[0];)a=n[--o];a&&(l.source.end=this.getPosition(a[3]||a[2]),l.source.end.offset++)}this.end(e);break}n.push(e)}else n.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(n),n.length?(l.raws.afterName=this.spacesAndCommentsFromStart(n),this.raw(l,"params",n),i&&(e=n[n.length-1],l.source.end=this.getPosition(e[3]||e[2]),l.source.end.offset++,this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),s&&(l.nodes=[],this.current=l)}checkMissedSemicolon(e){let r=this.colon(e);if(!1===r)return;let a,t=0;for(let o=r-1;o>=0&&(a=e[o],"space"===a[0]||(t+=1,2!==t));o--);throw this.input.error("Missed semicolon","word"===a[0]?a[3]+1:a[2])}colon(e){let r,a,t,o=0;for(let[l,i]of e.entries()){if(a=i,t=a[0],"("===t&&(o+=1),")"===t&&(o-=1),0===o&&":"===t){if(r){if("word"===r[0]&&"progid"===r[1])continue;return l}this.doubleColon(a)}r=a}return!1}comment(e){let r=new o;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let a=e[1].slice(2,-2);if(/^\s*$/.test(a))r.text="",r.raws.left=a,r.raws.right="";else{let e=a.match(/^(\s*)([^]*\S)(\s*)$/);r.text=e[2],r.raws.left=e[1],r.raws.right=e[3]}}createTokenizer(){this.tokenizer=n(this.input)}decl(e,r){let a=new l;this.init(a,e[0][2]);let t,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),a.source.end=this.getPosition(o[3]||o[2]||function(e){for(let r=e.length-1;r>=0;r--){let a=e[r],t=a[3]||a[2];if(t)return t}}(e)),a.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),a.raws.before+=e.shift()[1];for(a.source.start=this.getPosition(e[0][2]),a.prop="";e.length;){let r=e[0][0];if(":"===r||"space"===r||"comment"===r)break;a.prop+=e.shift()[1]}for(a.raws.between="";e.length;){if(t=e.shift(),":"===t[0]){a.raws.between+=t[1];break}"word"===t[0]&&/\w/.test(t[1])&&this.unknownWord([t]),a.raws.between+=t[1]}"_"!==a.prop[0]&&"*"!==a.prop[0]||(a.raws.before+=a.prop[0],a.prop=a.prop.slice(1));let i,s=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let r=e.length-1;r>=0;r--){if(t=e[r],"!important"===t[1].toLowerCase()){a.important=!0;let t=this.stringFrom(e,r);t=this.spacesFromEnd(e)+t," !important"!==t&&(a.raws.important=t);break}if("important"===t[1].toLowerCase()){let t=e.slice(0),o="";for(let e=r;e>0;e--){let r=t[e][0];if(o.trim().startsWith("!")&&"space"!==r)break;o=t.pop()[1]+o}o.trim().startsWith("!")&&(a.important=!0,a.raws.important=o,e=t)}if("space"!==t[0]&&"comment"!==t[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(a.raws.between+=s.map((e=>e[1])).join(""),s=[]),this.raw(a,"value",s.concat(e),r),a.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new s;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}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 r=this.current.nodes[this.current.nodes.length-1];r&&"rule"===r.type&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let r=!1,a=null,t=!1,o=null,l=[],i=e[1].startsWith("--"),s=[],n=e;for(;n;){if(a=n[0],s.push(n),"("===a||"["===a)o||(o=n),l.push("("===a?")":"]");else if(i&&t&&"{"===a)o||(o=n),l.push("}");else if(0===l.length){if(";"===a){if(t)return void this.decl(s,i);break}if("{"===a)return void this.rule(s);if("}"===a){this.tokenizer.back(s.pop()),r=!0;break}":"===a&&(t=!0)}else a===l[l.length-1]&&(l.pop(),0===l.length&&(o=null));n=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),l.length>0&&this.unclosedBracket(o),r&&t){if(!i)for(;s.length&&(n=s[s.length-1][0],"space"===n||"comment"===n);)this.tokenizer.back(s.pop());this.decl(s,i)}else this.unknownWord(s)}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)}this.endFile()}precheckMissedSemicolon(){}raw(e,r,a,t){let o,l,i,s,n=a.length,p="",d=!0;for(let e=0;e<n;e+=1)o=a[e],l=o[0],"space"!==l||e!==n-1||t?"comment"===l?(s=a[e-1]?a[e-1][0]:"empty",i=a[e+1]?a[e+1][0]:"empty",c[s]||c[i]||","===p.slice(-1)?d=!1:p+=o[1]):p+=o[1]:d=!1;if(!d){let t=a.reduce(((e,r)=>e+r[1]),"");e.raws[r]={raw:t,value:p}}e[r]=p}rule(e){e.pop();let r=new s;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,a="";for(;e.length&&(r=e[e.length-1][0],"space"===r||"comment"===r);)a=e.pop()[1]+a;return a}spacesAndCommentsFromStart(e){let r,a="";for(;e.length&&(r=e[0][0],"space"===r||"comment"===r);)a+=e.shift()[1];return a}spacesFromEnd(e){let r,a="";for(;e.length&&(r=e[e.length-1][0],"space"===r);)a=e.pop()[1]+a;return a}stringFrom(e,r){let a="";for(let t=r;t<e.length;t++)a+=e[t][1];return e.splice(r,e.length-r),a}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}}},895:(e,r,a)=>{"use strict";let t=a(396),o=a(371),l=a(793),i=a(614),s=a(238),n=a(145),c=a(438),p=a(106),d=a(966),f=a(752),u=a(152),b=a(577),m=a(846),y=a(717),g=a(644),h=a(534),v=a(303),A=a(38);function x(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new m(e)}x.plugin=function(e,r){let a,t=!1;function o(...a){console&&console.warn&&!t&&(t=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let o=r(...a);return o.postcssPlugin=e,o.postcssVersion=(new m).version,o}return Object.defineProperty(o,"postcss",{get:()=>(a||(a=o()),a)}),o.process=function(e,r,a){return x([o(a)]).process(e,r)},o},x.stringify=v,x.parse=b,x.fromJSON=c,x.list=f,x.comment=e=>new o(e),x.atRule=e=>new t(e),x.decl=e=>new s(e),x.rule=e=>new h(e),x.root=e=>new g(e),x.document=e=>new n(e),x.CssSyntaxError=i,x.Declaration=s,x.Container=l,x.Processor=m,x.Document=n,x.Comment=o,x.Warning=A,x.AtRule=t,x.Result=y,x.Input=p,x.Rule=h,x.Root=g,x.Node=u,d.registerPostcss(x),e.exports=x,x.default=x},878:(e,r,a)=>{"use strict";let{existsSync:t,readFileSync:o}=a(977),{dirname:l,join:i}=a(197),{SourceMapConsumer:s,SourceMapGenerator:n}=a(866);class c{constructor(e,r){if(!1===r.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let a=r.map?r.map.prev:void 0,t=this.loadMap(r.from,a);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=l(this.mapFile)),t&&(this.text=t)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(e){let r=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(r)return decodeURIComponent(e.substr(r[0].length));let a=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(a)return t=e.substr(a[0].length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let a=e.lastIndexOf(r.pop()),t=e.indexOf("*/",a);a>-1&&t>-1&&(this.annotation=this.getAnnotationURL(e.substring(a,t)))}loadFile(e){if(this.root=l(e),t(e))return this.mapFile=e,o(e,"utf-8").toString().trim()}loadMap(e,r){if(!1===r)return!1;if(r){if("string"==typeof r)return r;if("function"!=typeof r){if(r instanceof s)return n.fromSourceMap(r).toString();if(r instanceof n)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}{let a=r(e);if(a){let e=this.loadFile(a);if(!e)throw new Error("Unable to load previous source map: "+a.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=i(l(e),r)),this.loadFile(r)}}}startWith(e,r){return!!e&&e.substr(0,r.length)===r}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c,c.default=c},846:(e,r,a)=>{"use strict";let t=a(145),o=a(966),l=a(211),i=a(644);class s{constructor(e=[]){this.version="8.5.3",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let a of e)if(!0===a.postcss?a=a():a.postcss&&(a=a.postcss),"object"==typeof a&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if("object"==typeof a&&a.postcssPlugin)r.push(a);else if("function"==typeof a)r.push(a);else if("object"!=typeof a||!a.parse&&!a.stringify)throw new Error(a+" is not a PostCSS plugin");return r}process(e,r={}){return this.plugins.length||r.parser||r.stringifier||r.syntax?new o(this,e,r):new l(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=s,s.default=s,i.registerProcessor(s),t.registerProcessor(s)},717:(e,r,a)=>{"use strict";let t=a(38);class o{get content(){return this.css}constructor(e,r,a){this.processor=e,this.messages=[],this.root=r,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let a=new t(e,r);return this.messages.push(a),a}warnings(){return this.messages.filter((e=>"warning"===e.type))}}e.exports=o,o.default=o},644:(e,r,a)=>{"use strict";let t,o,l=a(793);class i extends l{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,a){let t=super.normalize(e);if(r)if("prepend"===a)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let e of t)e.raws.before=r.raws.before;return t}removeChild(e,r){let a=this.index(e);return!r&&0===a&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),super.removeChild(e)}toResult(e={}){return new t(new o,this,e).stringify()}}i.registerLazyResult=e=>{t=e},i.registerProcessor=e=>{o=e},e.exports=i,i.default=i,l.registerRoot(i)},534:(e,r,a)=>{"use strict";let t=a(793),o=a(752);class l extends t{get selectors(){return o.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,a=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(a)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}e.exports=l,l.default=l,t.registerRule(l)},668:e=>{"use strict";const r={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class a{constructor(e){this.builder=e}atrule(e,r){let a="@"+e.name,t=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?a+=e.raws.afterName:t&&(a+=" "),e.nodes)this.block(e,a+t);else{let o=(e.raws.between||"")+(r?";":"");this.builder(a+t+o,e)}}beforeAfter(e,r){let a;a="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===r?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let t=e.parent,o=0;for(;t&&"root"!==t.type;)o+=1,t=t.parent;if(a.includes("\n")){let r=this.raw(e,null,"indent");if(r.length)for(let e=0;e<o;e++)a+=r}return a}block(e,r){let a,t=this.raw(e,"between","beforeOpen");this.builder(r+t+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),a=this.raw(e,"after")):a=this.raw(e,"after","emptyBody"),a&&this.builder(a),this.builder("}",e,"end")}body(e){let r=e.nodes.length-1;for(;r>0&&"comment"===e.nodes[r].type;)r-=1;let a=this.raw(e,"semicolon");for(let t=0;t<e.nodes.length;t++){let o=e.nodes[t],l=this.raw(o,"before");l&&this.builder(l),this.stringify(o,r!==t||a)}}comment(e){let r=this.raw(e,"left","commentLeft"),a=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+a+"*/",e)}decl(e,r){let a=this.raw(e,"between","colon"),t=e.prop+a+this.rawValue(e,"value");e.important&&(t+=e.raws.important||" !important"),r&&(t+=";"),this.builder(t,e)}document(e){this.body(e)}raw(e,a,t){let o;if(t||(t=a),a&&(o=e.raws[a],void 0!==o))return o;let l=e.parent;if("before"===t){if(!l||"root"===l.type&&l.first===e)return"";if(l&&"document"===l.type)return""}if(!l)return r[t];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[t])return i.rawCache[t];if("before"===t||"after"===t)return this.beforeAfter(e,t);{let r="raw"+((s=t)[0].toUpperCase()+s.slice(1));this[r]?o=this[r](i,e):i.walk((e=>{if(o=e.raws[a],void 0!==o)return!1}))}var s;return void 0===o&&(o=r[t]),i.rawCache[t]=o,o}rawBeforeClose(e){let r;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return r=e.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let a;return e.walkComments((e=>{if(void 0!==e.raws.before)return a=e.raws.before,a.includes("\n")&&(a=a.replace(/[^\n]+$/,"")),!1})),void 0===a?a=this.raw(r,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(e,r){let a;return e.walkDecls((e=>{if(void 0!==e.raws.before)return a=e.raws.before,a.includes("\n")&&(a=a.replace(/[^\n]+$/,"")),!1})),void 0===a?a=this.raw(r,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(e){let r;return e.walk((e=>{if("decl"!==e.type&&(r=e.raws.between,void 0!==r))return!1})),r}rawBeforeRule(e){let r;return e.walk((a=>{if(a.nodes&&(a.parent!==e||e.first!==a)&&void 0!==a.raws.before)return r=a.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls((e=>{if(void 0!==e.raws.between)return r=e.raws.between.replace(/[^\s:]/g,""),!1})),r}rawEmptyBody(e){let r;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(r=e.raws.after,void 0!==r))return!1})),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk((a=>{let t=a.parent;if(t&&t!==e&&t.parent&&t.parent===e&&void 0!==a.raws.before){let e=a.raws.before.split("\n");return r=e[e.length-1],r=r.replace(/\S/g,""),!1}})),r}rawSemicolon(e){let r;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(r=e.raws.semicolon,void 0!==r))return!1})),r}rawValue(e,r){let a=e[r],t=e.raws[r];return t&&t.value===a?t.raw:a}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,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}}e.exports=a,a.default=a},303:(e,r,a)=>{"use strict";let t=a(668);function o(e,r){new t(r).stringify(e)}e.exports=o,o.default=o},151:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},781:e=>{"use strict";const r="'".charCodeAt(0),a='"'.charCodeAt(0),t="\\".charCodeAt(0),o="/".charCodeAt(0),l="\n".charCodeAt(0),i=" ".charCodeAt(0),s="\f".charCodeAt(0),n="\t".charCodeAt(0),c="\r".charCodeAt(0),p="[".charCodeAt(0),d="]".charCodeAt(0),f="(".charCodeAt(0),u=")".charCodeAt(0),b="{".charCodeAt(0),m="}".charCodeAt(0),y=";".charCodeAt(0),g="*".charCodeAt(0),h=":".charCodeAt(0),v="@".charCodeAt(0),A=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,k=/[\da-f]/i;e.exports=function(e,$={}){let F,D,z,C,P,E,j,O,_,B,S=e.css.valueOf(),T=$.ignoreErrors,M=S.length,R=0,L=[],q=[];function I(r){throw e.error("Unclosed "+r,R)}return{back:function(e){q.push(e)},endOfFile:function(){return 0===q.length&&R>=M},nextToken:function(e){if(q.length)return q.pop();if(R>=M)return;let $=!!e&&e.ignoreUnclosed;switch(F=S.charCodeAt(R),F){case l:case i:case n:case c:case s:C=R;do{C+=1,F=S.charCodeAt(C)}while(F===i||F===l||F===n||F===c||F===s);E=["space",S.slice(R,C)],R=C-1;break;case p:case d:case b:case m:case h:case y:case u:{let e=String.fromCharCode(F);E=[e,e,R];break}case f:if(B=L.length?L.pop()[1]:"",_=S.charCodeAt(R+1),"url"===B&&_!==r&&_!==a&&_!==i&&_!==l&&_!==n&&_!==s&&_!==c){C=R;do{if(j=!1,C=S.indexOf(")",C+1),-1===C){if(T||$){C=R;break}I("bracket")}for(O=C;S.charCodeAt(O-1)===t;)O-=1,j=!j}while(j);E=["brackets",S.slice(R,C+1),R,C],R=C}else C=S.indexOf(")",R+1),D=S.slice(R,C+1),-1===C||w.test(D)?E=["(","(",R]:(E=["brackets",D,R,C],R=C);break;case r:case a:P=F===r?"'":'"',C=R;do{if(j=!1,C=S.indexOf(P,C+1),-1===C){if(T||$){C=R+1;break}I("string")}for(O=C;S.charCodeAt(O-1)===t;)O-=1,j=!j}while(j);E=["string",S.slice(R,C+1),R,C],R=C;break;case v:A.lastIndex=R+1,A.test(S),C=0===A.lastIndex?S.length-1:A.lastIndex-2,E=["at-word",S.slice(R,C+1),R,C],R=C;break;case t:for(C=R,z=!0;S.charCodeAt(C+1)===t;)C+=1,z=!z;if(F=S.charCodeAt(C+1),z&&F!==o&&F!==i&&F!==l&&F!==n&&F!==c&&F!==s&&(C+=1,k.test(S.charAt(C)))){for(;k.test(S.charAt(C+1));)C+=1;S.charCodeAt(C+1)===i&&(C+=1)}E=["word",S.slice(R,C+1),R,C],R=C;break;default:F===o&&S.charCodeAt(R+1)===g?(C=S.indexOf("*/",R+2)+1,0===C&&(T||$?C=S.length:I("comment")),E=["comment",S.slice(R,C+1),R,C],R=C):(x.lastIndex=R+1,x.t