@ttmg/cli 0.0.11 → 0.0.12-beta.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.
Files changed (51) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/acorn-BdJAsJ8B.js +2 -0
  3. package/dist/acorn-BdJAsJ8B.js.map +1 -0
  4. package/dist/angular-NBOYSdm_.js +2 -0
  5. package/dist/angular-NBOYSdm_.js.map +1 -0
  6. package/dist/babel-Cz9UyhT1.js +2 -0
  7. package/dist/babel-Cz9UyhT1.js.map +1 -0
  8. package/dist/estree-Cpw1IbUG.js +2 -0
  9. package/dist/estree-Cpw1IbUG.js.map +1 -0
  10. package/dist/flow-CEifwVfD.js +2 -0
  11. package/dist/flow-CEifwVfD.js.map +1 -0
  12. package/dist/glimmer-HhuN0Cpa.js +2 -0
  13. package/dist/glimmer-HhuN0Cpa.js.map +1 -0
  14. package/dist/graphql-C0LdZ-FR.js +2 -0
  15. package/dist/graphql-C0LdZ-FR.js.map +1 -0
  16. package/dist/html-CTo_n3CO.js +2 -0
  17. package/dist/html-CTo_n3CO.js.map +1 -0
  18. package/dist/index-C5TRyXT-.js +2 -0
  19. package/dist/index-C5TRyXT-.js.map +1 -0
  20. package/dist/index.cjs +3 -0
  21. package/dist/index.cjs.map +1 -0
  22. package/dist/index.js +57 -1
  23. package/dist/index.js.map +1 -0
  24. package/dist/index.mjs +3 -0
  25. package/dist/index.mjs.map +1 -0
  26. package/dist/markdown-BCWKCKF0.js +2 -0
  27. package/dist/markdown-BCWKCKF0.js.map +1 -0
  28. package/dist/meriyah-CkXe63E7.js +2 -0
  29. package/dist/meriyah-CkXe63E7.js.map +1 -0
  30. package/dist/postcss-BX--ySLa.js +2 -0
  31. package/dist/postcss-BX--ySLa.js.map +1 -0
  32. package/dist/types/src/h5/index.d.ts +3 -0
  33. package/dist/types/src/index.d.ts +2 -0
  34. package/dist/types/src/libs/centerQRCode.d.ts +1 -0
  35. package/dist/types/src/libs/getDesktopPath.d.ts +1 -0
  36. package/dist/types/src/libs/getLocalIP.d.ts +1 -0
  37. package/dist/types/src/libs/index.d.ts +4 -0
  38. package/dist/types/src/libs/openUrl.d.ts +1 -0
  39. package/dist/types/src/libs/program.d.ts +3 -0
  40. package/dist/types/src/native/dev/config/index.d.ts +1 -0
  41. package/dist/types/src/native/dev/index.d.ts +2 -0
  42. package/dist/types/src/native/dev/utils/devServer.d.ts +2 -0
  43. package/dist/types/src/native/dev/utils/getClientKey.d.ts +4 -0
  44. package/dist/types/src/native/dev/utils/getSchema.d.ts +1 -0
  45. package/dist/types/src/native/dev/utils/index.d.ts +3 -0
  46. package/dist/types/src/native/index.d.ts +1 -0
  47. package/dist/typescript-ztdoDXBH.js +2 -0
  48. package/dist/typescript-ztdoDXBH.js.map +1 -0
  49. package/dist/yaml-CIIYxOPp.js +2 -0
  50. package/dist/yaml-CIIYxOPp.js.map +1 -0
  51. package/package.json +19 -16
