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