aliascss
Version:
AliasCSS is a CSS post processor.
1 lines • 360 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 o=a(793);class t extends o{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=t,t.default=t,o.registerAtRule(t)},371:(e,r,a)=>{"use strict";let o=a(152);class t extends o{constructor(e){super(e),this.type="comment"}}e.exports=t,t.default=t},793:(e,r,a)=>{"use strict";let o,t,l,i,s=a(371),n=a(238),p=a(152),{isClean:c,my:d}=a(151);function g(e){return e.map((e=>(e.nodes&&(e.nodes=g(e.nodes)),delete e.source,e)))}function y(e){if(e[c]=!1,e.proxyOf.nodes)for(let r of e.proxyOf.nodes)y(r)}class f extends p{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,o=this.getIterator();for(;this.indexes[o]<this.proxyOf.nodes.length&&(r=this.indexes[o],a=e(this.proxyOf.nodes[r],r),!1!==a);)this.indexes[o]+=1;return delete this.indexes[o],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,o=this.index(e),t=this.normalize(r,this.proxyOf.nodes[o]).reverse();o=this.index(e);for(let e of t)this.proxyOf.nodes.splice(o+1,0,e);for(let e in this.indexes)a=this.indexes[e],o<a&&(this.indexes[e]=a+t.length);return this.markDirty(),this}insertBefore(e,r){let a,o=this.index(e),t=0===o&&"prepend",l=this.normalize(r,this.proxyOf.nodes[o],t).reverse();o=this.index(e);for(let e of l)this.proxyOf.nodes.splice(o,0,e);for(let e in this.indexes)a=this.indexes[e],o<=a&&(this.indexes[e]=a+l.length);return this.markDirty(),this}normalize(e,r){if("string"==typeof e)e=g(t(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 o(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new s(e)]}return e.map((e=>(e[d]||f.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[c]&&y(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((o=>{r.props&&!r.props.includes(o.prop)||r.fast&&!o.value.includes(r.fast)||(o.value=o.value.replace(e,a))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((r,a)=>{let o;try{o=e(r,a)}catch(e){throw r.addToError(e)}return!1!==o&&r.walk&&(o=r.walk(e)),o}))}walkAtRules(e,r){return r?e instanceof RegExp?this.walk(((a,o)=>{if("atrule"===a.type&&e.test(a.name))return r(a,o)})):this.walk(((a,o)=>{if("atrule"===a.type&&a.name===e)return r(a,o)})):(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,o)=>{if("decl"===a.type&&e.test(a.prop))return r(a,o)})):this.walk(((a,o)=>{if("decl"===a.type&&a.prop===e)return r(a,o)})):(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,o)=>{if("rule"===a.type&&e.test(a.selector))return r(a,o)})):this.walk(((a,o)=>{if("rule"===a.type&&a.selector===e)return r(a,o)})):(r=e,this.walk(((e,a)=>{if("rule"===e.type)return r(e,a)})))}}f.registerParse=e=>{t=e},f.registerRule=e=>{i=e},f.registerAtRule=e=>{o=e},f.registerRoot=e=>{l=e},e.exports=f,f.default=f,f.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,o.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=>{f.rebuild(e)}))}},614:(e,r,a)=>{"use strict";let o=a(633),t=a(746);class l extends Error{constructor(e,r,a,o,t,i){super(e),this.name="CssSyntaxError",this.reason=e,t&&(this.file=t),o&&(this.source=o),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=o.isColorSupported);let a=e=>e,l=e=>e,i=e=>e;if(e){let{bold:e,gray:r,red:s}=o.createColors(!0);l=r=>e(s(r)),a=e=>r(e),t&&(i=e=>t(e))}let s=r.split(/\r?\n/),n=Math.max(this.line-3,0),p=Math.min(this.line+2,s.length),c=String(p).length;return s.slice(n,p).map(((e,r)=>{let o=n+1+r,t=" "+(" "+o).slice(-c)+" | ";if(o===this.line){if(e.length>160){let r=20,o=Math.max(0,this.column-r),s=Math.max(this.column+r,this.endColumn+r),n=e.slice(o,s),p=a(t.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,r-1)).replace(/[^\t]/g," ");return l(">")+a(t)+i(n)+"\n "+p+l("^")}let r=a(t.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(t)+i(e)+"\n "+r+l("^")}return" "+a(t)+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 o=a(152);class t extends o{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=t,t.default=t},145:(e,r,a)=>{"use strict";let o,t,l=a(793);class i extends l{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new o(new t,this,e).stringify()}}i.registerLazyResult=e=>{o=e},i.registerProcessor=e=>{t=e},e.exports=i,i.default=i},438:(e,r,a)=>{"use strict";let o=a(396),t=a(371),l=a(238),i=a(106),s=a(878),n=a(644),p=a(534);function c(e,r){if(Array.isArray(e))return e.map((e=>c(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=>c(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 p(d);if("comment"===d.type)return new t(d);if("atrule"===d.type)return new o(d);throw new Error("Unknown node type: "+e.type)}e.exports=c,c.default=c},106:(e,r,a)=>{"use strict";let{nanoid:o}=a(42),{isAbsolute:t,resolve:l}=a(197),{SourceMapConsumer:i,SourceMapGenerator:s}=a(866),{fileURLToPath:n,pathToFileURL:p}=a(739),c=a(614),d=a(878),g=a(746),y=Symbol("fromOffsetCache"),f=Boolean(i&&s),u=Boolean(l&&t);class b{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&&(!u||/^\w+:\/\//.test(r.from)||t(r.from)?this.file=r.from:this.file=l(r.from)),u&&f){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 "+o(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,a,o={}){let t,l,i;if(r&&"object"==typeof r){let e=r,o=a;if("number"==typeof e.offset){let o=this.fromOffset(e.offset);r=o.line,a=o.col}else r=e.line,a=e.column;if("number"==typeof o.offset){let e=this.fromOffset(o.offset);l=e.line,t=e.col}else l=o.line,t=o.column}else if(!a){let e=this.fromOffset(r);r=e.line,a=e.col}let s=this.origin(r,a,l,t);return i=s?new c(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,o.plugin):new c(e,void 0===l?r:{column:a,line:r},void 0===l?a:{column:t,line:l},this.css,this.file,o.plugin),i.input={column:a,endColumn:t,endLine:l,line:r,source:this.css},this.file&&(p&&(i.input.url=p(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let r,a;if(this[y])a=this[y];else{let e=this.css.split("\n");a=new Array(e.length);let r=0;for(let o=0,t=e.length;o<t;o++)a[o]=r,r+=e[o].length+1;this[y]=a}r=a[a.length-1];let o=0;if(e>=r)o=a.length-1;else{let r,t=a.length-2;for(;o<t;)if(r=o+(t-o>>1),e<a[r])t=r-1;else{if(!(e>=a[r+1])){o=r;break}o=r+1}}return{col:e-a[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,a,o){if(!this.map)return!1;let l,i,s=this.map.consumer(),c=s.originalPositionFor({column:r,line:e});if(!c.source)return!1;"number"==typeof a&&(l=s.originalPositionFor({column:o,line:a})),i=t(c.source)?p(c.source):new URL(c.source,this.map.consumer().sourceRoot||p(this.map.mapFile));let d={column:c.column,endColumn:l&&l.column,endLine:l&&l.line,line:c.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 g=s.sourceContentFor(c.source);return g&&(d.source=g),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=b,b.default=b,g&&g.registerInput&&g.registerInput(b)},966:(e,r,a)=>{"use strict";let o=a(793),t=a(145),l=a(604),i=a(577),s=a(717),n=a(644),p=a(303),{isClean:c,my:d}=a(151);a(156);const g={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},y={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},f={Once:!0,postcssPlugin:!0,prepare:!0},u=0;function b(e){return"object"==typeof e&&"function"==typeof e.then}function m(e){let r=!1,a=g[e.type];return"decl"===e.type?r=e.prop.toLowerCase():"atrule"===e.type&&(r=e.name.toLowerCase()),r&&e.append?[a,a+"-"+r,u,a+"Exit",a+"Exit-"+r]:r?[a,a+"-"+r,a+"Exit",a+"Exit-"+r]:e.append?[a,u,a+"Exit"]:[a,a+"Exit"]}function h(e){let r;return r="document"===e.type?["Document",u,"DocumentExit"]:"root"===e.type?["Root",u,"RootExit"]:m(e),{eventIndex:0,events:r,iterator:0,node:e,visitorIndex:0,visitors:[]}}function v(e){return e[c]=!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 t;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)t=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{t=e(r,a)}catch(e){this.processed=!0,this.error=e}t&&!t[d]&&o.rebuild(t)}else t=v(r);this.result=new s(e,t,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(!y[a]&&/^[A-Z]/.test(a))throw new Error(`Unknown event ${a} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[a])if("object"==typeof r[a])for(let o in r[a])e(r,"*"===o?a:a+"-"+o.toLowerCase(),r[a][o]);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(b(a))try{await a}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[c];){e[c]=!0;let r=[h(e)];for(;r.length>0;){let e=this.visitTick(r);if(b(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 b(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=p;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(b(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[c];)e[c]=!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,o]of e){let e;this.result.lastPlugin=a;try{e=o(r,this.helpers)}catch(e){throw this.handleError(e,r.proxyOf)}if("root"!==r.type&&"document"!==r.type&&!r.parent)return!0;if(b(e))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:a,visitors:o}=r;if("root"!==a.type&&"document"!==a.type&&!a.parent)return void e.pop();if(o.length>0&&r.visitorIndex<o.length){let[e,t]=o[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=e;try{return t(a.toProxy(),this.helpers)}catch(e){throw this.handleError(e,a)}}if(0!==r.iterator){let o,t=r.iterator;for(;o=a.nodes[a.indexes[t]];)if(a.indexes[t]+=1,!o[c])return o[c]=!0,void e.push(h(o));r.iterator=0,delete a.indexes[t]}let t=r.events;for(;r.eventIndex<t.length;){let e=t[r.eventIndex];if(r.eventIndex+=1,e===u)return void(a.nodes&&a.nodes.length&&(a[c]=!0,r.iterator=a.getIterator()));if(this.listeners[e])return void(r.visitors=this.listeners[e])}e.pop()}walkSync(e){e[c]=!0;let r=m(e);for(let a of r)if(a===u)e.nodes&&e.each((e=>{e[c]||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),t.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 o=[],t="",l=!1,i=0,s=!1,n="",p=!1;for(let a of e)p?p=!1:"\\"===a?p=!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?(""!==t&&o.push(t.trim()),t="",l=!1):t+=a;return(a||""!==t)&&o.push(t.trim()),o}};e.exports=r,r.default=r},604:(e,r,a)=>{"use strict";let{dirname:o,relative:t,resolve:l,sep:i}=a(197),{SourceMapConsumer:s,SourceMapGenerator:n}=a(866),{pathToFileURL:p}=a(739),c=a(106),d=Boolean(s&&n),g=Boolean(o&&l&&t&&i);e.exports=class{constructor(e,r,a,o){this.stringify=e,this.mapOpts=a.map||{},this.root=r,this.opts=a,this.css=o,this.originalCSS=o,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)),t=e.root||o(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(t)))}}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(),g&&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,o=1,t="<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=o-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=t,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"),o=i.length-e):o+=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=o-2,this.map.addMapping(l)):(l.source=t,l.original.line=1,l.original.column=0,l.generated.line=a,l.generated.column=o-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?o(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(a=o(l(a,this.mapOpts.annotation)));let i=t(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 c(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 o=this.usesFileUrls?this.toFileUrl(a):this.toUrl(this.path(a));this.map.setSourceContent(o,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(p){let r=p(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 o=a(604),t=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=t;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 t;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,t,this._opts),this.result.css=r;let n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});let p=new o(s,t,this._opts,r);if(p.isMap()){let[e,r]=p.generate();e&&(this.result.css=e),r&&(this.result.map=r)}else p.clearAnnotation(),this.result.css=p.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 o=a(614),t=a(668),l=a(303),{isClean:i,my:s}=a(151);function n(e,r){let a=new e.constructor;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;if("proxyCache"===o)continue;let t=e[o],l=typeof t;"parent"===o&&"object"===l?r&&(a[o]=r):"source"===o?a[o]=t:Array.isArray(t)?a[o]=t.map((e=>n(e,a))):("object"===l&&null!==t&&(t=n(t)),a[o]=t)}return a}function p(e,r){if(r&&void 0!==r.offset)return r.offset;let a=1,o=1,t=0;for(let l=0;l<e.length;l++){if(o===r.line&&a===r.column){t=l;break}"\n"===e[l]?(a=1,o+=1):a+=1}return t}class c{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:o}=this.rangeBy(r);return this.source.input.error(e,{column:o.column,line:o.line},{column:a.column,line:a.line},r)}return new o(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,o=a.slice(p(a,this.source.start),p(a,this.source.end)).indexOf(e.word);-1!==o&&(r=this.positionInside(o))}return r}positionInside(e){let r=this.source.start.column,a=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,t=p(o,this.source.start),l=t+e;for(let e=t;e<l;e++)"\n"===o[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 o="document"in this.source.input?this.source.input.document:this.source.input.css,t=o.slice(p(o,this.source.start),p(o,this.source.end)).indexOf(e.word);-1!==t&&(r=this.positionInside(t),a=this.positionInside(t+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 t).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 o of e)o===this?a=!0:a?(this.parent.insertAfter(r,o),r=o):this.parent.insertBefore(r,o);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={},o=null==r;r=r||new Map;let t=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let o=this[e];if(Array.isArray(o))a[e]=o.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,r):e));else if("object"==typeof o&&o.toJSON)a[e]=o.toJSON(null,r);else if("source"===e){let l=r.get(o.input);null==l&&(l=t,r.set(o.input,t),t++),a[e]={end:o.end,inputId:l,start:o.start}}else a[e]=o}return o&&(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 o={node:this};for(let e in a)o[e]=a[e];return e.warn(r,o)}}e.exports=c,c.default=c},577:(e,r,a)=>{"use strict";let o=a(793),t=a(106),l=a(339);function i(e,r){let a=new t(e,r),o=new l(a);try{o.parse()}catch(e){throw e}return o.root}e.exports=i,i.default=i,o.registerParse(i)},339:(e,r,a)=>{"use strict";let o=a(396),t=a(371),l=a(238),i=a(644),s=a(534),n=a(781);const p={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,t,l=new o;l.name=e[1].slice(1),""===l.name&&this.unnamedAtrule(l,e),this.init(l,e[2]);let i=!1,s=!1,n=[],p=[];for(;!this.tokenizer.endOfFile();){if(r=(e=this.tokenizer.nextToken())[0],"("===r||"["===r?p.push("("===r?")":"]"):"{"===r&&p.length>0?p.push("}"):r===p[p.length-1]&&p.pop(),0===p.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(t=n.length-1,a=n[t];a&&"space"===a[0];)a=n[--t];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,o=0;for(let t=r-1;t>=0&&(a=e[t],"space"===a[0]||(o+=1,2!==o));t--);throw this.input.error("Missed semicolon","word"===a[0]?a[3]+1:a[2])}colon(e){let r,a,o,t=0;for(let[l,i]of e.entries()){if(a=i,o=a[0],"("===o&&(t+=1),")"===o&&(t-=1),0===t&&":"===o){if(r){if("word"===r[0]&&"progid"===r[1])continue;return l}this.doubleColon(a)}r=a}return!1}comment(e){let r=new t;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 o,t=e[e.length-1];for(";"===t[0]&&(this.semicolon=!0,e.pop()),a.source.end=this.getPosition(t[3]||t[2]||function(e){for(let r=e.length-1;r>=0;r--){let a=e[r],o=a[3]||a[2];if(o)return o}}(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(o=e.shift(),":"===o[0]){a.raws.between+=o[1];break}"word"===o[0]&&/\w/.test(o[1])&&this.unknownWord([o]),a.raws.between+=o[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(o=e[r],"!important"===o[1].toLowerCase()){a.important=!0;let o=this.stringFrom(e,r);o=this.spacesFromEnd(e)+o," !important"!==o&&(a.raws.important=o);break}if("important"===o[1].toLowerCase()){let o=e.slice(0),t="";for(let e=r;e>0;e--){let r=o[e][0];if(t.trim().startsWith("!")&&"space"!==r)break;t=o.pop()[1]+t}t.trim().startsWith("!")&&(a.important=!0,a.raws.important=t,e=o)}if("space"!==o[0]&&"comment"!==o[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,o=!1,t=null,l=[],i=e[1].startsWith("--"),s=[],n=e;for(;n;){if(a=n[0],s.push(n),"("===a||"["===a)t||(t=n),l.push("("===a?")":"]");else if(i&&o&&"{"===a)t||(t=n),l.push("}");else if(0===l.length){if(";"===a){if(o)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&&(o=!0)}else a===l[l.length-1]&&(l.pop(),0===l.length&&(t=null));n=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),l.length>0&&this.unclosedBracket(t),r&&o){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,o){let t,l,i,s,n=a.length,c="",d=!0;for(let e=0;e<n;e+=1)t=a[e],l=t[0],"space"!==l||e!==n-1||o?"comment"===l?(s=a[e-1]?a[e-1][0]:"empty",i=a[e+1]?a[e+1][0]:"empty",p[s]||p[i]||","===c.slice(-1)?d=!1:c+=t[1]):c+=t[1]:d=!1;if(!d){let o=a.reduce(((e,r)=>e+r[1]),"");e.raws[r]={raw:o,value:c}}e[r]=c}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 o=r;o<e.length;o++)a+=e[o][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 o=a(396),t=a(371),l=a(793),i=a(614),s=a(238),n=a(145),p=a(438),c=a(106),d=a(966),g=a(752),y=a(152),f=a(577),u=a(846),b=a(717),m=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 u(e)}x.plugin=function(e,r){let a,o=!1;function t(...a){console&&console.warn&&!o&&(o=!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 t=r(...a);return t.postcssPlugin=e,t.postcssVersion=(new u).version,t}return Object.defineProperty(t,"postcss",{get:()=>(a||(a=t()),a)}),t.process=function(e,r,a){return x([t(a)]).process(e,r)},t},x.stringify=v,x.parse=f,x.fromJSON=p,x.list=g,x.comment=e=>new t(e),x.atRule=e=>new o(e),x.decl=e=>new s(e),x.rule=e=>new h(e),x.root=e=>new m(e),x.document=e=>new n(e),x.CssSyntaxError=i,x.Declaration=s,x.Container=l,x.Processor=u,x.Document=n,x.Comment=t,x.Warning=A,x.AtRule=o,x.Result=b,x.Input=c,x.Rule=h,x.Root=m,x.Node=y,d.registerPostcss(x),e.exports=x,x.default=x},878:(e,r,a)=>{"use strict";let{existsSync:o,readFileSync:t}=a(977),{dirname:l,join:i}=a(197),{SourceMapConsumer:s,SourceMapGenerator:n}=a(866);class p{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,o=this.loadMap(r.from,a);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=l(this.mapFile)),o&&(this.text=o)}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 o=e.substr(a[0].length),Buffer?Buffer.from(o,"base64").toString():window.atob(o);var o;let t=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+t)}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()),o=e.indexOf("*/",a);a>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(a,o)))}loadFile(e){if(this.root=l(e),o(e))return this.mapFile=e,t(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=p,p.default=p},846:(e,r,a)=>{"use strict";let o=a(145),t=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 t(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),o.registerProcessor(s)},717:(e,r,a)=>{"use strict";let o=a(38);class t{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 o(e,r);return this.messages.push(a),a}warnings(){return this.messages.filter((e=>"warning"===e.type))}}e.exports=t,t.default=t},644:(e,r,a)=>{"use strict";let o,t,l=a(793);class i extends l{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,a){let o=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 o)e.raws.before=r.raws.before;return o}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 o(new t,this,e).stringify()}}i.registerLazyResult=e=>{o=e},i.registerProcessor=e=>{t=e},e.exports=i,i.default=i,l.registerRoot(i)},534:(e,r,a)=>{"use strict";let o=a(793),t=a(752);class l extends o{get selectors(){return t.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,o.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,o=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?a+=e.raws.afterName:o&&(a+=" "),e.nodes)this.block(e,a+o);else{let t=(e.raws.between||"")+(r?";":"");this.builder(a+o+t,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 o=e.parent,t=0;for(;o&&"root"!==o.type;)t+=1,o=o.parent;if(a.includes("\n")){let r=this.raw(e,null,"indent");if(r.length)for(let e=0;e<t;e++)a+=r}return a}block(e,r){let a,o=this.raw(e,"between","beforeOpen");this.builder(r+o+"{",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 o=0;o<e.nodes.length;o++){let t=e.nodes[o],l=this.raw(t,"before");l&&this.builder(l),this.stringify(t,r!==o||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"),o=e.prop+a+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)}document(e){this.body(e)}raw(e,a,o){let t;if(o||(o=a),a&&(t=e.raws[a],void 0!==t))return t;let l=e.parent;if("before"===o){if(!l||"root"===l.type&&l.first===e)return"";if(l&&"document"===l.type)return""}if(!l)return r[o];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[o])return i.rawCache[o];if("before"===o||"after"===o)return this.beforeAfter(e,o);{let r="raw"+((s=o)[0].toUpperCase()+s.slice(1));this[r]?t=this[r](i,e):i.walk((e=>{if(t=e.raws[a],void 0!==t)return!1}))}var s;return void 0===t&&(t=r[o]),i.rawCache[o]=t,t}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 o=a.parent;if(o&&o!==e&&o.parent&&o.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],o=e.raws[r];return o&&o.value===a?o.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 o=a(668);function t(e,r){new o(r).stringify(e)}e.exports=t,t.default=t},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),o="\\".charCodeAt(0),t="/".charCodeAt(0),l="\n".charCodeAt(0),i=" ".charCodeAt(0),s="\f".charCodeAt(0),n="\t".charCodeAt(0),p="\r".charCodeAt(0),c="[".charCodeAt(0),d="]".charCodeAt(0),g="(".charCodeAt(0),y=")".charCodeAt(0),f="{".charCodeAt(0),u="}".charCodeAt(0),b=";".charCodeAt(0),m="*".charCodeAt(0),h=":".charCodeAt(0),v="@".charCodeAt(0),A=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,F=/[\da-f]/i;e.exports=function(e,k={}){let D,E,C,B,$,z,j,P,_,L,O=e.css.valueOf(),M=k.ignoreErrors,S=O.length,I=0,T=[],N=[];function q(r){throw e.error("Unclosed "+r,I)}return{back:function(e){N.push(e)},endOfFile:function(){return 0===N.length&&I>=S},nextToken:function(e){if(N.length)return N.pop();if(I>=S)return;let k=!!e&&e.ignoreUnclosed;switch(D=O.charCodeAt(I),D){case l:case i:case n:case p:case s:B=I;do{B+=1,D=O.charCodeAt(B)}while(D===i||D===l||D===n||D===p||D===s);z=["space",O.slice(I,B)],I=B-1;break;case c:case d:case f:case u:case h:case b:case y:{let e=String.fromCharCode(D);z=[e,e,I];break}case g:if(L=T.length?T.pop()[1]:"",_=O.charCodeAt(I+1),"url"===L&&_!==r&&_!==a&&_!==i&&_!==l&&_!==n&&_!==s&&_!==p){B=I;do{if(j=!1,B=O.indexOf(")",B+1),-1===B){if(M||k){B=I;break}q("bracket")}for(P=B;O.charCodeAt(P-1)===o;)P-=1,j=!j}while(j);z=["brackets",O.slice(I,B+1),I,B],I=B}else B=O.indexOf(")",I+1),E=O.slice(I,B+1),-1===B||w.test(E)?z=["(","(",I]:(z=["brackets",E,I,B],I=B);break;case r:case a:$=D===r?"'":'"',B=I;do{if(j=!1,B=O.indexOf($,B+1),-1===B){if(M||k){B=I+1;break}q("string")}for(P=B;O.charCodeAt(P-1)===o;)P-=1,j=!j}while(j);z=["string",O.slice(I,B+1),I,B],I=B;break;case v:A.lastIndex=I+1,A.test(O),B=0===A.lastIndex?O.length-1:A.lastIndex-2,z=["at-word",O.slice(I,B+1),I,B],I=B;break;case o:for(B=I,C=!0;O.charCodeAt(B+1)===o;)B+=1,C=!C;if(D=O.charCodeAt(B+1),C&&D!==t&&D!==i&&D!==l&&D!==n&&D!==p&&D!==s&&(B+=1,F.test(O.charAt(B)))){for(;F.test(O.charAt(B+1));)B+=1;O.charCodeAt(B+1)===i&&(B+=1)}z=["word",O.slice(I,B+1),I,B],I=B;break;default:D===t&&O.charCodeAt(I+1)===m?(B=O.indexOf("*/",I+2)+1,0===B&&(M||k?B=O.length:q("comment")),z=["comment",O.slice(I,B+1),I,B],I=B):(x.lastIndex=I+1,x.t