@@ -0,0 +1,2 @@
1
+ "use strict";var e=Object.create,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,i=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),a=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})},u=(i,a,u)=>(u=null!=i?e(s(i)):{},((e,s,i,a)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let u of n(s))!o.call(e,u)&&u!==i&&t(e,u,{get:()=>s[u],enumerable:!(a=r(s,u))||a.enumerable});return e})(t(u,"default",{value:i,enumerable:!0}),i)),l=i((e,t)=>{var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=n(),t.exports.createColors=n}),c=i(()=>{}),p=i((e,t)=>{var r=l(),n=c(),s=class e extends Error{constructor(t,r,n,s,o,i){super(t),this.name="CssSyntaxError",this.reason=t,o&&(this.file=o),s&&(this.source=s),i&&(this.plugin=i),typeof r<"u"&&typeof n<"u"&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.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;null==e&&(e=r.isColorSupported);let s=e=>e,o=e=>e,i=e=>e;if(e){let{bold:e,gray:t,red:a}=r.createColors(!0);o=t=>e(a(t)),s=e=>t(e),n&&(i=e=>n(e))}let a=t.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),c=String(l).length;return a.slice(u,l).map((e,t)=>{let r=u+1+t,n=" "+(" "+r).slice(-c)+" | ";if(r===this.line){if(e.length>160){let t=20,r=Math.max(0,this.column-t),a=Math.max(this.column+t,this.endColumn+t),u=e.slice(r,a),l=s(n.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return o(">")+s(n)+i(u)+"\n "+l+o("^")}let t=s(n.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+s(n)+i(e)+"\n "+t+o("^")}return" "+s(n)+i(e)}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};t.exports=s,s.default=s}),h=i((e,t)=>{var r={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var n=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+s,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&"root"!==n.type;)s+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<s;e++)r+=t}return r}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let s=e.nodes[n],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,t!==n||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,n){let s;if(n||(n=t),t&&(s=e.raws[t],typeof s<"u"))return s;let o=e.parent;if("before"===n&&(!o||"root"===o.type&&o.first===e||o&&"document"===o.type))return"";if(!o)return r[n];let i=e.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[n]<"u")return i.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let r="raw"+((a=n)[0].toUpperCase()+a.slice(1));this[r]?s=this[r](i,e):i.walk(e=>{if(s=e.raws[t],typeof s<"u")return!1})}var a;return typeof s>"u"&&(s=r[n]),i.rawCache[n]=s,s}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("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(typeof e.raws.before<"u")return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(typeof e.raws.before<"u")return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(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&&0===e.nodes.length&&(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(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};t.exports=n,n.default=n}),f=i((e,t)=>{var r=h();function n(e,t){new r(t).stringify(e)}t.exports=n,n.default=n}),d=i((e,t)=>{t.exports.isClean=Symbol("isClean"),t.exports.my=Symbol("my")}),m=i((e,t)=>{var r=p(),n=h(),s=f(),{isClean:o,my:i}=d();function a(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||"proxyCache"===n)continue;let s=e[n],o=typeof s;"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=s:Array.isArray(s)?r[n]=s.map(e=>a(e,r)):("object"===o&&null!==s&&(s=a(s)),r[n]=s)}return r}function u(e,t){if(t&&typeof t.offset<"u")return t.offset;let r=1,n=1,s=0;for(let o=0;o<e.length;o++){if(n===t.line&&r===t.column){s=o;break}"\n"===e[o]?(r=1,n+=1):r+=1}return s}var l=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[o]=!1,this[i]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=a(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new r(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty()),!0)}}markClean(){this[o]=!0}markDirty(){if(this[o]){this[o]=!1;let e=this;for(;e=e.parent;)e[o]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n=r.slice(u(r,this.source.start),u(r,this.source.end)).indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,s=u(n,this.source.start),o=s+e;for(let e=s;e<o;e++)"\n"===n[e]?(t=1,r+=1):t+=1;return{column:t,line:r,offset:o}}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,r={column:this.source.start.column,line:this.source.start.line,offset:u(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:u(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let s=t.slice(u(t,this.source.start),u(t,this.source.end)).indexOf(e.word);-1!==s&&(r=this.positionInside(s),n=this.positionInside(s+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:u(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line,offset:u(t,e.end)}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(e,t){return(new n).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},n=null==t;t=t||new Map;let s=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let n=this[e];if(Array.isArray(n))r[e]=n.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof n&&n.toJSON)r[e]=n.toJSON(null,t);else if("source"===e){if(null==n)continue;let o=t.get(n.input);null==o&&(o=s,t.set(n.input,s),s++),r[e]={end:n.end,inputId:o,start:n.start}}else r[e]=n}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=s){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r={}){let n={node:this};for(let e in r)n[e]=r[e];return e.warn(t,n)}};t.exports=l,l.default=l}),y=i((e,t)=>{var r=m(),n=class extends r{constructor(e){super(e),this.type="comment"}};t.exports=n,n.default=n}),v=i((e,t)=>{var r=m(),n=class extends r{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(e){e&&typeof e.value<"u"&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};t.exports=n,n.default=n}),g=i((e,t)=>{var r,n,s,o,i=y(),a=v(),u=m(),{isClean:l,my:c}=d();function p(e){return e.map(e=>(e.nodes&&(e.nodes=p(e.nodes)),delete e.source,e))}function h(e){if(e[l]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)h(t)}var f=class e extends u{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,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)):"every"===t||"some"===t?r=>e[t]((e,...t)=>r(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of s)this.proxyOf.nodes.splice(n+1,0,e);for(let e in this.indexes)r=this.indexes[e],n<r&&(this.indexes[e]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),s=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let e of o)this.proxyOf.nodes.splice(n,0,e);for(let e in this.indexes)r=this.indexes[e],n<=r&&(this.indexes[e]=r+o.length);return this.markDirty(),this}normalize(t,s){if("string"==typeof t)t=p(n(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("root"===t.type&&"document"!==this.type){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 new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new a(t)]}else if(t.selector||t.selectors)t=[new o(t)];else if(t.name)t=[new r(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new i(t)]}return t.map(t=>(t[c]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[l]&&h(t),t.raws||(t.raws={}),typeof t.raws.before>"u"&&s&&typeof s.raws.before<"u"&&(t.raws.before=s.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){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}};f.registerParse=e=>{n=e},f.registerRule=e=>{o=e},f.registerAtRule=e=>{r=e},f.registerRoot=e=>{s=e},t.exports=f,f.default=f,f.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,r.prototype):"rule"===e.type?Object.setPrototypeOf(e,o.prototype):"decl"===e.type?Object.setPrototypeOf(e,a.prototype):"comment"===e.type?Object.setPrototypeOf(e,i.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[c]=!0,e.nodes&&e.nodes.forEach(e=>{f.rebuild(e)})}}),w=i((e,t)=>{t.exports={nanoid:(e=21)=>{let t="",r=0|e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let n="",s=0|r;for(;s--;)n+=e[Math.random()*e.length|0];return n}}}),b=i(()=>{}),x=i((e,t)=>{t.exports=class{}}),k=i((e,t)=>{var{nanoid:r}=w(),{isAbsolute:n,resolve:s}={},{SourceMapConsumer:o,SourceMapGenerator:i}=b(),{fileURLToPath:a,pathToFileURL:u}={},l=p(),h=x(),f=c(),d=Symbol("lineToIndexCache"),m=!(!o||!i),y=!(!s||!n);function v(e){if(e[d])return e[d];let t=e.css.split("\n"),r=new Array(t.length),n=0;for(let e=0,s=t.length;e<s;e++)r[e]=n,n+=t[e].length+1;return e[d]=r,r}var g=class{get from(){return this.file||this.id}constructor(e,t={}){if(null===e||typeof e>"u"||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!y||/^\w+:\/\//.test(t.from)||n(t.from)?this.file=t.from:this.file=s(t.from)),y&&m){let e=new h(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 "+r(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,o,i,a,c;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){a=e.offset;let n=this.fromOffset(a);t=n.line,r=n.col}else t=e.line,r=e.column,a=this.fromLineAndColumn(t,r);if("number"==typeof n.offset){i=n.offset;let e=this.fromOffset(i);o=e.line,s=e.col}else o=n.line,s=n.column,i=this.fromLineAndColumn(n.line,n.column)}else if(r)a=this.fromLineAndColumn(t,r);else{a=t;let e=this.fromOffset(a);t=e.line,r=e.col}let p=this.origin(t,r,o,s);return c=p?new l(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new l(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),c.input={column:r,endColumn:s,endLine:o,endOffset:i,line:t,offset:a,source:this.css},this.file&&(u&&(c.input.url=u(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return v(this)[e-1]+t-1}fromOffset(e){let t=v(this),r=0;if(e>=t[t.length-1])r=t.length-1;else{let n,s=t.length-2;for(;r<s;)if(n=r+(s-r>>1),e<t[n])s=n-1;else{if(!(e>=t[n+1])){r=n;break}r=n+1}}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:s(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){if(!this.map)return!1;let o,i,l=this.map.consumer(),c=l.originalPositionFor({column:t,line:e});if(!c.source)return!1;"number"==typeof r&&(o=l.originalPositionFor({column:s,line:r})),i=n(c.source)?u(c.source):new URL(c.source,this.map.consumer().sourceRoot||u(this.map.mapFile));let p={column:c.column,endColumn:o&&o.column,endLine:o&&o.line,line:c.line,url:i.toString()};if("file:"===i.protocol){if(!a)throw new Error("file: protocol is not available in this PostCSS build");p.file=a(i)}let h=l.sourceContentFor(c.source);return h&&(p.source=h),p}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};t.exports=g,g.default=g,f&&f.registerInput&&f.registerInput(g)}),O=i((e,t)=>{var r=g(),n=class extends r{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=n,n.default=n,r.registerAtRule(n)}),T=i((e,t)=>{var r,n,s=g(),o=class extends s{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of n)e.raws.before=t.raws.before;return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new r(new n,this,e).stringify()}};o.registerLazyResult=e=>{r=e},o.registerProcessor=e=>{n=e},t.exports=o,o.default=o,s.registerRoot(o)}),C=i((e,t)=>{var r={comma:e=>r.split(e,[","],!0),space(e){let t=[" ","\n","\t"];return r.split(e,t)},split(e,t,r){let n=[],s="",o=!1,i=0,a=!1,u="",l=!1;for(let r of e)l?l=!1:"\\"===r?l=!0:a?r===u&&(a=!1):'"'===r||"'"===r?(a=!0,u=r):"("===r?i+=1:")"===r?i>0&&(i-=1):0===i&&t.includes(r)&&(o=!0),o?(""!==s&&n.push(s.trim()),s="",o=!1):s+=r;return(r||""!==s)&&n.push(s.trim()),n}};t.exports=r,r.default=r}),S=i((e,t)=>{var r=g(),n=C(),s=class extends r{get selectors(){return n.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};t.exports=s,s.default=s,r.registerRule(s)}),_=i((e,t)=>{var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,n=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,s=/.[\r\n"'(/\\]/,o=/[\da-f]/i;t.exports=function(e,t={}){let i,a,u,l,c,p,h,f,d,m,y=e.css.valueOf(),v=t.ignoreErrors,g=y.length,w=0,b=[],x=[];function k(t){throw e.error("Unclosed "+t,w)}return{back:function(e){x.push(e)},endOfFile:function(){return 0===x.length&&w>=g},nextToken:function(e){if(x.length)return x.pop();if(w>=g)return;let t=!!e&&e.ignoreUnclosed;switch(i=y.charCodeAt(w),i){case 10:case 32:case 9:case 13:case 12:l=w;do{l+=1,i=y.charCodeAt(l)}while(32===i||10===i||9===i||13===i||12===i);p=["space",y.slice(w,l)],w=l-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(i);p=[e,e,w];break}case 40:if(m=b.length?b.pop()[1]:"",d=y.charCodeAt(w+1),"url"===m&&39!==d&&34!==d&&32!==d&&10!==d&&9!==d&&12!==d&&13!==d){l=w;do{if(h=!1,l=y.indexOf(")",l+1),-1===l){if(v||t){l=w;break}k("bracket")}for(f=l;92===y.charCodeAt(f-1);)f-=1,h=!h}while(h);p=["brackets",y.slice(w,l+1),w,l],w=l}else l=y.indexOf(")",w+1),a=y.slice(w,l+1),-1===l||s.test(a)?p=["(","(",w]:(p=["brackets",a,w,l],w=l);break;case 39:case 34:c=39===i?"'":'"',l=w;do{if(h=!1,l=y.indexOf(c,l+1),-1===l){if(v||t){l=w+1;break}k("string")}for(f=l;92===y.charCodeAt(f-1);)f-=1,h=!h}while(h);p=["string",y.slice(w,l+1),w,l],w=l;break;case 64:r.lastIndex=w+1,r.test(y),l=0===r.lastIndex?y.length-1:r.lastIndex-2,p=["at-word",y.slice(w,l+1),w,l],w=l;break;case 92:for(l=w,u=!0;92===y.charCodeAt(l+1);)l+=1,u=!u;if(i=y.charCodeAt(l+1),u&&47!==i&&32!==i&&10!==i&&9!==i&&13!==i&&12!==i&&(l+=1,o.test(y.charAt(l)))){for(;o.test(y.charAt(l+1));)l+=1;32===y.charCodeAt(l+1)&&(l+=1)}p=["word",y.slice(w,l+1),w,l],w=l;break;default:47===i&&42===y.charCodeAt(w+1)?(l=y.indexOf("*/",w+2)+1,0===l&&(v||t?l=y.length:k("comment")),p=["comment",y.slice(w,l+1),w,l],w=l):(n.lastIndex=w+1,n.test(y),l=0===n.lastIndex?y.length-1:n.lastIndex-2,p=["word",y.slice(w,l+1),w,l],b.push(p),w=l)}return w++,p},position:function(){return w}}}}),E=i((e,t)=>{var r=O(),n=y(),s=v(),o=T(),i=S(),a=_(),u={empty:!0,space:!0};t.exports=class{constructor(e){this.input=e,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new r;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,s,o,i=!1,a=!1,u=[],l=[];for(;!this.tokenizer.endOfFile();){if(n=(e=this.tokenizer.nextToken())[0],"("===n||"["===n?l.push("("===n?")":"]"):"{"===n&&l.length>0?l.push("}"):n===l[l.length-1]&&l.pop(),0===l.length){if(";"===n){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}if("{"===n){a=!0;break}if("}"===n){if(u.length>0){for(o=u.length-1,s=u[o];s&&"space"===s[0];)s=u[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}u.push(e)}else u.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(t.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(t,"params",u),i&&(e=u[u.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let s=t-1;s>=0&&(r=e[s],"space"===r[0]||(n+=1,2!==n));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,s=0;for(let[o,i]of e.entries()){if(r=i,n=r[0],"("===n&&(s+=1),")"===n&&(s-=1),0===s&&":"===n){if(t){if("word"===t[0]&&"progid"===t[1])continue;return o}this.doubleColon(r)}t=r}return!1}comment(e){let t=new n;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(e,t){let r=new s;this.init(r,e[0][2]);let n,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}("_"===r.prop[0]||"*"===r.prop[0])&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i,a=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)a.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(n=e[t],"!important"===n[1].toLowerCase()){r.important=!0;let n=this.stringFrom(e,t);n=this.spacesFromEnd(e)+n," !important"!==n&&(r.raws.important=n);break}if("important"===n[1].toLowerCase()){let n=e.slice(0),s="";for(let e=t;e>0;e--){let t=n[e][0];if(s.trim().startsWith("!")&&"space"!==t)break;s=n.pop()[1]+s}s.trim().startsWith("!")&&(r.important=!0,r.raws.important=s,e=n)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=a.map(e=>e[1]).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new i;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&&"rule"===t.type&&!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="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,s=null,o=[],i=e[1].startsWith("--"),a=[],u=e;for(;u;){if(r=u[0],a.push(u),"("===r||"["===r)s||(s=u),o.push("("===r?")":"]");else if(i&&n&&"{"===r)s||(s=u),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,i);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(s=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(s),t&&n){if(!i)for(;a.length&&(u=a[a.length-1][0],"space"===u||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,i)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,o,i,a,l=r.length,c="",p=!0;for(let e=0;e<l;e+=1)s=r[e],o=s[0],"space"!==o||e!==l-1||n?"comment"===o?(a=r[e-1]?r[e-1][0]:"empty",i=r[e+1]?r[e+1][0]:"empty",u[a]||u[i]||","===c.slice(-1)?p=!1:c+=s[1]):c+=s[1]:p=!1;if(!p){let n=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new i;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+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})}}}),A=i((e,t)=>{var r=g(),n=k(),s=E();function o(e,t){let r=new n(e,t),o=new s(r);try{o.parse()}catch(e){throw e}return o.root}t.exports=o,o.default=o,r.registerParse(o)}),j=i((e,t)=>{var r=_(),n=k();t.exports={isInlineComment(e){if("word"===e[0]&&"//"===e[1].slice(0,2)){let t,s,o=e,i=[];for(;e;){if(/\r?\n/.test(e[1])){if(/['"].*\r?\n/.test(e[1])){i.push(e[1].substring(0,e[1].indexOf("\n"))),s=e[1].substring(e[1].indexOf("\n"));let r=this.input.css.valueOf().substring(this.tokenizer.position());s+=r,t=e[3]+r.length-s.length}else this.tokenizer.back(e);break}i.push(e[1]),t=e[2],e=this.tokenizer.nextToken({ignoreUnclosed:!0})}let a=["comment",i.join(""),o[2],t];return this.inlineComment(a),s&&(this.input=new n(s),this.tokenizer=r(this.input)),!0}if("/"===e[1]){let r=this.tokenizer.nextToken({ignoreUnclosed:!0});if("comment"===r[0]&&/^\/\*/.test(r[1]))return r[0]="word",r[1]=r[1].slice(1),e[1]="//",this.tokenizer.back(r),t.exports.isInlineComment.bind(this)(e)}return!1}}}),I=i((e,t)=>{t.exports={interpolation(e){let t=[e,this.tokenizer.nextToken()],r=["word","}"];if(t[0][1].length>1||"{"!==t[1][0])return this.tokenizer.back(t[1]),!1;for(e=this.tokenizer.nextToken();e&&r.includes(e[0]);)t.push(e),e=this.tokenizer.nextToken();let n=t.map(e=>e[1]),[s]=t,o=t.pop(),i=["word",n.join(""),s[2],o[2]];return this.tokenizer.back(e),this.tokenizer.back(i),!0}}}),P=i((e,t)=>{var r=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,n=/\.[0-9]/;t.exports={isMixinToken:e=>{let[,t]=e,[s]=t;return("."===s||"#"===s)&&!1===r.test(t)&&!1===n.test(t)}}}),M=i((e,t)=>{var r=_(),n=/^url\((.+)\)/;t.exports=e=>{let{name:t,params:s=""}=e;if("import"===t&&s.length){e.import=!0;let t=r({css:s});for(e.filename=s.replace(n,"$1");!t.endOfFile();){let[r,n]=t.nextToken();if("word"===r&&"url"===n)return;if("brackets"===r){e.options=n,e.filename=s.replace(n,"").trim();break}}}}}),$=i((e,t)=>{var r=/:$/,n=/^:(\s+)?/;t.exports=e=>{let{name:t,params:s=""}=e;if(":"===e.name.slice(-1)){if(r.test(t)){let[n]=t.match(r);e.name=t.replace(n,""),e.raws.afterName=n+(e.raws.afterName||""),e.variable=!0,e.value=e.params}if(n.test(s)){let[t]=s.match(n);e.value=s.replace(t,""),e.raws.afterName=(e.raws.afterName||"")+t,e.variable=!0}}}}),R=i((e,t)=>{var r=y(),n=E(),{isInlineComment:s}=j(),{interpolation:o}=I(),{isMixinToken:i}=P(),a=M(),u=$(),l=/(!\s*important)$/i;t.exports=class extends n{constructor(...e){super(...e),this.lastNode=null}atrule(e){o.bind(this)(e)||(super.atrule(e),a(this.lastNode),u(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]),r=e.reverse().find(e=>")"===e[0]),n=e.reverse().indexOf(r),s=e.splice(t,n).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=s}init(e,t,r){super.init(e,t,r),this.lastNode=e}inlineComment(e){let t=new r,n=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(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*[^\s])(\s*)$/);[,t.raws.left,t.text,t.raws.right]=e}}mixin(e){let[t]=e,r=t[1].slice(0,1),n=e.findIndex(e=>"brackets"===e[0]),s=e.findIndex(e=>"("===e[0]),o="";if((n<0||n>3)&&s>0){let t=e.reduce((e,t,r)=>")"===t[0]?r:e),r=e.slice(s,t+s).map(e=>e[1]).join(""),[n]=e.slice(s),o=[n[2],n[3]],[i]=e.slice(t,t+1),a=[i[2],i[3]],u=["brackets",r].concat(o,a),l=e.slice(0,s),c=e.slice(t+1);(e=l).push(u),e=e.concat(c)}let i=[];for(let t of e)if(("!"===t[1]||i.length)&&i.push(t),"important"===t[1])break;if(i.length){let[t]=i,r=e.indexOf(t),n=i[i.length-1],s=[t[2],t[3]],o=[n[4],n[5]],a=["word",i.map(e=>e[1]).join("")].concat(s,o);e.splice(r,i.length,a)}let a=e.findIndex(e=>l.test(e[1]));a>0&&([,o]=e[a],e.splice(a,1));for(let t of e.reverse())this.tokenizer.back(t);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){s.bind(this)(e)||super.other(e)}rule(e){let t=e[e.length-1],r=e[e.length-2];if("at-word"===r[0]&&"{"===t[0]&&(this.tokenizer.back(t),o.bind(this)(r))){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;"each"!==e[0][1]||"("!==e[1][0]?i(t)?this.mixin(e):super.unknownWord(e):this.each(e)}}}),N=i((e,t)=>{var r=h();t.exports=class extends r{atrule(e,t){if(!e.mixin&&!e.variable&&!e.function)return void super.atrule(e,t);let r=`${e.function?"":e.raws.identifier||"@"}${e.name}`,n=e.params?this.rawValue(e,"params"):"",s=e.raws.important||"";if(e.variable&&(n=e.value),typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n+s);else{let o=(e.raws.between||"")+s+(t?";":"");this.builder(r+n+o,e)}}comment(e){if(e.inline){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${t}${e.text}${r}`,e)}else super.comment(e)}}}),L=i((e,t)=>{var r=k(),n=R(),s=N();t.exports={parse(e,t){let s=new r(e,t),o=new n(s);return o.parse(),o.root.walk(e=>{let t=s.css.lastIndexOf(e.source.input.css);if(0===t)return;if(t+e.source.input.css.length!==s.css.length)throw new Error("Invalid state detected in postcss-less");let r=t+e.source.start.offset,n=s.fromOffset(t+e.source.start.offset);if(e.source.start={offset:r,line:n.line,column:n.col},e.source.end){let r=t+e.source.end.offset,n=s.fromOffset(t+e.source.end.offset);e.source.end={offset:r,line:n.line,column:n.col}}}),o.root},stringify(e,t){new s(t).stringify(e)},nodeToString(e){let r="";return t.exports.stringify(e,e=>{r+=e}),r}}}),W=i((e,t)=>{var r,n,s=g(),o=class extends s{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r(new n,this,e).stringify()}};o.registerLazyResult=e=>{r=e},o.registerProcessor=e=>{n=e},t.exports=o,o.default=o}),B=i((e,t)=>{var r=O(),n=y(),s=v(),o=k(),i=x(),a=T(),u=S();function l(e,t){if(Array.isArray(e))return e.map(e=>l(e));let{inputs:c,...p}=e;if(c){t=[];for(let e of c){let r={...e,__proto__:o.prototype};r.map&&(r.map={...r.map,__proto__:i.prototype}),t.push(r)}}if(p.nodes&&(p.nodes=e.nodes.map(e=>l(e,t))),p.source){let{inputId:e,...r}=p.source;p.source=r,null!=e&&(p.source.input=t[e])}if("root"===p.type)return new a(p);if("decl"===p.type)return new s(p);if("rule"===p.type)return new u(p);if("comment"===p.type)return new n(p);if("atrule"===p.type)return new r(p);throw new Error("Unknown node type: "+e.type)}t.exports=l,l.default=l}),z=i((e,t)=>{t.exports=class{generate(){}}}),q=i((e,t)=>{var r=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=r,r.default=r}),D=i((e,t)=>{var r=q(),n=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,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 n=new r(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>"warning"===e.type)}};t.exports=n,n.default=n}),U=i((e,t)=>{var r={};t.exports=function(e){r[e]||(r[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}}),F=i((e,t)=>{var r=g(),n=W(),s=z(),o=A(),i=D(),a=T(),u=f(),{isClean:l,my:c}=d();U();var p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={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},m={Once:!0,postcssPlugin:!0,prepare:!0};function y(e){return"object"==typeof e&&"function"==typeof e.then}function v(e){let t=!1,r=p[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function w(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:v(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function b(e){return e[l]=!1,e.nodes&&e.nodes.forEach(e=>b(e)),e}var x={},k=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,n,s){let a;if(this.stringified=!1,this.processed=!1,"object"!=typeof n||null===n||"root"!==n.type&&"document"!==n.type)if(n instanceof e||n instanceof i)a=b(n.root),n.map&&(typeof s.map>"u"&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=n.map);else{let e=o;s.syntax&&(e=s.syntax.parse),s.parser&&(e=s.parser),e.parse&&(e=e.parse);try{a=e(n,s)}catch(e){this.processed=!0,this.error=e}a&&!a[c]&&r.rebuild(a)}else a=b(n);this.result=new i(t,a,s),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!h[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!m[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(y(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];){e[l]=!0;let t=[w(e)];for(;t.length>0;){let e=this.visitTick(t);if(y(e))try{await e}catch(e){let r=t[t.length-1].node;throw this.handleError(e,r)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>r(e,this.helpers));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return y(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=u;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new s(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(y(this.runOnRoot(e)))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("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,n]of e){let e;this.result.lastPlugin=r;try{e=n(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(y(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){let[e,s]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let n,s=t.iterator;for(;n=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!n[l])return n[l]=!0,void e.push(w(n));t.iterator=0,delete r.indexes[s]}let s=t.events;for(;t.eventIndex<s.length;){let e=s[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[l]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[l]=!0;let t=v(e);for(let r of t)if(0===r)e.nodes&&e.each(e=>{e[l]||this.walkSync(e)});else{let t=this.listeners[r];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}};k.registerPostcss=e=>{x=e},t.exports=k,k.default=k,a.registerLazyResult(k),n.registerLazyResult(k)}),V=i((e,t)=>{var r=z(),n=A(),s=D(),o=f();U();var i=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=n;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,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i,a=o;this.result=new s(this._processor,i,this._opts),this.result.css=t;let u=this;Object.defineProperty(this.result,"root",{get:()=>u.root});let l=new r(a,i,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=i,i.default=i}),G=i((e,t)=>{var r=W(),n=F(),s=V(),o=T(),i=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new n(this,e,t):new s(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=i,i.default=i,o.registerProcessor(i),r.registerProcessor(i)}),J=i((e,t)=>{var r=O(),n=y(),s=g(),o=p(),i=v(),a=W(),u=B(),l=k(),c=F(),h=C(),d=m(),w=A(),b=G(),x=D(),_=T(),E=S(),j=f(),I=q();function P(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new b(e)}P.plugin=function(e,t){let r,n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=(new b).version,s}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return P([s(r)]).process(e,t)},s},P.stringify=j,P.parse=w,P.fromJSON=u,P.list=h,P.comment=e=>new n(e),P.atRule=e=>new r(e),P.decl=e=>new i(e),P.rule=e=>new E(e),P.root=e=>new _(e),P.document=e=>new a(e),P.CssSyntaxError=o,P.Declaration=i,P.Container=s,P.Processor=b,P.Document=a,P.Comment=n,P.Warning=I,P.AtRule=r,P.Result=x,P.Input=l,P.Rule=E,P.Root=_,P.Node=d,c.registerPostcss(P),t.exports=P,P.default=P}),H=i((e,t)=>{var{Container:r}=J();t.exports=class extends r{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}}}),Q=i((e,t)=>{var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,n=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,s=/.[\r\n"'(/\\]/,o=/[\da-f]/i,i=/[\n\f\r]/g;t.exports=function(e,t={}){let a,u,l,c,p,h,f,d,m,y,v=e.css.valueOf(),g=t.ignoreErrors,w=v.length,b=0,x=[],k=[];function O(t){throw e.error("Unclosed "+t,b)}function T(){let e=1,t=!1,r=!1;for(;e>0;)u+=1,v.length<=u&&O("interpolation"),a=v.charCodeAt(u),d=v.charCodeAt(u+1),t?r||a!==t?92===a?r=!r:r&&(r=!1):(t=!1,r=!1):39===a||34===a?t=a:125===a?e-=1:35===a&&123===d&&(e+=1)}return{back:function(e){k.push(e)},endOfFile:function(){return 0===k.length&&b>=w},nextToken:function(e){if(k.length)return k.pop();if(b>=w)return;let t=!!e&&e.ignoreUnclosed;switch(a=v.charCodeAt(b),a){case 10:case 32:case 9:case 13:case 12:u=b;do{u+=1,a=v.charCodeAt(u)}while(32===a||10===a||9===a||13===a||12===a);m=["space",v.slice(b,u)],b=u-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(a);m=[e,e,b];break}case 44:m=["word",",",b,b+1];break;case 40:if(f=x.length?x.pop()[1]:"",d=v.charCodeAt(b+1),"url"===f&&39!==d&&34!==d){for(y=1,h=!1,u=b+1;u<=v.length-1;){if(d=v.charCodeAt(u),92===d)h=!h;else if(40===d)y+=1;else if(41===d&&(y-=1,0===y))break;u+=1}c=v.slice(b,u+1),m=["brackets",c,b,u],b=u}else u=v.indexOf(")",b+1),c=v.slice(b,u+1),-1===u||s.test(c)?m=["(","(",b]:(m=["brackets",c,b,u],b=u);break;case 39:case 34:for(l=a,u=b,h=!1;u<w&&(u++,u===w&&O("string"),a=v.charCodeAt(u),d=v.charCodeAt(u+1),h||a!==l);)92===a?h=!h:h?h=!1:35===a&&123===d&&T();m=["string",v.slice(b,u+1),b,u],b=u;break;case 64:r.lastIndex=b+1,r.test(v),u=0===r.lastIndex?v.length-1:r.lastIndex-2,m=["at-word",v.slice(b,u+1),b,u],b=u;break;case 92:for(u=b,p=!0;92===v.charCodeAt(u+1);)u+=1,p=!p;if(a=v.charCodeAt(u+1),p&&47!==a&&32!==a&&10!==a&&9!==a&&13!==a&&12!==a&&(u+=1,o.test(v.charAt(u)))){for(;o.test(v.charAt(u+1));)u+=1;32===v.charCodeAt(u+1)&&(u+=1)}m=["word",v.slice(b,u+1),b,u],b=u;break;default:d=v.charCodeAt(b+1),35===a&&123===d?(u=b,T(),c=v.slice(b,u+1),m=["word",c,b,u],b=u):47===a&&42===d?(u=v.indexOf("*/",b+2)+1,0===u&&(g||t?u=v.length:O("comment")),m=["comment",v.slice(b,u+1),b,u],b=u):47===a&&47===d?(i.lastIndex=b+1,i.test(v),u=0===i.lastIndex?v.length-1:i.lastIndex-2,c=v.slice(b,u+1),m=["comment",c,b,u,"inline"],b=u):(n.lastIndex=b+1,n.test(v),u=0===n.lastIndex?v.length-1:n.lastIndex-2,m=["word",v.slice(b,u+1),b,u],x.push(m),b=u)}return b++,m},position:function(){return b}}}}),K=i((e,t)=>{var{Comment:r}=J(),n=E(),s=H(),o=Q();t.exports=class extends n{atrule(e){let t=e[1],r=e;for(;!this.tokenizer.endOfFile();){let e=this.tokenizer.nextToken();if("word"!==e[0]||e[2]!==r[3]+1){this.tokenizer.back(e);break}t+=e[1],r=e}super.atrule(["at-word",t,e[2],r[3]])}comment(e){if("inline"===e[4]){let t=new r;this.init(t,e[2]),t.raws.inline=!0;let n=this.input.fromOffset(e[3]);t.source.end={column:n.col,line:n.line,offset:e[3]+1};let s=e[1].slice(2);if(/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let e=s.match(/^(\s*)([^]*\S)(\s*)$/),r=e[2].replace(/(\*\/|\/\*)/g,"*//*");t.text=r,t.raws.left=e[1],t.raws.right=e[3],t.raws.text=e[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=o(this.input)}raw(e,t,r,n){if(super.raw(e,t,r,n),e.raws[t]){let n=e.raws[t].raw;e.raws[t].raw=r.reduce((e,t)=>{if("comment"===t[0]&&"inline"===t[4]){return e+"/*"+t[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*")+"*/"}return e+t[1]},""),n!==e.raws[t].raw&&(e.raws[t].scss=n)}}rule(e){let t=!1,r=0,n="";for(let s of e)if(t)"comment"!==s[0]&&"{"!==s[0]&&(n+=s[1]);else{if("space"===s[0]&&s[1].includes("\n"))break;"("===s[0]?r+=1:")"===s[0]?r-=1:0===r&&":"===s[0]&&(t=!0)}if(!t||""===n.trim()||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let t,r,n=new s;this.init(n,e[0][2]);for(let r=e.length-1;r>=0;r--)if("space"!==e[r][0]){t=e[r];break}if(t[3]){let e=this.input.fromOffset(t[3]);n.source.end={column:e.col,line:e.line,offset:t[3]+1}}else{let e=this.input.fromOffset(t[2]);n.source.end={column:e.col,line:e.line,offset:t[2]+1}}for(;"word"!==e[0][0];)n.raws.before+=e.shift()[1];if(e[0][2]){let t=this.input.fromOffset(e[0][2]);n.source.start={column:t.col,line:t.line,offset:e[0][2]}}for(n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}n.raws.between+=r[1]}("_"===n.prop[0]||"*"===n.prop[0])&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1)),n.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let t=e.length-1;t>0;t--){if(r=e[t],"!important"===r[1]){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===r[1]){let r=e.slice(0),s="";for(let e=t;e>0;e--){let t=r[e][0];if(0===s.trim().indexOf("!")&&"space"!==t)break;s=r.pop()[1]+s}0===s.trim().indexOf("!")&&(n.important=!0,n.raws.important=s,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}this.raw(n,"value",e),n.value.includes(":")&&this.checkMissedSemicolon(e),this.current=n}}}}),Y=i((e,t)=>{var{Input:r}=J(),n=K();t.exports=function(e,t){let s=new r(e,t),o=new n(s);return o.parse(),o.root}}),Z=i(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){this.after=e.after,this.before=e.before,this.type=e.type,this.value=e.value,this.sourceIndex=e.sourceIndex}}),X=i(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t,r=Z(),n=(t=r)&&t.__esModule?t:{default:t};function s(e){var t=this;this.constructor(e),this.nodes=e.nodes,void 0===this.after&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),void 0===this.before&&(this.before=this.nodes.length>0?this.nodes[0].before:""),void 0===this.sourceIndex&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(e){e.parent=t})}s.prototype=Object.create(n.default.prototype),s.constructor=n.default,s.prototype.walk=function(e,t){for(var r="string"==typeof e||e instanceof RegExp,n=r?t:e,s="string"==typeof e?new RegExp(e):e,o=0;o<this.nodes.length;o++){var i=this.nodes[o];if((!r||s.test(i.type))&&n&&!1===n(i,o,this.nodes)||i.nodes&&!1===i.walk(e,t))return!1}return!0},s.prototype.each=function(){for(var e=arguments.length<=0||void 0===arguments[0]?function(){}:arguments[0],t=0;t<this.nodes.length;t++){if(!1===e(this.nodes[t],t,this.nodes))return!1}return!0},e.default=s}),ee=i(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseMediaFeature=s,e.parseMediaQuery=o,e.parseMediaList=function(e){var n=[],s=0,i=0,a=/^(\s*)url\s*\(/.exec(e);if(null!==a){for(var u=a[0].length,l=1;l>0;){var c=e[u];"("===c&&l++,")"===c&&l--,u++}n.unshift(new t.default({type:"url",value:e.substring(0,u).trim(),sourceIndex:a[1].length,before:a[1],after:/^(\s*)/.exec(e.substring(u))[1]})),s=u}for(var p=s;p<e.length;p++){var h=e[p];if("("===h&&i++,")"===h&&i--,0===i&&","===h){var f=e.substring(s,p),d=/^(\s*)/.exec(f)[1];n.push(new r.default({type:"media-query",value:f.trim(),sourceIndex:s+d.length,nodes:o(f,s),before:d,after:/(\s*)$/.exec(f)[1]})),s=p+1}}var m=e.substring(s),y=/^(\s*)/.exec(m)[1];return n.push(new r.default({type:"media-query",value:m.trim(),sourceIndex:s+y.length,nodes:o(m,s),before:y,after:/(\s*)$/.exec(m)[1]})),n};var t=n(Z()),r=n(X());function n(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=[{mode:"normal",character:null}],r=[],n=0,s="",o=null,i=null,a=arguments.length<=1||void 0===arguments[1]?0:arguments[1],u=e;"("===e[0]&&")"===e[e.length-1]&&(u=e.substring(1,e.length-1),a++);for(var l=0;l<u.length;l++){var c=u[l];if(("'"===c||'"'===c)&&(!0===t[n].isCalculationEnabled?(t.push({mode:"string",isCalculationEnabled:!1,character:c}),n++):"string"===t[n].mode&&t[n].character===c&&"\\"!==u[l-1]&&(t.pop(),n--)),"{"===c?(t.push({mode:"interpolation",isCalculationEnabled:!0}),n++):"}"===c&&(t.pop(),n--),"normal"===t[n].mode&&":"===c){var p=u.substring(l+1);(i={type:"value",before:/^(\s*)/.exec(p)[1],after:/(\s*)$/.exec(p)[1],value:p.trim()}).sourceIndex=i.before.length+l+1+a,o={type:"colon",sourceIndex:l+a,after:i.before,value:":"};break}s+=c}return(s={type:"media-feature",before:/^(\s*)/.exec(s)[1],after:/(\s*)$/.exec(s)[1],value:s.trim()}).sourceIndex=s.before.length+a,r.push(s),null!==o&&(o.before=s.after,r.push(o)),null!==i&&r.push(i),r}function o(e){var n=arguments.length<=1||void 0===arguments[1]?0:arguments[1],o=[],i=0,a=!1,u=void 0;function l(){return{before:"",after:"",value:""}}u={before:"",after:"",value:""};for(var c=0;c<e.length;c++){var p=e[c];a?(u.value+=p,("{"===p||"("===p)&&i++,(")"===p||"}"===p)&&i--):-1!==p.search(/\s/)?u.before+=p:("("===p&&(u.type="media-feature-expression",i++),u.value=p,u.sourceIndex=n+c,a=!0),a&&0===i&&(")"===p||c===e.length-1||-1!==e[c+1].search(/\s/))&&(-1!==["not","only","and"].indexOf(u.value)&&(u.type="keyword"),"media-feature-expression"===u.type&&(u.nodes=s(u.value,u.sourceIndex)),o.push(Array.isArray(u.nodes)?new r.default(u):new t.default(u)),u=l(),a=!1)}for(var h=0;h<o.length;h++)if(u=o[h],h>0&&(o[h-1].after=u.before),void 0===u.type){if(h>0){if("media-feature-expression"===o[h-1].type){u.type="keyword";continue}if("not"===o[h-1].value||"only"===o[h-1].value){u.type="media-type";continue}if("and"===o[h-1].value){u.type="media-feature-expression";continue}"media-type"===o[h-1].type&&(o[h+1]?u.type="media-feature-expression"===o[h+1].type?"keyword":"media-feature-expression":u.type="media-feature-expression")}if(0===h){if(!o[h+1]){u.type="media-type";continue}if(o[h+1]&&("media-feature-expression"===o[h+1].type||"keyword"===o[h+1].type)){u.type="media-type";continue}if(o[h+2]){if("media-feature-expression"===o[h+2].type){u.type="media-type",o[h+1].type="keyword";continue}if("keyword"===o[h+2].type){u.type="keyword",o[h+1].type="media-type";continue}}if(o[h+3]&&"media-feature-expression"===o[h+3].type){u.type="keyword",o[h+1].type="media-type",o[h+2].type="keyword";continue}}}return o}}),te=i(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return new n.default({nodes:(0,s.parseMediaList)(e),type:"media-query-list",value:e.trim()})};var t,r=X(),n=(t=r)&&t.__esModule?t:{default:t},s=ee()}),re=i((e,t)=>{t.exports=function(e,t){return(t="number"==typeof t?t:1/0)?function e(r,n){return r.reduce(function(r,s){return Array.isArray(s)&&n<t?r.concat(e(s,n+1)):r.concat(s)},[])}(e,1):Array.isArray(e)?e.map(function(e){return e}):e}}),ne=i((e,t)=>{t.exports=function(e,t){for(var r=-1,n=[];-1!==(r=e.indexOf(t,r+1));)n.push(r);return n}}),se=i((e,t)=>{t.exports=function(e,t,r){return 0===e.length?e:t?(r||e.sort(t),function(e,t){for(var r=1,n=e.length,s=e[0],o=e[0],i=1;i<n;++i)if(o=s,t(s=e[i],o)){if(i===r){r++;continue}e[r++]=s}return e.length=r,e}(e,t)):(r||e.sort(),function(e){for(var t=1,r=e.length,n=e[0],s=e[0],o=1;o<r;++o,s=n)if(s=n,(n=e[o])!==s){if(o===t){t++;continue}e[t++]=n}return e.length=t,e}(e))}}),oe=i((e,t)=>{e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var n=function e(t,n){if("object"!==(typeof t>"u"?"undefined":r(t)))return t;var s=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o],a=typeof i>"u"?"undefined":r(i);"parent"===o&&"object"===a?n&&(s[o]=n):s[o]=i instanceof Array?i.map(function(t){return e(t,s)}):e(i,s)}return s},s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t)this[r]=t[r];var n=t.spaces,s=(n=void 0===n?{}:n).before,o=void 0===s?"":s,i=n.after,a=void 0===i?"":i;this.spaces={before:o,after:a}}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&&void 0!==arguments[0]?arguments[0]:{},t=n(this);for(var r in e)t[r]=e[r];return t},e.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},e}();e.default=s,t.exports=e.default}),ie=i(e=>{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"}),ae=i((e,t)=>{e.__esModule=!0;var r,n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=oe(),o=(r=s)&&r.__esModule?r:{default:r},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(ie());var a=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.nodes||(n.nodes=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),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"number"==typeof e?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 r in this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this},t.prototype.removeAll=function(){var e=this.nodes,t=Array.isArray(e),r=0;for(e=t?e:e[Symbol.iterator]();;){var n;if(t){if(r>=e.length)break;n=e[r++]}else{if((r=e.next()).done)break;n=r.value}n.parent=void 0}return this.nodes=[],this},t.prototype.empty=function(){return this.removeAll()},t.prototype.insertAfter=function(e,t){var r=this.index(e);this.nodes.splice(r+1,0,t);var n=void 0;for(var s in this.indexes)r<=(n=this.indexes[s])&&(this.indexes[s]=n+this.nodes.length);return this},t.prototype.insertBefore=function(e,t){var r=this.index(e);this.nodes.splice(r,0,t);var n=void 0;for(var s in this.indexes)r<=(n=this.indexes[s])&&(this.indexes[s]=n+this.nodes.length);return this},t.prototype.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var r=void 0,n=void 0;this.indexes[t]<this.length&&(r=this.indexes[t],!1!==(n=e(this.at(r),r)));)this.indexes[t]+=1;if(delete this.indexes[t],!1===n)return!1}},t.prototype.walk=function(e){return this.each(function(t,r){var n=e(t,r);if(!1!==n&&t.length&&(n=t.walk(e)),!1===n)return!1})},t.prototype.walkAttributes=function(e){var t=this;return this.walk(function(r){if(r.type===i.ATTRIBUTE)return e.call(t,r)})},t.prototype.walkClasses=function(e){var t=this;return this.walk(function(r){if(r.type===i.CLASS)return e.call(t,r)})},t.prototype.walkCombinators=function(e){var t=this;return this.walk(function(r){if(r.type===i.COMBINATOR)return e.call(t,r)})},t.prototype.walkComments=function(e){var t=this;return this.walk(function(r){if(r.type===i.COMMENT)return e.call(t,r)})},t.prototype.walkIds=function(e){var t=this;return this.walk(function(r){if(r.type===i.ID)return e.call(t,r)})},t.prototype.walkNesting=function(e){var t=this;return this.walk(function(r){if(r.type===i.NESTING)return e.call(t,r)})},t.prototype.walkPseudos=function(e){var t=this;return this.walk(function(r){if(r.type===i.PSEUDO)return e.call(t,r)})},t.prototype.walkTags=function(e){var t=this;return this.walk(function(r){if(r.type===i.TAG)return e.call(t,r)})},t.prototype.walkUniversals=function(e){var t=this;return this.walk(function(r){if(r.type===i.UNIVERSAL)return e.call(t,r)})},t.prototype.split=function(e){var t=this,r=[];return this.reduce(function(n,s,o){var i=e.call(t,s);return r.push(s),i?(n.push(r),r=[]):o===t.length-1&&n.push(r),n},[])},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}(o.default);e.default=a,t.exports=e.default}),ue=i((e,t)=>{e.__esModule=!0;var r,n=ae(),s=(r=n)&&r.__esModule?r:{default:r},o=ie();var i=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=o.ROOT,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),t.prototype.toString=function(){var e=this.reduce(function(e,t){var r=String(t);return r?e+r+",":""},"").slice(0,-1);return this.trailingComma?e+",":e},t}(s.default);e.default=i,t.exports=e.default}),le=i((e,t)=>{e.__esModule=!0;var r,n=ae(),s=(r=n)&&r.__esModule?r:{default:r},o=ie();var i=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=o.SELECTOR,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),t}(s.default);e.default=i,t.exports=e.default}),ce=i((e,t)=>{e.__esModule=!0;var r,n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=oe();var o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),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?("string"==typeof e?e:"")+"|":""}}]),t}(((r=s)&&r.__esModule?r:{default:r}).default);e.default=o,t.exports=e.default}),pe=i((e,t)=>{e.__esModule=!0;var r,n=ce(),s=(r=n)&&r.__esModule?r:{default:r},o=ie();var i=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=o.CLASS,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),t.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},t}(s.default);e.default=i,t.exports=e.default}),he=i((e,t)=>{e.__esModule=!0;var r,n=oe(),s=(r=n)&&r.__esModule?r:{default:r},o=ie();var i=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=o.COMMENT,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),t}(s.default);e.default=i,t.exports=e.default}),fe=i((e,t)=>{e.__esModule=!0;var r,n=ce(),s=(r=n)&&r.__esModule?r:{default:r},o=ie();var i=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=o.ID,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),t.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},t}(s.default);e.default=i,t.exports=e.default}),de=i((e,t)=>{e.__esModule=!0;var r,n=ce(),s=(r=n)&&r.__esModule?r:{default:r},o=ie();var i=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=o.TAG,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),t}(s.default);e.default=i,t.exports=e.default}),me=i((e,t)=>{e.__esModule=!0;var r,n=oe(),s=(r=n)&&r.__esModule?r:{default:r},o=ie();var i=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=o.STRING,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),t}(s.default);e.default=i,t.exports=e.default}),ye=i((e,t)=>{e.__esModule=!0;var r,n=ae(),s=(r=n)&&r.__esModule?r:{default:r},o=ie();var i=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=o.PSEUDO,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),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}(s.default);e.default=i,t.exports=e.default}),ve=i((e,t)=>{e.__esModule=!0;var r,n=ce(),s=(r=n)&&r.__esModule?r:{default:r},o=ie();var i=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=o.ATTRIBUTE,n.raws={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),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}(s.default);e.default=i,t.exports=e.default}),ge=i((e,t)=>{e.__esModule=!0;var r,n=ce(),s=(r=n)&&r.__esModule?r:{default:r},o=ie();var i=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=o.UNIVERSAL,n.value="*",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),t}(s.default);e.default=i,t.exports=e.default}),we=i((e,t)=>{e.__esModule=!0;var r,n=oe(),s=(r=n)&&r.__esModule?r:{default:r},o=ie();var i=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=o.COMBINATOR,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),t}(s.default);e.default=i,t.exports=e.default}),be=i((e,t)=>{e.__esModule=!0;var r,n=oe(),s=(r=n)&&r.__esModule?r:{default:r},o=ie();var i=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=o.NESTING,n.value="&",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(t,e),t}(s.default);e.default=i,t.exports=e.default}),xe=i((e,t)=>{e.__esModule=!0,e.default=function(e){return e.sort(function(e,t){return e-t})},t.exports=e.default}),ke=i((e,t)=>{e.__esModule=!0,e.default=function(e){for(var t=[],_=e.css.valueOf(),E=void 0,A=void 0,j=void 0,I=void 0,P=void 0,M=void 0,$=void 0,R=void 0,N=void 0,L=void 0,W=void 0,B=_.length,z=-1,q=1,D=0,U=function(t,r){if(!e.safe)throw e.error("Unclosed "+t,q,D-z,D);A=(_+=r).length-1};D<B;){switch((E=_.charCodeAt(D))===i&&(z=D,q+=1),E){case i:case a:case l:case c:case u:A=D;do{A+=1,(E=_.charCodeAt(A))===i&&(z=A,q+=1)}while(E===a||E===i||E===l||E===c||E===u);t.push(["space",_.slice(D,A),q,D-z,D]),D=A-1;break;case p:case h:case f:case d:A=D;do{A+=1,E=_.charCodeAt(A)}while(E===p||E===h||E===f||E===d);t.push(["combinator",_.slice(D,A),q,D-z,D]),D=A-1;break;case x:t.push(["*","*",q,D-z,D]);break;case O:t.push(["&","&",q,D-z,D]);break;case m:t.push([",",",",q,D-z,D]);break;case g:t.push(["[","[",q,D-z,D]);break;case w:t.push(["]","]",q,D-z,D]);break;case k:t.push([":",":",q,D-z,D]);break;case b:t.push([";",";",q,D-z,D]);break;case y:t.push(["(","(",q,D-z,D]);break;case v:t.push([")",")",q,D-z,D]);break;case r:case n:j=E===r?"'":'"',A=D;do{for(L=!1,-1===(A=_.indexOf(j,A+1))&&U("quote",j),W=A;_.charCodeAt(W-1)===s;)W-=1,L=!L}while(L);t.push(["string",_.slice(D,A+1),q,D-z,q,A-z,D]),D=A;break;case T:C.lastIndex=D+1,C.test(_),A=0===C.lastIndex?_.length-1:C.lastIndex-2,t.push(["at-word",_.slice(D,A+1),q,D-z,q,A-z,D]),D=A;break;case s:for(A=D,$=!0;_.charCodeAt(A+1)===s;)A+=1,$=!$;E=_.charCodeAt(A+1),$&&E!==o&&E!==a&&E!==i&&E!==l&&E!==c&&E!==u&&(A+=1),t.push(["word",_.slice(D,A+1),q,D-z,q,A-z,D]),D=A;break;default:E===o&&_.charCodeAt(D+1)===x?(0===(A=_.indexOf("*/",D+2)+1)&&U("comment","*/"),(P=(I=(M=_.slice(D,A+1)).split("\n")).length-1)>0?(R=q+P,N=A-I[P].length):(R=q,N=z),t.push(["comment",M,q,D-z,R,A-N,D]),z=N,q=R,D=A):(S.lastIndex=D+1,S.test(_),A=0===S.lastIndex?_.length-1:S.lastIndex-2,t.push(["word",_.slice(D,A+1),q,D-z,q,A-z,D]),D=A)}D++}return t};var r=39,n=34,s=92,o=47,i=10,a=32,u=12,l=9,c=13,p=43,h=62,f=126,d=124,m=44,y=40,v=41,g=91,w=93,b=59,x=42,k=58,O=38,T=64,C=/[ \n\t\r\{\(\)'"\\;/]/g,S=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;t.exports=e.default}),Oe=i((e,t)=>{e.__esModule=!0;var r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),n=x(re()),s=x(ne()),o=x(se()),i=x(ue()),a=x(le()),u=x(pe()),l=x(he()),c=x(fe()),p=x(de()),h=x(me()),f=x(ye()),d=x(ve()),m=x(ge()),y=x(we()),v=x(be()),g=x(xe()),w=x(ke()),b=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(ie());function x(e){return e&&e.__esModule?e:{default:e}}var k=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.input=t,this.lossy=!1===t.options.lossless,this.position=0,this.root=new i.default;var r=new a.default;return this.root.append(r),this.current=r,this.lossy?this.tokens=(0,w.default)({safe:t.safe,css:t.css.trim()}):this.tokens=(0,w.default)(t),this.loop()}return e.prototype.attribute=function(){var e="",t=void 0,r=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 n=e.split(/((?:[*~^$|]?=))([^]*)/),s=n[0].split(/(\|)/g),o={operator:n[1],value:n[2],source:{start:{line:r[2],column:r[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:r[4]};if(s.length>1?(""===s[0]&&(s[0]=!0),o.attribute=this.parseValue(s[2]),o.namespace=this.parseNamespace(s[0])):o.attribute=this.parseValue(n[0]),t=new d.default(o),n[2]){var i=n[2].split(/(\s+i\s*?)$/),a=i[0].trim();t.value=this.lossy?a:i[0],i[1]&&(t.insensitive=!0,this.lossy||(t.raws.insensitive=i[1])),t.quoted="'"===a[0]||'"'===a[0],t.raws.unquoted=t.quoted?a.slice(1,-1):a}this.newNode(t),this.position++},e.prototype.combinator=function(){if("|"===this.currToken[1])return this.namespace();for(var e=new y.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&&("space"===this.currToken[0]||"combinator"===this.currToken[0]);)this.nextToken&&"combinator"===this.nextToken[0]?(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&&"combinator"===this.prevToken[0]?e.spaces.after=this.parseSpace(this.currToken[1]):"combinator"===this.currToken[0]?e.value=this.currToken[1]:"space"===this.currToken[0]&&(e.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(e)},e.prototype.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;var e=new a.default;this.current.parent.append(e),this.current=e,this.position++},e.prototype.comment=function(){var e=new l.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;return"word"===this.nextToken[0]?(this.position++,this.word(e)):"*"===this.nextToken[0]?(this.position++,this.universal(e)):void 0},e.prototype.nesting=function(){this.newNode(new v.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===b.PSEUDO){var t=new a.default,r=this.current;e.append(t),this.current=t;var n=1;for(this.position++;this.position<this.tokens.length&&n;)"("===this.currToken[0]&&n++,")"===this.currToken[0]&&n--,n?this.parse():(t.parent.source.end.line=this.currToken[2],t.parent.source.end.column=this.currToken[3],this.position++);n&&this.error("Expected closing parenthesis."),this.current=r}else{var s=1;for(this.position++,e.value+="(";this.position<this.tokens.length&&s;)"("===this.currToken[0]&&s++,")"===this.currToken[0]&&s--,e.value+=this.parseParenthesisToken(this.currToken),this.position++;s&&this.error("Expected closing parenthesis.")}},e.prototype.pseudo=function(){for(var e=this,t="",r=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("word"===this.currToken[0]){var n=void 0;this.splitWord(!1,function(s,o){t+=s,n=new f.default({value:t,source:{start:{line:r[2],column:r[3]},end:{line:e.currToken[4],column:e.currToken[5]}},sourceIndex:r[4]}),e.newNode(n),o>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;0===this.position||","===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 h.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 m.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 r=this,i=this.nextToken,a=this.currToken[1];i&&"word"===i[0];){this.position++;var l=this.currToken[1];if(a+=l,l.lastIndexOf("\\")===l.length-1){var h=this.nextToken;h&&"space"===h[0]&&(a+=this.parseSpace(h[1]," "),this.position++)}i=this.nextToken}var f=(0,s.default)(a,"."),d=(0,s.default)(a,"#"),m=(0,s.default)(a,"#{");m.length&&(d=d.filter(function(e){return!~m.indexOf(e)}));var y=(0,g.default)((0,o.default)((0,n.default)([[0],f,d])));y.forEach(function(n,s){var o=y[s+1]||a.length,i=a.slice(n,o);if(0===s&&t)return t.call(r,i,y.length);var l=void 0;l=~f.indexOf(n)?new u.default({value:i.slice(1),source:{start:{line:r.currToken[2],column:r.currToken[3]+n},end:{line:r.currToken[4],column:r.currToken[3]+(o-1)}},sourceIndex:r.currToken[6]+y[s]}):~d.indexOf(n)?new c.default({value:i.slice(1),source:{start:{line:r.currToken[2],column:r.currToken[3]+n},end:{line:r.currToken[4],column:r.currToken[3]+(o-1)}},sourceIndex:r.currToken[6]+y[s]}):new p.default({value:i,source:{start:{line:r.currToken[2],column:r.currToken[3]+n},end:{line:r.currToken[4],column:r.currToken[3]+(o-1)}},sourceIndex:r.currToken[6]+y[s]}),r.newNode(l,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()}},e.prototype.parseNamespace=function(e){if(this.lossy&&"string"==typeof e){var t=e.trim();return!t.length||t}return e},e.prototype.parseSpace=function(e,t){return this.lossy?t||"":e},e.prototype.parseValue=function(e){return this.lossy&&e&&"string"==typeof e?e.trim():e},e.prototype.parseParenthesisToken=function(e){return this.lossy?"space"===e[0]?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)},r(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=k,t.exports=e.default}),Te=i((e,t)=>{e.__esModule=!0;var r,n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=Oe(),o=(r=s)&&r.__esModule?r:{default:r};var i=function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.func=t||function(){},this}return e.prototype.process=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new o.default({css:e,error:function(e){throw new Error(e)},options:t});return this.res=r,this.func(r),this},n(e,[{key:"result",get:function(){return String(this.res)}}]),e}();e.default=i,t.exports=e.default}),Ce=i((e,t)=>{var r=function(e,t){let n=new e.constructor;for(let s in e){if(!e.hasOwnProperty(s))continue;let o=e[s],i=typeof o;"parent"===s&&"object"===i?t&&(n[s]=t):"source"===s?n[s]=o:o instanceof Array?n[s]=o.map(e=>r(e,n)):"before"!==s&&"after"!==s&&"between"!==s&&"semicolon"!==s&&("object"===i&&null!==o&&(o=r(o)),n[s]=o)}return n};t.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let t in 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=e||{};let t=r(this);for(let r in e)t[r]=e[r];return t}cloneBefore(e){e=e||{};let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e){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)||"parent"===t)continue;let r=this[t];r instanceof Array?e[t]=r.map(e=>"object"==typeof e&&e.toJSON?e.toJSON():e):"object"==typeof r&&r.toJSON?e[t]=r.toJSON():e[t]=r}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(),r=this.source.start.column,n=this.source.start.line;for(let s=0;s<e;s++)"\n"===t[s]?(r=1,n+=1):r+=1;return{line:n,column:r}}positionBy(e){let t=this.source.start;if(Object(e).index)t=this.positionInside(e.index);else if(Object(e).word){let r=this.toString().indexOf(e.word);-1!==r&&(t=this.positionInside(r))}return t}}}),Se=i((e,t)=>{var r=Ce(),n=class extends r{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t,r,n=this.lastEach;if(this.indexes[n]=0,this.nodes){for(;this.indexes[n]<this.nodes.length&&(t=this.indexes[n],r=e(this.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}}walk(e){return this.each((t,r)=>{let n=e(t,r);return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkType(e,t){if(!e||!t)throw new Error("Parameters {type} and {callback} are required.");let r="function"==typeof e;return this.walk((n,s)=>{if(r&&n instanceof e||!r&&n.type===e)return t.call(this,n,s)})}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 r,n=this.index(e);this.nodes.splice(n+1,0,t);for(let e in this.indexes)r=this.indexes[e],n<=r&&(this.indexes[e]=r+this.nodes.length);return this}insertBefore(e,t){let r,n=this.index(e);this.nodes.splice(n,0,t);for(let e in this.indexes)r=this.indexes[e],n<=r&&(this.indexes[e]=r+this.nodes.length);return this}removeChild(e){let t;e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=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"number"==typeof e?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}};n.registerWalker=e=>{let t="walk"+e.name;t.lastIndexOf("s")!==t.length-1&&(t+="s"),!n.prototype[t]&&(n.prototype[t]=function(t){return this.walkType(e,t)})},t.exports=n}),_e=i((e,t)=>{var r=Se();t.exports=class extends r{constructor(e){super(e),this.type="root"}}}),Ee=i((e,t)=>{var r=Se();t.exports=class extends r{constructor(e){super(e),this.type="value",this.unbalanced=0}}}),Ae=i((e,t)=>{var r=Se(),n=class extends r{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("")}};r.registerWalker(n),t.exports=n}),je=i((e,t)=>{var r=Se(),n=Ce(),s=class extends n{constructor(e){super(e),this.type="colon"}};r.registerWalker(s),t.exports=s}),Ie=i((e,t)=>{var r=Se(),n=Ce(),s=class extends n{constructor(e){super(e),this.type="comma"}};r.registerWalker(s),t.exports=s}),Pe=i((e,t)=>{var r=Se(),n=Ce(),s=class extends n{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("")}};r.registerWalker(s),t.exports=s}),Me=i((e,t)=>{var r=Se(),n=class extends r{constructor(e){super(e),this.type="func",this.unbalanced=-1}};r.registerWalker(n),t.exports=n}),$e=i((e,t)=>{var r=Se(),n=Ce(),s=class extends n{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("")}};r.registerWalker(s),t.exports=s}),Re=i((e,t)=>{var r=Se(),n=Ce(),s=class extends n{constructor(e){super(e),this.type="operator"}};r.registerWalker(s),t.exports=s}),Ne=i((e,t)=>{var r=Se(),n=Ce(),s=class extends n{constructor(e){super(e),this.type="paren",this.parenType=""}};r.registerWalker(s),t.exports=s}),Le=i((e,t)=>{var r=Se(),n=Ce(),s=class extends n{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("")}};r.registerWalker(s),t.exports=s}),We=i((e,t)=>{var r=Se(),n=Ce(),s=class extends n{constructor(e){super(e),this.type="word"}};r.registerWalker(s),t.exports=s}),Be=i((e,t)=>{var r=Se(),n=Ce(),s=class extends n{constructor(e){super(e),this.type="unicode-range"}};r.registerWalker(s),t.exports=s}),ze=i((e,t)=>{var r=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.","function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};t.exports=r}),qe=i((e,t)=>{var r=/[ \n\t\r\{\(\)'"\\;,/]/g,n=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,s=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,o=/^[a-z0-9]/i,i=/^[a-f0-9?\-]/i,a=ze();t.exports=function(e,t){t=t||{};let u,l,c,p,h,f,d,m,y,v,g,w=[],b=e.valueOf(),x=b.length,k=-1,O=1,T=0,C=0,S=null;function _(e){throw new a(`Unclosed ${e} at line: ${O}, column: ${T-k}, token: ${T}`)}for(;T<x;){switch(u=b.charCodeAt(T),10===u&&(k=T,O+=1),u){case 10:case 32:case 9:case 13:case 12:l=T;do{l+=1,u=b.charCodeAt(l),10===u&&(k=l,O+=1)}while(32===u||10===u||9===u||13===u||12===u);w.push(["space",b.slice(T,l),O,T-k,O,l-k,T]),T=l-1;break;case 58:l=T+1,w.push(["colon",b.slice(T,l),O,T-k,O,l-k,T]),T=l-1;break;case 44:l=T+1,w.push(["comma",b.slice(T,l),O,T-k,O,l-k,T]),T=l-1;break;case 123:w.push(["{","{",O,T-k,O,l-k,T]);break;case 125:w.push(["}","}",O,T-k,O,l-k,T]);break;case 40:C++,S=!S&&1===C&&w.length>0&&"word"===w[w.length-1][0]&&"url"===w[w.length-1][1],w.push(["(","(",O,T-k,O,l-k,T]);break;case 41:C--,S=S&&C>0,w.push([")",")",O,T-k,O,l-k,T]);break;case 39:case 34:c=39===u?"'":'"',l=T;do{for(y=!1,l=b.indexOf(c,l+1),-1===l&&_("quote"),v=l;92===b.charCodeAt(v-1);)v-=1,y=!y}while(y);w.push(["string",b.slice(T,l+1),O,T-k,O,l-k,T]),T=l;break;case 64:r.lastIndex=T+1,r.test(b),l=0===r.lastIndex?b.length-1:r.lastIndex-2,w.push(["atword",b.slice(T,l+1),O,T-k,O,l-k,T]),T=l;break;case 92:l=T,u=b.charCodeAt(l+1),w.push(["word",b.slice(T,l+1),O,T-k,O,l-k,T]),T=l;break;case 43:case 45:case 42:if(l=T+1,g=b.slice(T+1,l+1),b.slice(T-1,T),45===u&&45===g.charCodeAt(0)){l++,w.push(["word",b.slice(T,l),O,T-k,O,l-k,T]),T=l-1;break}w.push(["operator",b.slice(T,l),O,T-k,O,l-k,T]),T=l-1;break;default:if(47===u&&(42===b.charCodeAt(T+1)||t.loose&&!S&&47===b.charCodeAt(T+1))){if(42===b.charCodeAt(T+1))l=b.indexOf("*/",T+2)+1,0===l&&_("comment");else{let e=b.indexOf("\n",T+2);l=-1!==e?e-1:x}f=b.slice(T,l+1),p=f.split("\n"),h=p.length-1,h>0?(d=O+h,m=l-p[h].length):(d=O,m=k),w.push(["comment",f,O,T-k,d,l-m,T]),k=m,O=d,T=l}else if(35!==u||o.test(b.slice(T+1,T+2)))if(117!==u&&85!==u||43!==b.charCodeAt(T+1))if(47===u)l=T+1,w.push(["operator",b.slice(T,l),O,T-k,O,l-k,T]),T=l-1;else{let e=n;if(u>=48&&u<=57&&(e=s),e.lastIndex=T+1,e.test(b),l=0===e.lastIndex?b.length-1:e.lastIndex-2,e===s||46===u){let e=b.charCodeAt(l),t=b.charCodeAt(l+1),r=b.charCodeAt(l+2);(101===e||69===e)&&(45===t||43===t)&&r>=48&&r<=57&&(s.lastIndex=l+2,s.test(b),l=0===s.lastIndex?b.length-1:s.lastIndex-2)}w.push(["word",b.slice(T,l+1),O,T-k,O,l-k,T]),T=l}else{l=T+2;do{l+=1,u=b.charCodeAt(l)}while(l<x&&i.test(b.slice(l,l+1)));w.push(["unicoderange",b.slice(T,l),O,T-k,O,l-k,T]),T=l-1}else l=T+1,w.push(["#",b.slice(T,l),O,T-k,O,l-k,T]),T=l-1}T++}return w}}),De=i((e,t)=>{var r=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.","function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};t.exports=r}),Ue=i((e,t)=>{var r=_e(),n=Ee(),s=Ae(),o=je(),i=Ie(),a=Pe(),u=Me(),l=$e(),c=Re(),p=Ne(),h=Le(),f=We(),d=Be(),m=qe(),y=re(),v=ne(),g=se(),w=De();t.exports=class{constructor(e,t){this.cache=[],this.input=e,this.options=Object.assign({},{loose:!1},t),this.position=0,this.unbalanced=0,this.root=new r;let s=new n;this.root.append(s),this.current=s,this.tokens=m(e,this.options)}parse(){return this.loop()}colon(){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++}comma(){let e=this.currToken;this.newNode(new i({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,t=!1,r=this.currToken[1].replace(/\/\*|\*\//g,"");this.options.loose&&r.startsWith("//")&&(r=r.substring(2),t=!0),e=new a({value:r,inline:t,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++}error(e,t){throw new w(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,t=this.currToken[1];if("+"===t||"-"===t)if(this.options.loose||this.position>0&&("func"===this.current.type&&"calc"===this.current.value?("space"!==this.prevToken[0]&&"("!==this.prevToken[0]||"space"!==this.nextToken[0]&&"word"!==this.nextToken[0]||"word"===this.nextToken[0]&&"operator"!==this.current.last.type&&"("!==this.current.last.value)&&this.error("Syntax Error",this.currToken):("space"===this.nextToken[0]||"operator"===this.nextToken[0]||"operator"===this.prevToken[0])&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&"operator"===this.current.last.type)&&"word"===this.nextToken[0])return this.word()}else if("word"===this.nextToken[0])return this.word();return e=new c({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(e)}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":default:this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange()}}parenOpen(){let e,t=1,r=this.position+1,n=this.currToken;for(;r<this.tokens.length&&t;){let e=this.tokens[r];"("===e[0]&&t++,")"===e[0]&&t--,r++}if(t&&this.error("Expected closing parenthesis",n),e=this.current.last,e&&"func"===e.type&&e.unbalanced<0&&(e.unbalanced=0,this.current=e),this.current.unbalanced++,this.newNode(new p({value:n[1],source:{start:{line:n[2],column:n[3]},end:{line:n[4],column:n[5]}},sourceIndex:n[6]})),this.position++,"func"===this.current.type&&this.current.unbalanced&&"url"===this.current.value&&"string"!==this.currToken[0]&&")"!==this.currToken[0]&&!this.options.loose){let e=this.nextToken,t=this.currToken[1],r={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 f({value:t,source:{start:r,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let e=this.currToken;this.newNode(new p({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 d({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,t,r=this.nextToken,n=this.currToken[1],o=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/;if(!/^(?!\#([a-z0-9]+))[\#\{\}]/gi.test(n))for(;r&&"word"===r[0];){this.position++;let e=this.currToken[1];n+=e,r=this.nextToken}var i;e=v(n,"@"),i=g(y([[0],e])),t=i.sort((e,t)=>e-t),t.forEach((i,a)=>{let c,p=t[a+1]||n.length,h=n.slice(i,p);if(~e.indexOf(i))c=new s({value:h.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+i},end:{line:this.currToken[4],column:this.currToken[3]+(p-1)}},sourceIndex:this.currToken[6]+t[a]});else if(o.test(this.currToken[1])){let e=h.replace(o,"");c=new l({value:h.replace(e,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+i},end:{line:this.currToken[4],column:this.currToken[3]+(p-1)}},sourceIndex:this.currToken[6]+t[a],unit:e})}else c=new(r&&"("===r[0]?u:f)({value:h,source:{start:{line:this.currToken[2],column:this.currToken[3]+i},end:{line:this.currToken[4],column:this.currToken[3]+(p-1)}},sourceIndex:this.currToken[6]+t[a]}),"word"===c.type?(c.isHex=/^#(.+)/.test(h),c.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(h)):this.cache.push(this.current);this.newNode(c)}),this.position++}string(){let e,t=this.currToken,r=this.currToken[1],n=/^(\"|\')/,s=n.test(r),o="";s&&(o=r.match(n)[0],r=r.slice(1,r.length-1)),e=new h({value:r,source:{start:{line:t[2],column:t[3]},end:{line:t[4],column:t[5]}},sourceIndex:t[6],quoted:s}),e.raws.quote=o,this.newNode(e),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]}}}),Fe={};a(Fe,{languages:()=>En,options:()=>An,parsers:()=>jn,printers:()=>hs});var Ve=(e,t,r,n)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},Ge="string",Je="array",He="cursor",Qe="indent",Ke="align",Ye="trim",Ze="group",Xe="fill",et="if-break",tt="indent-if-break",rt="line-suffix",nt="line-suffix-boundary",st="line",ot="label",it="break-parent",at=new Set([He,Qe,Ke,Ye,Ze,Xe,et,tt,rt,nt,st,ot,it]),ut=(e,t,r)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[r<0?t.length+r:r]:t.at(r)};var lt=function(e){if("string"==typeof e)return Ge;if(Array.isArray(e))return Je;if(!e)return;let{type:t}=e;return at.has(t)?t:void 0};function ct(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', \nExpected it to be 'string' or 'object'.`;if(lt(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=(e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e))([...at].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${n}.`}var pt=class extends Error{name="InvalidDocError";constructor(e){super(ct(e)),this.doc=e}};function ht(e,t){if("string"==typeof e)return t(e);let r=new Map;return n(e);function n(e){if(r.has(e))return r.get(e);let s=function(e){switch(lt(e)){case Je:return t(e.map(n));case Xe:return t({...e,parts:e.parts.map(n)});case et:return t({...e,breakContents:n(e.breakContents),flatContents:n(e.flatContents)});case Ze:{let{expandedStates:r,contents:s}=e;return r?(r=r.map(n),s=r[0]):s=n(s),t({...e,contents:s,expandedStates:r})}case Ke:case Qe:case tt:case ot:case rt:return t({...e,contents:n(e.contents)});case Ge:case He:case Ye:case nt:case st:case it:return t(e);default:throw new pt(e)}}(e);return r.set(e,s),s}}function ft(e){return e.type!==st||e.hard?e.type===et?e.flatContents:e:e.soft?"":" "}var dt=()=>{};function mt(e){return{type:Qe,contents:e}}function yt(e,t){return{type:Ke,contents:t,n:e}}function vt(e,t={}){return dt(t.expandedStates),{type:Ze,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function gt(e){return yt(-1,e)}function wt(e){return{type:Xe,parts:e}}function bt(e,t="",r={}){return{type:et,breakContents:e,flatContents:t,groupId:r.groupId}}function xt(e){return{type:rt,contents:e}}var kt={type:it},Ot={type:st},Tt={type:st,soft:!0},Ct=[{type:st,hard:!0},kt];function St(e,t){let r=[];for(let n=0;n<t.length;n++)0!==n&&r.push(e),r.push(t[n]);return r}var _t=function(e){return Array.isArray(e)&&e.length>0},Et=new Proxy(()=>{},{get:()=>Et}),At=Et,jt="'";var It=function(e,t){let r=!0===t||t===jt?jt:'"',n=r===jt?'"':jt,s=0,o=0;for(let t of e)t===r?s++:t===n&&o++;return s>o?n:r};var Pt=function(e,t,r){let n='"'===t?"'":'"',s=Ve(!1,e,/\\(.)|(["'])/gsu,(e,s,o)=>s===n?s:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(s)?s:"\\"+s));return t+s+t};var Mt=function(e,t){At.ok(/^(?<quote>["']).*\k<quote>$/su.test(e));let r=e.slice(1,-1),n="json"===t.parser||"jsonc"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":It(r,t.singleQuote);return e.charAt(0)===n?e:Pt(r,n,!1)},$t=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}};var Rt=function(e){return"front-matter"===(null==e?void 0:e.type)},Nt=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function Lt(e,t,r){if(Rt(e)&&"yaml"===e.language&&delete t.value,"css-comment"===e.type&&"css-root"===r.type&&r.nodes.length>0&&((r.nodes[0]===e||Rt(r.nodes[0])&&r.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/u.test(e.text))||"css-root"===r.type&&ut(!1,r.nodes,-1)===e))return null;if("value-root"===e.type&&delete t.text,("media-query"===e.type||"media-query-list"===e.type||"media-feature-expression"===e.type)&&delete t.value,"css-rule"===e.type&&delete t.params,("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.type)&&e.value&&(t.value=function(e){return Ve(!1,Ve(!1,e,"'",'"'),/\\([^\da-f])/giu,"$1")}(e.value)),"selector-combinator"===e.type&&(t.value=Ve(!1,t.value,/\s+/gu," ")),"media-feature"===e.type&&(t.value=Ve(!1,t.value," ","")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=e.prop.toLowerCase()),("css-atrule"===e.type||"css-import"===e.type)&&(t.name=e.name.toLowerCase()),"value-number"===e.type&&(t.unit=e.unit.toLowerCase()),"value-unknown"===e.type&&(t.value=Ve(!1,t.value,/;$/gu,"")),"selector-attribute"===e.type&&(t.attribute=e.attribute.trim(),e.namespace&&"string"==typeof e.namespace&&(t.namespace=e.namespace.trim()||!0),e.value&&(t.value=Ve(!1,t.value.trim(),/^["']|["']$/gu,""),delete t.quoted)),("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.type)&&e.value&&(t.value=Ve(!1,t.value,/([\d+.e-]+)([a-z]*)/giu,(e,t,r)=>{let n=Number(t);return Number.isNaN(n)?e:n+r.toLowerCase()})),"selector-tag"===e.type){let e=t.value.toLowerCase();["from","to"].includes(e)&&(t.value=e)}if("css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value,"value-comma_group"===e.type){let r=e.groups.findIndex(e=>"value-number"===e.type&&"..."===e.unit);-1!==r&&(t.groups[r].unit="",t.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}return"value-comma_group"===e.type&&e.groups.some(e=>"value-atword"===e.type&&e.value.endsWith("[")||"value-word"===e.type&&e.value.startsWith("]"))?{type:"value-atword",value:e.groups.map(e=>e.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}:void 0}Lt.ignoredProperties=Nt;var Wt=Lt;var Bt=async function(e,t){if("yaml"===e.language){let r=e.value.trim(),n=r?await t(r,{parser:"yaml"}):"";return function(e){return yt({type:"root"},e)}([e.startDelimiter,e.explicitLanguage,Ct,n,n?Ct:"",e.endDelimiter])}};function zt(e){let{node:t}=e;if("front-matter"===t.type)return async e=>{let r=await Bt(t,e);return r?[r,Ct]:void 0}}zt.getVisitorKeys=e=>"css-root"===e.type?["frontMatter"]:[];var qt=zt,Dt=null;function Ut(e){if(null!==Dt&&(Dt.property,1)){let e=Dt;return Dt=Ut.prototype=null,e}return Dt=Ut.prototype=e??Object.create(null),new Ut}for(let e=0;e<=10;e++)Ut();var Ft=function(e,t="type"){return function(e){Ut(e)}(e),function(r){let n=r[t],s=e[n];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return s}}({"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":[]});var Vt=function(e,t){let r=0;for(let n=0;n<e.line-1;++n)r=t.indexOf("\n",r)+1;return r+e.column};function Gt(e){return(t,r,n)=>{let s=!(null==n||!n.backwards);if(!1===r)return!1;let{length:o}=t,i=r;for(;i>=0&&i<o;){let r=t.charAt(i);if(e instanceof RegExp){if(!e.test(r))return i}else if(!e.includes(r))return i;s?i--:i++}return(-1===i||i===o)&&i}}var Jt=Gt(" \t"),Ht=Gt(",; \t"),Qt=Gt(/[^\n\r]/u);function Kt(e,t){let{value:r}=e;return"-"===r||"--"===r||"-"!==r.charAt(0)?t:t-("-"===r.charAt(1)?2:1)}function Yt(e,t){var r,n,s;if("number"==typeof(null==(n=null==(r=e.source)?void 0:r.start)?void 0:n.offset))return e.source.start.offset;if("number"==typeof e.sourceIndex)return"value-word"===e.type?Kt(e,e.sourceIndex):e.sourceIndex;if(null!=(s=e.source)&&s.start)return Vt(e.source.start,t);throw Object.assign(new Error("Can not locate node."),{node:e})}function Zt(e,t){var r,n;if("css-comment"===e.type&&e.inline)return Qt(t,e.source.startOffset);if("number"==typeof(null==(n=null==(r=e.source)?void 0:r.end)?void 0:n.offset))return e.source.end.offset;if(e.source){if(e.source.end){let r=Vt(e.source.end,t);return"value-word"===e.type?Kt(e,r):r}if(_t(e.nodes))return Zt(ut(!1,e.nodes,-1),t)}return null}function Xt(e,t){e.source&&(e.source.startOffset=Yt(e,t),e.source.endOffset=Zt(e,t));for(let r in e){let n=e[r];"source"===r||!n||"object"!=typeof n||("value-root"===n.type||"value-unknown"===n.type?er(n,tr(e),n.text||n.value):Xt(n,t))}}function er(e,t,r){e.source&&(e.source.startOffset=Yt(e,r)+t,e.source.endOffset=Zt(e,r)+t);for(let n in e){let s=e[n];"source"===n||!s||"object"!=typeof s||er(s,t,r)}}function tr(e){var t;let r=e.source.startOffset;return"string"==typeof e.prop&&(r+=e.prop.length),"css-atrule"===e.type&&"string"==typeof e.name&&(r+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/u)[0].length),"css-atrule"!==e.type&&"string"==typeof(null==(t=e.raws)?void 0:t.between)&&(r+=e.raws.between.length),r}function rr(e){var t;return null==(t=e.source)?void 0:t.startOffset}function nr(e){var t;return null==(t=e.source)?void 0:t.endOffset}var sr=/\*\/$/,or=/^\/\*\*?/,ir=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,ar=/(^|\s+)\/\/([^\n\r]*)/g,ur=/^(\r?\n)+/,lr=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,cr=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,pr=/(\r?\n|^) *\* ?/g,hr=[];function fr(e,t){return[...hr,...Array.isArray(t)?t:[t]].map(t=>`@${e} ${t}`.trim())}var dr=["noformat","noprettier"],mr=["format","prettier"],yr="format";var vr=function(e){if(!e.startsWith("#!"))return"";let t=e.indexOf("\n");return-1===t?e:e.slice(0,t)};function gr(e){let t=vr(e);t&&(e=e.slice(t.length+1));let r=function(e){let t=e.match(ir);return t?t[0].trimStart():""}(e),{pragmas:n,comments:s}=function(e){e=Ve(!1,e.replace(or,"").replace(sr,""),pr,"$1");let t="";for(;t!==e;)t=e,e=Ve(!1,e,lr,"\n$1 $2\n");e=e.replace(ur,"").trimEnd();let r,n=Object.create(null),s=Ve(!1,e,cr,"").replace(ur,"").trimEnd();for(;r=cr.exec(e);){let e=Ve(!1,r[2],ar,"");if("string"==typeof n[r[1]]||Array.isArray(n[r[1]])){let t=n[r[1]];n[r[1]]=[...hr,...Array.isArray(t)?t:[t],e]}else n[r[1]]=e}return{comments:s,pragmas:n}}(r);return{shebang:t,text:e,pragmas:n,comments:s}}function wr(e){let{shebang:t,text:r,pragmas:n,comments:s}=gr(e),o=function(e){let t=e.match(ir),r=null==t?void 0:t[0];return null==r?e:e.slice(r.length)}(r),i=function({comments:e="",pragmas:t={}}){let r="\n",n=" *",s=Object.keys(t),o=s.flatMap(e=>fr(e,t[e])).map(e=>`${n} ${e}${r}`).join("");if(!e){if(0===s.length)return"";if(1===s.length&&!Array.isArray(t[s[0]])){let e=t[s[0]];return`/** ${fr(s[0],e)[0]} */`}}let i=e.split(r).map(e=>`${n} ${e}`).join(r)+r;return"/**\n"+(e?i:"")+(e&&s.length>0?n+r:"")+o+" */"}({pragmas:{[yr]:"",...n},comments:s.trimStart()});return(t?`${t}\n`:"")+i+(o.startsWith("\n")?"\n":"\n\n")+o}var br=function(e){let t=function(e){let t=e.slice(0,3);if("---"!==t&&"+++"!==t)return;let r=e.indexOf("\n",3);if(-1===r)return;let n=e.slice(3,r).trim(),s=e.indexOf(`\n${t}`,r),o=n;if(o||(o="+++"===t?"toml":"yaml"),-1===s&&"---"===t&&"yaml"===o&&(s=e.indexOf("\n...",r)),-1===s)return;let i=s+1+3,a=e.charAt(i+1);if(!/\s?/u.test(a))return;let u=e.slice(0,i);return{type:"front-matter",language:o,explicitLanguage:n,value:e.slice(r+1,s),startDelimiter:t,endDelimiter:u.slice(-3),raw:u}}(e);if(!t)return{content:e};let{raw:r}=t;return{frontMatter:t,content:Ve(!1,r,/[^\n]/gu," ")+e.slice(r.length)}};var xr=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"]);var kr=new Set(["initial","inherit","unset","revert"]);function Or(e,t){var r;let n=e.findAncestor(e=>"css-atrule"===e.type);return(null==(r=null==n?void 0:n.name)?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(t.toLowerCase())}function Tr(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function Cr(e,t){var r;let n=e.findAncestor(e=>"value-func"===e.type);return(null==(r=null==n?void 0:n.value)?void 0:r.toLowerCase())===t}function Sr(e){var t;let r=e.findAncestor(e=>"css-rule"===e.type),n=null==(t=null==r?void 0:r.raws)?void 0:t.selector;return n&&(n.startsWith(":import")||n.startsWith(":export"))}function _r(e,t){let r=Array.isArray(t)?t:[t],n=e.findAncestor(e=>"css-atrule"===e.type);return n&&r.includes(n.name.toLowerCase())}function Er(e){let{selector:t}=e;return!!t&&("string"==typeof t&&/^@.+:.*$/u.test(t)||t.value&&/^@.+:.*$/u.test(t.value))}function Ar(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)}function jr(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)}function Ir(e){return"value-word"===e.type&&"in"===e.value}function Pr(e){return"value-operator"===e.type&&"*"===e.value}function Mr(e){return"value-operator"===e.type&&"/"===e.value}function $r(e){return"value-operator"===e.type&&"+"===e.value}function Rr(e){return"value-operator"===e.type&&"-"===e.value}function Nr(e){return Pr(e)||Mr(e)||$r(e)||Rr(e)||function(e){return"value-operator"===e.type&&"%"===e.value}(e)}function Lr(e){return"value-word"===e.type&&["==","!="].includes(e.value)}function Wr(e){return"value-word"===e.type&&["<",">","<=",">="].includes(e.value)}function Br(e,t){return"scss"===t.parser&&"css-atrule"===e.type&&["if","else","for","each","while"].includes(e.name)}function zr(e){var t;return(null==(t=e.raws)?void 0:t.params)&&/^\(\s*\)$/u.test(e.raws.params)}function qr(e){return e.name.startsWith("prettier-placeholder")}function Dr(e){return e.prop.startsWith("@prettier-placeholder")}function Ur(e,t){return"$$"===e.value&&"value-func"===e.type&&"value-word"===(null==t?void 0:t.type)&&!t.raws.before}function Fr(e){var t,r,n;return"value-paren_group"===(null==(n=null==(r=null==(t=e.value)?void 0:t.group)?void 0:r.group)?void 0:n.type)&&null!==e.value.group.group.open&&null!==e.value.group.group.close}function Vr(e){var t;return""===(null==(t=e.raws)?void 0:t.before)}function Gr(e){var t,r;return"value-comma_group"===e.type&&"value-colon"===(null==(r=null==(t=e.groups)?void 0:t[1])?void 0:r.type)}function Jr(e){var t;return"value-paren_group"===e.type&&(null==(t=e.groups)?void 0:t[0])&&Gr(e.groups[0])}function Hr(e,t){var r;if("scss"!==t.parser)return!1;let{node:n}=e;if(0===n.groups.length)return!1;let s=e.grandparent;if(!(Jr(n)||s&&Jr(s)))return!1;let o=e.findAncestor(e=>"css-decl"===e.type);return!!(null!=(r=null==o?void 0:o.prop)&&r.startsWith("$")||Jr(s)||"value-func"===s.type)}function Qr(e){return"value-comment"===e.type&&e.inline}function Kr(e){return"value-word"===e.type&&"#"===e.value}function Yr(e){return"value-word"===e.type&&"{"===e.value}function Zr(e){return"value-word"===e.type&&"}"===e.value}function Xr(e){return["value-word","value-atword"].includes(e.type)}function en(e){return"value-colon"===(null==e?void 0:e.type)}function tn(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function rn(e){return"value-func"===e.type&&xr.has(e.value.toLowerCase())}function nn(e){return/\/\//u.test(e.split(/[\n\r]/u).pop())}function sn(e){return"value-atword"===(null==e?void 0:e.type)&&e.value.startsWith("prettier-placeholder-")}function on(e){var t,r;return"value-paren_group"===e.type&&"("===(null==(t=e.open)?void 0:t.value)&&")"===(null==(r=e.close)?void 0:r.value)}var an=function(e,t,r){var n;let{node:s}=e,o=e.parent,i=e.grandparent,a=function(e){var t,r;return null==(r=null==(t=e.findAncestor(e=>"css-decl"===e.type))?void 0:t.prop)?void 0:r.toLowerCase()}(e),u=a&&"value-value"===o.type&&("grid"===a||a.startsWith("grid-template")),l=e.findAncestor(e=>"css-atrule"===e.type),c=l&&Br(l,t),p=s.groups.some(e=>Qr(e)),h=e.map(r,"groups"),f=[""],d=Cr(e,"url"),m=!1,y=!1;for(let r=0;r<s.groups.length;++r){let a=s.groups[r-1],p=s.groups[r],v=s.groups[r+1],g=s.groups[r+2];if(Qr(p)&&!v){f.push([f.pop(),xt([" ",h[r]])]);continue}if(f.push([f.pop(),h[r]]),d){(v&&$r(v)||$r(p))&&f.push([f.pop()," "]);continue}if(en(v)&&"value-word"===p.type&&f.length>2&&s.groups.slice(0,r).every(e=>"value-comment"===e.type)&&!Qr(a)&&(f[f.length-2]=gt(ut(!1,f,-2))),_r(e,"forward")&&"value-word"===p.type&&p.value&&void 0!==a&&"value-word"===a.type&&"as"===a.value&&"value-operator"===v.type&&"*"===v.value||_r(e,"utility")&&"value-word"===p.type&&v&&"value-operator"===v.type&&"*"===v.value||!v||"value-word"===p.type&&sn(v)&&nr(p)===rr(v))continue;if("value-string"===p.type&&p.quoted){let e=p.value.lastIndexOf("#{"),t=p.value.lastIndexOf("}");-1!==e&&-1!==t?m=e>t:-1!==e?m=!0:-1!==t&&(m=!1)}if(m||en(p)||en(v)||"value-atword"===p.type&&(""===p.value||p.value.endsWith("["))||"value-word"===v.type&&v.value.startsWith("]")||"~"===p.value||"value-string"!==p.type&&p.value&&p.value.includes("\\")&&v&&"value-comment"!==v.type||null!=a&&a.value&&a.value.indexOf("\\")===a.value.length-1&&"value-operator"===p.type&&"/"===p.value||"\\"===p.value||Ur(p,v)||Kr(p)||Yr(p)||Zr(v)||Yr(v)&&Vr(v)||Zr(p)&&Vr(v)||"--"===p.value&&Kr(v))continue;let w=Nr(p),b=Nr(v);if((w&&Kr(v)||b&&Zr(p))&&Vr(v)||!a&&Mr(p)||Cr(e,"calc")&&($r(p)||$r(v)||Rr(p)||Rr(v))&&Vr(v))continue;let x=($r(p)||Rr(p))&&0===r&&("value-number"===v.type||v.isHex)&&i&&rn(i)&&!Vr(v),k="value-func"===(null==g?void 0:g.type)||g&&Xr(g)||"value-func"===p.type||Xr(p),O="value-func"===v.type||Xr(v)||"value-func"===(null==a?void 0:a.type)||a&&Xr(a);if("scss"===t.parser&&w&&"-"===p.value&&"value-func"===v.type&&nr(p)!==rr(v))f.push([f.pop()," "]);else if((Pr(v)||Pr(p)||Cr(e,"calc")||x||!(Mr(v)&&!k||Mr(p)&&!O||$r(v)&&!k||$r(p)&&!O||Rr(v)||Rr(p))||!(Vr(v)||w&&(!a||a&&Nr(a))))&&("scss"!==t.parser&&"less"!==t.parser||!w||"-"!==p.value||!on(v)||nr(p)!==rr(v.open)||"("!==v.open.value)){if(Qr(p)){if("value-paren_group"===o.type){f.push(gt(Ct),"");continue}f.push(Ct,"");continue}if(c&&(Lr(v)||Wr(v)||jr(v)||Ir(p)||Ar(p))){f.push([f.pop()," "]);continue}if(l&&"namespace"===l.name.toLowerCase()){f.push([f.pop()," "]);continue}if(u){p.source&&v.source&&p.source.start.line!==v.source.start.line?(f.push(Ct,""),y=!0):f.push([f.pop()," "]);continue}if(b){f.push([f.pop()," "]);continue}if(!("..."===(null==v?void 0:v.value)||sn(p)&&sn(v)&&nr(p)===rr(v))){if(sn(p)&&on(v)&&nr(p)===rr(v.open)){f.push(Tt,"");continue}if("with"===p.value&&on(v)){f=[[wt(f)," "]];continue}null!=(n=p.value)&&n.endsWith("#")&&"{"===v.value&&on(v.group)||Qr(v)&&!g||f.push(Ot,"")}}}return p&&f.push([f.pop(),kt]),y&&f.unshift("",Ct),c?vt(mt(f)):function(e){var t;let{node:r}=e;return"url"===r.groups[0].value&&2===r.groups.length&&"import"===(null==(t=e.findAncestor(e=>"css-atrule"===e.type))?void 0:t.name)}(e)?vt(wt(f)):vt(mt(wt(f)))};var un=function(e){return 1===e.length?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,"")},ln=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 cn(e){let t=e.toLowerCase();return ln.has(t)?ln.get(t):e}var pn=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,hn=new RegExp(pn.source+`|(${/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu.source})?(${/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu.source})(${/[a-z]+/giu.source})?`,"giu");function fn(e,t){return Ve(!1,e,pn,e=>Mt(e,t))}function dn(e,t){let r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}function mn(e){return Ve(!1,e,hn,(e,t,r,n,s)=>!r&&n&&(s??(s=""),!(s=s.toLowerCase())||"n"===s||ln.has(s))?yn(n)+(s?cn(s):""):e)}function yn(e){return un(e).replace(/\.0(?=$|e)/u,"")}var vn=function(e,t,r){let n=!(null==r||!r.backwards);if(!1===t)return!1;let s=e.charAt(t);if(n){if("\r"===e.charAt(t-1)&&"\n"===s)return t-2;if("\n"===s||"\r"===s||"\u2028"===s||"\u2029"===s)return t-1}else{if("\r"===s&&"\n"===e.charAt(t+1))return t+2;if("\n"===s||"\r"===s||"\u2028"===s||"\u2029"===s)return t+1}return t};var gn=function(e,t,r={}){let n=Jt(e,r.backwards?t-1:t,r);return n!==vn(e,n,r)};var wn=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t};var bn=function(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?Qt(e,t):t)};var xn=function(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Ht(e,n),n=wn(e,n),n=Jt(e,n);return n=bn(e,n),n=vn(e,n),!1!==n&&gn(e,n)};function kn(e,t){return function(e){return"value-func"===e.type&&"var"===e.value.toLowerCase()}(e.grandparent)&&function({node:e,parent:t},r){return!(!e.source||!r.originalText.slice(rr(e),rr(t.close)).trimEnd().endsWith(","))}(e,t)?",":"value-comment"===e.node.type||"value-comma_group"===e.node.type&&e.node.groups.every(e=>"value-comment"===e.type)||!function(e){return"es5"===e.trailingComma||"all"===e.trailingComma}(t)||!e.callParent(()=>Hr(e,t))?"":bt(",")}function On(e,t,r){let{node:n,parent:s}=e,o=e.map(({node:e})=>"string"==typeof e?e:r(),"groups");if(s&&function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()}(s)&&(1===n.groups.length||n.groups.length>0&&"value-comma_group"===n.groups[0].type&&n.groups[0].groups.length>0&&"value-word"===n.groups[0].groups[0].type&&n.groups[0].groups[0].value.startsWith("data:")))return[n.open?r("open"):"",St(",",o),n.close?r("close"):""];if(!n.open){let t=Tn(e),r=function(e,t){let r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r}(St(",",o),2),n=St(t?Ct:Ot,r);return mt(t?[Ct,n]:vt([Cn(e)?Tt:"",wt(n)]))}let i=e.map(({node:r,isLast:n,index:s})=>{var i;let a=o[s];Gr(r)&&"value-comma_group"===r.type&&r.groups&&"value-paren_group"!==r.groups[0].type&&"value-paren_group"===(null==(i=r.groups[2])?void 0:i.type)&&lt(a)===Ze&&lt(a.contents)===Qe&&lt(a.contents.contents)===Xe&&(a=vt(gt(a)));let u=[a,n?kn(e,t):","];if(!n&&"value-comma_group"===r.type&&_t(r.groups)){let e=ut(!1,r.groups,-1);!e.source&&e.close&&(e=e.close),e.source&&xn(t.originalText,nr(e))&&u.push(Ct)}return u},"groups"),a=function(e,t){if(!Gr(t))return!1;let{groups:r}=t,n=r.indexOf(e);return-1!==n&&en(r[n+1])}(n,s),u=function(e,t){var r,n;if("("!==(null==(r=e.open)?void 0:r.value)||")"!==(null==(n=e.close)?void 0:n.value)||e.groups.some(e=>"value-comma_group"!==e.type))return!1;if("value-comma_group"===t.type){let r=t.groups.indexOf(e)-1,n=t.groups[r];if("value-word"===(null==n?void 0:n.type)&&"with"===n.value)return!0}return!1}(n,s),l=Hr(e,t),c=u||l&&!a,p=u||a,h=vt([n.open?r("open"):"",mt([Tt,St(Ot,i)]),Tt,n.close?r("close"):""],{shouldBreak:c});return p?gt(h):h}function Tn(e){return e.match(e=>"value-paren_group"===e.type&&!e.open&&e.groups.some(e=>"value-comma_group"===e.type),(e,t)=>"group"===t&&"value-value"===e.type,(e,t)=>"group"===t&&"value-root"===e.type,(e,t)=>"value"===t&&("css-decl"===e.type&&!e.prop.startsWith("--")||"css-atrule"===e.type&&e.variable))}function Cn(e){return e.match(e=>"value-paren_group"===e.type&&!e.open,(e,t)=>"group"===t&&"value-value"===e.type,(e,t)=>"group"===t&&"value-root"===e.type,(e,t)=>"value"===t&&"css-decl"===e.type)}var Sn=function(e,t,r){let n=[];return e.each(()=>{let{node:s,previous:o}=e;if("css-comment"===(null==o?void 0:o.type)&&"prettier-ignore"===o.text.trim()?n.push(t.originalText.slice(rr(s),nr(s))):n.push(r()),e.isLast)return;let{next:i}=e;"css-comment"===i.type&&!gn(t.originalText,rr(i),{backwards:!0})&&!Rt(s)||"css-atrule"===i.type&&"else"===i.name&&"css-comment"!==s.type?n.push(" "):(n.push(t.__isHTMLStyleAttribute?Ot:Ct),xn(t.originalText,nr(s))&&!Rt(s)&&n.push(Ct))},"nodes"),n};var _n={print:function(e,t,r){var n,s,o,i,a,u;let{node:l}=e;switch(l.type){case"front-matter":return[l.raw,Ct];case"css-root":{let n=Sn(e,t,r),s=l.raws.after.trim();return s.startsWith(";")&&(s=s.slice(1).trim()),[l.frontMatter?[r("frontMatter"),Ct]:"",n,s?` ${s}`:"",l.nodes.length>0?Ct:""]}case"css-comment":{let e=l.inline||l.raws.inline,r=t.originalText.slice(rr(l),nr(l));return e?r.trimEnd():r}case"css-rule":return[r("selector"),l.important?" !important":"",l.nodes?["selector-unknown"===(null==(n=l.selector)?void 0:n.type)&&nn(l.selector.value)?Ot:l.selector?" ":"","{",l.nodes.length>0?mt([Ct,Sn(e,t,r)]):"",Ct,"}",Er(l)?";":""]:";"];case"css-decl":{let n=e.parent,{between:i}=l.raws,a=i.trim(),u=":"===a,c="string"==typeof l.value&&/^ *$/u.test(l.value),p="string"==typeof l.value?l.value:r("value");return p=function(e){var t,r;return"value-root"===(null==(t=e.value)?void 0:t.type)&&"value-value"===(null==(r=e.value.group)?void 0:r.type)&&"composes"===e.prop.toLowerCase()}(l)?function(e){return ht(e,ft)}(p):p,!u&&nn(a)&&!(null!=(o=null==(s=l.value)?void 0:s.group)&&o.group&&e.call(()=>Tn(e),"value","group","group"))&&(p=mt([Ct,gt(p)])),[Ve(!1,l.raws.before,/[\s;]/gu,""),"css-atrule"===n.type&&n.variable||Sr(e)?l.prop:Tr(l.prop),a.startsWith("//")?" ":"",a,l.extend||c?"":" ","less"===t.parser&&l.extend&&l.selector?["extend(",r("selector"),")"]:"",p,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?[" {",mt([Tt,Sn(e,t,r)]),Tt,"}"]:Dr(l)&&!n.raws.semicolon&&";"!==t.originalText[nr(l)-1]?"":t.__isHTMLStyleAttribute&&e.isLast?bt(";"):";"]}case"css-atrule":{let n=e.parent,s=qr(l)&&!n.raws.semicolon&&";"!==t.originalText[nr(l)-1];if("less"===t.parser){if(l.mixin)return[r("selector"),l.important?" !important":"",s?"":";"];if(l.function)return[l.name,"string"==typeof l.params?l.params:r("params"),s?"":";"];if(l.variable)return["@",l.name,": ",l.value?r("value"):"",l.raws.between.trim()?l.raws.between.trim()+" ":"",l.nodes?["{",mt([l.nodes.length>0?Tt:"",Sn(e,t,r)]),Tt,"}"]:"",s?"":";"]}let o="import"===l.name&&"value-unknown"===(null==(i=l.params)?void 0:i.type)&&l.params.value.endsWith(";");return["@",zr(l)||l.name.endsWith(":")||qr(l)?l.name:Tr(l.name),l.params?[zr(l)?"":qr(l)?""===l.raws.afterName?"":l.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(l.raws.afterName)?[Ct,Ct]:/^\s*\n/u.test(l.raws.afterName)?Ct:" ":" ","string"==typeof l.params?l.params:r("params")]:"",l.selector?mt([" ",r("selector")]):"",l.value?vt([" ",r("value"),Br(l,t)?Fr(l)?" ":Ot:""]):"else"===l.name?" ":"",l.nodes?[Br(l,t)?"":l.selector&&!l.selector.nodes&&"string"==typeof l.selector.value&&nn(l.selector.value)||!l.selector&&"string"==typeof l.params&&nn(l.params)?Ot:" ","{",mt([l.nodes.length>0?Tt:"",Sn(e,t,r)]),Tt,"}"]:s||o?"":";"]}case"media-query-list":{let t=[];return e.each(({node:e})=>{"media-query"===e.type&&""===e.value||t.push(r())},"nodes"),vt(mt(St(Ot,t)))}case"media-query":return[St(" ",e.map(r,"nodes")),e.isLast?"":","];case"media-type":case"media-value":return mn(fn(l.value,t));case"media-feature-expression":return l.nodes?["(",...e.map(r,"nodes"),")"]:l.value;case"media-feature":return Tr(fn(Ve(!1,l.value,/ +/gu," "),t));case"media-colon":return[l.value," "];case"media-keyword":case"selector-string":return fn(l.value,t);case"media-url":return fn(Ve(!1,Ve(!1,l.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),t);case"media-unknown":case"selector-comment":case"selector-nesting":case"value-paren":case"value-operator":case"value-unicode-range":case"value-unknown":return l.value;case"selector-root":return vt([_r(e,"custom-selector")?[e.findAncestor(e=>"css-atrule"===e.type).customSelector,Ot]:"",St([",",_r(e,["extend","custom-selector","nest"])?Ot:Ct],e.map(r,"nodes"))]);case"selector-selector":return vt((l.nodes.length>2?mt:e=>e)(e.map(r,"nodes")));case"selector-tag":return[l.namespace?[!0===l.namespace?"":l.namespace.trim(),"|"]:"","selector-nesting"===(null==(a=e.previous)?void 0:a.type)?l.value:mn(Or(e,l.value)?l.value.toLowerCase():l.value)];case"selector-id":return["#",l.value];case"selector-class":return[".",mn(fn(l.value,t))];case"selector-attribute":return["[",l.namespace?[!0===l.namespace?"":l.namespace.trim(),"|"]:"",l.attribute.trim(),l.operator??"",l.value?dn(fn(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["selector-selector"===t.type&&t.nodes[0]===l?"":Ot,l.value,e.isLast?"":" "]}return[l.value.trim().startsWith("(")?Ot:"",mn(fn(l.value.trim(),t))||Ot];case"selector-universal":return[l.namespace?[!0===l.namespace?"":l.namespace.trim(),"|"]:"",l.value];case"selector-pseudo":return[Tr(l.value),_t(l.nodes)?vt(["(",mt([Tt,St([",",Ot],e.map(r,"nodes"))]),Tt,")"]):""];case"selector-unknown":{let r=e.findAncestor(e=>"css-rule"===e.type);if(null!=r&&r.isSCSSNesterProperty)return mn(fn(Tr(l.value),t));let n=e.parent;if(null!=(u=n.raws)&&u.selector){let e=rr(n),r=e+n.raws.selector.length;return t.originalText.slice(e,r).trim()}let s=e.grandparent;if("value-paren_group"===n.type&&"value-func"===(null==s?void 0:s.type)&&"selector"===s.value){let e=nr(n.open)+1,r=rr(n.close),s=t.originalText.slice(e,r).trim();return nn(s)?[kt,s]:s}return l.value}case"value-value":case"value-root":return r("group");case"value-comment":return t.originalText.slice(rr(l),nr(l));case"value-comma_group":return an(e,t,r);case"value-paren_group":return On(e,t,r);case"value-func":return[l.value,_r(e,"supports")&&tn(l)?" ":"",r("group")];case"value-number":return[yn(l.value),cn(l.unit)];case"value-word":return l.isColor&&l.isHex||function(e){return kr.has(e.toLowerCase())}(l.value)?l.value.toLowerCase():l.value;case"value-colon":{let{previous:t}=e;return vt([l.value,"string"==typeof(null==t?void 0:t.value)&&t.value.endsWith("\\")||Cr(e,"url")?"":Ot])}case"value-string":return Mt(l.raws.quote+l.value+l.raws.quote,t);case"value-atword":return["@",l.value];default:throw new $t(l,"PostCSS")}},embed:qt,insertPragma:function(e){let{frontMatter:t,content:r}=br(e);return(t?t.raw+"\n\n":"")+wr(r)},massageAstNode:Wt,getVisitorKeys:Ft},En=[{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}],An={singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."}},jn={};a(jn,{css:()=>ls,less:()=>cs,scss:()=>ps});var In=u(A()),Pn=u(L()),Mn=u(Y());var $n=function(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)};function Rn(e,t,r){if(e&&"object"==typeof e){delete e.parent;for(let n in e)Rn(e[n],t,r),"type"===n&&"string"==typeof e[n]&&!e[n].startsWith(t)&&(!r||!r.test(e[n]))&&(e[n]=t+e[n])}return e}function Nn(e){if(e&&"object"==typeof e){delete e.parent;for(let t in e)Nn(e[t]);!Array.isArray(e)&&e.value&&!e.type&&(e.type="unknown")}return e}var Ln=u(te()).default.default;var Wn=function(e){let t;try{t=Ln(e)}catch{return{type:"selector-unknown",value:e}}return Rn(Nn(t),"media-")},Bn=u(Te());var zn=function(e){if(/\/\/|\/\*/u.test(e))return{type:"selector-unknown",value:e.trim()};let t;try{new Bn.default(e=>{t=e}).process(e)}catch{return{type:"selector-unknown",value:e}}return Rn(t,"selector-")},qn=u(Ue()),Dn=e=>{for(;e.parent;)e=e.parent;return e};var Un=function(e){return Dn(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()};var Fn=function(e){if(_t(e))for(let t=e.length-1;t>0;t--)if("word"===e[t].type&&"{"===e[t].value&&"word"===e[t-1].type&&e[t-1].value.endsWith("#"))return!0;return!1};var Vn=function(e){return e.some(e=>"string"===e.type||"func"===e.type&&!e.value.endsWith("\\"))};var Gn=function(e,t){return!("scss"!==t.parser||"word"!==(null==e?void 0:e.type)||!e.value.startsWith("$"))},Jn=e=>"paren"===e.type&&")"===e.value;function Hn(e,t){var r;let{nodes:n}=e,s={open:null,close:null,groups:[],type:"paren_group"},o=[s],i=s,a={groups:[],type:"comma_group"},u=[a];for(let i=0;i<n.length;++i){let l=n[i];if("scss"===t.parser&&"number"===l.type&&".."===l.unit&&l.value.endsWith(".")&&(l.value=l.value.slice(0,-1),l.unit="..."),"func"===l.type&&"selector"===l.value&&(l.group.groups=[zn(Dn(e).text.slice(l.group.open.sourceIndex+1,l.group.close.sourceIndex))]),"func"===l.type&&"url"===l.value){let e=(null==(r=l.group)?void 0:r.groups)??[],n=[];for(let t=0;t<e.length;t++){let r=e[t];"comma_group"===r.type?n=[...n,...r.groups]:n.push(r)}(Fn(n)||!Vn(n)&&!Gn(n[0],t))&&(l.group.groups=[Un(l)])}if("paren"===l.type&&"("===l.value)s={open:l,close:null,groups:[],type:"paren_group"},o.push(s),a={groups:[],type:"comma_group"},u.push(a);else if(Jn(l)){if(a.groups.length>0&&s.groups.push(a),s.close=l,1===u.length)throw new Error("Unbalanced parenthesis");u.pop(),a=ut(!1,u,-1),a.groups.push(s),o.pop(),s=ut(!1,o,-1)}else if("comma"===l.type){if(i===n.length-3&&"comment"===n[i+1].type&&Jn(n[i+2]))continue;s.groups.push(a),a={groups:[],type:"comma_group"},u[u.length-1]=a}else a.groups.push(l)}return a.groups.length>0&&s.groups.push(a),i}function Qn(e){return"paren_group"===e.type&&!e.open&&!e.close&&1===e.groups.length||"comma_group"===e.type&&1===e.groups.length?Qn(e.groups[0]):"paren_group"===e.type||"comma_group"===e.type?{...e,groups:e.groups.map(Qn)}:e}function Kn(e,t){if(e&&"object"==typeof e)for(let r in e)"parent"!==r&&(Kn(e[r],t),"nodes"===r&&(e.group=Qn(Hn(e,t)),delete e[r]));return e}var Yn=function(e,t){if("less"===t.parser&&e.startsWith("~`"))return{type:"value-unknown",value:e};let r=null;try{r=new qn.default(e,{loose:!0}).parse()}catch{return{type:"value-unknown",value:e}}return r.text=e,Rn(Kn(r,t),"value-",/^selector-/u)},Zn=new Set(["import","use","forward"]);var Xn=function(e){return Zn.has(e)};var es=function(e,t){return!("scss"!==t.parser||!e.selector)&&e.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")},ts=/(\s*)(!default).*$/u,rs=/(\s*)(!global).*$/u;function ns(e,t){var r,n;if(e&&"object"==typeof e){delete e.parent;for(let r in e)ns(e[r],t);if(!e.type)return e;if(e.raws??(e.raws={}),"css-decl"===e.type&&"string"==typeof e.prop&&e.prop.startsWith("--")&&"string"==typeof e.value&&e.value.startsWith("{")){let n;if(e.value.trimEnd().endsWith("}")){let s,o,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),u=Ve(!1,i,/[^\n]/gu," ")+a;s="scss"===t.parser?as:"less"===t.parser?is:os;try{o=s(u,{...t})}catch{}1===(null==(r=null==o?void 0:o.nodes)?void 0:r.length)&&"css-rule"===o.nodes[0].type&&(n=o.nodes[0].nodes)}return e.value=n?{type:"css-rule",nodes:n}:{type:"value-unknown",value:e.raws.value.raw},e}let s="";"string"==typeof e.selector&&(s=e.raws.selector?e.raws.selector.scss??e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(s+=e.raws.between),e.raws.selector=s);let o="";"string"==typeof e.value&&(o=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,e.raws.value=o.trim());let i="";if("string"==typeof e.params&&(i=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(i=e.raws.afterName+i),e.raws.between&&e.raws.between.trim().length>0&&(i+=e.raws.between),i=i.trim(),e.raws.params=i),s.trim().length>0)return s.startsWith("@")&&s.endsWith(":")?e:e.mixin?(e.selector=Yn(s,t),e):(es(e,t)&&(e.isSCSSNesterProperty=!0),e.selector=zn(s),e);if(o.trim().length>0){let r=o.match(ts);r&&(o=o.slice(0,r.index),e.scssDefault=!0,"!default"!==r[0].trim()&&(e.raws.scssDefault=r[0]));let n=o.match(rs);if(n&&(o=o.slice(0,n.index),e.scssGlobal=!0,"!global"!==n[0].trim()&&(e.raws.scssGlobal=n[0])),o.startsWith("progid:"))return{type:"value-unknown",value:o};e.value=Yn(o,t)}if("less"===t.parser&&"css-decl"===e.type&&o.startsWith("extend(")&&(e.extend||(e.extend=":"===e.raws.between),e.extend&&!e.selector&&(delete e.value,e.selector=zn(o.slice(7,-1)))),"css-atrule"===e.type){if("less"===t.parser){if(e.mixin){let t=e.raws.identifier+e.name+e.raws.afterName+e.raws.params;return e.selector=zn(t),delete e.params,e}if(e.function)return e}if("css"===t.parser&&"custom-selector"===e.name){let t=e.params.match(/:--\S+\s+/u)[0].trim();return e.customSelector=t,e.selector=zn(e.params.slice(t.length).trim()),delete e.params,e}if("less"===t.parser){if(e.name.includes(":")&&!e.params){e.variable=!0;let r=e.name.split(":");e.name=r[0],e.value=Yn(r.slice(1).join(":"),t)}if(!["page","nest","keyframes"].includes(e.name)&&":"===(null==(n=e.params)?void 0:n[0])){e.variable=!0;let r=e.params.slice(1);r&&(e.value=Yn(r,t)),e.raws.afterName+=":"}if(e.variable)return delete e.params,e.value||delete e.value,e}}if("css-atrule"===e.type&&i.length>0){let{name:r}=e,n=e.name.toLowerCase();return"warn"===r||"error"===r?(e.params={type:"media-unknown",value:i},e):"extend"===r||"nest"===r?(e.selector=zn(i),delete e.params,e):"at-root"===r?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(i)?e.params=Yn(i,t):(e.selector=zn(i),delete e.params),e):Xn(n)?(e.import=!0,delete e.filename,e.params=Yn(i,t),e):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(r)?(i=i.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),i=i.replace(/^(?!if)(\S+)(\s+)\(/u,"$1($2"),e.value=Yn(i,t),delete e.params,e):["media","custom-media"].includes(n)?i.includes("#{")?{type:"media-unknown",value:i}:(e.params=Wn(i),e):(e.params=i,e)}}return e}function ss(e,t,r){let n,s=br(t),{frontMatter:o}=s;t=s.content;try{n=e(t,{map:!1})}catch(e){let{name:t,reason:r,line:n,column:s}=e;throw"number"!=typeof n?e:$n(`${t}: ${r}`,{loc:{start:{line:n,column:s}},cause:e})}return r.originalText=t,n=ns(Rn(n,"css-"),r),Xt(n,t),o&&(o.source={startOffset:0,endOffset:o.raw.length},n.frontMatter=o),n}function os(e,t={}){return ss(In.default.default,e,t)}function is(e,t={}){return ss(e=>Pn.default.parse(function(e){let t,r="initial",n="initial",s=!1,o=[];for(let i=0;i<e.length;i++){let a=e[i];switch(r){case"initial":if("'"===a){r="single-quotes";continue}if('"'===a){r="double-quotes";continue}if(("u"===a||"U"===a)&&"url("===e.slice(i,i+4).toLowerCase()){r="url",i+=3;continue}if("*"===a&&"/"===e[i-1]){r="comment-block";continue}if("/"===a&&"/"===e[i-1]){r="comment-inline",t=i-1;continue}continue;case"single-quotes":if("'"===a&&"\\"!==e[i-1]&&(r=n,n="initial"),"\n"===a||"\r"===a)return e;continue;case"double-quotes":if('"'===a&&"\\"!==e[i-1]&&(r=n,n="initial"),"\n"===a||"\r"===a)return e;continue;case"url":if(")"===a&&(r="initial"),"\n"===a||"\r"===a)return e;if("'"===a){r="single-quotes",n="url";continue}if('"'===a){r="double-quotes",n="url";continue}continue;case"comment-block":"/"===a&&"*"===e[i-1]&&(r="initial");continue;case"comment-inline":('"'===a||"'"===a||"*"===a)&&(s=!0),("\n"===a||"\r"===a)&&(s&&o.push([t,i]),r="initial",s=!1);continue}}for(let[t,r]of o)e=e.slice(0,t)+Ve(!1,e.slice(t,r),/["'*]/gu," ")+e.slice(r);return e}(e)),e,t)}function as(e,t={}){return ss(Mn.default,e,t)}var us={astFormat:"postcss",hasPragma:function(e){return function(e){let{pragmas:t}=gr(e);return mr.some(e=>Object.prototype.hasOwnProperty.call(t,e))}(br(e).content)},hasIgnorePragma:function(e){return function(e){let{pragmas:t}=gr(e);return dr.some(e=>Object.prototype.hasOwnProperty.call(t,e))}(br(e).content)},locStart:rr,locEnd:nr},ls={...us,parse:os},cs={...us,parse:is},ps={...us,parse:as},hs={postcss:_n},fs=Fe;exports.default=fs,exports.languages=En,exports.options=An,exports.parsers=jn,exports.printers=hs;
2
+ //# sourceMappingURL=postcss-BX--ySLa.js.map