@jixo/cli 0.21.0 → 0.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,54 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(let c of r(i))!a.call(e,c)&&c!==o&&t(e,c,{get:()=>i[c],enumerable:!(s=n(i,c))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=o((e,t)=>{var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};t.exports=r(),t.exports.createColors=r}),d=o(()=>{}),f=o((e,t)=>{"use strict";var n=u(),r=d(),i=class e extends Error{constructor(t,n,r,i,a,o){super(t),this.name=`CssSyntaxError`,this.reason=t,a&&(this.file=a),i&&(this.source=i),o&&(this.plugin=o),typeof n<`u`&&typeof r<`u`&&(typeof n==`number`?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,typeof this.line<`u`&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason}showSourceCode(e){if(!this.source)return``;let t=this.source;e??=n.isColorSupported;let i=e=>e,a=e=>e,o=e=>e;if(e){let{bold:e,gray:t,red:s}=n.createColors(!0);a=t=>e(s(t)),i=e=>t(e),r&&(o=e=>r(e))}let s=t.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length;return s.slice(c,l).map((e,t)=>{let n=c+1+t,r=` `+(` `+n).slice(-u)+` | `;if(n===this.line){if(e.length>160){let t=20,n=Math.max(0,this.column-t),s=Math.max(this.column+t,this.endColumn+t),c=e.slice(n,s),l=i(r.replace(/\d/g,` `))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g,` `);return a(`>`)+i(r)+o(c)+`
2
+ `+l+a(`^`)}let t=i(r.replace(/\d/g,` `))+e.slice(0,this.column-1).replace(/[^\t]/g,` `);return a(`>`)+i(r)+o(e)+`
3
+ `+t+a(`^`)}return` `+i(r)+o(e)}).join(`
4
+ `)}toString(){let e=this.showSourceCode();return e&&=`
5
+
6
+ `+e+`
7
+ `,this.name+`: `+this.message+e}};t.exports=i,i.default=i}),p=o((e,t)=>{"use strict";var n={after:`
8
+ `,beforeClose:`
9
+ `,beforeComment:`
10
+ `,beforeDecl:`
11
+ `,beforeOpen:` `,beforeRule:`
12
+ `,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function r(e){return e[0].toUpperCase()+e.slice(1)}var i=class{constructor(e){this.builder=e}atrule(e,t){let n=`@`+e.name,r=e.params?this.rawValue(e,`params`):``;if(typeof e.raws.afterName<`u`?n+=e.raws.afterName:r&&(n+=` `),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||``)+(t?`;`:``);this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`);let r=e.parent,i=0;for(;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
13
+ `)){let t=this.raw(e,null,`indent`);if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n=this.raw(e,`between`,`beforeOpen`);this.builder(t+n+`{`,e,`start`);let r;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&&e.nodes[t].type===`comment`;)--t;let n=this.raw(e,`semicolon`);for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],a=this.raw(i,`before`);a&&this.builder(a),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`/*`+t+e.text+n+`*/`,e)}decl(e,t){let n=this.raw(e,`between`,`colon`),r=e.prop+n+this.rawValue(e,`value`);e.important&&(r+=e.raws.important||` !important`),t&&(r+=`;`),this.builder(r,e)}document(e){this.body(e)}raw(e,t,i){let a;if(i||=t,t&&(a=e.raws[t],typeof a<`u`))return a;let o=e.parent;if(i===`before`&&(!o||o.type===`root`&&o.first===e||o&&o.type===`document`))return``;if(!o)return n[i];let s=e.root();if(s.rawCache||={},typeof s.rawCache[i]<`u`)return s.rawCache[i];if(i===`before`||i===`after`)return this.beforeAfter(e,i);{let n=`raw`+r(i);this[n]?a=this[n](s,e):s.walk(e=>{if(a=e.raws[t],typeof a<`u`)return!1})}return typeof a>`u`&&(a=n[i]),s.rawCache[i]=a,a}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&typeof e.raws.after<`u`)return t=e.raws.after,t.includes(`
14
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(typeof e.raws.before<`u`)return n=e.raws.before,n.includes(`
15
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),typeof n>`u`?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(typeof e.raws.before<`u`)return n=e.raws.before,n.includes(`
16
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),typeof n>`u`?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n}rawBeforeOpen(e){let t;return e.walk(e=>{if(e.type!==`decl`&&(t=e.raws.between,typeof t<`u`))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<`u`)return t=n.raws.before,t.includes(`
17
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawColon(e){let t;return e.walkDecls(e=>{if(typeof e.raws.between<`u`)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,typeof t<`u`))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&typeof n.raws.before<`u`){let e=n.raws.before.split(`
18
+ `);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&&e.last.type===`decl`&&(t=e.raws.semicolon,typeof t<`u`))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}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 Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)}};t.exports=i,i.default=i}),m=o((e,t)=>{"use strict";var n=p();function r(e,t){new n(t).stringify(e)}t.exports=r,r.default=r}),h=o((e,t)=>{"use strict";t.exports.isClean=Symbol(`isClean`),t.exports.my=Symbol(`my`)}),g=o((e,t)=>{"use strict";var n=f(),r=p(),i=m(),{isClean:a,my:o}=h();function s(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r===`proxyCache`)continue;let i=e[r],a=typeof i;r===`parent`&&a===`object`?t&&(n[r]=t):r===`source`?n[r]=i:Array.isArray(i)?n[r]=i.map(e=>s(e,n)):(a===`object`&&i!==null&&(i=s(i)),n[r]=i)}return n}function c(e,t){if(t&&typeof t.offset<`u`)return t.offset;let n=1,r=1,i=0;for(let a=0;a<e.length;a++){if(r===t.line&&n===t.column){i=a;break}e[a]===`
19
+ `?(n=1,r+=1):n+=1}return i}var l=class{get proxyOf(){return this}constructor(e={}){for(let t in this.raws={},this[a]=!1,this[o]=!0,e)if(t===`nodes`){this.nodes=[];for(let n of e[t])typeof n.clone==`function`?this.append(n.clone()):this.append(n)}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=s(this);for(let n in e)t[n]=e[n];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:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new n(e)}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:t===`root`?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty()),!0}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let e=this;for(;e=e.parent;)e[a]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=`document`in this.source.input?this.source.input.document:this.source.input.css,r=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(e.word);r!==-1&&(t=this.positionInside(r))}return t}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r=`document`in this.source.input?this.source.input.document:this.source.input.css,i=c(r,this.source.start),a=i+e;for(let e=i;e<a;e++)r[e]===`
20
+ `?(t=1,n+=1):t+=1;return{column:t,line:n,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t=`document`in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset==`number`?this.source.end.offset:c(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);i!==-1&&(n=this.positionInside(i),r=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:c(t,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:c(t,e.end)}:typeof e.endIndex==`number`?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line,offset:n.offset+1}),{end:r,start:n}}raw(e,t){return new r().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,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!==`document`;)e=e.parent;return e}toJSON(e,t){let n={},r=t==null;t||=new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||e===`parent`||e===`proxyCache`)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map(e=>typeof e==`object`&&e.toJSON?e.toJSON(null,t):e);else if(typeof r==`object`&&r.toJSON)n[e]=r.toJSON(null,t);else if(e===`source`){if(r==null)continue;let a=t.get(r.input);a??(a=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:a,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}toProxy(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t=``;return e(this,e=>{t+=e}),t}warn(e,t,n={}){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}};t.exports=l,l.default=l}),_=o((e,t)=>{"use strict";var n=g(),r=class extends n{constructor(e){super(e),this.type=`comment`}};t.exports=r,r.default=r}),v=o((e,t)=>{"use strict";var n=g(),r=class extends n{get variable(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}constructor(e){e&&typeof e.value<`u`&&typeof e.value!=`string`&&(e={...e,value:String(e.value)}),super(e),this.type=`decl`}};t.exports=r,r.default=r}),y=o((e,t)=>{"use strict";var n=_(),r=v(),i=g(),{isClean:a,my:o}=h(),s,c,l,u;function d(e){return e.map(e=>(e.nodes&&=d(e.nodes),delete e.source,e))}function f(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}var p=class e extends i{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 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=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?(...n)=>e[t](...n.map(e=>typeof e==`function`?(t,n)=>e(t.toProxy(),n):e)):t===`every`||t===`some`?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):t===`root`?()=>e.root().toProxy():t===`nodes`?e.nodes.map(e=>e.toProxy()):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty()),!0}}}index(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of r)this.proxyOf.nodes.splice(n+1,0,e);let i;for(let e in this.indexes)i=this.indexes[e],n<i&&(this.indexes[e]=i+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0?`prepend`:!1,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);let a;for(let e in this.indexes)a=this.indexes[e],n<=a&&(this.indexes[e]=a+i.length);return this.markDirty(),this}normalize(t,i){if(typeof t==`string`)t=d(c(t).nodes);else if(typeof t>`u`)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type===`root`&&this.type!==`document`){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>`u`)throw Error(`Value field is missed in node creation`);typeof t.value!=`string`&&(t.value=String(t.value)),t=[new r(t)]}else if(t.selector||t.selectors)t=[new u(t)];else if(t.name)t=[new s(t)];else if(t.text)t=[new n(t)];else throw Error(`Unknown node type in node creation`);return t.map(t=>(t[o]||e.rebuild(t),t=t.proxyOf,t.parent&&t.parent.removeChild(t),t[a]&&f(t),t.raws||={},typeof t.raws.before>`u`&&i&&typeof i.raws.before<`u`&&(t.raws.before=i.raws.before.replace(/\S/g,``)),t.parent=this.proxyOf,t))}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){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`atrule`)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if(t.type===`comment`)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`decl`)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`rule`)return t(e,n)}))}};p.registerParse=e=>{c=e},p.registerRule=e=>{u=e},p.registerAtRule=e=>{s=e},p.registerRoot=e=>{l=e},t.exports=p,p.default=p,p.rebuild=e=>{e.type===`atrule`?Object.setPrototypeOf(e,s.prototype):e.type===`rule`?Object.setPrototypeOf(e,u.prototype):e.type===`decl`?Object.setPrototypeOf(e,r.prototype):e.type===`comment`?Object.setPrototypeOf(e,n.prototype):e.type===`root`&&Object.setPrototypeOf(e,l.prototype),e[o]=!0,e.nodes&&e.nodes.forEach(e=>{p.rebuild(e)})}}),b=o((e,t)=>{var n=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,r=(e,t=21)=>(n=t)=>{let r=``,i=n|0;for(;i--;)r+=e[Math.random()*e.length|0];return r},i=(e=21)=>{let t=``,r=e|0;for(;r--;)t+=n[Math.random()*64|0];return t};t.exports={nanoid:i,customAlphabet:r}}),x=o(()=>{}),S=o((e,t)=>{t.exports=class{}}),C=o((e,t)=>{"use strict";var{nanoid:n}=b(),{isAbsolute:r,resolve:i}={},{SourceMapConsumer:a,SourceMapGenerator:o}=x(),{fileURLToPath:s,pathToFileURL:c}={},l=f(),u=S(),p=d(),m=Symbol(`lineToIndexCache`),h=!!(a&&o),g=!!(i&&r);function _(e){if(e[m])return e[m];let t=e.css.split(`
21
+ `),n=Array(t.length),r=0;for(let e=0,i=t.length;e<i;e++)n[e]=r,r+=t[e].length+1;return e[m]=n,n}var v=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e>`u`||typeof e==`object`&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===`￾`?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!g||/^\w+:\/\//.test(t.from)||r(t.from)?this.file=t.from:this.file=i(t.from)),g&&h){let e=new u(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 `+n(6)+`>`),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,a,o,s,u;if(t&&typeof t==`object`){let e=t,r=n;if(typeof e.offset==`number`){s=e.offset;let r=this.fromOffset(s);t=r.line,n=r.col}else t=e.line,n=e.column,s=this.fromLineAndColumn(t,n);if(typeof r.offset==`number`){o=r.offset;let e=this.fromOffset(o);a=e.line,i=e.col}else a=r.line,i=r.column,o=this.fromLineAndColumn(r.line,r.column)}else if(n)s=this.fromLineAndColumn(t,n);else{s=t;let e=this.fromOffset(s);t=e.line,n=e.col}let d=this.origin(t,n,a,i);return u=d?new l(e,d.endLine===void 0?d.line:{column:d.column,line:d.line},d.endLine===void 0?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,r.plugin):new l(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:i,line:a},this.css,this.file,r.plugin),u.input={column:n,endColumn:i,endLine:a,endOffset:o,line:t,offset:s,source:this.css},this.file&&(c&&(u.input.url=c(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return _(this)[e-1]+t-1}fromOffset(e){let t=_(this),n=t[t.length-1],r=0;if(e>=n)r=t.length-1;else{let n=t.length-2,i;for(;r<n;)if(i=r+(n-r>>1),e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||`.`,e)}origin(e,t,n,i){if(!this.map)return!1;let a=this.map.consumer(),o=a.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof n==`number`&&(l=a.originalPositionFor({column:i,line:n}));let u;u=r(o.source)?c(o.source):new URL(o.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:u.toString()};if(u.protocol===`file:`)if(s)d.file=s(u);else throw Error(`file: protocol is not available in this PostCSS build`);let f=a.sourceContentFor(o.source);return f&&(d.source=f),d}toJSON(){let e={};for(let t of[`hasBOM`,`css`,`file`,`id`])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};t.exports=v,v.default=v,p&&p.registerInput&&p.registerInput(v)}),w=o((e,t)=>{"use strict";var n=y(),r=class extends n{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)}};t.exports=r,r.default=r,n.registerAtRule(r)}),T=o((e,t)=>{"use strict";var n=y(),r,i,a=class extends n{constructor(e){super(e),this.type=`root`,this.nodes||=[]}normalize(e,t,n){let r=super.normalize(e);if(t){if(n===`prepend`)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 r)e.raws.before=t.raws.before}return r}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a,n.registerRoot(a)}),E=o((e,t)=>{"use strict";var n={comma(e){return n.split(e,[`,`],!0)},space(e){let t=[` `,`
22
+ `,` `];return n.split(e,t)},split(e,t,n){let r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1;for(let n of e)l?l=!1:n===`\\`?l=!0:s?n===c&&(s=!1):n===`"`||n===`'`?(s=!0,c=n):n===`(`?o+=1:n===`)`?o>0&&--o:o===0&&t.includes(n)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=n;return(n||i!==``)&&r.push(i.trim()),r}};t.exports=n,n.default=n}),D=o((e,t)=>{"use strict";var n=y(),r=E(),i=class extends n{get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}constructor(e){super(e),this.type=`rule`,this.nodes||=[]}};t.exports=i,i.default=i,n.registerRule(i)}),O=o((e,t)=>{"use strict";var n=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,a=/[\da-f]/i;t.exports=function(e,t={}){let o=e.css.valueOf(),s=t.ignoreErrors,c,l,u,d,f,p,m,h,g,_,v=o.length,y=0,b=[],x=[];function S(){return y}function C(t){throw e.error(`Unclosed `+t,y)}function w(){return x.length===0&&y>=v}function T(e){if(x.length)return x.pop();if(y>=v)return;let t=e?e.ignoreUnclosed:!1;switch(c=o.charCodeAt(y),c){case 10:case 32:case 9:case 13:case 12:d=y;do d+=1,c=o.charCodeAt(d);while(c===32||c===10||c===9||c===13||c===12);p=[`space`,o.slice(y,d)],y=d-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(c);p=[e,e,y];break}case 40:if(_=b.length?b.pop()[1]:``,g=o.charCodeAt(y+1),_===`url`&&g!==39&&g!==34&&g!==32&&g!==10&&g!==9&&g!==12&&g!==13){d=y;do{if(m=!1,d=o.indexOf(`)`,d+1),d===-1)if(s||t){d=y;break}else C(`bracket`);for(h=d;o.charCodeAt(h-1)===92;)--h,m=!m}while(m);p=[`brackets`,o.slice(y,d+1),y,d],y=d}else d=o.indexOf(`)`,y+1),l=o.slice(y,d+1),d===-1||i.test(l)?p=[`(`,`(`,y]:(p=[`brackets`,l,y,d],y=d);break;case 39:case 34:f=c===39?`'`:`"`,d=y;do{if(m=!1,d=o.indexOf(f,d+1),d===-1)if(s||t){d=y+1;break}else C(`string`);for(h=d;o.charCodeAt(h-1)===92;)--h,m=!m}while(m);p=[`string`,o.slice(y,d+1),y,d],y=d;break;case 64:n.lastIndex=y+1,n.test(o),d=n.lastIndex===0?o.length-1:n.lastIndex-2,p=[`at-word`,o.slice(y,d+1),y,d],y=d;break;case 92:for(d=y,u=!0;o.charCodeAt(d+1)===92;)d+=1,u=!u;if(c=o.charCodeAt(d+1),u&&c!==47&&c!==32&&c!==10&&c!==9&&c!==13&&c!==12&&(d+=1,a.test(o.charAt(d)))){for(;a.test(o.charAt(d+1));)d+=1;o.charCodeAt(d+1)===32&&(d+=1)}p=[`word`,o.slice(y,d+1),y,d],y=d;break;default:c===47&&o.charCodeAt(y+1)===42?(d=o.indexOf(`*/`,y+2)+1,d===0&&(s||t?d=o.length:C(`comment`)),p=[`comment`,o.slice(y,d+1),y,d],y=d):(r.lastIndex=y+1,r.test(o),d=r.lastIndex===0?o.length-1:r.lastIndex-2,p=[`word`,o.slice(y,d+1),y,d],b.push(p),y=d);break}return y++,p}function E(e){x.push(e)}return{back:E,endOfFile:w,nextToken:T,position:S}}}),k=o((e,t)=>{"use strict";var n=w(),r=_(),i=v(),a=T(),o=D(),s=O(),c={empty:!0,space:!0};function l(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}var u=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new n;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,a,o=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r===`(`||r===`[`?l.push(r===`(`?`)`:`]`):r===`{`&&l.length>0?l.push(`}`):r===l[l.length-1]&&l.pop(),l.length===0)if(r===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r===`{`){s=!0;break}else if(r===`}`){if(c.length>0){for(a=c.length-1,i=c[a];i&&i[0]===`space`;)i=c[--a];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else c.push(e);else c.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(t.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(t,`params`,c),o&&(e=c[c.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),s&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,r;for(let i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}colon(e){let t=0,n,r,i;for(let[a,o]of e.entries()){if(r=o,i=r[0],i===`(`&&(t+=1),i===`)`&&--t,t===0&&i===`:`)if(!n)this.doubleColon(r);else{if(n[0]===`word`&&n[1]===`progid`)continue;return a}n=r}return!1}comment(e){let t=new r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text=``,t.raws.left=n,t.raws.right=``;else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=s(this.input)}decl(e,t){let n=new i;this.init(n,e[0][2]);let r=e[e.length-1];for(r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||l(e)),n.source.end.offset++;e[0][0]!==`word`;)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop=``;e.length;){let t=e[0][0];if(t===`:`||t===`space`||t===`comment`)break;n.prop+=e.shift()[1]}n.raws.between=``;let a;for(;e.length;)if(a=e.shift(),a[0]===`:`){n.raws.between+=a[1];break}else a[0]===`word`&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1];(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],s;for(;e.length&&(s=e[0][0],!(s!==`space`&&s!==`comment`));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(a=e[t],a[1].toLowerCase()===`!important`){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r,r!==` !important`&&(n.raws.important=r);break}else if(a[1].toLowerCase()===`important`){let r=e.slice(0),i=``;for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().startsWith(`!`)&&t!==`space`)break;i=r.pop()[1]+i}i.trim().startsWith(`!`)&&(n.important=!0,n.raws.important=i,e=r)}if(a[0]!==`space`&&a[0]!==`comment`)break}e.some(e=>e[0]!==`space`&&e[0]!==`comment`)&&(n.raws.between+=o.map(e=>e[1]).join(``),o=[]),this.raw(n,`value`,o.concat(e),t),n.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 o;this.init(t,e[2]),t.selector=``,t.raws.between=``,this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.spaces=``,this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type===`rule`&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=``,t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces=``,e.type!==`comment`&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;for(;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0)if(n===`;`)if(r){this.decl(s,o);return}else break;else if(n===`{`){this.rule(s);return}else if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}else n===`:`&&(r=!0);else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],!(c!==`space`&&c!==`comment`));)this.tokenizer.back(s.pop());this.decl(s,o)}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);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,a,o=n.length,s=``,l=!0,u,d;for(let e=0;e<o;e+=1)i=n[e],a=i[0],a===`space`&&e===o-1&&!r?l=!1:a===`comment`?(d=n[e-1]?n[e-1][0]:`empty`,u=n[e+1]?n[e+1][0]:`empty`,!c[d]&&!c[u]?s.slice(-1)===`,`?l=!1:s+=i[1]:l=!1):s+=i[1];if(!l){let r=n.reduce((e,t)=>e+t[1],``);e.raws[t]={raw:r,value:s}}e[t]=s}rule(e){e.pop();let t=new o;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t}spacesAndCommentsFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],!(t!==`space`&&t!==`comment`));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n=``;for(;e.length&&(t=e[0][0],!(t!==`space`&&t!==`comment`));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n=``;for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}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,t){throw this.input.error(`At-rule without name`,{offset:t[2]},{offset:t[2]+t[1].length})}};t.exports=u}),A=o((e,t)=>{"use strict";var n=y(),r=C(),i=k();function a(e,t){let n=new r(e,t),a=new i(n);try{a.parse()}catch(e){throw e}return a.root}t.exports=a,a.default=a,n.registerParse(a)}),ee=o((e,t)=>{var n=O(),r=C();t.exports={isInlineComment(e){if(e[0]===`word`&&e[1].slice(0,2)===`//`){let t=e,i=[],a,o;for(;e;){if(/\r?\n/.test(e[1])){if(/['"].*\r?\n/.test(e[1])){i.push(e[1].substring(0,e[1].indexOf(`
23
+ `))),o=e[1].substring(e[1].indexOf(`
24
+ `));let t=this.input.css.valueOf().substring(this.tokenizer.position());o+=t,a=e[3]+t.length-o.length}else this.tokenizer.back(e);break}i.push(e[1]),a=e[2],e=this.tokenizer.nextToken({ignoreUnclosed:!0})}let s=[`comment`,i.join(``),t[2],a];return this.inlineComment(s),o&&(this.input=new r(o),this.tokenizer=n(this.input)),!0}else if(e[1]===`/`){let n=this.tokenizer.nextToken({ignoreUnclosed:!0});if(n[0]===`comment`&&/^\/\*/.test(n[1]))return n[0]=`word`,n[1]=n[1].slice(1),e[1]=`//`,this.tokenizer.back(n),t.exports.isInlineComment.bind(this)(e)}return!1}}}),j=o((e,t)=>{t.exports={interpolation(e){let t=[e,this.tokenizer.nextToken()],n=[`word`,`}`];if(t[0][1].length>1||t[1][0]!==`{`)return this.tokenizer.back(t[1]),!1;for(e=this.tokenizer.nextToken();e&&n.includes(e[0]);)t.push(e),e=this.tokenizer.nextToken();let r=t.map(e=>e[1]),[i]=t,a=t.pop(),o=[`word`,r.join(``),i[2],a[2]];return this.tokenizer.back(e),this.tokenizer.back(o),!0}}}),te=o((e,t)=>{var n=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,r=/\.[0-9]/,i=e=>{let[,t]=e,[i]=t;return(i===`.`||i===`#`)&&n.test(t)===!1&&r.test(t)===!1};t.exports={isMixinToken:i}}),ne=o((e,t)=>{var n=O(),r=/^url\((.+)\)/;t.exports=e=>{let{name:t,params:i=``}=e;if(t===`import`&&i.length){e.import=!0;let t=n({css:i});for(e.filename=i.replace(r,`$1`);!t.endOfFile();){let[n,r]=t.nextToken();if(n===`word`&&r===`url`)return;if(n===`brackets`){e.options=r,e.filename=i.replace(r,``).trim();break}}}}}),re=o((e,t)=>{var n=/:$/,r=/^:(\s+)?/;t.exports=e=>{let{name:t,params:i=``}=e;if(e.name.slice(-1)===`:`){if(n.test(t)){let[r]=t.match(n);e.name=t.replace(r,``),e.raws.afterName=r+(e.raws.afterName||``),e.variable=!0,e.value=e.params}if(r.test(i)){let[t]=i.match(r);e.value=i.replace(t,``),e.raws.afterName=(e.raws.afterName||``)+t,e.variable=!0}}}}),M=o((e,t)=>{var n=_(),r=k(),{isInlineComment:i}=ee(),{interpolation:a}=j(),{isMixinToken:o}=te(),s=ne(),c=re(),l=/(!\s*important)$/i;t.exports=class extends r{constructor(...e){super(...e),this.lastNode=null}atrule(e){a.bind(this)(e)||(super.atrule(e),s(this.lastNode),c(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let t=e.findIndex(e=>e[0]===`(`),n=e.reverse().find(e=>e[0]===`)`),r=e.reverse().indexOf(n),i=e.splice(t,r).map(e=>e[1]).join(``);for(let t of e.reverse())this.tokenizer.back(t);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=i}init(e,t,n){super.init(e,t,n),this.lastNode=e}inlineComment(e){let t=new n,r=e[1].slice(2);if(this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.inline=!0,t.raws.begin=`//`,/^\s*$/.test(r))t.text=``,t.raws.left=r,t.raws.right=``;else{let e=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,t.raws.left,t.text,t.raws.right]=e}}mixin(e){let[t]=e,n=t[1].slice(0,1),r=e.findIndex(e=>e[0]===`brackets`),i=e.findIndex(e=>e[0]===`(`),a=``;if((r<0||r>3)&&i>0){let t=e.reduce((e,t,n)=>t[0]===`)`?n:e),n=e.slice(i,t+i).map(e=>e[1]).join(``),[r]=e.slice(i),a=[r[2],r[3]],[o]=e.slice(t,t+1),s=[o[2],o[3]],c=[`brackets`,n].concat(a,s),l=e.slice(0,i),u=e.slice(t+1);e=l,e.push(c),e=e.concat(u)}let o=[];for(let t of e)if((t[1]===`!`||o.length)&&o.push(t),t[1]===`important`)break;if(o.length){let[t]=o,n=e.indexOf(t),r=o[o.length-1],i=[t[2],t[3]],a=[r[4],r[5]],s=[`word`,o.map(e=>e[1]).join(``)].concat(i,a);e.splice(n,o.length,s)}let s=e.findIndex(e=>l.test(e[1]));s>0&&([,a]=e[s],e.splice(s,1));for(let t of e.reverse())this.tokenizer.back(t);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=n,a&&(this.lastNode.important=!0,this.lastNode.raws.important=a)}other(e){i.bind(this)(e)||super.other(e)}rule(e){let t=e[e.length-1],n=e[e.length-2];if(n[0]===`at-word`&&t[0]===`{`&&(this.tokenizer.back(t),a.bind(this)(n))){let t=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([t]);for(let t of e.reverse())this.tokenizer.back(t);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[t]=e;if(e[0][1]===`each`&&e[1][0]===`(`){this.each(e);return}if(o(t)){this.mixin(e);return}super.unknownWord(e)}}}),N=o((e,t)=>{var n=p();t.exports=class extends n{atrule(e,t){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,t);return}let n=`${e.function?``:e.raws.identifier||`@`}${e.name}`,r=e.params?this.rawValue(e,`params`):``,i=e.raws.important||``;if(e.variable&&(r=e.value),typeof e.raws.afterName<`u`?n+=e.raws.afterName:r&&(n+=` `),e.nodes)this.block(e,n+r+i);else{let a=(e.raws.between||``)+i+(t?`;`:``);this.builder(n+r+a,e)}}comment(e){if(e.inline){let t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`//${t}${e.text}${n}`,e)}else super.comment(e)}}}),ie=o((e,t)=>{var n=C(),r=M(),i=N();t.exports={parse(e,t){let i=new n(e,t),a=new r(i);return a.parse(),a.root.walk(e=>{let t=i.css.lastIndexOf(e.source.input.css);if(t===0)return;if(t+e.source.input.css.length!==i.css.length)throw Error(`Invalid state detected in postcss-less`);let n=t+e.source.start.offset,r=i.fromOffset(t+e.source.start.offset);if(e.source.start={offset:n,line:r.line,column:r.col},e.source.end){let n=t+e.source.end.offset,r=i.fromOffset(t+e.source.end.offset);e.source.end={offset:n,line:r.line,column:r.col}}}),a.root},stringify(e,t){new i(t).stringify(e)},nodeToString(e){let n=``;return t.exports.stringify(e,e=>{n+=e}),n}}}),ae=o((e,t)=>{"use strict";var n=y(),r,i,a=class extends n{constructor(e){super({type:`document`,...e}),this.nodes||=[]}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a}),P=o((e,t)=>{"use strict";var n=w(),r=_(),i=v(),a=C(),o=S(),s=T(),c=D();function l(e,t){if(Array.isArray(e))return e.map(e=>l(e));let{inputs:u,...d}=e;if(u){t=[];for(let e of u){let n={...e,__proto__:a.prototype};n.map&&={...n.map,__proto__:o.prototype},t.push(n)}}if(d.nodes&&=e.nodes.map(e=>l(e,t)),d.source){let{inputId:e,...n}=d.source;d.source=n,e!=null&&(d.source.input=t[e])}if(d.type===`root`)return new s(d);if(d.type===`decl`)return new i(d);if(d.type===`rule`)return new c(d);if(d.type===`comment`)return new r(d);if(d.type===`atrule`)return new n(d);throw Error(`Unknown node type: `+e.type)}t.exports=l,l.default=l}),F=o((e,t)=>{t.exports=class{generate(){}}}),I=o((e,t)=>{"use strict";var n=class{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.plugin?this.plugin+`: `+this.text:this.text}};t.exports=n,n.default=n}),oe=o((e,t)=>{"use strict";var n=I(),r=class{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=``,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 n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}};t.exports=r,r.default=r}),se=o((e,t)=>{"use strict";var n={};t.exports=function(e){n[e]||(n[e]=!0,typeof console<`u`&&console.warn&&console.warn(e))}}),ce=o((e,t)=>{"use strict";var n=y(),r=ae(),i=F(),a=A(),o=oe(),s=T(),c=m(),{isClean:l,my:u}=h();se();var d={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},f={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},p={Once:!0,postcssPlugin:!0,prepare:!0},g=0;function _(e){return typeof e==`object`&&typeof e.then==`function`}function v(e){let t=!1,n=d[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,g,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,g,n+`Exit`]:[n,n+`Exit`]}function b(e){let t;return t=e.type===`document`?[`Document`,g,`DocumentExit`]:e.type===`root`?[`Root`,g,`RootExit`]:v(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function x(e){return e[l]=!1,e.nodes&&e.nodes.forEach(e=>x(e)),e}var S={},C=class e{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(t,r,i){this.stringified=!1,this.processed=!1;let s;if(typeof r==`object`&&r&&(r.type===`root`||r.type===`document`))s=x(r);else if(r instanceof e||r instanceof o)s=x(r.root),r.map&&(typeof i.map>`u`&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=a;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{s=e(r,i)}catch(e){this.processed=!0,this.error=e}s&&!s[u]&&n.rebuild(s)}this.result=new o(t,s,i),this.helpers={...S,postcss:S,result:this.result},this.plugins=this.processor.plugins.map(e=>typeof e==`object`&&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.runAsync(),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error(`Use process(css).then(cb) to work with async plugins`)}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!f[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[n])if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}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],n=this.runOnRoot(t);if(_(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];){e[l]=!0;let t=[b(e)];for(;t.length>0;){let e=this.visitTick(t);if(_(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type===`document`){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==`object`&&e.Once){if(this.result.root.type===`document`){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return _(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e==`function`)return e(this.result.root,this.result)}catch(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 n=new i(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(_(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];)e[l]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type===`document`)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(_(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){let r=t.iterator,i;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[l]){i[l]=!0,e.push(b(i));return}t.iterator=0,delete n.indexes[r]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===g){n.nodes&&n.nodes.length&&(n[l]=!0,t.iterator=n.getIterator());return}else if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[l]=!0;let t=v(e);for(let n of t)if(n===g)e.nodes&&e.each(e=>{e[l]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}};C.registerPostcss=e=>{S=e},t.exports=C,C.default=C,s.registerLazyResult(C),r.registerLazyResult(C)}),le=o((e,t)=>{"use strict";var n=F(),r=A(),i=oe(),a=m();se();var o=class{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=r;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`}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let o,s=a;this.result=new i(this._processor,o,this._opts),this.result.css=t;let c=this;Object.defineProperty(this.result,`root`,{get(){return c.root}});let l=new n(s,o,this._opts,t);if(l.isMap()){let[e,t]=l.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else l.clearAnnotation(),this.result.css=l.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[]}};t.exports=o,o.default=o}),ue=o((e,t)=>{"use strict";var n=ae(),r=ce(),i=le(),a=T(),o=class{constructor(e=[]){this.version=`8.5.6`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(!(typeof n==`object`&&(n.parse||n.stringify)))throw Error(n+` 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 r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=o,o.default=o,a.registerProcessor(o),n.registerProcessor(o)}),de=o((e,t)=>{"use strict";var n=w(),r=_(),i=y(),a=f(),o=v(),s=ae(),c=P(),l=C(),u=ce(),d=E(),p=g(),h=A(),b=ue(),x=oe(),S=T(),O=D(),k=m(),ee=I();function j(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new b(e)}j.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
25
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new b().version,i}let i;return Object.defineProperty(r,`postcss`,{get(){return i||=r(),i}}),r.process=function(e,t,n){return j([r(n)]).process(e,t)},r},j.stringify=k,j.parse=h,j.fromJSON=c,j.list=d,j.comment=e=>new r(e),j.atRule=e=>new n(e),j.decl=e=>new o(e),j.rule=e=>new O(e),j.root=e=>new S(e),j.document=e=>new s(e),j.CssSyntaxError=a,j.Declaration=o,j.Container=i,j.Processor=b,j.Document=s,j.Comment=r,j.Warning=ee,j.AtRule=n,j.Result=x,j.Input=l,j.Rule=O,j.Root=S,j.Node=p,u.registerPostcss(j),t.exports=j,j.default=j}),fe=o((e,t)=>{var{Container:n}=de(),r=class extends n{constructor(e){super(e),this.type=`decl`,this.isNested=!0,this.nodes||=[]}};t.exports=r}),pe=o((e,t)=>{"use strict";var n=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,a=/[\da-f]/i,o=/[\n\f\r]/g;t.exports=function(e,t={}){let s=e.css.valueOf(),c=t.ignoreErrors,l,u,d,f,p,m,h,g,_,v=s.length,y=0,b=[],x=[],S;function C(){return y}function w(t){throw e.error(`Unclosed `+t,y)}function T(){return x.length===0&&y>=v}function E(){let e=1,t=!1,n=!1;for(;e>0;)u+=1,s.length<=u&&w(`interpolation`),l=s.charCodeAt(u),g=s.charCodeAt(u+1),t?!n&&l===t?(t=!1,n=!1):l===92?n=!n:n&&=!1:l===39||l===34?t=l:l===125?--e:l===35&&g===123&&(e+=1)}function D(e){if(x.length)return x.pop();if(y>=v)return;let t=e?e.ignoreUnclosed:!1;switch(l=s.charCodeAt(y),l){case 10:case 32:case 9:case 13:case 12:u=y;do u+=1,l=s.charCodeAt(u);while(l===32||l===10||l===9||l===13||l===12);_=[`space`,s.slice(y,u)],y=u-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(l);_=[e,e,y];break}case 44:_=[`word`,`,`,y,y+1];break;case 40:if(h=b.length?b.pop()[1]:``,g=s.charCodeAt(y+1),h===`url`&&g!==39&&g!==34){for(S=1,m=!1,u=y+1;u<=s.length-1;){if(g=s.charCodeAt(u),g===92)m=!m;else if(g===40)S+=1;else if(g===41&&(--S,S===0))break;u+=1}f=s.slice(y,u+1),_=[`brackets`,f,y,u],y=u}else u=s.indexOf(`)`,y+1),f=s.slice(y,u+1),u===-1||i.test(f)?_=[`(`,`(`,y]:(_=[`brackets`,f,y,u],y=u);break;case 39:case 34:for(d=l,u=y,m=!1;u<v&&(u++,u===v&&w(`string`),l=s.charCodeAt(u),g=s.charCodeAt(u+1),!(!m&&l===d));)l===92?m=!m:m?m=!1:l===35&&g===123&&E();_=[`string`,s.slice(y,u+1),y,u],y=u;break;case 64:n.lastIndex=y+1,n.test(s),u=n.lastIndex===0?s.length-1:n.lastIndex-2,_=[`at-word`,s.slice(y,u+1),y,u],y=u;break;case 92:for(u=y,p=!0;s.charCodeAt(u+1)===92;)u+=1,p=!p;if(l=s.charCodeAt(u+1),p&&l!==47&&l!==32&&l!==10&&l!==9&&l!==13&&l!==12&&(u+=1,a.test(s.charAt(u)))){for(;a.test(s.charAt(u+1));)u+=1;s.charCodeAt(u+1)===32&&(u+=1)}_=[`word`,s.slice(y,u+1),y,u],y=u;break;default:g=s.charCodeAt(y+1),l===35&&g===123?(u=y,E(),f=s.slice(y,u+1),_=[`word`,f,y,u],y=u):l===47&&g===42?(u=s.indexOf(`*/`,y+2)+1,u===0&&(c||t?u=s.length:w(`comment`)),_=[`comment`,s.slice(y,u+1),y,u],y=u):l===47&&g===47?(o.lastIndex=y+1,o.test(s),u=o.lastIndex===0?s.length-1:o.lastIndex-2,f=s.slice(y,u+1),_=[`comment`,f,y,u,`inline`],y=u):(r.lastIndex=y+1,r.test(s),u=r.lastIndex===0?s.length-1:r.lastIndex-2,_=[`word`,s.slice(y,u+1),y,u],b.push(_),y=u);break}return y++,_}function O(e){x.push(e)}return{back:O,endOfFile:T,nextToken:D,position:C}}}),me=o((e,t)=>{var{Comment:n}=de(),r=k(),i=fe(),a=pe(),o=class extends r{atrule(e){let t=e[1],n=e;for(;!this.tokenizer.endOfFile();){let e=this.tokenizer.nextToken();if(e[0]===`word`&&e[2]===n[3]+1)t+=e[1],n=e;else{this.tokenizer.back(e);break}}super.atrule([`at-word`,t,e[2],n[3]])}comment(e){if(e[4]===`inline`){let t=new n;this.init(t,e[2]),t.raws.inline=!0;let r=this.input.fromOffset(e[3]);t.source.end={column:r.col,line:r.line,offset:e[3]+1};let i=e[1].slice(2);if(/^\s*$/.test(i))t.text=``,t.raws.left=i,t.raws.right=``;else{let e=i.match(/^(\s*)([^]*\S)(\s*)$/),n=e[2].replace(/(\*\/|\/\*)/g,`*//*`);t.text=n,t.raws.left=e[1],t.raws.right=e[3],t.raws.text=e[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=a(this.input)}raw(e,t,n,r){if(super.raw(e,t,n,r),e.raws[t]){let r=e.raws[t].raw;e.raws[t].raw=n.reduce((e,t)=>{if(t[0]===`comment`&&t[4]===`inline`){let n=t[1].slice(2).replace(/(\*\/|\/\*)/g,`*//*`);return e+`/*`+n+`*/`}else return e+t[1]},``),r!==e.raws[t].raw&&(e.raws[t].scss=r)}}rule(e){let t=!1,n=0,r=``;for(let i of e)if(t)i[0]!==`comment`&&i[0]!==`{`&&(r+=i[1]);else{if(i[0]===`space`&&i[1].includes(`
26
+ `))break;i[0]===`(`?n+=1:i[0]===`)`?--n:n===0&&i[0]===`:`&&(t=!0)}if(!t||r.trim()===``||/^[#:A-Za-z-]/.test(r))super.rule(e);else{e.pop();let t=new i;this.init(t,e[0][2]);let n;for(let t=e.length-1;t>=0;t--)if(e[t][0]!==`space`){n=e[t];break}if(n[3]){let e=this.input.fromOffset(n[3]);t.source.end={column:e.col,line:e.line,offset:n[3]+1}}else{let e=this.input.fromOffset(n[2]);t.source.end={column:e.col,line:e.line,offset:n[2]+1}}for(;e[0][0]!==`word`;)t.raws.before+=e.shift()[1];if(e[0][2]){let n=this.input.fromOffset(e[0][2]);t.source.start={column:n.col,line:n.line,offset:e[0][2]}}for(t.prop=``;e.length;){let n=e[0][0];if(n===`:`||n===`space`||n===`comment`)break;t.prop+=e.shift()[1]}t.raws.between=``;let r;for(;e.length;)if(r=e.shift(),r[0]===`:`){t.raws.between+=r[1];break}else t.raws.between+=r[1];(t.prop[0]===`_`||t.prop[0]===`*`)&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let n=e.length-1;n>0;n--){if(r=e[n],r[1]===`!important`){t.important=!0;let r=this.stringFrom(e,n);r=this.spacesFromEnd(e)+r,r!==` !important`&&(t.raws.important=r);break}else if(r[1]===`important`){let r=e.slice(0),i=``;for(let e=n;e>0;e--){let t=r[e][0];if(i.trim().indexOf(`!`)===0&&t!==`space`)break;i=r.pop()[1]+i}i.trim().indexOf(`!`)===0&&(t.important=!0,t.raws.important=i,e=r)}if(r[0]!==`space`&&r[0]!==`comment`)break}this.raw(t,`value`,e),t.value.includes(`:`)&&this.checkMissedSemicolon(e),this.current=t}}};t.exports=o}),he=o((e,t)=>{var{Input:n}=de(),r=me();t.exports=function(e,t){let i=new n(e,t),a=new r(i);return a.parse(),a.root}}),ge=o(e=>{"use strict";Object.defineProperty(e,`__esModule`,{value:!0});function t(e){this.after=e.after,this.before=e.before,this.type=e.type,this.value=e.value,this.sourceIndex=e.sourceIndex}e.default=t}),_e=o(e=>{"use strict";Object.defineProperty(e,`__esModule`,{value:!0});var t=ge(),n=r(t);function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=this;this.constructor(e),this.nodes=e.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:``),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:``),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(e){e.parent=t})}i.prototype=Object.create(n.default.prototype),i.constructor=n.default,i.prototype.walk=function(e,t){for(var n=typeof e==`string`||e instanceof RegExp,r=n?t:e,i=typeof e==`string`?new RegExp(e):e,a=0;a<this.nodes.length;a++){var o=this.nodes[a],s=n?i.test(o.type):!0;if(s&&r&&r(o,a,this.nodes)===!1||o.nodes&&o.walk(e,t)===!1)return!1}return!0},i.prototype.each=function(){for(var e=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],t=0;t<this.nodes.length;t++){var n=this.nodes[t];if(e(n,t,this.nodes)===!1)return!1}return!0},e.default=i}),ve=o(e=>{"use strict";Object.defineProperty(e,`__esModule`,{value:!0}),e.parseMediaFeature=o,e.parseMediaQuery=s,e.parseMediaList=c;var t=ge(),n=a(t),r=_e(),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=arguments.length<=1||arguments[1]===void 0?0:arguments[1],n=[{mode:`normal`,character:null}],r=[],i=0,a=``,o=null,s=null,c=t,l=e;e[0]===`(`&&e[e.length-1]===`)`&&(l=e.substring(1,e.length-1),c++);for(var u=0;u<l.length;u++){var d=l[u];if((d===`'`||d===`"`)&&(n[i].isCalculationEnabled===!0?(n.push({mode:`string`,isCalculationEnabled:!1,character:d}),i++):n[i].mode===`string`&&n[i].character===d&&l[u-1]!==`\\`&&(n.pop(),i--)),d===`{`?(n.push({mode:`interpolation`,isCalculationEnabled:!0}),i++):d===`}`&&(n.pop(),i--),n[i].mode===`normal`&&d===`:`){var f=l.substring(u+1);s={type:`value`,before:/^(\s*)/.exec(f)[1],after:/(\s*)$/.exec(f)[1],value:f.trim()},s.sourceIndex=s.before.length+u+1+c,o={type:`colon`,sourceIndex:u+c,after:s.before,value:`:`};break}a+=d}return a={type:`media-feature`,before:/^(\s*)/.exec(a)[1],after:/(\s*)$/.exec(a)[1],value:a.trim()},a.sourceIndex=a.before.length+c,r.push(a),o!==null&&(o.before=a.after,r.push(o)),s!==null&&r.push(s),r}function s(e){var t=arguments.length<=1||arguments[1]===void 0?0:arguments[1],r=[],a=0,s=!1,c=void 0;function l(){return{before:``,after:``,value:``}}c=l();for(var u=0;u<e.length;u++){var d=e[u];s?(c.value+=d,(d===`{`||d===`(`)&&a++,(d===`)`||d===`}`)&&a--):d.search(/\s/)===-1?(d===`(`&&(c.type=`media-feature-expression`,a++),c.value=d,c.sourceIndex=t+u,s=!0):c.before+=d,s&&a===0&&(d===`)`||u===e.length-1||e[u+1].search(/\s/)!==-1)&&([`not`,`only`,`and`].indexOf(c.value)!==-1&&(c.type=`keyword`),c.type===`media-feature-expression`&&(c.nodes=o(c.value,c.sourceIndex)),r.push(Array.isArray(c.nodes)?new i.default(c):new n.default(c)),c=l(),s=!1)}for(var f=0;f<r.length;f++)if(c=r[f],f>0&&(r[f-1].after=c.before),c.type===void 0){if(f>0){if(r[f-1].type===`media-feature-expression`){c.type=`keyword`;continue}if(r[f-1].value===`not`||r[f-1].value===`only`){c.type=`media-type`;continue}if(r[f-1].value===`and`){c.type=`media-feature-expression`;continue}r[f-1].type===`media-type`&&(r[f+1]?c.type=r[f+1].type===`media-feature-expression`?`keyword`:`media-feature-expression`:c.type=`media-feature-expression`)}if(f===0){if(!r[f+1]){c.type=`media-type`;continue}if(r[f+1]&&(r[f+1].type===`media-feature-expression`||r[f+1].type===`keyword`)){c.type=`media-type`;continue}if(r[f+2]){if(r[f+2].type===`media-feature-expression`){c.type=`media-type`,r[f+1].type=`keyword`;continue}if(r[f+2].type===`keyword`){c.type=`keyword`,r[f+1].type=`media-type`;continue}}if(r[f+3]&&r[f+3].type===`media-feature-expression`){c.type=`keyword`,r[f+1].type=`media-type`,r[f+2].type=`keyword`;continue}}}return r}function c(e){var t=[],r=0,a=0,o=/^(\s*)url\s*\(/.exec(e);if(o!==null){for(var c=o[0].length,l=1;l>0;){var u=e[c];u===`(`&&l++,u===`)`&&l--,c++}t.unshift(new n.default({type:`url`,value:e.substring(0,c).trim(),sourceIndex:o[1].length,before:o[1],after:/^(\s*)/.exec(e.substring(c))[1]})),r=c}for(var d=r;d<e.length;d++){var f=e[d];if(f===`(`&&a++,f===`)`&&a--,a===0&&f===`,`){var p=e.substring(r,d),m=/^(\s*)/.exec(p)[1];t.push(new i.default({type:`media-query`,value:p.trim(),sourceIndex:r+m.length,nodes:s(p,r),before:m,after:/(\s*)$/.exec(p)[1]})),r=d+1}}var h=e.substring(r),g=/^(\s*)/.exec(h)[1];return t.push(new i.default({type:`media-query`,value:h.trim(),sourceIndex:r+g.length,nodes:s(h,r),before:g,after:/(\s*)$/.exec(h)[1]})),t}}),ye=o(e=>{"use strict";Object.defineProperty(e,`__esModule`,{value:!0}),e.default=a;var t=_e(),n=i(t),r=ve();function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return new n.default({nodes:(0,r.parseMediaList)(e),type:`media-query-list`,value:e.trim()})}}),be=o((e,t)=>{t.exports=function(e,t){if(t=typeof t==`number`?t:1/0,!t)return Array.isArray(e)?e.map(function(e){return e}):e;return n(e,1);function n(e,r){return e.reduce(function(e,i){return Array.isArray(i)&&r<t?e.concat(n(i,r+1)):e.concat(i)},[])}}}),xe=o((e,t)=>{t.exports=function(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}}),Se=o((e,t)=>{"use strict";function n(e,t){for(var n=1,r=e.length,i=e[0],a=e[0],o=1;o<r;++o)if(a=i,i=e[o],t(i,a)){if(o===n){n++;continue}e[n++]=i}return e.length=n,e}function r(e){for(var t=1,n=e.length,r=e[0],i=e[0],a=1;a<n;++a,i=r)if(i=r,r=e[a],r!==i){if(a===t){t++;continue}e[t++]=r}return e.length=t,e}function i(e,t,i){return e.length===0?e:t?(i||e.sort(t),n(e,t)):(i||e.sort(),r(e))}t.exports=i}),Ce=o((e,t)=>{"use strict";e.__esModule=!0;var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e};function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var i=function e(t,r){if((typeof t>`u`?`undefined`:n(t))!==`object`)return t;var i=new t.constructor;for(var a in t)if(t.hasOwnProperty(a)){var o=t[a],s=typeof o>`u`?`undefined`:n(o);a===`parent`&&s===`object`?r&&(i[a]=r):o instanceof Array?i[a]=o.map(function(t){return e(t,i)}):i[a]=e(o,i)}return i},a=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var n in r(this,e),t)this[n]=t[n];var i=t.spaces;i=i===void 0?{}:i;var a=i.before,o=a===void 0?``:a,s=i.after,c=s===void 0?``:s;this.spaces={before:o,after:c}}return e.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.prototype.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},e.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},e.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},e.prototype.clone=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=i(this);for(var n in e)t[n]=e[n];return t},e.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join(``)},e}();e.default=a,t.exports=e.default}),L=o(e=>{"use strict";e.__esModule=!0,e.TAG=`tag`,e.STRING=`string`,e.SELECTOR=`selector`,e.ROOT=`root`,e.PSEUDO=`pseudo`,e.NESTING=`nesting`,e.ID=`id`,e.COMMENT=`comment`,e.COMBINATOR=`combinator`,e.CLASS=`class`,e.ATTRIBUTE=`attribute`,e.UNIVERSAL=`universal`}),we=o((e,t)=>{"use strict";e.__esModule=!0;var n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=Ce(),i=c(r),a=L(),o=s(a);function s(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function u(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function d(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){d(t,e);function t(n){l(this,t);var r=u(this,e.call(this,n));return r.nodes||=[],r}return t.prototype.append=function(e){return e.parent=this,this.nodes.push(e),this},t.prototype.prepend=function(e){return e.parent=this,this.nodes.unshift(e),this},t.prototype.at=function(e){return this.nodes[e]},t.prototype.index=function(e){return typeof e==`number`?e:this.nodes.indexOf(e)},t.prototype.removeChild=function(e){e=this.index(e),this.at(e).parent=void 0,this.nodes.splice(e,1);var t=void 0;for(var n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this},t.prototype.removeAll=function(){for(var e=this.nodes,t=Array.isArray(e),n=0,e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var i=r;i.parent=void 0}return this.nodes=[],this},t.prototype.empty=function(){return this.removeAll()},t.prototype.insertAfter=function(e,t){var n=this.index(e);this.nodes.splice(n+1,0,t);var r=void 0;for(var i in this.indexes)r=this.indexes[i],n<=r&&(this.indexes[i]=r+this.nodes.length);return this},t.prototype.insertBefore=function(e,t){var n=this.index(e);this.nodes.splice(n,0,t);var r=void 0;for(var i in this.indexes)r=this.indexes[i],n<=r&&(this.indexes[i]=r+this.nodes.length);return this},t.prototype.each=function(e){this.lastEach||=0,this.indexes||={},this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var n=void 0,r=void 0;this.indexes[t]<this.length&&(n=this.indexes[t],r=e(this.at(n),n),r!==!1);)this.indexes[t]+=1;if(delete this.indexes[t],r===!1)return!1}},t.prototype.walk=function(e){return this.each(function(t,n){var r=e(t,n);if(r!==!1&&t.length&&(r=t.walk(e)),r===!1)return!1})},t.prototype.walkAttributes=function(e){var t=this;return this.walk(function(n){if(n.type===o.ATTRIBUTE)return e.call(t,n)})},t.prototype.walkClasses=function(e){var t=this;return this.walk(function(n){if(n.type===o.CLASS)return e.call(t,n)})},t.prototype.walkCombinators=function(e){var t=this;return this.walk(function(n){if(n.type===o.COMBINATOR)return e.call(t,n)})},t.prototype.walkComments=function(e){var t=this;return this.walk(function(n){if(n.type===o.COMMENT)return e.call(t,n)})},t.prototype.walkIds=function(e){var t=this;return this.walk(function(n){if(n.type===o.ID)return e.call(t,n)})},t.prototype.walkNesting=function(e){var t=this;return this.walk(function(n){if(n.type===o.NESTING)return e.call(t,n)})},t.prototype.walkPseudos=function(e){var t=this;return this.walk(function(n){if(n.type===o.PSEUDO)return e.call(t,n)})},t.prototype.walkTags=function(e){var t=this;return this.walk(function(n){if(n.type===o.TAG)return e.call(t,n)})},t.prototype.walkUniversals=function(e){var t=this;return this.walk(function(n){if(n.type===o.UNIVERSAL)return e.call(t,n)})},t.prototype.split=function(e){var t=this,n=[];return this.reduce(function(r,i,a){var o=e.call(t,i);return n.push(i),o?(r.push(n),n=[]):a===t.length-1&&r.push(n),r},[])},t.prototype.map=function(e){return this.nodes.map(e)},t.prototype.reduce=function(e,t){return this.nodes.reduce(e,t)},t.prototype.every=function(e){return this.nodes.every(e)},t.prototype.some=function(e){return this.nodes.some(e)},t.prototype.filter=function(e){return this.nodes.filter(e)},t.prototype.sort=function(e){return this.nodes.sort(e)},t.prototype.toString=function(){return this.map(String).join(``)},n(t,[{key:`first`,get:function(){return this.at(0)}},{key:`last`,get:function(){return this.at(this.length-1)}},{key:`length`,get:function(){return this.nodes.length}}]),t}(i.default);e.default=f,t.exports=e.default}),Te=o((e,t)=>{"use strict";e.__esModule=!0;var n=we(),r=a(n),i=L();function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){c(t,e);function t(n){o(this,t);var r=s(this,e.call(this,n));return r.type=i.ROOT,r}return t.prototype.toString=function(){var e=this.reduce(function(e,t){var n=String(t);return n?e+n+`,`:``},``).slice(0,-1);return this.trailingComma?e+`,`:e},t}(r.default);e.default=l,t.exports=e.default}),Ee=o((e,t)=>{"use strict";e.__esModule=!0;var n=we(),r=a(n),i=L();function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){c(t,e);function t(n){o(this,t);var r=s(this,e.call(this,n));return r.type=i.SELECTOR,r}return t}(r.default);e.default=l,t.exports=e.default}),De=o((e,t)=>{"use strict";e.__esModule=!0;var n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=Ce(),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){c(t,e);function t(){return o(this,t),s(this,e.apply(this,arguments))}return t.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join(``)},n(t,[{key:`ns`,get:function(){var e=this.namespace;return e?(typeof e==`string`?e:``)+`|`:``}}]),t}(i.default);e.default=l,t.exports=e.default}),Oe=o((e,t)=>{"use strict";e.__esModule=!0;var n=De(),r=a(n),i=L();function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){c(t,e);function t(n){o(this,t);var r=s(this,e.call(this,n));return r.type=i.CLASS,r}return t.prototype.toString=function(){return[this.spaces.before,this.ns,`.`+this.value,this.spaces.after].join(``)},t}(r.default);e.default=l,t.exports=e.default}),ke=o((e,t)=>{"use strict";e.__esModule=!0;var n=Ce(),r=a(n),i=L();function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){c(t,e);function t(n){o(this,t);var r=s(this,e.call(this,n));return r.type=i.COMMENT,r}return t}(r.default);e.default=l,t.exports=e.default}),Ae=o((e,t)=>{"use strict";e.__esModule=!0;var n=De(),r=a(n),i=L();function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){c(t,e);function t(n){o(this,t);var r=s(this,e.call(this,n));return r.type=i.ID,r}return t.prototype.toString=function(){return[this.spaces.before,this.ns,`#`+this.value,this.spaces.after].join(``)},t}(r.default);e.default=l,t.exports=e.default}),je=o((e,t)=>{"use strict";e.__esModule=!0;var n=De(),r=a(n),i=L();function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){c(t,e);function t(n){o(this,t);var r=s(this,e.call(this,n));return r.type=i.TAG,r}return t}(r.default);e.default=l,t.exports=e.default}),Me=o((e,t)=>{"use strict";e.__esModule=!0;var n=Ce(),r=a(n),i=L();function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){c(t,e);function t(n){o(this,t);var r=s(this,e.call(this,n));return r.type=i.STRING,r}return t}(r.default);e.default=l,t.exports=e.default}),Ne=o((e,t)=>{"use strict";e.__esModule=!0;var n=we(),r=a(n),i=L();function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){c(t,e);function t(n){o(this,t);var r=s(this,e.call(this,n));return r.type=i.PSEUDO,r}return t.prototype.toString=function(){var e=this.length?`(`+this.map(String).join(`,`)+`)`:``;return[this.spaces.before,String(this.value),e,this.spaces.after].join(``)},t}(r.default);e.default=l,t.exports=e.default}),Pe=o((e,t)=>{"use strict";e.__esModule=!0;var n=De(),r=a(n),i=L();function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){c(t,e);function t(n){o(this,t);var r=s(this,e.call(this,n));return r.type=i.ATTRIBUTE,r.raws={},r}return t.prototype.toString=function(){var e=[this.spaces.before,`[`,this.ns,this.attribute];return this.operator&&e.push(this.operator),this.value&&e.push(this.value),this.raws.insensitive?e.push(this.raws.insensitive):this.insensitive&&e.push(` i`),e.push(`]`),e.concat(this.spaces.after).join(``)},t}(r.default);e.default=l,t.exports=e.default}),Fe=o((e,t)=>{"use strict";e.__esModule=!0;var n=De(),r=a(n),i=L();function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){c(t,e);function t(n){o(this,t);var r=s(this,e.call(this,n));return r.type=i.UNIVERSAL,r.value=`*`,r}return t}(r.default);e.default=l,t.exports=e.default}),Ie=o((e,t)=>{"use strict";e.__esModule=!0;var n=Ce(),r=a(n),i=L();function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){c(t,e);function t(n){o(this,t);var r=s(this,e.call(this,n));return r.type=i.COMBINATOR,r}return t}(r.default);e.default=l,t.exports=e.default}),Le=o((e,t)=>{"use strict";e.__esModule=!0;var n=Ce(),r=a(n),i=L();function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){c(t,e);function t(n){o(this,t);var r=s(this,e.call(this,n));return r.type=i.NESTING,r.value=`&`,r}return t}(r.default);e.default=l,t.exports=e.default}),Re=o((e,t)=>{"use strict";e.__esModule=!0,e.default=n;function n(e){return e.sort(function(e,t){return e-t})}t.exports=e.default}),ze=o((e,t)=>{"use strict";e.__esModule=!0,e.default=D;var n=39,r=34,i=92,a=47,o=10,s=32,c=12,l=9,u=13,d=43,f=62,p=126,m=124,h=44,g=40,_=41,v=91,y=93,b=59,x=42,S=58,C=38,w=64,T=/[ \n\t\r\{\(\)'"\\;/]/g,E=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function D(e){for(var t=[],D=e.css.valueOf(),O=void 0,k=void 0,A=void 0,ee=void 0,j=void 0,te=void 0,ne=void 0,re=void 0,M=void 0,N=void 0,ie=void 0,ae=D.length,P=-1,F=1,I=0,oe=function(t,n){if(e.safe)D+=n,k=D.length-1;else throw e.error(`Unclosed `+t,F,I-P,I)};I<ae;){switch(O=D.charCodeAt(I),O===o&&(P=I,F+=1),O){case o:case s:case l:case u:case c:k=I;do k+=1,O=D.charCodeAt(k),O===o&&(P=k,F+=1);while(O===s||O===o||O===l||O===u||O===c);t.push([`space`,D.slice(I,k),F,I-P,I]),I=k-1;break;case d:case f:case p:case m:k=I;do k+=1,O=D.charCodeAt(k);while(O===d||O===f||O===p||O===m);t.push([`combinator`,D.slice(I,k),F,I-P,I]),I=k-1;break;case x:t.push([`*`,`*`,F,I-P,I]);break;case C:t.push([`&`,`&`,F,I-P,I]);break;case h:t.push([`,`,`,`,F,I-P,I]);break;case v:t.push([`[`,`[`,F,I-P,I]);break;case y:t.push([`]`,`]`,F,I-P,I]);break;case S:t.push([`:`,`:`,F,I-P,I]);break;case b:t.push([`;`,`;`,F,I-P,I]);break;case g:t.push([`(`,`(`,F,I-P,I]);break;case _:t.push([`)`,`)`,F,I-P,I]);break;case n:case r:A=O===n?`'`:`"`,k=I;do for(N=!1,k=D.indexOf(A,k+1),k===-1&&oe(`quote`,A),ie=k;D.charCodeAt(ie-1)===i;)--ie,N=!N;while(N);t.push([`string`,D.slice(I,k+1),F,I-P,F,k-P,I]),I=k;break;case w:T.lastIndex=I+1,T.test(D),k=T.lastIndex===0?D.length-1:T.lastIndex-2,t.push([`at-word`,D.slice(I,k+1),F,I-P,F,k-P,I]),I=k;break;case i:for(k=I,ne=!0;D.charCodeAt(k+1)===i;)k+=1,ne=!ne;O=D.charCodeAt(k+1),ne&&O!==a&&O!==s&&O!==o&&O!==l&&O!==u&&O!==c&&(k+=1),t.push([`word`,D.slice(I,k+1),F,I-P,F,k-P,I]),I=k;break;default:O===a&&D.charCodeAt(I+1)===x?(k=D.indexOf(`*/`,I+2)+1,k===0&&oe(`comment`,`*/`),te=D.slice(I,k+1),ee=te.split(`
27
+ `),j=ee.length-1,j>0?(re=F+j,M=k-ee[j].length):(re=F,M=P),t.push([`comment`,te,F,I-P,re,k-M,I]),P=M,F=re,I=k):(E.lastIndex=I+1,E.test(D),k=E.lastIndex===0?D.length-1:E.lastIndex-2,t.push([`word`,D.slice(I,k+1),F,I-P,F,k-P,I]),I=k);break}I++}return t}t.exports=e.default}),Be=o((e,t)=>{"use strict";e.__esModule=!0;var n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=be(),i=P(r),a=xe(),o=P(a),s=Se(),c=P(s),l=Te(),u=P(l),d=Ee(),f=P(d),p=Oe(),m=P(p),h=ke(),g=P(h),_=Ae(),v=P(_),y=je(),b=P(y),x=Me(),S=P(x),C=Ne(),w=P(C),T=Pe(),E=P(T),D=Fe(),O=P(D),k=Ie(),A=P(k),ee=Le(),j=P(ee),te=Re(),ne=P(te),re=ze(),M=P(re),N=L(),ie=ae(N);function ae(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function P(e){return e&&e.__esModule?e:{default:e}}function F(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var I=function(){function e(t){F(this,e),this.input=t,this.lossy=t.options.lossless===!1,this.position=0,this.root=new u.default;var n=new f.default;return this.root.append(n),this.current=n,this.lossy?this.tokens=(0,M.default)({safe:t.safe,css:t.css.trim()}):this.tokens=(0,M.default)(t),this.loop()}return e.prototype.attribute=function(){var e=``,t=void 0,n=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!==`]`;)e+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~e.indexOf(`]`)&&this.error(`Expected a closing square bracket.`);var r=e.split(/((?:[*~^$|]?=))([^]*)/),i=r[0].split(/(\|)/g),a={operator:r[1],value:r[2],source:{start:{line:n[2],column:n[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:n[4]};if(i.length>1?(i[0]===``&&(i[0]=!0),a.attribute=this.parseValue(i[2]),a.namespace=this.parseNamespace(i[0])):a.attribute=this.parseValue(r[0]),t=new E.default(a),r[2]){var o=r[2].split(/(\s+i\s*?)$/),s=o[0].trim();t.value=this.lossy?s:o[0],o[1]&&(t.insensitive=!0,this.lossy||(t.raws.insensitive=o[1])),t.quoted=s[0]===`'`||s[0]===`"`,t.raws.unquoted=t.quoted?s.slice(1,-1):s}this.newNode(t),this.position++},e.prototype.combinator=function(){if(this.currToken[1]===`|`)return this.namespace();for(var e=new A.default({value:``,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]===`space`||this.currToken[0]===`combinator`);)this.nextToken&&this.nextToken[0]===`combinator`?(e.spaces.before=this.parseSpace(this.currToken[1]),e.source.start.line=this.nextToken[2],e.source.start.column=this.nextToken[3],e.source.end.column=this.nextToken[3],e.source.end.line=this.nextToken[2],e.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]===`combinator`?e.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]===`combinator`?e.value=this.currToken[1]:this.currToken[0]===`space`&&(e.value=this.parseSpace(this.currToken[1],` `)),this.position++;return this.newNode(e)},e.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var e=new f.default;this.current.parent.append(e),this.current=e,this.position++},e.prototype.comment=function(){var e=new g.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(e),this.position++},e.prototype.error=function(e){throw new this.input.error(e)},e.prototype.missingBackslash=function(){return this.error(`Expected a backslash preceding the semicolon.`)},e.prototype.missingParenthesis=function(){return this.error(`Expected opening parenthesis.`)},e.prototype.missingSquareBracket=function(){return this.error(`Expected opening square bracket.`)},e.prototype.namespace=function(){var e=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]===`word`)return this.position++,this.word(e);if(this.nextToken[0]===`*`)return this.position++,this.universal(e)},e.prototype.nesting=function(){this.newNode(new j.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},e.prototype.parentheses=function(){var e=this.current.last;if(e&&e.type===ie.PSEUDO){var t=new f.default,n=this.current;e.append(t),this.current=t;var r=1;for(this.position++;this.position<this.tokens.length&&r;)this.currToken[0]===`(`&&r++,this.currToken[0]===`)`&&r--,r?this.parse():(t.parent.source.end.line=this.currToken[2],t.parent.source.end.column=this.currToken[3],this.position++);r&&this.error(`Expected closing parenthesis.`),this.current=n}else{var i=1;for(this.position++,e.value+=`(`;this.position<this.tokens.length&&i;)this.currToken[0]===`(`&&i++,this.currToken[0]===`)`&&i--,e.value+=this.parseParenthesisToken(this.currToken),this.position++;i&&this.error(`Expected closing parenthesis.`)}},e.prototype.pseudo=function(){for(var e=this,t=``,n=this.currToken;this.currToken&&this.currToken[0]===`:`;)t+=this.currToken[1],this.position++;if(!this.currToken)return this.error(`Expected pseudo-class or pseudo-element`);if(this.currToken[0]===`word`){var r=void 0;this.splitWord(!1,function(i,a){t+=i,r=new w.default({value:t,source:{start:{line:n[2],column:n[3]},end:{line:e.currToken[4],column:e.currToken[5]}},sourceIndex:n[4]}),e.newNode(r),a>1&&e.nextToken&&e.nextToken[0]===`(`&&e.error(`Misplaced parenthesis.`)})}else this.error(`Unexpected "`+this.currToken[0]+`" found.`)},e.prototype.space=function(){var e=this.currToken;this.position===0||this.prevToken[0]===`,`||this.prevToken[0]===`(`?(this.spaces=this.parseSpace(e[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===`,`||this.nextToken[0]===`)`?(this.current.last.spaces.after=this.parseSpace(e[1]),this.position++):this.combinator()},e.prototype.string=function(){var e=this.currToken;this.newNode(new S.default({value:this.currToken[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++},e.prototype.universal=function(e){var t=this.nextToken;if(t&&t[1]===`|`)return this.position++,this.namespace();this.newNode(new O.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),e),this.position++},e.prototype.splitWord=function(e,t){for(var n=this,r=this.nextToken,a=this.currToken[1];r&&r[0]===`word`;){this.position++;var s=this.currToken[1];if(a+=s,s.lastIndexOf(`\\`)===s.length-1){var l=this.nextToken;l&&l[0]===`space`&&(a+=this.parseSpace(l[1],` `),this.position++)}r=this.nextToken}var u=(0,o.default)(a,`.`),d=(0,o.default)(a,`#`),f=(0,o.default)(a,`#{`);f.length&&(d=d.filter(function(e){return!~f.indexOf(e)}));var p=(0,ne.default)((0,c.default)((0,i.default)([[0],u,d])));p.forEach(function(r,i){var o=p[i+1]||a.length,s=a.slice(r,o);if(i===0&&t)return t.call(n,s,p.length);var c=void 0;c=~u.indexOf(r)?new m.default({value:s.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+r},end:{line:n.currToken[4],column:n.currToken[3]+(o-1)}},sourceIndex:n.currToken[6]+p[i]}):~d.indexOf(r)?new v.default({value:s.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+r},end:{line:n.currToken[4],column:n.currToken[3]+(o-1)}},sourceIndex:n.currToken[6]+p[i]}):new b.default({value:s,source:{start:{line:n.currToken[2],column:n.currToken[3]+r},end:{line:n.currToken[4],column:n.currToken[3]+(o-1)}},sourceIndex:n.currToken[6]+p[i]}),n.newNode(c,e)}),this.position++},e.prototype.word=function(e){var t=this.nextToken;return t&&t[1]===`|`?(this.position++,this.namespace()):this.splitWord(e)},e.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},e.prototype.parse=function(e){switch(this.currToken[0]){case`space`:this.space();break;case`comment`:this.comment();break;case`(`:this.parentheses();break;case`)`:e&&this.missingParenthesis();break;case`[`:this.attribute();break;case`]`:this.missingSquareBracket();break;case`at-word`:case`word`:this.word();break;case`:`:this.pseudo();break;case`;`:this.missingBackslash();break;case`,`:this.comma();break;case`*`:this.universal();break;case`&`:this.nesting();break;case`combinator`:this.combinator();break;case`string`:this.string();break}},e.prototype.parseNamespace=function(e){if(this.lossy&&typeof e==`string`){var t=e.trim();return t.length?t:!0}return e},e.prototype.parseSpace=function(e,t){return this.lossy?t||``:e},e.prototype.parseValue=function(e){return this.lossy&&e&&typeof e==`string`?e.trim():e},e.prototype.parseParenthesisToken=function(e){return this.lossy?e[0]===`space`?this.parseSpace(e[1],` `):this.parseValue(e[1]):e[1]},e.prototype.newNode=function(e,t){return t&&(e.namespace=this.parseNamespace(t)),this.spaces&&(e.spaces.before=this.spaces,this.spaces=``),this.current.append(e)},n(e,[{key:`currToken`,get:function(){return this.tokens[this.position]}},{key:`nextToken`,get:function(){return this.tokens[this.position+1]}},{key:`prevToken`,get:function(){return this.tokens[this.position-1]}}]),e}();e.default=I,t.exports=e.default}),Ve=o((e,t)=>{"use strict";e.__esModule=!0;var n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=Be(),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var s=function(){function e(t){return o(this,e),this.func=t||function(){},this}return e.prototype.process=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new i.default({css:e,error:function(e){throw Error(e)},options:t});return this.res=n,this.func(n),this},n(e,[{key:`result`,get:function(){return String(this.res)}}]),e}();e.default=s,t.exports=e.default}),R=o((e,t)=>{"use strict";var n=function(e,t){let r=new e.constructor;for(let i in e){if(!e.hasOwnProperty(i))continue;let a=e[i],o=typeof a;i===`parent`&&o===`object`?t&&(r[i]=t):i===`source`?r[i]=a:a instanceof Array?r[i]=a.map(e=>n(e,r)):i!==`before`&&i!==`after`&&i!==`between`&&i!==`semicolon`&&(o===`object`&&a!==null&&(a=n(a)),r[i]=a)}return r};t.exports=class{constructor(e){for(let t in e||={},this.raws={before:``,after:``},e)this[t]=e[t]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join(``)}clone(e){e||={};let t=n(this);for(let n in e)t[n]=e[n];return t}cloneBefore(e){e||={};let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e){e||={};let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let t of e)this.parent.insertBefore(this,t);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let t in this){if(!this.hasOwnProperty(t)||t===`parent`)continue;let n=this[t];n instanceof Array?e[t]=n.map(e=>typeof e==`object`&&e.toJSON?e.toJSON():e):typeof n==`object`&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let t=this.toString(),n=this.source.start.column,r=this.source.start.line;for(let i=0;i<e;i++)t[i]===`
28
+ `?(n=1,r+=1):n+=1;return{line:r,column:n}}positionBy(e){let t=this.source.start;if(Object(e).index)t=this.positionInside(e.index);else if(Object(e).word){let n=this.toString().indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}}}),z=o((e,t)=>{"use strict";var n=R(),r=class extends n{constructor(e){super(e),this.nodes||=[]}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let t=this.lastEach,n,r;if(this.indexes[t]=0,this.nodes){for(;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],r=e(this.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}}walk(e){return this.each((t,n)=>{let r=e(t,n);return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkType(e,t){if(!e||!t)throw Error(`Parameters {type} and {callback} are required.`);let n=typeof e==`function`;return this.walk((r,i)=>{if(n&&r instanceof e||!n&&r.type===e)return t.call(this,r,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertAfter(e,t){let n=this.index(e),r;for(let e in this.nodes.splice(n+1,0,t),this.indexes)r=this.indexes[e],n<=r&&(this.indexes[e]=r+this.nodes.length);return this}insertBefore(e,t){let n=this.index(e),r;for(let e in this.nodes.splice(n,0,t),this.indexes)r=this.indexes[e],n<=r&&(this.indexes[e]=r+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e==`number`?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join(``);return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};r.registerWalker=e=>{let t=`walk`+e.name;t.lastIndexOf(`s`)!==t.length-1&&(t+=`s`),!r.prototype[t]&&(r.prototype[t]=function(t){return this.walkType(e,t)})},t.exports=r}),He=o((e,t)=>{"use strict";var n=z();t.exports=class extends n{constructor(e){super(e),this.type=`root`}}}),Ue=o((e,t)=>{"use strict";var n=z();t.exports=class extends n{constructor(e){super(e),this.type=`value`,this.unbalanced=0}}}),We=o((e,t)=>{"use strict";var n=z(),r=class extends n{constructor(e){super(e),this.type=`atword`}toString(){return this.quoted&&this.raws.quote,[this.raws.before,`@`,String.prototype.toString.call(this.value),this.raws.after].join(``)}};n.registerWalker(r),t.exports=r}),Ge=o((e,t)=>{"use strict";var n=z(),r=R(),i=class extends r{constructor(e){super(e),this.type=`colon`}};n.registerWalker(i),t.exports=i}),Ke=o((e,t)=>{"use strict";var n=z(),r=R(),i=class extends r{constructor(e){super(e),this.type=`comma`}};n.registerWalker(i),t.exports=i}),qe=o((e,t)=>{"use strict";var n=z(),r=R(),i=class extends r{constructor(e){super(e),this.type=`comment`,this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?`//`:`/*`,String(this.value),this.inline?``:`*/`,this.raws.after].join(``)}};n.registerWalker(i),t.exports=i}),Je=o((e,t)=>{"use strict";var n=z(),r=class extends n{constructor(e){super(e),this.type=`func`,this.unbalanced=-1}};n.registerWalker(r),t.exports=r}),Ye=o((e,t)=>{"use strict";var n=z(),r=R(),i=class extends r{constructor(e){super(e),this.type=`number`,this.unit=Object(e).unit||``}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join(``)}};n.registerWalker(i),t.exports=i}),Xe=o((e,t)=>{"use strict";var n=z(),r=R(),i=class extends r{constructor(e){super(e),this.type=`operator`}};n.registerWalker(i),t.exports=i}),Ze=o((e,t)=>{"use strict";var n=z(),r=R(),i=class extends r{constructor(e){super(e),this.type=`paren`,this.parenType=``}};n.registerWalker(i),t.exports=i}),Qe=o((e,t)=>{"use strict";var n=z(),r=R(),i=class extends r{constructor(e){super(e),this.type=`string`}toString(){let e=this.quoted?this.raws.quote:``;return[this.raws.before,e,this.value+``,e,this.raws.after].join(``)}};n.registerWalker(i),t.exports=i}),$e=o((e,t)=>{"use strict";var n=z(),r=R(),i=class extends r{constructor(e){super(e),this.type=`word`}};n.registerWalker(i),t.exports=i}),et=o((e,t)=>{"use strict";var n=z(),r=R(),i=class extends r{constructor(e){super(e),this.type=`unicode-range`}};n.registerWalker(i),t.exports=i}),tt=o((e,t)=>{"use strict";var n=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||`An error ocurred while tokzenizing.`,typeof Error.captureStackTrace==`function`?Error.captureStackTrace(this,this.constructor):this.stack=Error(e).stack}};t.exports=n}),nt=o((e,t)=>{"use strict";var n=/[ \n\t\r\{\(\)'"\\;,/]/g,r=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,i=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,a=/^[a-z0-9]/i,o=/^[a-f0-9?\-]/i,s=tt();t.exports=function(e,t){t||={};let c=[],l=e.valueOf(),u=l.length,d=-1,f=1,p=0,m=0,h=null,g,_,v,y,b,x,S,C,w,T,E,D;function O(e){let t=`Unclosed ${e} at line: ${f}, column: ${p-d}, token: ${p}`;throw new s(t)}for(;p<u;){switch(g=l.charCodeAt(p),g===10&&(d=p,f+=1),g){case 10:case 32:case 9:case 13:case 12:_=p;do _+=1,g=l.charCodeAt(_),g===10&&(d=_,f+=1);while(g===32||g===10||g===9||g===13||g===12);c.push([`space`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;break;case 58:_=p+1,c.push([`colon`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;break;case 44:_=p+1,c.push([`comma`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;break;case 123:c.push([`{`,`{`,f,p-d,f,_-d,p]);break;case 125:c.push([`}`,`}`,f,p-d,f,_-d,p]);break;case 40:m++,h=!h&&m===1&&c.length>0&&c[c.length-1][0]===`word`&&c[c.length-1][1]===`url`,c.push([`(`,`(`,f,p-d,f,_-d,p]);break;case 41:m--,h&&=m>0,c.push([`)`,`)`,f,p-d,f,_-d,p]);break;case 39:case 34:v=g===39?`'`:`"`,_=p;do for(T=!1,_=l.indexOf(v,_+1),_===-1&&O(`quote`,v),E=_;l.charCodeAt(E-1)===92;)--E,T=!T;while(T);c.push([`string`,l.slice(p,_+1),f,p-d,f,_-d,p]),p=_;break;case 64:n.lastIndex=p+1,n.test(l),_=n.lastIndex===0?l.length-1:n.lastIndex-2,c.push([`atword`,l.slice(p,_+1),f,p-d,f,_-d,p]),p=_;break;case 92:_=p,g=l.charCodeAt(_+1),S&&g!==47&&g!==32&&g!==10&&g!==9&&g!==13&&g!==12&&(_+=1),c.push([`word`,l.slice(p,_+1),f,p-d,f,_-d,p]),p=_;break;case 43:case 45:case 42:if(_=p+1,D=l.slice(p+1,_+1),l.slice(p-1,p),g===45&&D.charCodeAt(0)===45){_++,c.push([`word`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;break}c.push([`operator`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;break;default:if(g===47&&(l.charCodeAt(p+1)===42||t.loose&&!h&&l.charCodeAt(p+1)===47)){if(l.charCodeAt(p+1)===42)_=l.indexOf(`*/`,p+2)+1,_===0&&O(`comment`,`*/`);else{let e=l.indexOf(`
29
+ `,p+2);_=e===-1?u:e-1}x=l.slice(p,_+1),y=x.split(`
30
+ `),b=y.length-1,b>0?(C=f+b,w=_-y[b].length):(C=f,w=d),c.push([`comment`,x,f,p-d,C,_-w,p]),d=w,f=C,p=_}else if(g===35&&!a.test(l.slice(p+1,p+2)))_=p+1,c.push([`#`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;else if((g===117||g===85)&&l.charCodeAt(p+1)===43){_=p+2;do _+=1,g=l.charCodeAt(_);while(_<u&&o.test(l.slice(_,_+1)));c.push([`unicoderange`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1}else if(g===47)_=p+1,c.push([`operator`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;else{let e=r;if(g>=48&&g<=57&&(e=i),e.lastIndex=p+1,e.test(l),_=e.lastIndex===0?l.length-1:e.lastIndex-2,e===i||g===46){let e=l.charCodeAt(_),t=l.charCodeAt(_+1),n=l.charCodeAt(_+2);(e===101||e===69)&&(t===45||t===43)&&n>=48&&n<=57&&(i.lastIndex=_+2,i.test(l),_=i.lastIndex===0?l.length-1:i.lastIndex-2)}c.push([`word`,l.slice(p,_+1),f,p-d,f,_-d,p]),p=_}break}p++}return c}}),rt=o((e,t)=>{"use strict";var n=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||`An error ocurred while parsing.`,typeof Error.captureStackTrace==`function`?Error.captureStackTrace(this,this.constructor):this.stack=Error(e).stack}};t.exports=n}),it=o((e,t)=>{"use strict";var n=He(),r=Ue(),i=We(),a=Ge(),o=Ke(),s=qe(),c=Je(),l=Ye(),u=Xe(),d=Ze(),f=Qe(),p=$e(),m=et(),h=nt(),g=be(),_=xe(),v=Se(),y=rt();function b(e){return e.sort((e,t)=>e-t)}t.exports=class{constructor(e,t){let i={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},i,t),this.position=0,this.unbalanced=0,this.root=new n;let a=new r;this.root.append(a),this.current=a,this.tokens=h(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new a({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new o({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,t=this.currToken[1].replace(/\/\*|\*\//g,``),n;this.options.loose&&t.startsWith(`//`)&&(t=t.substring(2),e=!0),n=new s({value:t,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(n),this.position++}error(e,t){throw new y(e+` at line: ${t[2]}, column ${t[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces=``,this.root}operator(){let e=this.currToken[1],t;if(e===`+`||e===`-`){if(this.options.loose||this.position>0&&(this.current.type===`func`&&this.current.value===`calc`?(this.prevToken[0]!==`space`&&this.prevToken[0]!==`(`||this.nextToken[0]!==`space`&&this.nextToken[0]!==`word`||this.nextToken[0]===`word`&&this.current.last.type!==`operator`&&this.current.last.value!==`(`)&&this.error(`Syntax Error`,this.currToken):(this.nextToken[0]===`space`||this.nextToken[0]===`operator`||this.prevToken[0]===`operator`)&&this.error(`Syntax Error`,this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type===`operator`)&&this.nextToken[0]===`word`)return this.word()}else if(this.nextToken[0]===`word`)return this.word()}return t=new u({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(t)}parseTokens(){switch(this.currToken[0]){case`space`:this.space();break;case`colon`:this.colon();break;case`comma`:this.comma();break;case`comment`:this.comment();break;case`(`:this.parenOpen();break;case`)`:this.parenClose();break;case`atword`:case`word`:this.word();break;case`operator`:this.operator();break;case`string`:this.string();break;case`unicoderange`:this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,t=this.position+1,n=this.currToken,r;for(;t<this.tokens.length&&e;){let n=this.tokens[t];n[0]===`(`&&e++,n[0]===`)`&&e--,t++}if(e&&this.error(`Expected closing parenthesis`,n),r=this.current.last,r&&r.type===`func`&&r.unbalanced<0&&(r.unbalanced=0,this.current=r),this.current.unbalanced++,this.newNode(new d({value:n[1],source:{start:{line:n[2],column:n[3]},end:{line:n[4],column:n[5]}},sourceIndex:n[6]})),this.position++,this.current.type===`func`&&this.current.unbalanced&&this.current.value===`url`&&this.currToken[0]!==`string`&&this.currToken[0]!==`)`&&!this.options.loose){let e=this.nextToken,t=this.currToken[1],n={line:this.currToken[2],column:this.currToken[3]};for(;e&&e[0]!==`)`&&this.current.unbalanced;)this.position++,t+=this.currToken[1],e=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new p({value:t,source:{start:n,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let e=this.currToken;this.newNode(new d({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error(`Expected opening parenthesis`,e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===`,`||this.nextToken[0]===`)`?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new m({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,t=this.currToken[1],n=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,r=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,a,o;if(!r.test(t))for(;e&&e[0]===`word`;){this.position++;let n=this.currToken[1];t+=n,e=this.nextToken}a=_(t,`@`),o=b(v(g([[0],a]))),o.forEach((r,s)=>{let u=o[s+1]||t.length,d=t.slice(r,u),f;if(~a.indexOf(r))f=new i({value:d.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+r},end:{line:this.currToken[4],column:this.currToken[3]+(u-1)}},sourceIndex:this.currToken[6]+o[s]});else if(n.test(this.currToken[1])){let e=d.replace(n,``);f=new l({value:d.replace(e,``),source:{start:{line:this.currToken[2],column:this.currToken[3]+r},end:{line:this.currToken[4],column:this.currToken[3]+(u-1)}},sourceIndex:this.currToken[6]+o[s],unit:e})}else f=new(e&&e[0]===`(`?c:p)({value:d,source:{start:{line:this.currToken[2],column:this.currToken[3]+r},end:{line:this.currToken[4],column:this.currToken[3]+(u-1)}},sourceIndex:this.currToken[6]+o[s]}),f.type===`word`?(f.isHex=/^#(.+)/.test(d),f.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(d)):this.cache.push(this.current);this.newNode(f)}),this.position++}string(){let e=this.currToken,t=this.currToken[1],n=/^(\"|\')/,r=n.test(t),i=``,a;r&&(i=t.match(n)[0],t=t.slice(1,t.length-1)),a=new f({value:t,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:r}),a.raws.quote=i,this.newNode(a),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=``),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),at={};s(at,{languages:()=>Wi,options:()=>qi,parsers:()=>Ji,printers:()=>Ba});var ot=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},B=ot,st=`string`,ct=`array`,lt=`cursor`,ut=`indent`,dt=`align`,ft=`trim`,pt=`group`,mt=`fill`,ht=`if-break`,gt=`indent-if-break`,_t=`line-suffix`,vt=`line-suffix-boundary`,yt=`line`,bt=`label`,xt=`break-parent`,St=new Set([lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt]),Ct=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t==`string`?t[n<0?t.length+n:n]:t.at(n)},wt=Ct;function Tt(e){if(typeof e==`string`)return st;if(Array.isArray(e))return ct;if(!e)return;let{type:t}=e;if(St.has(t))return t}var Et=Tt,Dt=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function Ot(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
31
+ Expected it to be 'string' or 'object'.`;if(Et(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=Dt([...St].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
32
+ Expected it to be ${r}.`}var kt=class extends Error{name=`InvalidDocError`;constructor(e){super(Ot(e)),this.doc=e}},At=kt;function jt(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);let t=i(e);return n.set(e,t),t}function i(e){switch(Et(e)){case ct:return t(e.map(r));case mt:return t({...e,parts:e.parts.map(r)});case ht:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case pt:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case dt:case ut:case gt:case bt:case _t:return t({...e,contents:r(e.contents)});case st:case lt:case ft:case vt:case yt:case xt:return t(e);default:throw new At(e)}}}function Mt(e){return e.type===yt&&!e.hard?e.soft?``:` `:e.type===ht?e.flatContents:e}function Nt(e){return jt(e,Mt)}var Pt=()=>{},V=Pt,Ft=Pt,It=Pt;function H(e){return V(e),{type:ut,contents:e}}function Lt(e,t){return V(t),{type:dt,contents:t,n:e}}function U(e,t={}){return V(e),Ft(t.expandedStates,!0),{type:pt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Rt(e){return Lt({type:`root`},e)}function zt(e){return Lt(-1,e)}function Bt(e){return It(e),{type:mt,parts:e}}function Vt(e,t=``,n={}){return V(e),t!==``&&V(t),{type:ht,breakContents:e,flatContents:t,groupId:n.groupId}}function Ht(e){return V(e),{type:_t,contents:e}}var Ut={type:xt},Wt={type:yt,hard:!0},W={type:yt},G={type:yt,soft:!0},K=[Wt,Ut];function q(e,t){V(e),Ft(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function Gt(e){return Array.isArray(e)&&e.length>0}var Kt=Gt,qt=new Proxy(()=>{},{get:()=>qt}),Jt=qt,Yt=`'`,Xt=`"`;function Zt(e,t){let n=t===!0||t===Yt?Yt:Xt,r=n===Yt?Xt:Yt,i=0,a=0;for(let t of e)t===n?i++:t===r&&a++;return i>a?r:n}var Qt=Zt;function $t(e,t,n){let r=t===`"`?`'`:`"`,i=B(!1,e,/\\(.)|(["'])/gsu,(e,i,a)=>i===r?i:a===t?`\\`+a:a||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(i)?i:`\\`+i));return t+i+t}var en=$t;function tn(e,t){Jt.ok(/^(?<quote>["']).*\k<quote>$/su.test(e));let n=e.slice(1,-1),r=t.parser===`json`||t.parser===`jsonc`||t.parser===`json5`&&t.quoteProps===`preserve`&&!t.singleQuote?`"`:t.__isInHtmlAttribute?`'`:Qt(n,t.singleQuote);return e.charAt(0)===r?e:en(n,r,!1)}var nn=tn,rn=class extends Error{name=`UnexpectedNodeError`;constructor(e,t,n=`type`){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},an=rn;function on(e){return e?.type===`front-matter`}var sn=on,cn=new Set([`raw`,`raws`,`sourceIndex`,`source`,`before`,`after`,`trailingComma`,`spaces`]);function ln(e,t,n){if(sn(e)&&e.language===`yaml`&&delete t.value,e.type===`css-comment`&&n.type===`css-root`&&n.nodes.length>0&&((n.nodes[0]===e||sn(n.nodes[0])&&n.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/u.test(e.text))||n.type===`css-root`&&wt(!1,n.nodes,-1)===e))return null;if(e.type===`value-root`&&delete t.text,(e.type===`media-query`||e.type===`media-query-list`||e.type===`media-feature-expression`)&&delete t.value,e.type===`css-rule`&&delete t.params,(e.type===`media-feature`||e.type===`media-keyword`||e.type===`media-type`||e.type===`media-unknown`||e.type===`media-url`||e.type===`media-value`||e.type===`selector-attribute`||e.type===`selector-string`||e.type===`selector-class`||e.type===`selector-combinator`||e.type===`value-string`)&&e.value&&(t.value=un(e.value)),e.type===`selector-combinator`&&(t.value=B(!1,t.value,/\s+/gu,` `)),e.type===`media-feature`&&(t.value=B(!1,t.value,` `,``)),(e.type===`value-word`&&(e.isColor&&e.isHex||[`initial`,`inherit`,`unset`,`revert`].includes(e.value.toLowerCase()))||e.type===`media-feature`||e.type===`selector-root-invalid`||e.type===`selector-pseudo`)&&(t.value=t.value.toLowerCase()),e.type===`css-decl`&&(t.prop=e.prop.toLowerCase()),(e.type===`css-atrule`||e.type===`css-import`)&&(t.name=e.name.toLowerCase()),e.type===`value-number`&&(t.unit=e.unit.toLowerCase()),e.type===`value-unknown`&&(t.value=B(!1,t.value,/;$/gu,``)),e.type===`selector-attribute`&&(t.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace==`string`&&(t.namespace=e.namespace.trim()||!0),e.value&&(t.value=B(!1,t.value.trim(),/^["']|["']$/gu,``),delete t.quoted)),(e.type===`media-value`||e.type===`media-type`||e.type===`value-number`||e.type===`selector-root-invalid`||e.type===`selector-class`||e.type===`selector-combinator`||e.type===`selector-tag`)&&e.value&&(t.value=B(!1,t.value,/([\d+.e-]+)([a-z]*)/giu,(e,t,n)=>{let r=Number(t);return Number.isNaN(r)?e:r+n.toLowerCase()})),e.type===`selector-tag`){let e=t.value.toLowerCase();[`from`,`to`].includes(e)&&(t.value=e)}if(e.type===`css-atrule`&&e.name.toLowerCase()===`supports`&&delete t.value,e.type===`selector-unknown`&&delete t.value,e.type===`value-comma_group`){let n=e.groups.findIndex(e=>e.type===`value-number`&&e.unit===`...`);n!==-1&&(t.groups[n].unit=``,t.groups.splice(n+1,0,{type:`value-word`,value:`...`,isColor:!1,isHex:!1}))}if(e.type===`value-comma_group`&&e.groups.some(e=>e.type===`value-atword`&&e.value.endsWith(`[`)||e.type===`value-word`&&e.value.startsWith(`]`)))return{type:`value-atword`,value:e.groups.map(e=>e.value).join(``),group:{open:null,close:null,groups:[],type:`value-paren_group`}}}ln.ignoredProperties=cn;function un(e){return B(!1,B(!1,e,`'`,`"`),/\\([^\da-f])/giu,`$1`)}var dn=ln;async function fn(e,t){if(e.language===`yaml`){let n=e.value.trim(),r=n?await t(n,{parser:`yaml`}):``;return Rt([e.startDelimiter,e.explicitLanguage,K,r,r?K:``,e.endDelimiter])}}var pn=fn;function mn(e){let{node:t}=e;if(t.type===`front-matter`)return async e=>{let n=await pn(t,e);return n?[n,K]:void 0}}mn.getVisitorKeys=e=>e.type===`css-root`?[`frontMatter`]:[];var hn=mn,gn=null;function _n(e){if(gn!==null&&typeof gn.property){let e=gn;return gn=_n.prototype=null,e}return gn=_n.prototype=e??Object.create(null),new _n}var vn=10;for(let e=0;e<=vn;e++)_n();function yn(e){return _n(e)}function bn(e,t=`type`){yn(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var xn=bn,Sn={"front-matter":[],"css-root":[`frontMatter`,`nodes`],"css-comment":[],"css-rule":[`selector`,`nodes`],"css-decl":[`value`,`selector`,`nodes`],"css-atrule":[`selector`,`params`,`value`,`nodes`],"media-query-list":[`nodes`],"media-query":[`nodes`],"media-type":[],"media-feature-expression":[`nodes`],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":[`nodes`],"selector-selector":[`nodes`],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":[`nodes`],"selector-universal":[],"selector-pseudo":[`nodes`],"selector-nesting":[],"selector-unknown":[],"value-value":[`group`],"value-root":[`group`],"value-comment":[],"value-comma_group":[`groups`],"value-paren_group":[`open`,`groups`,`close`],"value-func":[`group`],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},Cn=Sn,wn=xn(Cn),Tn=wn;function En(e,t){let n=0;for(let r=0;r<e.line-1;++r)n=t.indexOf(`
33
+ `,n)+1;return n+e.column}var Dn=En;function On(e){return(t,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:a}=t,o=n;for(;o>=0&&o<a;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return o===-1||o===a?o:!1}}On(/\s/u);var kn=On(` `),An=On(`,; `),jn=On(/[^\n\r]/u);function Mn(e,t){let{value:n}=e;return n===`-`||n===`--`||n.charAt(0)!==`-`?t:t-(n.charAt(1)===`-`?2:1)}function Nn(e,t){var n,r,i;if(typeof(r=(n=e.source)?.start)?.offset==`number`)return e.source.start.offset;if(typeof e.sourceIndex==`number`)return e.type===`value-word`?Mn(e,e.sourceIndex):e.sourceIndex;if((i=e.source)!=null&&i.start)return Dn(e.source.start,t);throw Object.assign(Error(`Can not locate node.`),{node:e})}function Pn(e,t){var n,r;if(e.type===`css-comment`&&e.inline)return jn(t,e.source.startOffset);if(typeof(r=(n=e.source)?.end)?.offset==`number`)return e.source.end.offset;if(e.source){if(e.source.end){let n=Dn(e.source.end,t);return e.type===`value-word`?Mn(e,n):n}if(Kt(e.nodes))return Pn(wt(!1,e.nodes,-1),t)}return null}function Fn(e,t){for(let n in e.source&&(e.source.startOffset=Nn(e,t),e.source.endOffset=Pn(e,t)),e){let r=e[n];n===`source`||!r||typeof r!=`object`||(r.type===`value-root`||r.type===`value-unknown`?In(r,Ln(e),r.text||r.value):Fn(r,t))}}function In(e,t,n){for(let r in e.source&&(e.source.startOffset=Nn(e,n)+t,e.source.endOffset=Pn(e,n)+t),e){let i=e[r];r===`source`||!i||typeof i!=`object`||In(i,t,n)}}function Ln(e){var t;let n=e.source.startOffset;return typeof e.prop==`string`&&(n+=e.prop.length),e.type===`css-atrule`&&typeof e.name==`string`&&(n+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/u)[0].length),e.type!==`css-atrule`&&typeof(t=e.raws)?.between==`string`&&(n+=e.raws.between.length),n}function Rn(e){let t=`initial`,n=`initial`,r,i=!1,a=[];for(let o=0;o<e.length;o++){let s=e[o];switch(t){case`initial`:if(s===`'`){t=`single-quotes`;continue}if(s===`"`){t=`double-quotes`;continue}if((s===`u`||s===`U`)&&e.slice(o,o+4).toLowerCase()===`url(`){t=`url`,o+=3;continue}if(s===`*`&&e[o-1]===`/`){t=`comment-block`;continue}if(s===`/`&&e[o-1]===`/`){t=`comment-inline`,r=o-1;continue}continue;case`single-quotes`:if(s===`'`&&e[o-1]!==`\\`&&(t=n,n=`initial`),s===`
34
+ `||s===`\r`)return e;continue;case`double-quotes`:if(s===`"`&&e[o-1]!==`\\`&&(t=n,n=`initial`),s===`
35
+ `||s===`\r`)return e;continue;case`url`:if(s===`)`&&(t=`initial`),s===`
36
+ `||s===`\r`)return e;if(s===`'`){t=`single-quotes`,n=`url`;continue}if(s===`"`){t=`double-quotes`,n=`url`;continue}continue;case`comment-block`:s===`/`&&e[o-1]===`*`&&(t=`initial`);continue;case`comment-inline`:(s===`"`||s===`'`||s===`*`)&&(i=!0),(s===`
37
+ `||s===`\r`)&&(i&&a.push([r,o]),t=`initial`,i=!1);continue}}for(let[t,n]of a)e=e.slice(0,t)+B(!1,e.slice(t,n),/["'*]/gu,` `)+e.slice(n);return e}function J(e){var t;return(t=e.source)?.startOffset}function Y(e){var t;return(t=e.source)?.endOffset}var zn=/\*\/$/,Bn=/^\/\*\*?/,Vn=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Hn=/(^|\s+)\/\/([^\n\r]*)/g,Un=/^(\r?\n)+/,Wn=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Gn=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Kn=/(\r?\n|^) *\* ?/g,qn=[];function Jn(e){let t=e.match(Vn);return t?t[0].trimStart():``}function Yn(e){let t=e.match(Vn),n=t?.[0];return n==null?e:e.slice(n.length)}function Xn(e){let t=`
38
+ `;e=B(!1,e.replace(Bn,``).replace(zn,``),Kn,`$1`);let n=``;for(;n!==e;)n=e,e=B(!1,e,Wn,`${t}$1 $2${t}`);e=e.replace(Un,``).trimEnd();let r=Object.create(null),i=B(!1,e,Gn,``).replace(Un,``).trimEnd(),a;for(;a=Gn.exec(e);){let e=B(!1,a[2],Hn,``);if(typeof r[a[1]]==`string`||Array.isArray(r[a[1]])){let t=r[a[1]];r[a[1]]=[...qn,...Array.isArray(t)?t:[t],e]}else r[a[1]]=e}return{comments:i,pragmas:r}}function Zn({comments:e=``,pragmas:t={}}){let n=`
39
+ `,r=`/**`,i=` *`,a=` */`,o=Object.keys(t),s=o.flatMap(e=>Qn(e,t[e])).map(e=>`${i} ${e}${n}`).join(``);if(!e){if(o.length===0)return``;if(o.length===1&&!Array.isArray(t[o[0]])){let e=t[o[0]];return`${r} ${Qn(o[0],e)[0]}${a}`}}let c=e.split(n).map(e=>`${i} ${e}`).join(n)+n;return r+n+(e?c:``)+(e&&o.length>0?i+n:``)+s+a}function Qn(e,t){return[...qn,...Array.isArray(t)?t:[t]].map(t=>`@${e} ${t}`.trim())}var $n=[`noformat`,`noprettier`],er=[`format`,`prettier`],tr=`format`;function nr(e){if(!e.startsWith(`#!`))return``;let t=e.indexOf(`
40
+ `);return t===-1?e:e.slice(0,t)}var rr=nr;function ir(e){let t=rr(e);t&&(e=e.slice(t.length+1));let n=Jn(e),{pragmas:r,comments:i}=Xn(n);return{shebang:t,text:e,pragmas:r,comments:i}}function ar(e){let{pragmas:t}=ir(e);return er.some(e=>Object.prototype.hasOwnProperty.call(t,e))}function or(e){let{pragmas:t}=ir(e);return $n.some(e=>Object.prototype.hasOwnProperty.call(t,e))}function sr(e){let{shebang:t,text:n,pragmas:r,comments:i}=ir(e),a=Yn(n),o=Zn({pragmas:{[tr]:``,...r},comments:i.trimStart()});return(t?`${t}
41
+ `:``)+o+(a.startsWith(`
42
+ `)?`
43
+ `:`
44
+
45
+ `)+a}var cr=3;function lr(e){let t=e.slice(0,cr);if(t!==`---`&&t!==`+++`)return;let n=e.indexOf(`
46
+ `,cr);if(n===-1)return;let r=e.slice(cr,n).trim(),i=e.indexOf(`
47
+ ${t}`,n),a=r;if(a||=t===`+++`?`toml`:`yaml`,i===-1&&t===`---`&&a===`yaml`&&(i=e.indexOf(`
48
+ ...`,n)),i===-1)return;let o=i+1+cr,s=e.charAt(o+1);if(!/\s?/u.test(s))return;let c=e.slice(0,o);return{type:`front-matter`,language:a,explicitLanguage:r,value:e.slice(n+1,i),startDelimiter:t,endDelimiter:c.slice(-cr),raw:c}}function ur(e){let t=lr(e);if(!t)return{content:e};let{raw:n}=t;return{frontMatter:t,content:B(!1,n,/[^\n]/gu,` `)+e.slice(n.length)}}var dr=ur;function fr(e){return ar(dr(e).content)}function pr(e){return or(dr(e).content)}function mr(e){let{frontMatter:t,content:n}=dr(e);return(t?t.raw+`
49
+
50
+ `:``)+sr(n)}var hr=new Set([`red`,`green`,`blue`,`alpha`,`a`,`rgb`,`hue`,`h`,`saturation`,`s`,`lightness`,`l`,`whiteness`,`w`,`blackness`,`b`,`tint`,`shade`,`blend`,`blenda`,`contrast`,`hsl`,`hsla`,`hwb`,`hwba`]);function gr(e){var t,n;return(n=(t=e.findAncestor(e=>e.type===`css-decl`))?.prop)?.toLowerCase()}var _r=new Set([`initial`,`inherit`,`unset`,`revert`]);function vr(e){return _r.has(e.toLowerCase())}function yr(e,t){var n;let r=e.findAncestor(e=>e.type===`css-atrule`);return(n=r?.name)?.toLowerCase().endsWith(`keyframes`)&&[`from`,`to`].includes(t.toLowerCase())}function br(e){return e.includes(`$`)||e.includes(`@`)||e.includes(`#`)||e.startsWith(`%`)||e.startsWith(`--`)||e.startsWith(`:--`)||e.includes(`(`)&&e.includes(`)`)?e:e.toLowerCase()}function xr(e,t){var n;let r=e.findAncestor(e=>e.type===`value-func`);return(n=r?.value)?.toLowerCase()===t}function Sr(e){var t;let n=e.findAncestor(e=>e.type===`css-rule`),r=(t=n?.raws)?.selector;return r&&(r.startsWith(`:import`)||r.startsWith(`:export`))}function Cr(e,t){let n=Array.isArray(t)?t:[t],r=e.findAncestor(e=>e.type===`css-atrule`);return r&&n.includes(r.name.toLowerCase())}function wr(e){var t;let{node:n}=e;return n.groups[0].value===`url`&&n.groups.length===2&&(t=e.findAncestor(e=>e.type===`css-atrule`))?.name===`import`}function Tr(e){return e.type===`value-func`&&e.value.toLowerCase()===`url`}function Er(e){return e.type===`value-func`&&e.value.toLowerCase()===`var`}function Dr(e){let{selector:t}=e;return t?typeof t==`string`&&/^@.+:.*$/u.test(t)||t.value&&/^@.+:.*$/u.test(t.value):!1}function Or(e){return e.type===`value-word`&&[`from`,`through`,`end`].includes(e.value)}function kr(e){return e.type===`value-word`&&[`and`,`or`,`not`].includes(e.value)}function Ar(e){return e.type===`value-word`&&e.value===`in`}function jr(e){return e.type===`value-operator`&&e.value===`*`}function Mr(e){return e.type===`value-operator`&&e.value===`/`}function X(e){return e.type===`value-operator`&&e.value===`+`}function Nr(e){return e.type===`value-operator`&&e.value===`-`}function Pr(e){return e.type===`value-operator`&&e.value===`%`}function Fr(e){return jr(e)||Mr(e)||X(e)||Nr(e)||Pr(e)}function Ir(e){return e.type===`value-word`&&[`==`,`!=`].includes(e.value)}function Lr(e){return e.type===`value-word`&&[`<`,`>`,`<=`,`>=`].includes(e.value)}function Rr(e,t){return t.parser===`scss`&&e.type===`css-atrule`&&[`if`,`else`,`for`,`each`,`while`].includes(e.name)}function zr(e){var t;return(t=e.raws)?.params&&/^\(\s*\)$/u.test(e.raws.params)}function Br(e){return e.name.startsWith(`prettier-placeholder`)}function Vr(e){return e.prop.startsWith(`@prettier-placeholder`)}function Hr(e,t){return e.value===`$$`&&e.type===`value-func`&&t?.type===`value-word`&&!t.raws.before}function Ur(e){var t,n;return(t=e.value)?.type===`value-root`&&(n=e.value.group)?.type===`value-value`&&e.prop.toLowerCase()===`composes`}function Wr(e){var t,n,r;return(r=(n=(t=e.value)?.group)?.group)?.type===`value-paren_group`&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function Gr(e){var t;return(t=e.raws)?.before===``}function Kr(e){var t,n;return e.type===`value-comma_group`&&(n=(t=e.groups)?.[1])?.type===`value-colon`}function qr(e){var t;return e.type===`value-paren_group`&&(t=e.groups)?.[0]&&Kr(e.groups[0])}function Jr(e,t){var n;if(t.parser!==`scss`)return!1;let{node:r}=e;if(r.groups.length===0)return!1;let i=e.grandparent;if(!qr(r)&&!(i&&qr(i)))return!1;let a=e.findAncestor(e=>e.type===`css-decl`);return!!((n=a?.prop)!=null&&n.startsWith(`$`)||qr(i)||i.type===`value-func`)}function Yr(e){return e.type===`value-comment`&&e.inline}function Xr(e){return e.type===`value-word`&&e.value===`#`}function Zr(e){return e.type===`value-word`&&e.value===`{`}function Qr(e){return e.type===`value-word`&&e.value===`}`}function $r(e){return[`value-word`,`value-atword`].includes(e.type)}function ei(e){return e?.type===`value-colon`}function ti(e,t){if(!Kr(t))return!1;let{groups:n}=t,r=n.indexOf(e);return r===-1?!1:ei(n[r+1])}function ni(e){return e.value&&[`not`,`and`,`or`].includes(e.value.toLowerCase())}function ri(e){return e.type===`value-func`?hr.has(e.value.toLowerCase()):!1}function ii(e){return/\/\//u.test(e.split(/[\n\r]/u).pop())}function ai(e){return e?.type===`value-atword`&&e.value.startsWith(`prettier-placeholder-`)}function oi(e,t){var n,r;if((n=e.open)?.value!==`(`||(r=e.close)?.value!==`)`||e.groups.some(e=>e.type!==`value-comma_group`))return!1;if(t.type===`value-comma_group`){let n=t.groups.indexOf(e)-1,r=t.groups[n];if(r?.type===`value-word`&&r.value===`with`)return!0}return!1}function si(e){var t,n;return e.type===`value-paren_group`&&(t=e.open)?.value===`(`&&(n=e.close)?.value===`)`}function ci(e,t,n){var r;let{node:i}=e,a=e.parent,o=e.grandparent,s=gr(e),c=s&&a.type===`value-value`&&(s===`grid`||s.startsWith(`grid-template`)),l=e.findAncestor(e=>e.type===`css-atrule`),u=l&&Rr(l,t),d=i.groups.some(e=>Yr(e)),f=e.map(n,`groups`),p=[``],m=xr(e,`url`),h=!1,g=!1;for(let n=0;n<i.groups.length;++n){let s=i.groups[n-1],d=i.groups[n],_=i.groups[n+1],v=i.groups[n+2];if(Yr(d)&&!_){p.push([p.pop(),Ht([` `,f[n]])]);continue}if(p.push([p.pop(),f[n]]),m){(_&&X(_)||X(d))&&p.push([p.pop(),` `]);continue}if(ei(_)&&d.type===`value-word`&&p.length>2&&i.groups.slice(0,n).every(e=>e.type===`value-comment`)&&!Yr(s)&&(p[p.length-2]=zt(wt(!1,p,-2))),Cr(e,`forward`)&&d.type===`value-word`&&d.value&&s!==void 0&&s.type===`value-word`&&s.value===`as`&&_.type===`value-operator`&&_.value===`*`||Cr(e,`utility`)&&d.type===`value-word`&&_&&_.type===`value-operator`&&_.value===`*`||!_||d.type===`value-word`&&ai(_)&&Y(d)===J(_))continue;if(d.type===`value-string`&&d.quoted){let e=d.value.lastIndexOf(`#{`),t=d.value.lastIndexOf(`}`);e!==-1&&t!==-1?h=e>t:e===-1?t!==-1&&(h=!1):h=!0}if(h||ei(d)||ei(_)||d.type===`value-atword`&&(d.value===``||d.value.endsWith(`[`))||_.type===`value-word`&&_.value.startsWith(`]`)||d.value===`~`||d.type!==`value-string`&&d.value&&d.value.includes(`\\`)&&_&&_.type!==`value-comment`||s!=null&&s.value&&s.value.indexOf(`\\`)===s.value.length-1&&d.type===`value-operator`&&d.value===`/`||d.value===`\\`||Hr(d,_)||Xr(d)||Zr(d)||Qr(_)||Zr(_)&&Gr(_)||Qr(d)&&Gr(_)||d.value===`--`&&Xr(_))continue;let y=Fr(d),b=Fr(_);if((y&&Xr(_)||b&&Qr(d))&&Gr(_)||!s&&Mr(d)||xr(e,`calc`)&&(X(d)||X(_)||Nr(d)||Nr(_))&&Gr(_))continue;let x=(X(d)||Nr(d))&&n===0&&(_.type===`value-number`||_.isHex)&&o&&ri(o)&&!Gr(_),S=v?.type===`value-func`||v&&$r(v)||d.type===`value-func`||$r(d),C=_.type===`value-func`||$r(_)||s?.type===`value-func`||s&&$r(s);if(t.parser===`scss`&&y&&d.value===`-`&&_.type===`value-func`&&Y(d)!==J(_)){p.push([p.pop(),` `]);continue}if(!(!(jr(_)||jr(d))&&!xr(e,`calc`)&&!x&&(Mr(_)&&!S||Mr(d)&&!C||X(_)&&!S||X(d)&&!C||Nr(_)||Nr(d))&&(Gr(_)||y&&(!s||s&&Fr(s))))&&!((t.parser===`scss`||t.parser===`less`)&&y&&d.value===`-`&&si(_)&&Y(d)===J(_.open)&&_.open.value===`(`)){if(Yr(d)){if(a.type===`value-paren_group`){p.push(zt(K),``);continue}p.push(K,``);continue}if(u&&(Ir(_)||Lr(_)||kr(_)||Ar(d)||Or(d))){p.push([p.pop(),` `]);continue}if(l&&l.name.toLowerCase()===`namespace`){p.push([p.pop(),` `]);continue}if(c){d.source&&_.source&&d.source.start.line!==_.source.start.line?(p.push(K,``),g=!0):p.push([p.pop(),` `]);continue}if(b){p.push([p.pop(),` `]);continue}if(_?.value!==`...`&&!(ai(d)&&ai(_)&&Y(d)===J(_))){if(ai(d)&&si(_)&&Y(d)===J(_.open)){p.push(G,``);continue}if(d.value===`with`&&si(_)){p=[[Bt(p),` `]];continue}(r=d.value)!=null&&r.endsWith(`#`)&&_.value===`{`&&si(_.group)||Yr(_)&&!v||p.push(W,``)}}}return d&&p.push([p.pop(),Ut]),g&&p.unshift(``,K),u?U(H(p)):wr(e)?U(Bt(p)):U(H(Bt(p)))}var li=ci;function ui(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,`$1$2`).replace(/^([+-]?[\d.]+)e[+-]?0+$/u,`$1`).replace(/^([+-])?\./u,`$10.`).replace(/(\.\d+?)0+(?=e|$)/u,`$1`).replace(/\.(?=e|$)/u,``)}var di=ui,fi=new Map([[`em`,`em`],[`rem`,`rem`],[`ex`,`ex`],[`rex`,`rex`],[`cap`,`cap`],[`rcap`,`rcap`],[`ch`,`ch`],[`rch`,`rch`],[`ic`,`ic`],[`ric`,`ric`],[`lh`,`lh`],[`rlh`,`rlh`],[`vw`,`vw`],[`svw`,`svw`],[`lvw`,`lvw`],[`dvw`,`dvw`],[`vh`,`vh`],[`svh`,`svh`],[`lvh`,`lvh`],[`dvh`,`dvh`],[`vi`,`vi`],[`svi`,`svi`],[`lvi`,`lvi`],[`dvi`,`dvi`],[`vb`,`vb`],[`svb`,`svb`],[`lvb`,`lvb`],[`dvb`,`dvb`],[`vmin`,`vmin`],[`svmin`,`svmin`],[`lvmin`,`lvmin`],[`dvmin`,`dvmin`],[`vmax`,`vmax`],[`svmax`,`svmax`],[`lvmax`,`lvmax`],[`dvmax`,`dvmax`],[`cm`,`cm`],[`mm`,`mm`],[`q`,`Q`],[`in`,`in`],[`pt`,`pt`],[`pc`,`pc`],[`px`,`px`],[`deg`,`deg`],[`grad`,`grad`],[`rad`,`rad`],[`turn`,`turn`],[`s`,`s`],[`ms`,`ms`],[`hz`,`Hz`],[`khz`,`kHz`],[`dpi`,`dpi`],[`dpcm`,`dpcm`],[`dppx`,`dppx`],[`x`,`x`],[`cqw`,`cqw`],[`cqh`,`cqh`],[`cqi`,`cqi`],[`cqb`,`cqb`],[`cqmin`,`cqmin`],[`cqmax`,`cqmax`],[`fr`,`fr`]]);function pi(e){let t=e.toLowerCase();return fi.has(t)?fi.get(t):e}var mi=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,hi=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,gi=/[a-z]+/giu,_i=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,vi=RegExp(mi.source+`|(${_i.source})?(${hi.source})(${gi.source})?`,`giu`);function Z(e,t){return B(!1,e,mi,e=>nn(e,t))}function yi(e,t){let n=t.singleQuote?`'`:`"`;return e.includes(`"`)||e.includes(`'`)?e:n+e+n}function bi(e){return B(!1,e,vi,(e,t,n,r,i)=>!n&&r&&(i??=``,i=i.toLowerCase(),!i||i===`n`||fi.has(i))?xi(r)+(i?pi(i):``):e)}function xi(e){return di(e).replace(/\.0(?=$|e)/u,``)}function Si(e){return e.trailingComma===`es5`||e.trailingComma===`all`}function Ci(e,t,n){let r=!!(n!=null&&n.backwards);if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)===`\r`&&i===`
51
+ `)return t-2;if(i===`
52
+ `||i===`\r`||i===`\u2028`||i===`\u2029`)return t-1}else{if(i===`\r`&&e.charAt(t+1)===`
53
+ `)return t+2;if(i===`
54
+ `||i===`\r`||i===`\u2028`||i===`\u2029`)return t+1}return t}var wi=Ci;function Ti(e,t,n={}){let r=kn(e,n.backwards?t-1:t,n),i=wi(e,r,n);return r!==i}var Ei=Ti;function Di(e,t){if(t===!1)return!1;if(e.charAt(t)===`/`&&e.charAt(t+1)===`*`){for(let n=t+2;n<e.length;++n)if(e.charAt(n)===`*`&&e.charAt(n+1)===`/`)return n+2}return t}var Oi=Di;function ki(e,t){return t===!1?!1:e.charAt(t)===`/`&&e.charAt(t+1)===`/`?jn(e,t):t}var Ai=ki;function ji(e,t){let n=null,r=t;for(;r!==n;)n=r,r=An(e,r),r=Oi(e,r),r=kn(e,r);return r=Ai(e,r),r=wi(e,r),r!==!1&&Ei(e,r)}var Mi=ji;function Ni({node:e,parent:t},n){return!!(e.source&&n.originalText.slice(J(e),J(t.close)).trimEnd().endsWith(`,`))}function Pi(e,t){return Er(e.grandparent)&&Ni(e,t)?`,`:e.node.type!==`value-comment`&&!(e.node.type===`value-comma_group`&&e.node.groups.every(e=>e.type===`value-comment`))&&Si(t)&&e.callParent(()=>Jr(e,t))?Vt(`,`):``}function Fi(e,t,n){let{node:r,parent:i}=e,a=e.map(({node:e})=>typeof e==`string`?e:n(),`groups`);if(i&&Tr(i)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type===`value-comma_group`&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type===`value-word`&&r.groups[0].groups[0].value.startsWith(`data:`)))return[r.open?n(`open`):``,q(`,`,a),r.close?n(`close`):``];if(!r.open){let t=Ii(e);Ft(a);let n=Ri(q(`,`,a),2),r=q(t?K:W,n);return H(t?[K,r]:U([Li(e)?G:``,Bt(r)]))}let o=e.map(({node:n,isLast:r,index:i})=>{var o;let s=a[i];Kr(n)&&n.type===`value-comma_group`&&n.groups&&n.groups[0].type!==`value-paren_group`&&(o=n.groups[2])?.type===`value-paren_group`&&Et(s)===pt&&Et(s.contents)===ut&&Et(s.contents.contents)===mt&&(s=U(zt(s)));let c=[s,r?Pi(e,t):`,`];if(!r&&n.type===`value-comma_group`&&Kt(n.groups)){let e=wt(!1,n.groups,-1);!e.source&&e.close&&(e=e.close),e.source&&Mi(t.originalText,Y(e))&&c.push(K)}return c},`groups`),s=ti(r,i),c=oi(r,i),l=Jr(e,t),u=c||l&&!s,d=c||s,f=U([r.open?n(`open`):``,H([G,q(W,o)]),G,r.close?n(`close`):``],{shouldBreak:u});return d?zt(f):f}function Ii(e){return e.match(e=>e.type===`value-paren_group`&&!e.open&&e.groups.some(e=>e.type===`value-comma_group`),(e,t)=>t===`group`&&e.type===`value-value`,(e,t)=>t===`group`&&e.type===`value-root`,(e,t)=>t===`value`&&(e.type===`css-decl`&&!e.prop.startsWith(`--`)||e.type===`css-atrule`&&e.variable))}function Li(e){return e.match(e=>e.type===`value-paren_group`&&!e.open,(e,t)=>t===`group`&&e.type===`value-value`,(e,t)=>t===`group`&&e.type===`value-root`,(e,t)=>t===`value`&&e.type===`css-decl`)}function Ri(e,t){let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function zi(e,t,n){let r=[];return e.each(()=>{let{node:i,previous:a}=e;if(a?.type===`css-comment`&&a.text.trim()===`prettier-ignore`?r.push(t.originalText.slice(J(i),Y(i))):r.push(n()),e.isLast)return;let{next:o}=e;o.type===`css-comment`&&!Ei(t.originalText,J(o),{backwards:!0})&&!sn(i)||o.type===`css-atrule`&&o.name===`else`&&i.type!==`css-comment`?r.push(` `):(r.push(t.__isHTMLStyleAttribute?W:K),Mi(t.originalText,Y(i))&&!sn(i)&&r.push(K))},`nodes`),r}var Bi=zi;function Vi(e,t,n){var r,i,a,o,s,c;let{node:l}=e;switch(l.type){case`front-matter`:return[l.raw,K];case`css-root`:{let r=Bi(e,t,n),i=l.raws.after.trim();return i.startsWith(`;`)&&(i=i.slice(1).trim()),[l.frontMatter?[n(`frontMatter`),K]:``,r,i?` ${i}`:``,l.nodes.length>0?K:``]}case`css-comment`:{let e=l.inline||l.raws.inline,n=t.originalText.slice(J(l),Y(l));return e?n.trimEnd():n}case`css-rule`:return[n(`selector`),l.important?` !important`:``,l.nodes?[(r=l.selector)?.type===`selector-unknown`&&ii(l.selector.value)?W:l.selector?` `:``,`{`,l.nodes.length>0?H([K,Bi(e,t,n)]):``,K,`}`,Dr(l)?`;`:``]:`;`];case`css-decl`:{let r=e.parent,{between:o}=l.raws,s=o.trim(),c=s===`:`,u=typeof l.value==`string`&&/^ *$/u.test(l.value),d=typeof l.value==`string`?l.value:n(`value`);return d=Ur(l)?Nt(d):d,!c&&ii(s)&&!((a=(i=l.value)?.group)!=null&&a.group&&e.call(()=>Ii(e),`value`,`group`,`group`))&&(d=H([K,zt(d)])),[B(!1,l.raws.before,/[\s;]/gu,``),r.type===`css-atrule`&&r.variable||Sr(e)?l.prop:br(l.prop),s.startsWith(`//`)?` `:``,s,l.extend||u?``:` `,t.parser===`less`&&l.extend&&l.selector?[`extend(`,n(`selector`),`)`]:``,d,l.raws.important?l.raws.important.replace(/\s*!\s*important/iu,` !important`):l.important?` !important`:``,l.raws.scssDefault?l.raws.scssDefault.replace(/\s*!default/iu,` !default`):l.scssDefault?` !default`:``,l.raws.scssGlobal?l.raws.scssGlobal.replace(/\s*!global/iu,` !global`):l.scssGlobal?` !global`:``,l.nodes?[` {`,H([G,Bi(e,t,n)]),G,`}`]:Vr(l)&&!r.raws.semicolon&&t.originalText[Y(l)-1]!==`;`?``:t.__isHTMLStyleAttribute&&e.isLast?Vt(`;`):`;`]}case`css-atrule`:{let r=e.parent,i=Br(l)&&!r.raws.semicolon&&t.originalText[Y(l)-1]!==`;`;if(t.parser===`less`){if(l.mixin)return[n(`selector`),l.important?` !important`:``,i?``:`;`];if(l.function)return[l.name,typeof l.params==`string`?l.params:n(`params`),i?``:`;`];if(l.variable)return[`@`,l.name,`: `,l.value?n(`value`):``,l.raws.between.trim()?l.raws.between.trim()+` `:``,l.nodes?[`{`,H([l.nodes.length>0?G:``,Bi(e,t,n)]),G,`}`]:``,i?``:`;`]}let a=l.name===`import`&&(o=l.params)?.type===`value-unknown`&&l.params.value.endsWith(`;`);return[`@`,zr(l)||l.name.endsWith(`:`)||Br(l)?l.name:br(l.name),l.params?[zr(l)?``:Br(l)?l.raws.afterName===``?``:l.name.endsWith(`:`)?` `:/^\s*\n\s*\n/u.test(l.raws.afterName)?[K,K]:/^\s*\n/u.test(l.raws.afterName)?K:` `:` `,typeof l.params==`string`?l.params:n(`params`)]:``,l.selector?H([` `,n(`selector`)]):``,l.value?U([` `,n(`value`),Rr(l,t)?Wr(l)?` `:W:``]):l.name===`else`?` `:``,l.nodes?[Rr(l,t)?``:l.selector&&!l.selector.nodes&&typeof l.selector.value==`string`&&ii(l.selector.value)||!l.selector&&typeof l.params==`string`&&ii(l.params)?W:` `,`{`,H([l.nodes.length>0?G:``,Bi(e,t,n)]),G,`}`]:i||a?``:`;`]}case`media-query-list`:{let t=[];return e.each(({node:e})=>{e.type===`media-query`&&e.value===``||t.push(n())},`nodes`),U(H(q(W,t)))}case`media-query`:return[q(` `,e.map(n,`nodes`)),e.isLast?``:`,`];case`media-type`:return bi(Z(l.value,t));case`media-feature-expression`:return l.nodes?[`(`,...e.map(n,`nodes`),`)`]:l.value;case`media-feature`:return br(Z(B(!1,l.value,/ +/gu,` `),t));case`media-colon`:return[l.value,` `];case`media-value`:return bi(Z(l.value,t));case`media-keyword`:return Z(l.value,t);case`media-url`:return Z(B(!1,B(!1,l.value,/^url\(\s+/giu,`url(`),/\s+\)$/gu,`)`),t);case`media-unknown`:return l.value;case`selector-root`:return U([Cr(e,`custom-selector`)?[e.findAncestor(e=>e.type===`css-atrule`).customSelector,W]:``,q([`,`,Cr(e,[`extend`,`custom-selector`,`nest`])?W:K],e.map(n,`nodes`))]);case`selector-selector`:{let t=l.nodes.length>2;return U((t?H:e=>e)(e.map(n,`nodes`)))}case`selector-comment`:return l.value;case`selector-string`:return Z(l.value,t);case`selector-tag`:return[l.namespace?[l.namespace===!0?``:l.namespace.trim(),`|`]:``,(s=e.previous)?.type===`selector-nesting`?l.value:bi(yr(e,l.value)?l.value.toLowerCase():l.value)];case`selector-id`:return[`#`,l.value];case`selector-class`:return[`.`,bi(Z(l.value,t))];case`selector-attribute`:return[`[`,l.namespace?[l.namespace===!0?``:l.namespace.trim(),`|`]:``,l.attribute.trim(),l.operator??``,l.value?yi(Z(l.value.trim(),t),t):``,l.insensitive?` i`:``,`]`];case`selector-combinator`:{if(l.value===`+`||l.value===`>`||l.value===`~`||l.value===`>>>`){let t=e.parent;return[t.type===`selector-selector`&&t.nodes[0]===l?``:W,l.value,e.isLast?``:` `]}let n=l.value.trim().startsWith(`(`)?W:``,r=bi(Z(l.value.trim(),t))||W;return[n,r]}case`selector-universal`:return[l.namespace?[l.namespace===!0?``:l.namespace.trim(),`|`]:``,l.value];case`selector-pseudo`:return[br(l.value),Kt(l.nodes)?U([`(`,H([G,q([`,`,W],e.map(n,`nodes`))]),G,`)`]):``];case`selector-nesting`:return l.value;case`selector-unknown`:{let n=e.findAncestor(e=>e.type===`css-rule`);if(n!=null&&n.isSCSSNesterProperty)return bi(Z(br(l.value),t));let r=e.parent;if((c=r.raws)!=null&&c.selector){let e=J(r),n=e+r.raws.selector.length;return t.originalText.slice(e,n).trim()}let i=e.grandparent;if(r.type===`value-paren_group`&&i?.type===`value-func`&&i.value===`selector`){let e=Y(r.open)+1,n=J(r.close),i=t.originalText.slice(e,n).trim();return ii(i)?[Ut,i]:i}return l.value}case`value-value`:case`value-root`:return n(`group`);case`value-comment`:return t.originalText.slice(J(l),Y(l));case`value-comma_group`:return li(e,t,n);case`value-paren_group`:return Fi(e,t,n);case`value-func`:return[l.value,Cr(e,`supports`)&&ni(l)?` `:``,n(`group`)];case`value-paren`:return l.value;case`value-number`:return[xi(l.value),pi(l.unit)];case`value-operator`:return l.value;case`value-word`:return l.isColor&&l.isHex||vr(l.value)?l.value.toLowerCase():l.value;case`value-colon`:{let{previous:t}=e;return U([l.value,typeof t?.value==`string`&&t.value.endsWith(`\\`)||xr(e,`url`)?``:W])}case`value-string`:return nn(l.raws.quote+l.value+l.raws.quote,t);case`value-atword`:return[`@`,l.value];case`value-unicode-range`:return l.value;case`value-unknown`:return l.value;case`value-comma`:default:throw new an(l,`PostCSS`)}}var Hi={print:Vi,embed:hn,insertPragma:mr,massageAstNode:dn,getVisitorKeys:Tn},Ui=Hi,Wi=[{name:`CSS`,type:`markup`,extensions:[`.css`,`.wxss`],tmScope:`source.css`,aceMode:`css`,codemirrorMode:`css`,codemirrorMimeType:`text/css`,parsers:[`css`],vscodeLanguageIds:[`css`],linguistLanguageId:50},{name:`PostCSS`,type:`markup`,extensions:[`.pcss`,`.postcss`],tmScope:`source.postcss`,aceMode:`text`,group:`CSS`,parsers:[`css`],vscodeLanguageIds:[`postcss`],linguistLanguageId:262764437},{name:`Less`,type:`markup`,extensions:[`.less`],tmScope:`source.css.less`,aceMode:`less`,aliases:[`less-css`],codemirrorMode:`css`,codemirrorMimeType:`text/css`,parsers:[`less`],vscodeLanguageIds:[`less`],linguistLanguageId:198},{name:`SCSS`,type:`markup`,extensions:[`.scss`],tmScope:`source.css.scss`,aceMode:`scss`,codemirrorMode:`css`,codemirrorMimeType:`text/x-scss`,parsers:[`scss`],vscodeLanguageIds:[`scss`],linguistLanguageId:329}],Gi={bracketSpacing:{category:`Common`,type:`boolean`,default:!0,description:`Print spaces between brackets.`,oppositeDescription:`Do not print spaces between brackets.`},objectWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap object literals.`,choices:[{value:`preserve`,description:`Keep as multi-line, if there is a newline between the opening brace and first property.`},{value:`collapse`,description:`Fit to a single line when possible.`}]},singleQuote:{category:`Common`,type:`boolean`,default:!1,description:`Use single quotes instead of double quotes.`},proseWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap prose.`,choices:[{value:`always`,description:`Wrap prose if it exceeds the print width.`},{value:`never`,description:`Do not wrap prose.`},{value:`preserve`,description:`Wrap prose as-is.`}]},bracketSameLine:{category:`Common`,type:`boolean`,default:!1,description:`Put > of opening tags on the last line instead of on a new line.`},singleAttributePerLine:{category:`Common`,type:`boolean`,default:!1,description:`Enforce single attribute per line in HTML, Vue and JSX.`}},Ki={singleQuote:Gi.singleQuote},qi=Ki,Ji={};s(Ji,{css:()=>La,less:()=>Ra,scss:()=>za});var Yi=l(A(),1),Xi=l(ie(),1),Zi=l(he(),1);function Qi(e,t){let n=SyntaxError(e+` (`+t.loc.start.line+`:`+t.loc.start.column+`)`);return Object.assign(n,t)}var $i=Qi,ea=l(ye(),1);function ta(e,t,n){if(e&&typeof e==`object`)for(let r in delete e.parent,e)ta(e[r],t,n),r===`type`&&typeof e[r]==`string`&&!e[r].startsWith(t)&&(!n||!n.test(e[r]))&&(e[r]=t+e[r]);return e}function na(e){if(e&&typeof e==`object`){for(let t in delete e.parent,e)na(e[t]);!Array.isArray(e)&&e.value&&!e.type&&(e.type=`unknown`)}return e}var ra=ea.default.default;function ia(e){let t;try{t=ra(e)}catch{return{type:`selector-unknown`,value:e}}return ta(na(t),`media-`)}var aa=ia,oa=l(Ve(),1);function sa(e){if(/\/\/|\/\*/u.test(e))return{type:`selector-unknown`,value:e.trim()};let t;try{new oa.default(e=>{t=e}).process(e)}catch{return{type:`selector-unknown`,value:e}}return ta(t,`selector-`)}var Q=sa,ca=l(it(),1),la=e=>{for(;e.parent;)e=e.parent;return e},ua=la;function da(e){return ua(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()}var fa=da;function pa(e){if(Kt(e)){for(let t=e.length-1;t>0;t--)if(e[t].type===`word`&&e[t].value===`{`&&e[t-1].type===`word`&&e[t-1].value.endsWith(`#`))return!0}return!1}var ma=pa;function ha(e){return e.some(e=>e.type===`string`||e.type===`func`&&!e.value.endsWith(`\\`))}var ga=ha;function _a(e,t){return!!(t.parser===`scss`&&e?.type===`word`&&e.value.startsWith(`$`))}var va=_a,ya=e=>e.type===`paren`&&e.value===`)`;function ba(e,t){var n;let{nodes:r}=e,i={open:null,close:null,groups:[],type:`paren_group`},a=[i],o=i,s={groups:[],type:`comma_group`},c=[s];for(let o=0;o<r.length;++o){let l=r[o];if(t.parser===`scss`&&l.type===`number`&&l.unit===`..`&&l.value.endsWith(`.`)&&(l.value=l.value.slice(0,-1),l.unit=`...`),l.type===`func`&&l.value===`selector`&&(l.group.groups=[Q(ua(e).text.slice(l.group.open.sourceIndex+1,l.group.close.sourceIndex))]),l.type===`func`&&l.value===`url`){let e=(n=l.group)?.groups??[],r=[];for(let t=0;t<e.length;t++){let n=e[t];n.type===`comma_group`?r=[...r,...n.groups]:r.push(n)}(ma(r)||!ga(r)&&!va(r[0],t))&&(l.group.groups=[fa(l)])}if(l.type===`paren`&&l.value===`(`)i={open:l,close:null,groups:[],type:`paren_group`},a.push(i),s={groups:[],type:`comma_group`},c.push(s);else if(ya(l)){if(s.groups.length>0&&i.groups.push(s),i.close=l,c.length===1)throw Error(`Unbalanced parenthesis`);c.pop(),s=wt(!1,c,-1),s.groups.push(i),a.pop(),i=wt(!1,a,-1)}else if(l.type===`comma`){if(o===r.length-3&&r[o+1].type===`comment`&&ya(r[o+2]))continue;i.groups.push(s),s={groups:[],type:`comma_group`},c[c.length-1]=s}else s.groups.push(l)}return s.groups.length>0&&i.groups.push(s),o}function xa(e){return e.type===`paren_group`&&!e.open&&!e.close&&e.groups.length===1||e.type===`comma_group`&&e.groups.length===1?xa(e.groups[0]):e.type===`paren_group`||e.type===`comma_group`?{...e,groups:e.groups.map(xa)}:e}function Sa(e,t){if(e&&typeof e==`object`)for(let n in e)n!==`parent`&&(Sa(e[n],t),n===`nodes`&&(e.group=xa(ba(e,t)),delete e[n]));return e}function Ca(e,t){if(t.parser===`less`&&e.startsWith("~`"))return{type:`value-unknown`,value:e};let n=null;try{n=new ca.default(e,{loose:!0}).parse()}catch{return{type:`value-unknown`,value:e}}n.text=e;let r=Sa(n,t);return ta(r,`value-`,/^selector-/u)}var $=Ca,wa=new Set([`import`,`use`,`forward`]);function Ta(e){return wa.has(e)}var Ea=Ta;function Da(e,t){return t.parser!==`scss`||!e.selector?!1:e.selector.replace(/\/\*.*?\*\//u,``).replace(/\/\/.*\n/u,``).trim().endsWith(`:`)}var Oa=Da,ka=/(\s*)(!default).*$/u,Aa=/(\s*)(!global).*$/u;function ja(e,t){var n,r;if(e&&typeof e==`object`){for(let n in delete e.parent,e)ja(e[n],t);if(!e.type)return e;if(e.raws??={},e.type===`css-decl`&&typeof e.prop==`string`&&e.prop.startsWith(`--`)&&typeof e.value==`string`&&e.value.startsWith(`{`)){let r;if(e.value.trimEnd().endsWith(`}`)){let i=t.originalText.slice(0,e.source.start.offset),a=`a`.repeat(e.prop.length)+t.originalText.slice(e.source.start.offset+e.prop.length,e.source.end.offset),o=B(!1,i,/[^\n]/gu,` `)+a,s;s=t.parser===`scss`?Fa:t.parser===`less`?Pa:Na;let c;try{c=s(o,{...t})}catch{}(n=c?.nodes)?.length===1&&c.nodes[0].type===`css-rule`&&(r=c.nodes[0].nodes)}return r?e.value={type:`css-rule`,nodes:r}:e.value={type:`value-unknown`,value:e.raws.value.raw},e}let i=``;typeof e.selector==`string`&&(i=e.raws.selector?e.raws.selector.scss??e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(i+=e.raws.between),e.raws.selector=i);let a=``;typeof e.value==`string`&&(a=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,e.raws.value=a.trim());let o=``;if(typeof e.params==`string`&&(o=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(o=e.raws.afterName+o),e.raws.between&&e.raws.between.trim().length>0&&(o+=e.raws.between),o=o.trim(),e.raws.params=o),i.trim().length>0)return i.startsWith(`@`)&&i.endsWith(`:`)?e:e.mixin?(e.selector=$(i,t),e):(Oa(e,t)&&(e.isSCSSNesterProperty=!0),e.selector=Q(i),e);if(a.trim().length>0){let n=a.match(ka);n&&(a=a.slice(0,n.index),e.scssDefault=!0,n[0].trim()!==`!default`&&(e.raws.scssDefault=n[0]));let r=a.match(Aa);if(r&&(a=a.slice(0,r.index),e.scssGlobal=!0,r[0].trim()!==`!global`&&(e.raws.scssGlobal=r[0])),a.startsWith(`progid:`))return{type:`value-unknown`,value:a};e.value=$(a,t)}if(t.parser===`less`&&e.type===`css-decl`&&a.startsWith(`extend(`)&&(e.extend||=e.raws.between===`:`,e.extend&&!e.selector&&(delete e.value,e.selector=Q(a.slice(7,-1)))),e.type===`css-atrule`){if(t.parser===`less`){if(e.mixin){let t=e.raws.identifier+e.name+e.raws.afterName+e.raws.params;return e.selector=Q(t),delete e.params,e}if(e.function)return e}if(t.parser===`css`&&e.name===`custom-selector`){let t=e.params.match(/:--\S+\s+/u)[0].trim();return e.customSelector=t,e.selector=Q(e.params.slice(t.length).trim()),delete e.params,e}if(t.parser===`less`){if(e.name.includes(`:`)&&!e.params){e.variable=!0;let n=e.name.split(`:`);e.name=n[0],e.value=$(n.slice(1).join(`:`),t)}if(![`page`,`nest`,`keyframes`].includes(e.name)&&(r=e.params)?.[0]===`:`){e.variable=!0;let n=e.params.slice(1);n&&(e.value=$(n,t)),e.raws.afterName+=`:`}if(e.variable)return delete e.params,e.value||delete e.value,e}}if(e.type===`css-atrule`&&o.length>0){let{name:n}=e,r=e.name.toLowerCase();return n===`warn`||n===`error`?(e.params={type:`media-unknown`,value:o},e):n===`extend`||n===`nest`?(e.selector=Q(o),delete e.params,e):n===`at-root`?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(o)?e.params=$(o,t):(e.selector=Q(o),delete e.params),e):Ea(r)?(e.import=!0,delete e.filename,e.params=$(o,t),e):[`namespace`,`supports`,`if`,`else`,`for`,`each`,`while`,`debug`,`mixin`,`include`,`function`,`return`,`define-mixin`,`add-mixin`].includes(n)?(o=o.replace(/(\$\S+?)(\s+)?\.{3}/u,`$1...$2`),o=o.replace(/^(?!if)(\S+)(\s+)\(/u,`$1($2`),e.value=$(o,t),delete e.params,e):[`media`,`custom-media`].includes(r)?o.includes(`#{`)?{type:`media-unknown`,value:o}:(e.params=aa(o),e):(e.params=o,e)}}return e}function Ma(e,t,n){let r=dr(t),{frontMatter:i}=r;t=r.content;let a;try{a=e(t,{map:!1})}catch(e){let{name:t,reason:n,line:r,column:i}=e;throw typeof r==`number`?$i(`${t}: ${n}`,{loc:{start:{line:r,column:i}},cause:e}):e}return n.originalText=t,a=ja(ta(a,`css-`),n),Fn(a,t),i&&(i.source={startOffset:0,endOffset:i.raw.length},a.frontMatter=i),a}function Na(e,t={}){return Ma(Yi.default.default,e,t)}function Pa(e,t={}){return Ma(e=>Xi.default.parse(Rn(e)),e,t)}function Fa(e,t={}){return Ma(Zi.default,e,t)}var Ia={astFormat:`postcss`,hasPragma:fr,hasIgnorePragma:pr,locStart:J,locEnd:Y},La={...Ia,parse:Na},Ra={...Ia,parse:Pa},za={...Ia,parse:Fa},Ba={postcss:Ui},Va=at;export{Va as default,Wi as languages,qi as options,Ji as parsers,Ba as printers};