odm-client 0.0.2 → 0.0.4

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/dist/client/mongodb-client.d.ts +9 -7
  2. package/dist/client/mongodb-index.d.ts +2 -2
  3. package/dist/cloudbase-index.cjs +1 -1
  4. package/dist/cloudbase-index.js +66 -56
  5. package/dist/decorators/index.d.ts +55 -0
  6. package/dist/deps/_commonjsHelpers-KaVRbhAgd4-ge9xpwxzx.js +28 -0
  7. package/dist/deps/_commonjsHelpers-KaVRbhAgd4-v8zf2xtpz.js +1 -0
  8. package/dist/deps/acorn-DYjaOAP8Gz-6wlulbu53.js +3005 -0
  9. package/dist/deps/acorn-DYjaOAP8Gz-rtafso695.js +16 -0
  10. package/dist/deps/angular-1bp1uAROl4-h1y0hjw1c.js +3 -0
  11. package/dist/deps/angular-1bp1uAROl4-l9nfoii8u.js +2533 -0
  12. package/dist/deps/babel-_P9jsDBVVy-35haxb0wg.js +15 -0
  13. package/dist/deps/babel-_P9jsDBVVy-vug1rua9o.js +7217 -0
  14. package/dist/deps/estree-Q-oFBmJEml-0g2ctosvo.js +4528 -0
  15. package/dist/deps/estree-Q-oFBmJEml-e3lsybu88.js +44 -0
  16. package/dist/deps/flow-j77MFvzLrn-gmx10rk3y.js +27411 -0
  17. package/dist/deps/flow-j77MFvzLrn-sz9bqt4jx.js +20 -0
  18. package/dist/deps/glimmer-ewQPb5nTUl-0rld629hy.js +2703 -0
  19. package/dist/deps/glimmer-ewQPb5nTUl-t0udqv0lr.js +37 -0
  20. package/dist/deps/graphql-8EXR1_taGG-5y6avd4ti.js +1221 -0
  21. package/dist/deps/graphql-8EXR1_taGG-751nqiy3a.js +28 -0
  22. package/dist/deps/html-dGbiW_CFWL-uw8wnl1gk.js +2791 -0
  23. package/dist/deps/html-dGbiW_CFWL-wq1s5ethb.js +25 -0
  24. package/dist/deps/markdown-vAYIRClyWZ-56qwpujmt.js +62 -0
  25. package/dist/deps/markdown-vAYIRClyWZ-l86q790r4.js +3190 -0
  26. package/dist/deps/meriyah-d5_qqf88x--c6d7ate4y.js +2645 -0
  27. package/dist/deps/meriyah-d5_qqf88x--tkflmonbr.js +5 -0
  28. package/dist/deps/postcss-Vz5bDQ3hJO-2iukzp912.js +4739 -0
  29. package/dist/deps/postcss-Vz5bDQ3hJO-hmcg09wlz.js +61 -0
  30. package/dist/deps/typescript-2hCq12HCbJ-1gzolgqdi.js +12947 -0
  31. package/dist/deps/typescript-2hCq12HCbJ-8yg3aw5l3.js +21 -0
  32. package/dist/deps/yaml-I5o0CrcX7J-0sd3e9jv6.js +4079 -0
  33. package/dist/deps/yaml-I5o0CrcX7J-92qe3upn5.js +159 -0
  34. package/dist/generator/cloudbase-init-generator.d.ts +8 -0
  35. package/dist/generator/enum-generator.d.ts +3 -0
  36. package/dist/generator/index.d.ts +6 -0
  37. package/dist/generator/mongodb-init-generator.d.ts +9 -0
  38. package/dist/generator/parser.d.ts +21 -0
  39. package/dist/generator/table-generator.d.ts +3 -0
  40. package/dist/generator/type-generator.d.ts +6 -0
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.d.ts +1 -0
  43. package/dist/index.js +3 -1
  44. package/dist/index2.cjs +42770 -0
  45. package/dist/index2.js +242204 -0
  46. package/dist/mongodb-index.cjs +11 -11
  47. package/dist/mongodb-index.js +2103 -2106
  48. package/dist/types/index.d.ts +14 -0
  49. package/package.json +3 -1
  50. /package/dist/deps/{query-builder-h6B2D2BCoQ-lveomig6j.js → query-builder-h6B2D2BCoQ-ac12dlz8z.js} +0 -0
  51. /package/dist/deps/{query-builder-h6B2D2BCoQ-7t1lrgoqc.js → query-builder-h6B2D2BCoQ-lelbzdog2.js} +0 -0
@@ -0,0 +1,61 @@
1
+ "use strict";var os=Object.defineProperty;var is=(e,s,o)=>s in e?os(e,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[s]=o;var lt=(e,s,o)=>is(e,typeof s!="symbol"?s+"":s,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var as=Object.create,xt=Object.defineProperty,us=Object.getOwnPropertyDescriptor,ls=Object.getOwnPropertyNames,cs=Object.getPrototypeOf,ps=Object.prototype.hasOwnProperty,A=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports),Xt=(e,s)=>{for(var o in s)xt(e,o,{get:s[o],enumerable:!0})},hs=(e,s,o,r)=>{if(s&&typeof s=="object"||typeof s=="function")for(let c of ls(s))!ps.call(e,c)&&c!==o&&xt(e,c,{get:()=>s[c],enumerable:!(r=us(s,c))||r.enumerable});return e},xe=(e,s,o)=>(o=e!=null?as(cs(e)):{},hs(xt(o,"default",{value:e,enumerable:!0}),e)),fs=A((e,s)=>{var o=String,r=function(){return{isColorSupported:!1,reset:o,bold:o,dim:o,italic:o,underline:o,inverse:o,hidden:o,strikethrough:o,black:o,red:o,green:o,yellow:o,blue:o,magenta:o,cyan:o,white:o,gray:o,bgBlack:o,bgRed:o,bgGreen:o,bgYellow:o,bgBlue:o,bgMagenta:o,bgCyan:o,bgWhite:o,blackBright:o,redBright:o,greenBright:o,yellowBright:o,blueBright:o,magentaBright:o,cyanBright:o,whiteBright:o,bgBlackBright:o,bgRedBright:o,bgGreenBright:o,bgYellowBright:o,bgBlueBright:o,bgMagentaBright:o,bgCyanBright:o,bgWhiteBright:o}};s.exports=r(),s.exports.createColors=r}),er=A(()=>{}),kt=A((e,s)=>{var o=fs(),r=er(),c=class tr extends Error{constructor(a,l,m,d,n,t){super(a),this.name="CssSyntaxError",this.reason=a,n&&(this.file=n),d&&(this.source=d),t&&(this.plugin=t),typeof l<"u"&&typeof m<"u"&&(typeof l=="number"?(this.line=l,this.column=m):(this.line=l.line,this.column=l.column,this.endLine=m.line,this.endColumn=m.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,tr)}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(a){if(!this.source)return"";let l=this.source;a==null&&(a=o.isColorSupported);let m=u=>u,d=u=>u,n=u=>u;if(a){let{bold:u,gray:b,red:v}=o.createColors(!0);d=y=>u(v(y)),m=y=>b(y),r&&(n=y=>r(y))}let t=l.split(/\r?\n/),h=Math.max(this.line-3,0),p=Math.min(this.line+2,t.length),f=String(p).length;return t.slice(h,p).map((u,b)=>{let v=h+1+b,y=" "+(" "+v).slice(-f)+" | ";if(v===this.line){if(u.length>160){let x=20,w=Math.max(0,this.column-x),k=Math.max(this.column+x,this.endColumn+x),T=u.slice(w,k),O=m(y.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return d(">")+m(y)+n(T)+`
2
+ `+O+d("^")}let g=m(y.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return d(">")+m(y)+n(u)+`
3
+ `+g+d("^")}return" "+m(y)+n(u)}).join(`
4
+ `)}toString(){let a=this.showSourceCode();return a&&(a=`
5
+
6
+ `+a+`
7
+ `),this.name+": "+this.message+a}};s.exports=c,c.default=c}),Tt=A((e,s)=>{var o={after:`
8
+ `,beforeClose:`
9
+ `,beforeComment:`
10
+ `,beforeDecl:`
11
+ `,beforeOpen:" ",beforeRule:`
12
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function r(i){return i[0].toUpperCase()+i.slice(1)}var c=class{constructor(i){this.builder=i}atrule(i,a){let l="@"+i.name,m=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName<"u"?l+=i.raws.afterName:m&&(l+=" "),i.nodes)this.block(i,l+m);else{let d=(i.raws.between||"")+(a?";":"");this.builder(l+m+d,i)}}beforeAfter(i,a){let l;i.type==="decl"?l=this.raw(i,null,"beforeDecl"):i.type==="comment"?l=this.raw(i,null,"beforeComment"):a==="before"?l=this.raw(i,null,"beforeRule"):l=this.raw(i,null,"beforeClose");let m=i.parent,d=0;for(;m&&m.type!=="root";)d+=1,m=m.parent;if(l.includes(`
13
+ `)){let n=this.raw(i,null,"indent");if(n.length)for(let t=0;t<d;t++)l+=n}return l}block(i,a){let l=this.raw(i,"between","beforeOpen");this.builder(a+l+"{",i,"start");let m;i.nodes&&i.nodes.length?(this.body(i),m=this.raw(i,"after")):m=this.raw(i,"after","emptyBody"),m&&this.builder(m),this.builder("}",i,"end")}body(i){let a=i.nodes.length-1;for(;a>0&&i.nodes[a].type==="comment";)a-=1;let l=this.raw(i,"semicolon");for(let m=0;m<i.nodes.length;m++){let d=i.nodes[m],n=this.raw(d,"before");n&&this.builder(n),this.stringify(d,a!==m||l)}}comment(i){let a=this.raw(i,"left","commentLeft"),l=this.raw(i,"right","commentRight");this.builder("/*"+a+i.text+l+"*/",i)}decl(i,a){let l=this.raw(i,"between","colon"),m=i.prop+l+this.rawValue(i,"value");i.important&&(m+=i.raws.important||" !important"),a&&(m+=";"),this.builder(m,i)}document(i){this.body(i)}raw(i,a,l){let m;if(l||(l=a),a&&(m=i.raws[a],typeof m<"u"))return m;let d=i.parent;if(l==="before"&&(!d||d.type==="root"&&d.first===i||d&&d.type==="document"))return"";if(!d)return o[l];let n=i.root();if(n.rawCache||(n.rawCache={}),typeof n.rawCache[l]<"u")return n.rawCache[l];if(l==="before"||l==="after")return this.beforeAfter(i,l);{let t="raw"+r(l);this[t]?m=this[t](n,i):n.walk(h=>{if(m=h.raws[a],typeof m<"u")return!1})}return typeof m>"u"&&(m=o[l]),n.rawCache[l]=m,m}rawBeforeClose(i){let a;return i.walk(l=>{if(l.nodes&&l.nodes.length>0&&typeof l.raws.after<"u")return a=l.raws.after,a.includes(`
14
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(i,a){let l;return i.walkComments(m=>{if(typeof m.raws.before<"u")return l=m.raws.before,l.includes(`
15
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(a,null,"beforeDecl"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeDecl(i,a){let l;return i.walkDecls(m=>{if(typeof m.raws.before<"u")return l=m.raws.before,l.includes(`
16
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(a,null,"beforeRule"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeOpen(i){let a;return i.walk(l=>{if(l.type!=="decl"&&(a=l.raws.between,typeof a<"u"))return!1}),a}rawBeforeRule(i){let a;return i.walk(l=>{if(l.nodes&&(l.parent!==i||i.first!==l)&&typeof l.raws.before<"u")return a=l.raws.before,a.includes(`
17
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(l=>{if(typeof l.raws.between<"u")return a=l.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(l=>{if(l.nodes&&l.nodes.length===0&&(a=l.raws.after,typeof a<"u"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(l=>{let m=l.parent;if(m&&m!==i&&m.parent&&m.parent===i&&typeof l.raws.before<"u"){let d=l.raws.before.split(`
18
+ `);return a=d[d.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(l=>{if(l.nodes&&l.nodes.length&&l.last.type==="decl"&&(a=l.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(i,a){let l=i[a],m=i.raws[a];return m&&m.value===l?m.raw:l}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}};s.exports=c,c.default=c}),Ye=A((e,s)=>{var o=Tt();function r(c,i){new o(i).stringify(c)}s.exports=r,r.default=r}),Ot=A((e,s)=>{s.exports.isClean=Symbol("isClean"),s.exports.my=Symbol("my")}),Ke=A((e,s)=>{var o=kt(),r=Tt(),c=Ye(),{isClean:i,my:a}=Ot();function l(n,t){let h=new n.constructor;for(let p in n){if(!Object.prototype.hasOwnProperty.call(n,p)||p==="proxyCache")continue;let f=n[p],u=typeof f;p==="parent"&&u==="object"?t&&(h[p]=t):p==="source"?h[p]=f:Array.isArray(f)?h[p]=f.map(b=>l(b,h)):(u==="object"&&f!==null&&(f=l(f)),h[p]=f)}return h}function m(n,t){if(t&&typeof t.offset<"u")return t.offset;let h=1,p=1,f=0;for(let u=0;u<n.length;u++){if(p===t.line&&h===t.column){f=u;break}n[u]===`
19
+ `?(h=1,p+=1):h+=1}return f}var d=class{get proxyOf(){return this}constructor(n={}){this.raws={},this[i]=!1,this[a]=!0;for(let t in n)if(t==="nodes"){this.nodes=[];for(let h of n[t])typeof h.clone=="function"?this.append(h.clone()):this.append(h)}else this[t]=n[t]}addToError(n){if(n.postcssNode=this,n.stack&&this.source&&/\n\s{4}at /.test(n.stack)){let t=this.source;n.stack=n.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return n}after(n){return this.parent.insertAfter(this,n),this}assign(n={}){for(let t in n)this[t]=n[t];return this}before(n){return this.parent.insertBefore(this,n),this}cleanRaws(n){delete this.raws.before,delete this.raws.after,n||delete this.raws.between}clone(n={}){let t=l(this);for(let h in n)t[h]=n[h];return t}cloneAfter(n={}){let t=this.clone(n);return this.parent.insertAfter(this,t),t}cloneBefore(n={}){let t=this.clone(n);return this.parent.insertBefore(this,t),t}error(n,t={}){if(this.source){let{end:h,start:p}=this.rangeBy(t);return this.source.input.error(n,{column:p.column,line:p.line},{column:h.column,line:h.line},t)}return new o(n)}getProxyProcessor(){return{get(n,t){return t==="proxyOf"?n:t==="root"?()=>n.root().toProxy():n[t]},set(n,t,h){return n[t]===h||(n[t]=h,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&n.markDirty()),!0}}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let n=this;for(;n=n.parent;)n[i]=!1}}next(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n+1]}positionBy(n={}){let t=this.source.start;if(n.index)t=this.positionInside(n.index);else if(n.word){let h="document"in this.source.input?this.source.input.document:this.source.input.css,p=h.slice(m(h,this.source.start),m(h,this.source.end)).indexOf(n.word);p!==-1&&(t=this.positionInside(p))}return t}positionInside(n){let t=this.source.start.column,h=this.source.start.line,p="document"in this.source.input?this.source.input.document:this.source.input.css,f=m(p,this.source.start),u=f+n;for(let b=f;b<u;b++)p[b]===`
20
+ `?(t=1,h+=1):t+=1;return{column:t,line:h,offset:u}}prev(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n-1]}rangeBy(n={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,h={column:this.source.start.column,line:this.source.start.line,offset:m(t,this.source.start)},p=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:m(t,this.source.end)+1}:{column:h.column+1,line:h.line,offset:h.offset+1};if(n.word){let f=t.slice(m(t,this.source.start),m(t,this.source.end)).indexOf(n.word);f!==-1&&(h=this.positionInside(f),p=this.positionInside(f+n.word.length))}else n.start?h={column:n.start.column,line:n.start.line,offset:m(t,n.start)}:n.index&&(h=this.positionInside(n.index)),n.end?p={column:n.end.column,line:n.end.line,offset:m(t,n.end)}:typeof n.endIndex=="number"?p=this.positionInside(n.endIndex):n.index&&(p=this.positionInside(n.index+1));return(p.line<h.line||p.line===h.line&&p.column<=h.column)&&(p={column:h.column+1,line:h.line,offset:h.offset+1}),{end:p,start:h}}raw(n,t){return new r().raw(this,n,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...n){if(this.parent){let t=this,h=!1;for(let p of n)p===this?h=!0:h?(this.parent.insertAfter(t,p),t=p):this.parent.insertBefore(t,p);h||this.remove()}return this}root(){let n=this;for(;n.parent&&n.parent.type!=="document";)n=n.parent;return n}toJSON(n,t){let h={},p=t==null;t=t||new Map;let f=0;for(let u in this){if(!Object.prototype.hasOwnProperty.call(this,u)||u==="parent"||u==="proxyCache")continue;let b=this[u];if(Array.isArray(b))h[u]=b.map(v=>typeof v=="object"&&v.toJSON?v.toJSON(null,t):v);else if(typeof b=="object"&&b.toJSON)h[u]=b.toJSON(null,t);else if(u==="source"){if(b==null)continue;let v=t.get(b.input);v==null&&(v=f,t.set(b.input,f),f++),h[u]={end:b.end,inputId:v,start:b.start}}else h[u]=b}return p&&(h.inputs=[...t.keys()].map(u=>u.toJSON())),h}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(n=c){n.stringify&&(n=n.stringify);let t="";return n(this,h=>{t+=h}),t}warn(n,t,h={}){let p={node:this};for(let f in h)p[f]=h[f];return n.warn(t,p)}};s.exports=d,d.default=d}),Ne=A((e,s)=>{var o=Ke(),r=class extends o{constructor(c){super(c),this.type="comment"}};s.exports=r,r.default=r}),Xe=A((e,s)=>{var o=Ke(),r=class extends o{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(c){c&&typeof c.value<"u"&&typeof c.value!="string"&&(c={...c,value:String(c.value)}),super(c),this.type="decl"}};s.exports=r,r.default=r}),pe=A((e,s)=>{var o=Ne(),r=Xe(),c=Ke(),{isClean:i,my:a}=Ot(),l,m,d,n;function t(f){return f.map(u=>(u.nodes&&(u.nodes=t(u.nodes)),delete u.source,u))}function h(f){if(f[i]=!1,f.proxyOf.nodes)for(let u of f.proxyOf.nodes)h(u)}var p=class rr extends c{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...u){for(let b of u){let v=this.normalize(b,this.last);for(let y of v)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(u){if(super.cleanRaws(u),this.nodes)for(let b of this.nodes)b.cleanRaws(u)}each(u){if(!this.proxyOf.nodes)return;let b=this.getIterator(),v,y;for(;this.indexes[b]<this.proxyOf.nodes.length&&(v=this.indexes[b],y=u(this.proxyOf.nodes[v],v),y!==!1);)this.indexes[b]+=1;return delete this.indexes[b],y}every(u){return this.nodes.every(u)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let u=this.lastEach;return this.indexes[u]=0,u}getProxyProcessor(){return{get(u,b){return b==="proxyOf"?u:u[b]?b==="each"||typeof b=="string"&&b.startsWith("walk")?(...v)=>u[b](...v.map(y=>typeof y=="function"?(g,x)=>y(g.toProxy(),x):y)):b==="every"||b==="some"?v=>u[b]((y,...g)=>v(y.toProxy(),...g)):b==="root"?()=>u.root().toProxy():b==="nodes"?u.nodes.map(v=>v.toProxy()):b==="first"||b==="last"?u[b].toProxy():u[b]:u[b]},set(u,b,v){return u[b]===v||(u[b]=v,(b==="name"||b==="params"||b==="selector")&&u.markDirty()),!0}}}index(u){return typeof u=="number"?u:(u.proxyOf&&(u=u.proxyOf),this.proxyOf.nodes.indexOf(u))}insertAfter(u,b){let v=this.index(u),y=this.normalize(b,this.proxyOf.nodes[v]).reverse();v=this.index(u);for(let x of y)this.proxyOf.nodes.splice(v+1,0,x);let g;for(let x in this.indexes)g=this.indexes[x],v<g&&(this.indexes[x]=g+y.length);return this.markDirty(),this}insertBefore(u,b){let v=this.index(u),y=v===0?"prepend":!1,g=this.normalize(b,this.proxyOf.nodes[v],y).reverse();v=this.index(u);for(let w of g)this.proxyOf.nodes.splice(v,0,w);let x;for(let w in this.indexes)x=this.indexes[w],v<=x&&(this.indexes[w]=x+g.length);return this.markDirty(),this}normalize(u,b){if(typeof u=="string")u=t(m(u).nodes);else if(typeof u>"u")u=[];else if(Array.isArray(u)){u=u.slice(0);for(let v of u)v.parent&&v.parent.removeChild(v,"ignore")}else if(u.type==="root"&&this.type!=="document"){u=u.nodes.slice(0);for(let v of u)v.parent&&v.parent.removeChild(v,"ignore")}else if(u.type)u=[u];else if(u.prop){if(typeof u.value>"u")throw new Error("Value field is missed in node creation");typeof u.value!="string"&&(u.value=String(u.value)),u=[new r(u)]}else if(u.selector||u.selectors)u=[new n(u)];else if(u.name)u=[new l(u)];else if(u.text)u=[new o(u)];else throw new Error("Unknown node type in node creation");return u.map(v=>(v[a]||rr.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[i]&&h(v),v.raws||(v.raws={}),typeof v.raws.before>"u"&&b&&typeof b.raws.before<"u"&&(v.raws.before=b.raws.before.replace(/\S/g,"")),v.parent=this.proxyOf,v))}prepend(...u){u=u.reverse();for(let b of u){let v=this.normalize(b,this.first,"prepend").reverse();for(let y of v)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+v.length}return this.markDirty(),this}push(u){return u.parent=this,this.proxyOf.nodes.push(u),this}removeAll(){for(let u of this.proxyOf.nodes)u.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(u){u=this.index(u),this.proxyOf.nodes[u].parent=void 0,this.proxyOf.nodes.splice(u,1);let b;for(let v in this.indexes)b=this.indexes[v],b>=u&&(this.indexes[v]=b-1);return this.markDirty(),this}replaceValues(u,b,v){return v||(v=b,b={}),this.walkDecls(y=>{b.props&&!b.props.includes(y.prop)||b.fast&&!y.value.includes(b.fast)||(y.value=y.value.replace(u,v))}),this.markDirty(),this}some(u){return this.nodes.some(u)}walk(u){return this.each((b,v)=>{let y;try{y=u(b,v)}catch(g){throw b.addToError(g)}return y!==!1&&b.walk&&(y=b.walk(u)),y})}walkAtRules(u,b){return b?u instanceof RegExp?this.walk((v,y)=>{if(v.type==="atrule"&&u.test(v.name))return b(v,y)}):this.walk((v,y)=>{if(v.type==="atrule"&&v.name===u)return b(v,y)}):(b=u,this.walk((v,y)=>{if(v.type==="atrule")return b(v,y)}))}walkComments(u){return this.walk((b,v)=>{if(b.type==="comment")return u(b,v)})}walkDecls(u,b){return b?u instanceof RegExp?this.walk((v,y)=>{if(v.type==="decl"&&u.test(v.prop))return b(v,y)}):this.walk((v,y)=>{if(v.type==="decl"&&v.prop===u)return b(v,y)}):(b=u,this.walk((v,y)=>{if(v.type==="decl")return b(v,y)}))}walkRules(u,b){return b?u instanceof RegExp?this.walk((v,y)=>{if(v.type==="rule"&&u.test(v.selector))return b(v,y)}):this.walk((v,y)=>{if(v.type==="rule"&&v.selector===u)return b(v,y)}):(b=u,this.walk((v,y)=>{if(v.type==="rule")return b(v,y)}))}};p.registerParse=f=>{m=f},p.registerRule=f=>{n=f},p.registerAtRule=f=>{l=f},p.registerRoot=f=>{d=f},s.exports=p,p.default=p,p.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,l.prototype):f.type==="rule"?Object.setPrototypeOf(f,n.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,o.prototype):f.type==="root"&&Object.setPrototypeOf(f,d.prototype),f[a]=!0,f.nodes&&f.nodes.forEach(u=>{p.rebuild(u)})}}),ds=A((e,s)=>{var o="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",r=(i,a=21)=>(l=a)=>{let m="",d=l|0;for(;d--;)m+=i[Math.random()*i.length|0];return m},c=(i=21)=>{let a="",l=i|0;for(;l--;)a+=o[Math.random()*64|0];return a};s.exports={nanoid:c,customAlphabet:r}}),ms=A(()=>{}),sr=A((e,s)=>{s.exports=class{}}),Le=A((e,s)=>{var{nanoid:o}=ds(),{isAbsolute:r,resolve:c}={},{SourceMapConsumer:i,SourceMapGenerator:a}=ms(),{fileURLToPath:l,pathToFileURL:m}={},d=kt(),n=sr(),t=er(),h=Symbol("lineToIndexCache"),p=!!(i&&a),f=!!(c&&r);function u(v){if(v[h])return v[h];let y=v.css.split(`
21
+ `),g=new Array(y.length),x=0;for(let w=0,k=y.length;w<k;w++)g[w]=x,x+=y[w].length+1;return v[h]=g,g}var b=class{get from(){return this.file||this.id}constructor(v,y={}){if(v===null||typeof v>"u"||typeof v=="object"&&!v.toString)throw new Error(`PostCSS received ${v} instead of CSS string`);if(this.css=v.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,y.document&&(this.document=y.document.toString()),y.from&&(!f||/^\w+:\/\//.test(y.from)||r(y.from)?this.file=y.from:this.file=c(y.from)),f&&p){let g=new n(this.css,y);if(g.text){this.map=g;let x=g.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(v,y,g,x={}){let w,k,T,O,C;if(y&&typeof y=="object"){let I=y,N=g;if(typeof I.offset=="number"){O=I.offset;let $=this.fromOffset(O);y=$.line,g=$.col}else y=I.line,g=I.column,O=this.fromLineAndColumn(y,g);if(typeof N.offset=="number"){T=N.offset;let $=this.fromOffset(T);k=$.line,w=$.col}else k=N.line,w=N.column,T=this.fromLineAndColumn(N.line,N.column)}else if(g)O=this.fromLineAndColumn(y,g);else{O=y;let I=this.fromOffset(O);y=I.line,g=I.col}let E=this.origin(y,g,k,w);return E?C=new d(v,E.endLine===void 0?E.line:{column:E.column,line:E.line},E.endLine===void 0?E.column:{column:E.endColumn,line:E.endLine},E.source,E.file,x.plugin):C=new d(v,k===void 0?y:{column:g,line:y},k===void 0?g:{column:w,line:k},this.css,this.file,x.plugin),C.input={column:g,endColumn:w,endLine:k,endOffset:T,line:y,offset:O,source:this.css},this.file&&(m&&(C.input.url=m(this.file).toString()),C.input.file=this.file),C}fromLineAndColumn(v,y){return u(this)[v-1]+y-1}fromOffset(v){let y=u(this),g=y[y.length-1],x=0;if(v>=g)x=y.length-1;else{let w=y.length-2,k;for(;x<w;)if(k=x+(w-x>>1),v<y[k])w=k-1;else if(v>=y[k+1])x=k+1;else{x=k;break}}return{col:v-y[x]+1,line:x+1}}mapResolve(v){return/^\w+:\/\//.test(v)?v:c(this.map.consumer().sourceRoot||this.map.root||".",v)}origin(v,y,g,x){if(!this.map)return!1;let w=this.map.consumer(),k=w.originalPositionFor({column:y,line:v});if(!k.source)return!1;let T;typeof g=="number"&&(T=w.originalPositionFor({column:x,line:g}));let O;r(k.source)?O=m(k.source):O=new URL(k.source,this.map.consumer().sourceRoot||m(this.map.mapFile));let C={column:k.column,endColumn:T&&T.column,endLine:T&&T.line,line:k.line,url:O.toString()};if(O.protocol==="file:")if(l)C.file=l(O);else throw new Error("file: protocol is not available in this PostCSS build");let E=w.sourceContentFor(k.source);return E&&(C.source=E),C}toJSON(){let v={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(v[y]=this[y]);return this.map&&(v.map={...this.map},v.map.consumerCache&&(v.map.consumerCache=void 0)),v}};s.exports=b,b.default=b,t&&t.registerInput&&t.registerInput(b)}),_t=A((e,s)=>{var o=pe(),r=class extends o{constructor(c){super(c),this.type="atrule"}append(...c){return this.proxyOf.nodes||(this.nodes=[]),super.append(...c)}prepend(...c){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...c)}};s.exports=r,r.default=r,o.registerAtRule(r)}),We=A((e,s)=>{var o=pe(),r,c,i=class extends o{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,l,m){let d=super.normalize(a);if(l){if(m==="prepend")this.nodes.length>1?l.raws.before=this.nodes[1].raws.before:delete l.raws.before;else if(this.first!==l)for(let n of d)n.raws.before=l.raws.before}return d}removeChild(a,l){let m=this.index(a);return!l&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(a)}toResult(a={}){return new r(new c,this,a).stringify()}};i.registerLazyResult=a=>{r=a},i.registerProcessor=a=>{c=a},s.exports=i,i.default=i,o.registerRoot(i)}),nr=A((e,s)=>{var o={comma(r){return o.split(r,[","],!0)},space(r){let c=[" ",`
22
+ `," "];return o.split(r,c)},split(r,c,i){let a=[],l="",m=!1,d=0,n=!1,t="",h=!1;for(let p of r)h?h=!1:p==="\\"?h=!0:n?p===t&&(n=!1):p==='"'||p==="'"?(n=!0,t=p):p==="("?d+=1:p===")"?d>0&&(d-=1):d===0&&c.includes(p)&&(m=!0),m?(l!==""&&a.push(l.trim()),l="",m=!1):l+=p;return(i||l!=="")&&a.push(l.trim()),a}};s.exports=o,o.default=o}),St=A((e,s)=>{var o=pe(),r=nr(),c=class extends o{get selectors(){return r.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,l=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(l)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}};s.exports=c,c.default=c,o.registerRule(c)}),Ct=A((e,s)=>{var o=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,c=/.[\r\n"'(/\\]/,i=/[\da-f]/i;s.exports=function(a,l={}){let m=a.css.valueOf(),d=l.ignoreErrors,n,t,h,p,f,u,b,v,y,g,x=m.length,w=0,k=[],T=[];function O(){return w}function C($){throw a.error("Unclosed "+$,w)}function E(){return T.length===0&&w>=x}function I($){if(T.length)return T.pop();if(w>=x)return;let R=$?$.ignoreUnclosed:!1;switch(n=m.charCodeAt(w),n){case 10:case 32:case 9:case 13:case 12:{p=w;do p+=1,n=m.charCodeAt(p);while(n===32||n===10||n===9||n===13||n===12);u=["space",m.slice(w,p)],w=p-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let M=String.fromCharCode(n);u=[M,M,w];break}case 40:{if(g=k.length?k.pop()[1]:"",y=m.charCodeAt(w+1),g==="url"&&y!==39&&y!==34&&y!==32&&y!==10&&y!==9&&y!==12&&y!==13){p=w;do{if(b=!1,p=m.indexOf(")",p+1),p===-1)if(d||R){p=w;break}else C("bracket");for(v=p;m.charCodeAt(v-1)===92;)v-=1,b=!b}while(b);u=["brackets",m.slice(w,p+1),w,p],w=p}else p=m.indexOf(")",w+1),t=m.slice(w,p+1),p===-1||c.test(t)?u=["(","(",w]:(u=["brackets",t,w,p],w=p);break}case 39:case 34:{f=n===39?"'":'"',p=w;do{if(b=!1,p=m.indexOf(f,p+1),p===-1)if(d||R){p=w+1;break}else C("string");for(v=p;m.charCodeAt(v-1)===92;)v-=1,b=!b}while(b);u=["string",m.slice(w,p+1),w,p],w=p;break}case 64:{o.lastIndex=w+1,o.test(m),o.lastIndex===0?p=m.length-1:p=o.lastIndex-2,u=["at-word",m.slice(w,p+1),w,p],w=p;break}case 92:{for(p=w,h=!0;m.charCodeAt(p+1)===92;)p+=1,h=!h;if(n=m.charCodeAt(p+1),h&&n!==47&&n!==32&&n!==10&&n!==9&&n!==13&&n!==12&&(p+=1,i.test(m.charAt(p)))){for(;i.test(m.charAt(p+1));)p+=1;m.charCodeAt(p+1)===32&&(p+=1)}u=["word",m.slice(w,p+1),w,p],w=p;break}default:{n===47&&m.charCodeAt(w+1)===42?(p=m.indexOf("*/",w+2)+1,p===0&&(d||R?p=m.length:C("comment")),u=["comment",m.slice(w,p+1),w,p],w=p):(r.lastIndex=w+1,r.test(m),r.lastIndex===0?p=m.length-1:p=r.lastIndex-2,u=["word",m.slice(w,p+1),w,p],k.push(u),w=p);break}}return w++,u}function N($){T.push($)}return{back:N,endOfFile:E,nextToken:I,position:O}}}),At=A((e,s)=>{var o=_t(),r=Ne(),c=Xe(),i=We(),a=St(),l=Ct(),m={empty:!0,space:!0};function d(t){for(let h=t.length-1;h>=0;h--){let p=t[h],f=p[3]||p[2];if(f)return f}}var n=class{constructor(t){this.input=t,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let h=new o;h.name=t[1].slice(1),h.name===""&&this.unnamedAtrule(h,t),this.init(h,t[2]);let p,f,u,b=!1,v=!1,y=[],g=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),p=t[0],p==="("||p==="["?g.push(p==="("?")":"]"):p==="{"&&g.length>0?g.push("}"):p===g[g.length-1]&&g.pop(),g.length===0)if(p===";"){h.source.end=this.getPosition(t[2]),h.source.end.offset++,this.semicolon=!0;break}else if(p==="{"){v=!0;break}else if(p==="}"){if(y.length>0){for(u=y.length-1,f=y[u];f&&f[0]==="space";)f=y[--u];f&&(h.source.end=this.getPosition(f[3]||f[2]),h.source.end.offset++)}this.end(t);break}else y.push(t);else y.push(t);if(this.tokenizer.endOfFile()){b=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(y),y.length?(h.raws.afterName=this.spacesAndCommentsFromStart(y),this.raw(h,"params",y),b&&(t=y[y.length-1],h.source.end=this.getPosition(t[3]||t[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),v&&(h.nodes=[],this.current=h)}checkMissedSemicolon(t){let h=this.colon(t);if(h===!1)return;let p=0,f;for(let u=h-1;u>=0&&(f=t[u],!(f[0]!=="space"&&(p+=1,p===2)));u--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(t){let h=0,p,f,u;for(let[b,v]of t.entries()){if(f=v,u=f[0],u==="("&&(h+=1),u===")"&&(h-=1),h===0&&u===":")if(!p)this.doubleColon(f);else{if(p[0]==="word"&&p[1]==="progid")continue;return b}p=f}return!1}comment(t){let h=new r;this.init(h,t[2]),h.source.end=this.getPosition(t[3]||t[2]),h.source.end.offset++;let p=t[1].slice(2,-2);if(/^\s*$/.test(p))h.text="",h.raws.left=p,h.raws.right="";else{let f=p.match(/^(\s*)([^]*\S)(\s*)$/);h.text=f[2],h.raws.left=f[1],h.raws.right=f[3]}}createTokenizer(){this.tokenizer=l(this.input)}decl(t,h){let p=new c;this.init(p,t[0][2]);let f=t[t.length-1];for(f[0]===";"&&(this.semicolon=!0,t.pop()),p.source.end=this.getPosition(f[3]||f[2]||d(t)),p.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),p.raws.before+=t.shift()[1];for(p.source.start=this.getPosition(t[0][2]),p.prop="";t.length;){let y=t[0][0];if(y===":"||y==="space"||y==="comment")break;p.prop+=t.shift()[1]}p.raws.between="";let u;for(;t.length;)if(u=t.shift(),u[0]===":"){p.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),p.raws.between+=u[1];(p.prop[0]==="_"||p.prop[0]==="*")&&(p.raws.before+=p.prop[0],p.prop=p.prop.slice(1));let b=[],v;for(;t.length&&(v=t[0][0],!(v!=="space"&&v!=="comment"));)b.push(t.shift());this.precheckMissedSemicolon(t);for(let y=t.length-1;y>=0;y--){if(u=t[y],u[1].toLowerCase()==="!important"){p.important=!0;let g=this.stringFrom(t,y);g=this.spacesFromEnd(t)+g,g!==" !important"&&(p.raws.important=g);break}else if(u[1].toLowerCase()==="important"){let g=t.slice(0),x="";for(let w=y;w>0;w--){let k=g[w][0];if(x.trim().startsWith("!")&&k!=="space")break;x=g.pop()[1]+x}x.trim().startsWith("!")&&(p.important=!0,p.raws.important=x,t=g)}if(u[0]!=="space"&&u[0]!=="comment")break}t.some(y=>y[0]!=="space"&&y[0]!=="comment")&&(p.raws.between+=b.map(y=>y[1]).join(""),b=[]),this.raw(p,"value",b.concat(t),h),p.value.includes(":")&&!h&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let h=new a;this.init(h,t[2]),h.selector="",h.raws.between="",this.current=h}end(t){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(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}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(t){if(this.spaces+=t[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="",h.source.end=this.getPosition(t[2]),h.source.end.offset+=h.raws.ownSemicolon.length)}}getPosition(t){let h=this.input.fromOffset(t);return{column:h.col,line:h.line,offset:t}}init(t,h){this.current.push(t),t.source={input:this.input,start:this.getPosition(h)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let h=!1,p=null,f=!1,u=null,b=[],v=t[1].startsWith("--"),y=[],g=t;for(;g;){if(p=g[0],y.push(g),p==="("||p==="[")u||(u=g),b.push(p==="("?")":"]");else if(v&&f&&p==="{")u||(u=g),b.push("}");else if(b.length===0)if(p===";")if(f){this.decl(y,v);return}else break;else if(p==="{"){this.rule(y);return}else if(p==="}"){this.tokenizer.back(y.pop()),h=!0;break}else p===":"&&(f=!0);else p===b[b.length-1]&&(b.pop(),b.length===0&&(u=null));g=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),b.length>0&&this.unclosedBracket(u),h&&f){if(!v)for(;y.length&&(g=y[y.length-1][0],!(g!=="space"&&g!=="comment"));)this.tokenizer.back(y.pop());this.decl(y,v)}else this.unknownWord(y)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,h,p,f){let u,b,v=p.length,y="",g=!0,x,w;for(let k=0;k<v;k+=1)u=p[k],b=u[0],b==="space"&&k===v-1&&!f?g=!1:b==="comment"?(w=p[k-1]?p[k-1][0]:"empty",x=p[k+1]?p[k+1][0]:"empty",!m[w]&&!m[x]?y.slice(-1)===","?g=!1:y+=u[1]:g=!1):y+=u[1];if(!g){let k=p.reduce((T,O)=>T+O[1],"");t.raws[h]={raw:k,value:y}}t[h]=y}rule(t){t.pop();let h=new a;this.init(h,t[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(h,"selector",t),this.current=h}spacesAndCommentsFromEnd(t){let h,p="";for(;t.length&&(h=t[t.length-1][0],!(h!=="space"&&h!=="comment"));)p=t.pop()[1]+p;return p}spacesAndCommentsFromStart(t){let h,p="";for(;t.length&&(h=t[0][0],!(h!=="space"&&h!=="comment"));)p+=t.shift()[1];return p}spacesFromEnd(t){let h,p="";for(;t.length&&(h=t[t.length-1][0],h==="space");)p=t.pop()[1]+p;return p}stringFrom(t,h){let p="";for(let f=h;f<t.length;f++)p+=t[f][1];return t.splice(h,t.length-h),p}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}};s.exports=n}),et=A((e,s)=>{var o=pe(),r=Le(),c=At();function i(a,l){let m=new r(a,l),d=new c(m);try{d.parse()}catch(n){throw n}return d.root}s.exports=i,i.default=i,o.registerParse(i)}),ys=A((e,s)=>{var o=Ct(),r=Le();s.exports={isInlineComment(c){if(c[0]==="word"&&c[1].slice(0,2)==="//"){let i=c,a=[],l,m;for(;c;){if(/\r?\n/.test(c[1])){if(/['"].*\r?\n/.test(c[1])){a.push(c[1].substring(0,c[1].indexOf(`
23
+ `))),m=c[1].substring(c[1].indexOf(`
24
+ `));let n=this.input.css.valueOf().substring(this.tokenizer.position());m+=n,l=c[3]+n.length-m.length}else this.tokenizer.back(c);break}a.push(c[1]),l=c[2],c=this.tokenizer.nextToken({ignoreUnclosed:!0})}let d=["comment",a.join(""),i[2],l];return this.inlineComment(d),m&&(this.input=new r(m),this.tokenizer=o(this.input)),!0}else if(c[1]==="/"){let i=this.tokenizer.nextToken({ignoreUnclosed:!0});if(i[0]==="comment"&&/^\/\*/.test(i[1]))return i[0]="word",i[1]=i[1].slice(1),c[1]="//",this.tokenizer.back(i),s.exports.isInlineComment.bind(this)(c)}return!1}}}),vs=A((e,s)=>{s.exports={interpolation(o){let r=[o,this.tokenizer.nextToken()],c=["word","}"];if(r[0][1].length>1||r[1][0]!=="{")return this.tokenizer.back(r[1]),!1;for(o=this.tokenizer.nextToken();o&&c.includes(o[0]);)r.push(o),o=this.tokenizer.nextToken();let i=r.map(d=>d[1]),[a]=r,l=r.pop(),m=["word",i.join(""),a[2],l[2]];return this.tokenizer.back(o),this.tokenizer.back(m),!0}}}),gs=A((e,s)=>{var o=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,r=/\.[0-9]/,c=i=>{let[,a]=i,[l]=a;return(l==="."||l==="#")&&o.test(a)===!1&&r.test(a)===!1};s.exports={isMixinToken:c}}),ws=A((e,s)=>{var o=Ct(),r=/^url\((.+)\)/;s.exports=c=>{let{name:i,params:a=""}=c;if(i==="import"&&a.length){c.import=!0;let l=o({css:a});for(c.filename=a.replace(r,"$1");!l.endOfFile();){let[m,d]=l.nextToken();if(m==="word"&&d==="url")return;if(m==="brackets"){c.options=d,c.filename=a.replace(d,"").trim();break}}}}}),bs=A((e,s)=>{var o=/:$/,r=/^:(\s+)?/;s.exports=c=>{let{name:i,params:a=""}=c;if(c.name.slice(-1)===":"){if(o.test(i)){let[l]=i.match(o);c.name=i.replace(l,""),c.raws.afterName=l+(c.raws.afterName||""),c.variable=!0,c.value=c.params}if(r.test(a)){let[l]=a.match(r);c.value=a.replace(l,""),c.raws.afterName=(c.raws.afterName||"")+l,c.variable=!0}}}}),xs=A((e,s)=>{var o=Ne(),r=At(),{isInlineComment:c}=ys(),{interpolation:i}=vs(),{isMixinToken:a}=gs(),l=ws(),m=bs(),d=/(!\s*important)$/i;s.exports=class extends r{constructor(...n){super(...n),this.lastNode=null}atrule(n){i.bind(this)(n)||(super.atrule(n),l(this.lastNode),m(this.lastNode))}decl(...n){super.decl(...n),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(n){n[0][1]=` ${n[0][1]}`;let t=n.findIndex(u=>u[0]==="("),h=n.reverse().find(u=>u[0]===")"),p=n.reverse().indexOf(h),f=n.splice(t,p).map(u=>u[1]).join("");for(let u of n.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=f}init(n,t,h){super.init(n,t,h),this.lastNode=n}inlineComment(n){let t=new o,h=n[1].slice(2);if(this.init(t,n[2]),t.source.end=this.getPosition(n[3]||n[2]),t.inline=!0,t.raws.begin="//",/^\s*$/.test(h))t.text="",t.raws.left=h,t.raws.right="";else{let p=h.match(/^(\s*)([^]*[^\s])(\s*)$/);[,t.raws.left,t.text,t.raws.right]=p}}mixin(n){let[t]=n,h=t[1].slice(0,1),p=n.findIndex(y=>y[0]==="brackets"),f=n.findIndex(y=>y[0]==="("),u="";if((p<0||p>3)&&f>0){let y=n.reduce((I,N,$)=>N[0]===")"?$:I),g=n.slice(f,y+f).map(I=>I[1]).join(""),[x]=n.slice(f),w=[x[2],x[3]],[k]=n.slice(y,y+1),T=[k[2],k[3]],O=["brackets",g].concat(w,T),C=n.slice(0,f),E=n.slice(y+1);n=C,n.push(O),n=n.concat(E)}let b=[];for(let y of n)if((y[1]==="!"||b.length)&&b.push(y),y[1]==="important")break;if(b.length){let[y]=b,g=n.indexOf(y),x=b[b.length-1],w=[y[2],y[3]],k=[x[4],x[5]],T=["word",b.map(O=>O[1]).join("")].concat(w,k);n.splice(g,b.length,T)}let v=n.findIndex(y=>d.test(y[1]));v>0&&([,u]=n[v],n.splice(v,1));for(let y of n.reverse())this.tokenizer.back(y);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=h,u&&(this.lastNode.important=!0,this.lastNode.raws.important=u)}other(n){c.bind(this)(n)||super.other(n)}rule(n){let t=n[n.length-1],h=n[n.length-2];if(h[0]==="at-word"&&t[0]==="{"&&(this.tokenizer.back(t),i.bind(this)(h))){let p=this.tokenizer.nextToken();n=n.slice(0,n.length-2).concat([p]);for(let f of n.reverse())this.tokenizer.back(f);return}super.rule(n),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(n){let[t]=n;if(n[0][1]==="each"&&n[1][0]==="("){this.each(n);return}if(a(t)){this.mixin(n);return}super.unknownWord(n)}}}),ks=A((e,s)=>{var o=Tt();s.exports=class extends o{atrule(r,c){if(!r.mixin&&!r.variable&&!r.function){super.atrule(r,c);return}let i=`${r.function?"":r.raws.identifier||"@"}${r.name}`,a=r.params?this.rawValue(r,"params"):"",l=r.raws.important||"";if(r.variable&&(a=r.value),typeof r.raws.afterName<"u"?i+=r.raws.afterName:a&&(i+=" "),r.nodes)this.block(r,i+a+l);else{let m=(r.raws.between||"")+l+(c?";":"");this.builder(i+a+m,r)}}comment(r){if(r.inline){let c=this.raw(r,"left","commentLeft"),i=this.raw(r,"right","commentRight");this.builder(`//${c}${r.text}${i}`,r)}else super.comment(r)}}}),Ts=A((e,s)=>{var o=Le(),r=xs(),c=ks();s.exports={parse(i,a){let l=new o(i,a),m=new r(l);return m.parse(),m.root.walk(d=>{let n=l.css.lastIndexOf(d.source.input.css);if(n===0)return;if(n+d.source.input.css.length!==l.css.length)throw new Error("Invalid state detected in postcss-less");let t=n+d.source.start.offset,h=l.fromOffset(n+d.source.start.offset);if(d.source.start={offset:t,line:h.line,column:h.col},d.source.end){let p=n+d.source.end.offset,f=l.fromOffset(n+d.source.end.offset);d.source.end={offset:p,line:f.line,column:f.col}}}),m.root},stringify(i,a){new c(a).stringify(i)},nodeToString(i){let a="";return s.exports.stringify(i,l=>{a+=l}),a}}}),Et=A((e,s)=>{var o=pe(),r,c,i=class extends o{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new r(new c,this,a).stringify()}};i.registerLazyResult=a=>{r=a},i.registerProcessor=a=>{c=a},s.exports=i,i.default=i}),Os=A((e,s)=>{var o=_t(),r=Ne(),c=Xe(),i=Le(),a=sr(),l=We(),m=St();function d(n,t){if(Array.isArray(n))return n.map(f=>d(f));let{inputs:h,...p}=n;if(h){t=[];for(let f of h){let u={...f,__proto__:i.prototype};u.map&&(u.map={...u.map,__proto__:a.prototype}),t.push(u)}}if(p.nodes&&(p.nodes=n.nodes.map(f=>d(f,t))),p.source){let{inputId:f,...u}=p.source;p.source=u,f!=null&&(p.source.input=t[f])}if(p.type==="root")return new l(p);if(p.type==="decl")return new c(p);if(p.type==="rule")return new m(p);if(p.type==="comment")return new r(p);if(p.type==="atrule")return new o(p);throw new Error("Unknown node type: "+n.type)}s.exports=d,d.default=d}),or=A((e,s)=>{s.exports=class{generate(){}}}),ir=A((e,s)=>{var o=class{constructor(r,c={}){if(this.type="warning",this.text=r,c.node&&c.node.source){let i=c.node.rangeBy(c);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in c)this[i]=c[i]}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}};s.exports=o,o.default=o}),jt=A((e,s)=>{var o=ir(),r=class{get content(){return this.css}constructor(c,i,a){this.processor=c,this.messages=[],this.root=i,this.opts=a,this.css="",this.map=void 0}toString(){return this.css}warn(c,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new o(c,i);return this.messages.push(a),a}warnings(){return this.messages.filter(c=>c.type==="warning")}};s.exports=r,r.default=r}),ar=A((e,s)=>{var o={};s.exports=function(r){o[r]||(o[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))}}),ur=A((e,s)=>{var o=pe(),r=Et(),c=or(),i=et(),a=jt(),l=We(),m=Ye(),{isClean:d,my:n}=Ot();ar();var t={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},p={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function u(w){return typeof w=="object"&&typeof w.then=="function"}function b(w){let k=!1,T=t[w.type];return w.type==="decl"?k=w.prop.toLowerCase():w.type==="atrule"&&(k=w.name.toLowerCase()),k&&w.append?[T,T+"-"+k,f,T+"Exit",T+"Exit-"+k]:k?[T,T+"-"+k,T+"Exit",T+"Exit-"+k]:w.append?[T,f,T+"Exit"]:[T,T+"Exit"]}function v(w){let k;return w.type==="document"?k=["Document",f,"DocumentExit"]:w.type==="root"?k=["Root",f,"RootExit"]:k=b(w),{eventIndex:0,events:k,iterator:0,node:w,visitorIndex:0,visitors:[]}}function y(w){return w[d]=!1,w.nodes&&w.nodes.forEach(k=>y(k)),w}var g={},x=class lr{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(k,T,O){this.stringified=!1,this.processed=!1;let C;if(typeof T=="object"&&T!==null&&(T.type==="root"||T.type==="document"))C=y(T);else if(T instanceof lr||T instanceof a)C=y(T.root),T.map&&(typeof O.map>"u"&&(O.map={}),O.map.inline||(O.map.inline=!1),O.map.prev=T.map);else{let E=i;O.syntax&&(E=O.syntax.parse),O.parser&&(E=O.parser),E.parse&&(E=E.parse);try{C=E(T,O)}catch(I){this.processed=!0,this.error=I}C&&!C[n]&&o.rebuild(C)}this.result=new a(k,C,O),this.helpers={...g,postcss:g,result:this.result},this.plugins=this.processor.plugins.map(E=>typeof E=="object"&&E.prepare?{...E,...E.prepare(this.result)}:E)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(k){return this.async().catch(k)}finally(k){return this.async().then(k,k)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(k,T){let O=this.result.lastPlugin;try{T&&T.addToError(k),this.error=k,k.name==="CssSyntaxError"&&!k.plugin?(k.plugin=O.postcssPlugin,k.setMessage()):O.postcssVersion}catch(C){console&&console.error&&console.error(C)}return k}prepareVisitors(){this.listeners={};let k=(T,O,C)=>{this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push([T,C])};for(let T of this.plugins)if(typeof T=="object")for(let O in T){if(!h[O]&&/^[A-Z]/.test(O))throw new Error(`Unknown event ${O} in ${T.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[O])if(typeof T[O]=="object")for(let C in T[O])C==="*"?k(T,O,T[O][C]):k(T,O+"-"+C.toLowerCase(),T[O][C]);else typeof T[O]=="function"&&k(T,O,T[O])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let k=0;k<this.plugins.length;k++){let T=this.plugins[k],O=this.runOnRoot(T);if(u(O))try{await O}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let k=this.result.root;for(;!k[d];){k[d]=!0;let T=[v(k)];for(;T.length>0;){let O=this.visitTick(T);if(u(O))try{await O}catch(C){let E=T[T.length-1].node;throw this.handleError(C,E)}}}if(this.listeners.OnceExit)for(let[T,O]of this.listeners.OnceExit){this.result.lastPlugin=T;try{if(k.type==="document"){let C=k.nodes.map(E=>O(E,this.helpers));await Promise.all(C)}else await O(k,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(k){this.result.lastPlugin=k;try{if(typeof k=="object"&&k.Once){if(this.result.root.type==="document"){let T=this.result.root.nodes.map(O=>k.Once(O,this.helpers));return u(T[0])?Promise.all(T):T}return k.Once(this.result.root,this.helpers)}else if(typeof k=="function")return k(this.result.root,this.result)}catch(T){throw this.handleError(T)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let k=this.result.opts,T=m;k.syntax&&(T=k.syntax.stringify),k.stringifier&&(T=k.stringifier),T.stringify&&(T=T.stringify);let O=new c(T,this.result.root,this.result.opts).generate();return this.result.css=O[0],this.result.map=O[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 k of this.plugins){let T=this.runOnRoot(k);if(u(T))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let k=this.result.root;for(;!k[d];)k[d]=!0,this.walkSync(k);if(this.listeners.OnceExit)if(k.type==="document")for(let T of k.nodes)this.visitSync(this.listeners.OnceExit,T);else this.visitSync(this.listeners.OnceExit,k)}return this.result}then(k,T){return this.async().then(k,T)}toString(){return this.css}visitSync(k,T){for(let[O,C]of k){this.result.lastPlugin=O;let E;try{E=C(T,this.helpers)}catch(I){throw this.handleError(I,T.proxyOf)}if(T.type!=="root"&&T.type!=="document"&&!T.parent)return!0;if(u(E))throw this.getAsyncError()}}visitTick(k){let T=k[k.length-1],{node:O,visitors:C}=T;if(O.type!=="root"&&O.type!=="document"&&!O.parent){k.pop();return}if(C.length>0&&T.visitorIndex<C.length){let[I,N]=C[T.visitorIndex];T.visitorIndex+=1,T.visitorIndex===C.length&&(T.visitors=[],T.visitorIndex=0),this.result.lastPlugin=I;try{return N(O.toProxy(),this.helpers)}catch($){throw this.handleError($,O)}}if(T.iterator!==0){let I=T.iterator,N;for(;N=O.nodes[O.indexes[I]];)if(O.indexes[I]+=1,!N[d]){N[d]=!0,k.push(v(N));return}T.iterator=0,delete O.indexes[I]}let E=T.events;for(;T.eventIndex<E.length;){let I=E[T.eventIndex];if(T.eventIndex+=1,I===f){O.nodes&&O.nodes.length&&(O[d]=!0,T.iterator=O.getIterator());return}else if(this.listeners[I]){T.visitors=this.listeners[I];return}}k.pop()}walkSync(k){k[d]=!0;let T=b(k);for(let O of T)if(O===f)k.nodes&&k.each(C=>{C[d]||this.walkSync(C)});else{let C=this.listeners[O];if(C&&this.visitSync(C,k.toProxy()))return}}warnings(){return this.sync().warnings()}};x.registerPostcss=w=>{g=w},s.exports=x,x.default=x,l.registerLazyResult(x),r.registerLazyResult(x)}),_s=A((e,s)=>{var o=or(),r=et(),c=jt(),i=Ye();ar();var a=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 l,m=r;try{l=m(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(l,m,d){m=m.toString(),this.stringified=!1,this._processor=l,this._css=m,this._opts=d,this._map=void 0;let n,t=i;this.result=new c(this._processor,n,this._opts),this.result.css=m;let h=this;Object.defineProperty(this.result,"root",{get(){return h.root}});let p=new o(t,n,this._opts,m);if(p.isMap()){let[f,u]=p.generate();f&&(this.result.css=f),u&&(this.result.map=u)}else p.clearAnnotation(),this.result.css=p.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,m){return this.async().then(l,m)}toString(){return this._css}warnings(){return[]}};s.exports=a,a.default=a}),Ss=A((e,s)=>{var o=Et(),r=ur(),c=_s(),i=We(),a=class{constructor(l=[]){this.version="8.5.6",this.plugins=this.normalize(l)}normalize(l){let m=[];for(let d of l)if(d.postcss===!0?d=d():d.postcss&&(d=d.postcss),typeof d=="object"&&Array.isArray(d.plugins))m=m.concat(d.plugins);else if(typeof d=="object"&&d.postcssPlugin)m.push(d);else if(typeof d=="function")m.push(d);else if(!(typeof d=="object"&&(d.parse||d.stringify)))throw new Error(d+" is not a PostCSS plugin");return m}process(l,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new c(this,l,m):new r(this,l,m)}use(l){return this.plugins=this.plugins.concat(this.normalize([l])),this}};s.exports=a,a.default=a,i.registerProcessor(a),o.registerProcessor(a)}),It=A((e,s)=>{var o=_t(),r=Ne(),c=pe(),i=kt(),a=Xe(),l=Et(),m=Os(),d=Le(),n=ur(),t=nr(),h=Ke(),p=et(),f=Ss(),u=jt(),b=We(),v=St(),y=Ye(),g=ir();function x(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new f(w)}x.plugin=function(w,k){let T=!1;function O(...E){console&&console.warn&&!T&&(T=!0,console.warn(w+`: postcss.plugin was deprecated. Migration guide:
25
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let I=k(...E);return I.postcssPlugin=w,I.postcssVersion=new f().version,I}let C;return Object.defineProperty(O,"postcss",{get(){return C||(C=O()),C}}),O.process=function(E,I,N){return x([O(N)]).process(E,I)},O},x.stringify=y,x.parse=p,x.fromJSON=m,x.list=t,x.comment=w=>new r(w),x.atRule=w=>new o(w),x.decl=w=>new a(w),x.rule=w=>new v(w),x.root=w=>new b(w),x.document=w=>new l(w),x.CssSyntaxError=i,x.Declaration=a,x.Container=c,x.Processor=f,x.Document=l,x.Comment=r,x.Warning=g,x.AtRule=o,x.Result=u,x.Input=d,x.Rule=v,x.Root=b,x.Node=h,n.registerPostcss(x),s.exports=x,x.default=x}),Cs=A((e,s)=>{var{Container:o}=It(),r=class extends o{constructor(c){super(c),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};s.exports=r}),As=A((e,s)=>{var o=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,c=/.[\r\n"'(/\\]/,i=/[\da-f]/i,a=/[\n\f\r]/g;s.exports=function(l,m={}){let d=l.css.valueOf(),n=m.ignoreErrors,t,h,p,f,u,b,v,y,g,x=d.length,w=0,k=[],T=[],O;function C(){return w}function E(M){throw l.error("Unclosed "+M,w)}function I(){return T.length===0&&w>=x}function N(){let M=1,P=!1,U=!1;for(;M>0;)h+=1,d.length<=h&&E("interpolation"),t=d.charCodeAt(h),y=d.charCodeAt(h+1),P?!U&&t===P?(P=!1,U=!1):t===92?U=!U:U&&(U=!1):t===39||t===34?P=t:t===125?M-=1:t===35&&y===123&&(M+=1)}function $(M){if(T.length)return T.pop();if(w>=x)return;let P=M?M.ignoreUnclosed:!1;switch(t=d.charCodeAt(w),t){case 10:case 32:case 9:case 13:case 12:{h=w;do h+=1,t=d.charCodeAt(h);while(t===32||t===10||t===9||t===13||t===12);g=["space",d.slice(w,h)],w=h-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let U=String.fromCharCode(t);g=[U,U,w];break}case 44:{g=["word",",",w,w+1];break}case 40:{if(v=k.length?k.pop()[1]:"",y=d.charCodeAt(w+1),v==="url"&&y!==39&&y!==34){for(O=1,b=!1,h=w+1;h<=d.length-1;){if(y=d.charCodeAt(h),y===92)b=!b;else if(y===40)O+=1;else if(y===41&&(O-=1,O===0))break;h+=1}f=d.slice(w,h+1),g=["brackets",f,w,h],w=h}else h=d.indexOf(")",w+1),f=d.slice(w,h+1),h===-1||c.test(f)?g=["(","(",w]:(g=["brackets",f,w,h],w=h);break}case 39:case 34:{for(p=t,h=w,b=!1;h<x&&(h++,h===x&&E("string"),t=d.charCodeAt(h),y=d.charCodeAt(h+1),!(!b&&t===p));)t===92?b=!b:b?b=!1:t===35&&y===123&&N();g=["string",d.slice(w,h+1),w,h],w=h;break}case 64:{o.lastIndex=w+1,o.test(d),o.lastIndex===0?h=d.length-1:h=o.lastIndex-2,g=["at-word",d.slice(w,h+1),w,h],w=h;break}case 92:{for(h=w,u=!0;d.charCodeAt(h+1)===92;)h+=1,u=!u;if(t=d.charCodeAt(h+1),u&&t!==47&&t!==32&&t!==10&&t!==9&&t!==13&&t!==12&&(h+=1,i.test(d.charAt(h)))){for(;i.test(d.charAt(h+1));)h+=1;d.charCodeAt(h+1)===32&&(h+=1)}g=["word",d.slice(w,h+1),w,h],w=h;break}default:y=d.charCodeAt(w+1),t===35&&y===123?(h=w,N(),f=d.slice(w,h+1),g=["word",f,w,h],w=h):t===47&&y===42?(h=d.indexOf("*/",w+2)+1,h===0&&(n||P?h=d.length:E("comment")),g=["comment",d.slice(w,h+1),w,h],w=h):t===47&&y===47?(a.lastIndex=w+1,a.test(d),a.lastIndex===0?h=d.length-1:h=a.lastIndex-2,f=d.slice(w,h+1),g=["comment",f,w,h,"inline"],w=h):(r.lastIndex=w+1,r.test(d),r.lastIndex===0?h=d.length-1:h=r.lastIndex-2,g=["word",d.slice(w,h+1),w,h],k.push(g),w=h);break}return w++,g}function R(M){T.push(M)}return{back:R,endOfFile:I,nextToken:$,position:C}}}),Es=A((e,s)=>{var{Comment:o}=It(),r=At(),c=Cs(),i=As(),a=class extends r{atrule(l){let m=l[1],d=l;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===d[3]+1)m+=n[1],d=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",m,l[2],d[3]])}comment(l){if(l[4]==="inline"){let m=new o;this.init(m,l[2]),m.raws.inline=!0;let d=this.input.fromOffset(l[3]);m.source.end={column:d.col,line:d.line,offset:l[3]+1};let n=l[1].slice(2);if(/^\s*$/.test(n))m.text="",m.raws.left=n,m.raws.right="";else{let t=n.match(/^(\s*)([^]*\S)(\s*)$/),h=t[2].replace(/(\*\/|\/\*)/g,"*//*");m.text=h,m.raws.left=t[1],m.raws.right=t[3],m.raws.text=t[2]}}else super.comment(l)}createTokenizer(){this.tokenizer=i(this.input)}raw(l,m,d,n){if(super.raw(l,m,d,n),l.raws[m]){let t=l.raws[m].raw;l.raws[m].raw=d.reduce((h,p)=>{if(p[0]==="comment"&&p[4]==="inline"){let f=p[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return h+"/*"+f+"*/"}else return h+p[1]},""),t!==l.raws[m].raw&&(l.raws[m].scss=t)}}rule(l){let m=!1,d=0,n="";for(let t of l)if(m)t[0]!=="comment"&&t[0]!=="{"&&(n+=t[1]);else{if(t[0]==="space"&&t[1].includes(`
26
+ `))break;t[0]==="("?d+=1:t[0]===")"?d-=1:d===0&&t[0]===":"&&(m=!0)}if(!m||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(l);else{l.pop();let t=new c;this.init(t,l[0][2]);let h;for(let f=l.length-1;f>=0;f--)if(l[f][0]!=="space"){h=l[f];break}if(h[3]){let f=this.input.fromOffset(h[3]);t.source.end={column:f.col,line:f.line,offset:h[3]+1}}else{let f=this.input.fromOffset(h[2]);t.source.end={column:f.col,line:f.line,offset:h[2]+1}}for(;l[0][0]!=="word";)t.raws.before+=l.shift()[1];if(l[0][2]){let f=this.input.fromOffset(l[0][2]);t.source.start={column:f.col,line:f.line,offset:l[0][2]}}for(t.prop="";l.length;){let f=l[0][0];if(f===":"||f==="space"||f==="comment")break;t.prop+=l.shift()[1]}t.raws.between="";let p;for(;l.length;)if(p=l.shift(),p[0]===":"){t.raws.between+=p[1];break}else t.raws.between+=p[1];(t.prop[0]==="_"||t.prop[0]==="*")&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(l),this.precheckMissedSemicolon(l);for(let f=l.length-1;f>0;f--){if(p=l[f],p[1]==="!important"){t.important=!0;let u=this.stringFrom(l,f);u=this.spacesFromEnd(l)+u,u!==" !important"&&(t.raws.important=u);break}else if(p[1]==="important"){let u=l.slice(0),b="";for(let v=f;v>0;v--){let y=u[v][0];if(b.trim().indexOf("!")===0&&y!=="space")break;b=u.pop()[1]+b}b.trim().indexOf("!")===0&&(t.important=!0,t.raws.important=b,l=u)}if(p[0]!=="space"&&p[0]!=="comment")break}this.raw(t,"value",l),t.value.includes(":")&&this.checkMissedSemicolon(l),this.current=t}}};s.exports=a}),js=A((e,s)=>{var{Input:o}=It(),r=Es();s.exports=function(c,i){let a=new o(c,i),l=new r(a);return l.parse(),l.root}}),cr=A(e=>{Object.defineProperty(e,"__esModule",{value:!0});function s(o){this.after=o.after,this.before=o.before,this.type=o.type,this.value=o.value,this.sourceIndex=o.sourceIndex}e.default=s}),pr=A(e=>{Object.defineProperty(e,"__esModule",{value:!0});var s=cr(),o=r(s);function r(i){return i&&i.__esModule?i:{default:i}}function c(i){var a=this;this.constructor(i),this.nodes=i.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(l){l.parent=a})}c.prototype=Object.create(o.default.prototype),c.constructor=o.default,c.prototype.walk=function(i,a){for(var l=typeof i=="string"||i instanceof RegExp,m=l?a:i,d=typeof i=="string"?new RegExp(i):i,n=0;n<this.nodes.length;n++){var t=this.nodes[n],h=l?d.test(t.type):!0;if(h&&m&&m(t,n,this.nodes)===!1||t.nodes&&t.walk(i,a)===!1)return!1}return!0},c.prototype.each=function(){for(var i=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],a=0;a<this.nodes.length;a++){var l=this.nodes[a];if(i(l,a,this.nodes)===!1)return!1}return!0},e.default=c}),Is=A(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseMediaFeature=a,e.parseMediaQuery=l,e.parseMediaList=m;var s=cr(),o=i(s),r=pr(),c=i(r);function i(d){return d&&d.__esModule?d:{default:d}}function a(d){var n=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[{mode:"normal",character:null}],h=[],p=0,f="",u=null,b=null,v=n,y=d;d[0]==="("&&d[d.length-1]===")"&&(y=d.substring(1,d.length-1),v++);for(var g=0;g<y.length;g++){var x=y[g];if((x==="'"||x==='"')&&(t[p].isCalculationEnabled===!0?(t.push({mode:"string",isCalculationEnabled:!1,character:x}),p++):t[p].mode==="string"&&t[p].character===x&&y[g-1]!=="\\"&&(t.pop(),p--)),x==="{"?(t.push({mode:"interpolation",isCalculationEnabled:!0}),p++):x==="}"&&(t.pop(),p--),t[p].mode==="normal"&&x===":"){var w=y.substring(g+1);b={type:"value",before:/^(\s*)/.exec(w)[1],after:/(\s*)$/.exec(w)[1],value:w.trim()},b.sourceIndex=b.before.length+g+1+v,u={type:"colon",sourceIndex:g+v,after:b.before,value:":"};break}f+=x}return f={type:"media-feature",before:/^(\s*)/.exec(f)[1],after:/(\s*)$/.exec(f)[1],value:f.trim()},f.sourceIndex=f.before.length+v,h.push(f),u!==null&&(u.before=f.after,h.push(u)),b!==null&&h.push(b),h}function l(d){var n=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[],h=0,p=!1,f=void 0;function u(){return{before:"",after:"",value:""}}f=u();for(var b=0;b<d.length;b++){var v=d[b];p?(f.value+=v,(v==="{"||v==="(")&&h++,(v===")"||v==="}")&&h--):v.search(/\s/)!==-1?f.before+=v:(v==="("&&(f.type="media-feature-expression",h++),f.value=v,f.sourceIndex=n+b,p=!0),p&&h===0&&(v===")"||b===d.length-1||d[b+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(f.value)!==-1&&(f.type="keyword"),f.type==="media-feature-expression"&&(f.nodes=a(f.value,f.sourceIndex)),t.push(Array.isArray(f.nodes)?new c.default(f):new o.default(f)),f=u(),p=!1)}for(var y=0;y<t.length;y++)if(f=t[y],y>0&&(t[y-1].after=f.before),f.type===void 0){if(y>0){if(t[y-1].type==="media-feature-expression"){f.type="keyword";continue}if(t[y-1].value==="not"||t[y-1].value==="only"){f.type="media-type";continue}if(t[y-1].value==="and"){f.type="media-feature-expression";continue}t[y-1].type==="media-type"&&(t[y+1]?f.type=t[y+1].type==="media-feature-expression"?"keyword":"media-feature-expression":f.type="media-feature-expression")}if(y===0){if(!t[y+1]){f.type="media-type";continue}if(t[y+1]&&(t[y+1].type==="media-feature-expression"||t[y+1].type==="keyword")){f.type="media-type";continue}if(t[y+2]){if(t[y+2].type==="media-feature-expression"){f.type="media-type",t[y+1].type="keyword";continue}if(t[y+2].type==="keyword"){f.type="keyword",t[y+1].type="media-type";continue}}if(t[y+3]&&t[y+3].type==="media-feature-expression"){f.type="keyword",t[y+1].type="media-type",t[y+2].type="keyword";continue}}}return t}function m(d){var n=[],t=0,h=0,p=/^(\s*)url\s*\(/.exec(d);if(p!==null){for(var f=p[0].length,u=1;u>0;){var b=d[f];b==="("&&u++,b===")"&&u--,f++}n.unshift(new o.default({type:"url",value:d.substring(0,f).trim(),sourceIndex:p[1].length,before:p[1],after:/^(\s*)/.exec(d.substring(f))[1]})),t=f}for(var v=t;v<d.length;v++){var y=d[v];if(y==="("&&h++,y===")"&&h--,h===0&&y===","){var g=d.substring(t,v),x=/^(\s*)/.exec(g)[1];n.push(new c.default({type:"media-query",value:g.trim(),sourceIndex:t+x.length,nodes:l(g,t),before:x,after:/(\s*)$/.exec(g)[1]})),t=v+1}}var w=d.substring(t),k=/^(\s*)/.exec(w)[1];return n.push(new c.default({type:"media-query",value:w.trim(),sourceIndex:t+k.length,nodes:l(w,t),before:k,after:/(\s*)$/.exec(w)[1]})),n}}),Ps=A(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var s=pr(),o=c(s),r=Is();function c(a){return a&&a.__esModule?a:{default:a}}function i(a){return new o.default({nodes:(0,r.parseMediaList)(a),type:"media-query-list",value:a.trim()})}}),hr=A((e,s)=>{s.exports=function(o,r){if(r=typeof r=="number"?r:1/0,!r)return Array.isArray(o)?o.map(function(i){return i}):o;return c(o,1);function c(i,a){return i.reduce(function(l,m){return Array.isArray(m)&&a<r?l.concat(c(m,a+1)):l.concat(m)},[])}}}),fr=A((e,s)=>{s.exports=function(o,r){for(var c=-1,i=[];(c=o.indexOf(r,c+1))!==-1;)i.push(c);return i}}),dr=A((e,s)=>{function o(i,a){for(var l=1,m=i.length,d=i[0],n=i[0],t=1;t<m;++t)if(n=d,d=i[t],a(d,n)){if(t===l){l++;continue}i[l++]=d}return i.length=l,i}function r(i){for(var a=1,l=i.length,m=i[0],d=i[0],n=1;n<l;++n,d=m)if(d=m,m=i[n],m!==d){if(n===a){a++;continue}i[a++]=m}return i.length=a,i}function c(i,a,l){return i.length===0?i:a?(l||i.sort(a),o(i,a)):(l||i.sort(),r(i))}s.exports=c}),ke=A((e,s)=>{e.__esModule=!0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};function r(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}var c=function a(l,m){if((typeof l>"u"?"undefined":o(l))!=="object")return l;var d=new l.constructor;for(var n in l)if(l.hasOwnProperty(n)){var t=l[n],h=typeof t>"u"?"undefined":o(t);n==="parent"&&h==="object"?m&&(d[n]=m):t instanceof Array?d[n]=t.map(function(p){return a(p,d)}):d[n]=a(t,d)}return d},i=function(){function a(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r(this,a);for(var m in l)this[m]=l[m];var d=l.spaces;d=d===void 0?{}:d;var n=d.before,t=n===void 0?"":n,h=d.after,p=h===void 0?"":h;this.spaces={before:t,after:p}}return a.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},a.prototype.replaceWith=function(){if(this.parent){for(var l in arguments)this.parent.insertBefore(this,arguments[l]);this.remove()}return this},a.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},a.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},a.prototype.clone=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=c(this);for(var d in l)m[d]=l[d];return m},a.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},a}();e.default=i,s.exports=e.default}),H=A(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"}),Pt=A((e,s)=>{e.__esModule=!0;var o=function(){function p(f,u){for(var b=0;b<u.length;b++){var v=u[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(f,v.key,v)}}return function(f,u,b){return u&&p(f.prototype,u),b&&p(f,b),f}}(),r=ke(),c=m(r),i=H(),a=l(i);function l(p){if(p&&p.__esModule)return p;var f={};if(p!=null)for(var u in p)Object.prototype.hasOwnProperty.call(p,u)&&(f[u]=p[u]);return f.default=p,f}function m(p){return p&&p.__esModule?p:{default:p}}function d(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function n(p,f){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:p}function t(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(p,f):p.__proto__=f)}var h=function(p){t(f,p);function f(u){d(this,f);var b=n(this,p.call(this,u));return b.nodes||(b.nodes=[]),b}return f.prototype.append=function(u){return u.parent=this,this.nodes.push(u),this},f.prototype.prepend=function(u){return u.parent=this,this.nodes.unshift(u),this},f.prototype.at=function(u){return this.nodes[u]},f.prototype.index=function(u){return typeof u=="number"?u:this.nodes.indexOf(u)},f.prototype.removeChild=function(u){u=this.index(u),this.at(u).parent=void 0,this.nodes.splice(u,1);var b=void 0;for(var v in this.indexes)b=this.indexes[v],b>=u&&(this.indexes[v]=b-1);return this},f.prototype.removeAll=function(){for(var v=this.nodes,u=Array.isArray(v),b=0,v=u?v:v[Symbol.iterator]();;){var y;if(u){if(b>=v.length)break;y=v[b++]}else{if(b=v.next(),b.done)break;y=b.value}var g=y;g.parent=void 0}return this.nodes=[],this},f.prototype.empty=function(){return this.removeAll()},f.prototype.insertAfter=function(u,b){var v=this.index(u);this.nodes.splice(v+1,0,b);var y=void 0;for(var g in this.indexes)y=this.indexes[g],v<=y&&(this.indexes[g]=y+this.nodes.length);return this},f.prototype.insertBefore=function(u,b){var v=this.index(u);this.nodes.splice(v,0,b);var y=void 0;for(var g in this.indexes)y=this.indexes[g],v<=y&&(this.indexes[g]=y+this.nodes.length);return this},f.prototype.each=function(u){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var b=this.lastEach;if(this.indexes[b]=0,!!this.length){for(var v=void 0,y=void 0;this.indexes[b]<this.length&&(v=this.indexes[b],y=u(this.at(v),v),y!==!1);)this.indexes[b]+=1;if(delete this.indexes[b],y===!1)return!1}},f.prototype.walk=function(u){return this.each(function(b,v){var y=u(b,v);if(y!==!1&&b.length&&(y=b.walk(u)),y===!1)return!1})},f.prototype.walkAttributes=function(u){var b=this;return this.walk(function(v){if(v.type===a.ATTRIBUTE)return u.call(b,v)})},f.prototype.walkClasses=function(u){var b=this;return this.walk(function(v){if(v.type===a.CLASS)return u.call(b,v)})},f.prototype.walkCombinators=function(u){var b=this;return this.walk(function(v){if(v.type===a.COMBINATOR)return u.call(b,v)})},f.prototype.walkComments=function(u){var b=this;return this.walk(function(v){if(v.type===a.COMMENT)return u.call(b,v)})},f.prototype.walkIds=function(u){var b=this;return this.walk(function(v){if(v.type===a.ID)return u.call(b,v)})},f.prototype.walkNesting=function(u){var b=this;return this.walk(function(v){if(v.type===a.NESTING)return u.call(b,v)})},f.prototype.walkPseudos=function(u){var b=this;return this.walk(function(v){if(v.type===a.PSEUDO)return u.call(b,v)})},f.prototype.walkTags=function(u){var b=this;return this.walk(function(v){if(v.type===a.TAG)return u.call(b,v)})},f.prototype.walkUniversals=function(u){var b=this;return this.walk(function(v){if(v.type===a.UNIVERSAL)return u.call(b,v)})},f.prototype.split=function(u){var b=this,v=[];return this.reduce(function(y,g,x){var w=u.call(b,g);return v.push(g),w?(y.push(v),v=[]):x===b.length-1&&y.push(v),y},[])},f.prototype.map=function(u){return this.nodes.map(u)},f.prototype.reduce=function(u,b){return this.nodes.reduce(u,b)},f.prototype.every=function(u){return this.nodes.every(u)},f.prototype.some=function(u){return this.nodes.some(u)},f.prototype.filter=function(u){return this.nodes.filter(u)},f.prototype.sort=function(u){return this.nodes.sort(u)},f.prototype.toString=function(){return this.map(String).join("")},o(f,[{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}}]),f}(c.default);e.default=h,s.exports=e.default}),Ms=A((e,s)=>{e.__esModule=!0;var o=Pt(),r=i(o),c=H();function i(n){return n&&n.__esModule?n:{default:n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function m(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=function(n){m(t,n);function t(h){a(this,t);var p=l(this,n.call(this,h));return p.type=c.ROOT,p}return t.prototype.toString=function(){var h=this.reduce(function(p,f){var u=String(f);return u?p+u+",":""},"").slice(0,-1);return this.trailingComma?h+",":h},t}(r.default);e.default=d,s.exports=e.default}),Rs=A((e,s)=>{e.__esModule=!0;var o=Pt(),r=i(o),c=H();function i(n){return n&&n.__esModule?n:{default:n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function m(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=function(n){m(t,n);function t(h){a(this,t);var p=l(this,n.call(this,h));return p.type=c.SELECTOR,p}return t}(r.default);e.default=d,s.exports=e.default}),ze=A((e,s)=>{e.__esModule=!0;var o=function(){function n(t,h){for(var p=0;p<h.length;p++){var f=h[p];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(t,f.key,f)}}return function(t,h,p){return h&&n(t.prototype,h),p&&n(t,p),t}}(),r=ke(),c=i(r);function i(n){return n&&n.__esModule?n:{default:n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function m(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=function(n){m(t,n);function t(){return a(this,t),l(this,n.apply(this,arguments))}return t.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},o(t,[{key:"ns",get:function(){var h=this.namespace;return h?(typeof h=="string"?h:"")+"|":""}}]),t}(c.default);e.default=d,s.exports=e.default}),$s=A((e,s)=>{e.__esModule=!0;var o=ze(),r=i(o),c=H();function i(n){return n&&n.__esModule?n:{default:n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function m(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=function(n){m(t,n);function t(h){a(this,t);var p=l(this,n.call(this,h));return p.type=c.CLASS,p}return t.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},t}(r.default);e.default=d,s.exports=e.default}),Ns=A((e,s)=>{e.__esModule=!0;var o=ke(),r=i(o),c=H();function i(n){return n&&n.__esModule?n:{default:n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function m(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=function(n){m(t,n);function t(h){a(this,t);var p=l(this,n.call(this,h));return p.type=c.COMMENT,p}return t}(r.default);e.default=d,s.exports=e.default}),Ls=A((e,s)=>{e.__esModule=!0;var o=ze(),r=i(o),c=H();function i(n){return n&&n.__esModule?n:{default:n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function m(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=function(n){m(t,n);function t(h){a(this,t);var p=l(this,n.call(this,h));return p.type=c.ID,p}return t.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},t}(r.default);e.default=d,s.exports=e.default}),Ws=A((e,s)=>{e.__esModule=!0;var o=ze(),r=i(o),c=H();function i(n){return n&&n.__esModule?n:{default:n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function m(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=function(n){m(t,n);function t(h){a(this,t);var p=l(this,n.call(this,h));return p.type=c.TAG,p}return t}(r.default);e.default=d,s.exports=e.default}),zs=A((e,s)=>{e.__esModule=!0;var o=ke(),r=i(o),c=H();function i(n){return n&&n.__esModule?n:{default:n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function m(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=function(n){m(t,n);function t(h){a(this,t);var p=l(this,n.call(this,h));return p.type=c.STRING,p}return t}(r.default);e.default=d,s.exports=e.default}),Bs=A((e,s)=>{e.__esModule=!0;var o=Pt(),r=i(o),c=H();function i(n){return n&&n.__esModule?n:{default:n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function m(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=function(n){m(t,n);function t(h){a(this,t);var p=l(this,n.call(this,h));return p.type=c.PSEUDO,p}return t.prototype.toString=function(){var h=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),h,this.spaces.after].join("")},t}(r.default);e.default=d,s.exports=e.default}),qs=A((e,s)=>{e.__esModule=!0;var o=ze(),r=i(o),c=H();function i(n){return n&&n.__esModule?n:{default:n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function m(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=function(n){m(t,n);function t(h){a(this,t);var p=l(this,n.call(this,h));return p.type=c.ATTRIBUTE,p.raws={},p}return t.prototype.toString=function(){var h=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&h.push(this.operator),this.value&&h.push(this.value),this.raws.insensitive?h.push(this.raws.insensitive):this.insensitive&&h.push(" i"),h.push("]"),h.concat(this.spaces.after).join("")},t}(r.default);e.default=d,s.exports=e.default}),Fs=A((e,s)=>{e.__esModule=!0;var o=ze(),r=i(o),c=H();function i(n){return n&&n.__esModule?n:{default:n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function m(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=function(n){m(t,n);function t(h){a(this,t);var p=l(this,n.call(this,h));return p.type=c.UNIVERSAL,p.value="*",p}return t}(r.default);e.default=d,s.exports=e.default}),Ds=A((e,s)=>{e.__esModule=!0;var o=ke(),r=i(o),c=H();function i(n){return n&&n.__esModule?n:{default:n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function m(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=function(n){m(t,n);function t(h){a(this,t);var p=l(this,n.call(this,h));return p.type=c.COMBINATOR,p}return t}(r.default);e.default=d,s.exports=e.default}),Us=A((e,s)=>{e.__esModule=!0;var o=ke(),r=i(o),c=H();function i(n){return n&&n.__esModule?n:{default:n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function m(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=function(n){m(t,n);function t(h){a(this,t);var p=l(this,n.call(this,h));return p.type=c.NESTING,p.value="&",p}return t}(r.default);e.default=d,s.exports=e.default}),Vs=A((e,s)=>{e.__esModule=!0,e.default=o;function o(r){return r.sort(function(c,i){return c-i})}s.exports=e.default}),Gs=A((e,s)=>{e.__esModule=!0,e.default=I;var o=39,r=34,c=92,i=47,a=10,l=32,m=12,d=9,n=13,t=43,h=62,p=126,f=124,u=44,b=40,v=41,y=91,g=93,x=59,w=42,k=58,T=38,O=64,C=/[ \n\t\r\{\(\)'"\\;/]/g,E=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function I(N){for(var $=[],R=N.css.valueOf(),M=void 0,P=void 0,U=void 0,Oe=void 0,he=void 0,fe=void 0,de=void 0,me=void 0,ye=void 0,B=void 0,_e=void 0,ut=R.length,j=-1,_=1,S=0,W=function(z,q){if(N.safe)R+=q,P=R.length-1;else throw N.error("Unclosed "+z,_,S-j,S)};S<ut;){switch(M=R.charCodeAt(S),M===a&&(j=S,_+=1),M){case a:case l:case d:case n:case m:P=S;do P+=1,M=R.charCodeAt(P),M===a&&(j=P,_+=1);while(M===l||M===a||M===d||M===n||M===m);$.push(["space",R.slice(S,P),_,S-j,S]),S=P-1;break;case t:case h:case p:case f:P=S;do P+=1,M=R.charCodeAt(P);while(M===t||M===h||M===p||M===f);$.push(["combinator",R.slice(S,P),_,S-j,S]),S=P-1;break;case w:$.push(["*","*",_,S-j,S]);break;case T:$.push(["&","&",_,S-j,S]);break;case u:$.push([",",",",_,S-j,S]);break;case y:$.push(["[","[",_,S-j,S]);break;case g:$.push(["]","]",_,S-j,S]);break;case k:$.push([":",":",_,S-j,S]);break;case x:$.push([";",";",_,S-j,S]);break;case b:$.push(["(","(",_,S-j,S]);break;case v:$.push([")",")",_,S-j,S]);break;case o:case r:U=M===o?"'":'"',P=S;do for(B=!1,P=R.indexOf(U,P+1),P===-1&&W("quote",U),_e=P;R.charCodeAt(_e-1)===c;)_e-=1,B=!B;while(B);$.push(["string",R.slice(S,P+1),_,S-j,_,P-j,S]),S=P;break;case O:C.lastIndex=S+1,C.test(R),C.lastIndex===0?P=R.length-1:P=C.lastIndex-2,$.push(["at-word",R.slice(S,P+1),_,S-j,_,P-j,S]),S=P;break;case c:for(P=S,de=!0;R.charCodeAt(P+1)===c;)P+=1,de=!de;M=R.charCodeAt(P+1),de&&M!==i&&M!==l&&M!==a&&M!==d&&M!==n&&M!==m&&(P+=1),$.push(["word",R.slice(S,P+1),_,S-j,_,P-j,S]),S=P;break;default:M===i&&R.charCodeAt(S+1)===w?(P=R.indexOf("*/",S+2)+1,P===0&&W("comment","*/"),fe=R.slice(S,P+1),Oe=fe.split(`
27
+ `),he=Oe.length-1,he>0?(me=_+he,ye=P-Oe[he].length):(me=_,ye=j),$.push(["comment",fe,_,S-j,me,P-ye,S]),j=ye,_=me,S=P):(E.lastIndex=S+1,E.test(R),E.lastIndex===0?P=R.length-1:P=E.lastIndex-2,$.push(["word",R.slice(S,P+1),_,S-j,_,P-j,S]),S=P);break}S++}return $}s.exports=e.default}),Js=A((e,s)=>{e.__esModule=!0;var o=function(){function j(_,S){for(var W=0;W<S.length;W++){var z=S[W];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(_,z.key,z)}}return function(_,S,W){return S&&j(_.prototype,S),W&&j(_,W),_}}(),r=hr(),c=B(r),i=fr(),a=B(i),l=dr(),m=B(l),d=Ms(),n=B(d),t=Rs(),h=B(t),p=$s(),f=B(p),u=Ns(),b=B(u),v=Ls(),y=B(v),g=Ws(),x=B(g),w=zs(),k=B(w),T=Bs(),O=B(T),C=qs(),E=B(C),I=Fs(),N=B(I),$=Ds(),R=B($),M=Us(),P=B(M),U=Vs(),Oe=B(U),he=Gs(),fe=B(he),de=H(),me=ye(de);function ye(j){if(j&&j.__esModule)return j;var _={};if(j!=null)for(var S in j)Object.prototype.hasOwnProperty.call(j,S)&&(_[S]=j[S]);return _.default=j,_}function B(j){return j&&j.__esModule?j:{default:j}}function _e(j,_){if(!(j instanceof _))throw new TypeError("Cannot call a class as a function")}var ut=function(){function j(_){_e(this,j),this.input=_,this.lossy=_.options.lossless===!1,this.position=0,this.root=new n.default;var S=new h.default;return this.root.append(S),this.current=S,this.lossy?this.tokens=(0,fe.default)({safe:_.safe,css:_.css.trim()}):this.tokens=(0,fe.default)(_),this.loop()}return j.prototype.attribute=function(){var _="",S=void 0,W=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)_+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~_.indexOf("]")&&this.error("Expected a closing square bracket.");var z=_.split(/((?:[*~^$|]?=))([^]*)/),q=z[0].split(/(\|)/g),X={operator:z[1],value:z[2],source:{start:{line:W[2],column:W[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:W[4]};if(q.length>1?(q[0]===""&&(q[0]=!0),X.attribute=this.parseValue(q[2]),X.namespace=this.parseNamespace(q[0])):X.attribute=this.parseValue(z[0]),S=new E.default(X),z[2]){var re=z[2].split(/(\s+i\s*?)$/),se=re[0].trim();S.value=this.lossy?se:re[0],re[1]&&(S.insensitive=!0,this.lossy||(S.raws.insensitive=re[1])),S.quoted=se[0]==="'"||se[0]==='"',S.raws.unquoted=S.quoted?se.slice(1,-1):se}this.newNode(S),this.position++},j.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var _=new R.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(_.spaces.before=this.parseSpace(this.currToken[1]),_.source.start.line=this.nextToken[2],_.source.start.column=this.nextToken[3],_.source.end.column=this.nextToken[3],_.source.end.line=this.nextToken[2],_.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?_.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?_.value=this.currToken[1]:this.currToken[0]==="space"&&(_.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(_)},j.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var _=new h.default;this.current.parent.append(_),this.current=_,this.position++},j.prototype.comment=function(){var _=new b.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(_),this.position++},j.prototype.error=function(_){throw new this.input.error(_)},j.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},j.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},j.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},j.prototype.namespace=function(){var _=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(_);if(this.nextToken[0]==="*")return this.position++,this.universal(_)},j.prototype.nesting=function(){this.newNode(new P.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++},j.prototype.parentheses=function(){var _=this.current.last;if(_&&_.type===me.PSEUDO){var S=new h.default,W=this.current;_.append(S),this.current=S;var z=1;for(this.position++;this.position<this.tokens.length&&z;)this.currToken[0]==="("&&z++,this.currToken[0]===")"&&z--,z?this.parse():(S.parent.source.end.line=this.currToken[2],S.parent.source.end.column=this.currToken[3],this.position++);z&&this.error("Expected closing parenthesis."),this.current=W}else{var q=1;for(this.position++,_.value+="(";this.position<this.tokens.length&&q;)this.currToken[0]==="("&&q++,this.currToken[0]===")"&&q--,_.value+=this.parseParenthesisToken(this.currToken),this.position++;q&&this.error("Expected closing parenthesis.")}},j.prototype.pseudo=function(){for(var _=this,S="",W=this.currToken;this.currToken&&this.currToken[0]===":";)S+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var z=void 0;this.splitWord(!1,function(q,X){S+=q,z=new O.default({value:S,source:{start:{line:W[2],column:W[3]},end:{line:_.currToken[4],column:_.currToken[5]}},sourceIndex:W[4]}),_.newNode(z),X>1&&_.nextToken&&_.nextToken[0]==="("&&_.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},j.prototype.space=function(){var _=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(_[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(_[1]),this.position++):this.combinator()},j.prototype.string=function(){var _=this.currToken;this.newNode(new k.default({value:this.currToken[1],source:{start:{line:_[2],column:_[3]},end:{line:_[4],column:_[5]}},sourceIndex:_[6]})),this.position++},j.prototype.universal=function(_){var S=this.nextToken;if(S&&S[1]==="|")return this.position++,this.namespace();this.newNode(new N.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++},j.prototype.splitWord=function(_,S){for(var W=this,z=this.nextToken,q=this.currToken[1];z&&z[0]==="word";){this.position++;var X=this.currToken[1];if(q+=X,X.lastIndexOf("\\")===X.length-1){var re=this.nextToken;re&&re[0]==="space"&&(q+=this.parseSpace(re[1]," "),this.position++)}z=this.nextToken}var se=(0,a.default)(q,"."),qe=(0,a.default)(q,"#"),Ut=(0,a.default)(q,"#{");Ut.length&&(qe=qe.filter(function(ne){return!~Ut.indexOf(ne)}));var ve=(0,Oe.default)((0,m.default)((0,c.default)([[0],se,qe])));ve.forEach(function(ne,Se){var Fe=ve[Se+1]||q.length,De=q.slice(ne,Fe);if(Se===0&&S)return S.call(W,De,ve.length);var Ue=void 0;~se.indexOf(ne)?Ue=new f.default({value:De.slice(1),source:{start:{line:W.currToken[2],column:W.currToken[3]+ne},end:{line:W.currToken[4],column:W.currToken[3]+(Fe-1)}},sourceIndex:W.currToken[6]+ve[Se]}):~qe.indexOf(ne)?Ue=new y.default({value:De.slice(1),source:{start:{line:W.currToken[2],column:W.currToken[3]+ne},end:{line:W.currToken[4],column:W.currToken[3]+(Fe-1)}},sourceIndex:W.currToken[6]+ve[Se]}):Ue=new x.default({value:De,source:{start:{line:W.currToken[2],column:W.currToken[3]+ne},end:{line:W.currToken[4],column:W.currToken[3]+(Fe-1)}},sourceIndex:W.currToken[6]+ve[Se]}),W.newNode(Ue,_)}),this.position++},j.prototype.word=function(_){var S=this.nextToken;return S&&S[1]==="|"?(this.position++,this.namespace()):this.splitWord(_)},j.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},j.prototype.parse=function(_){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":_&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string();break}},j.prototype.parseNamespace=function(_){if(this.lossy&&typeof _=="string"){var S=_.trim();return S.length?S:!0}return _},j.prototype.parseSpace=function(_,S){return this.lossy?S||"":_},j.prototype.parseValue=function(_){return this.lossy&&_&&typeof _=="string"?_.trim():_},j.prototype.parseParenthesisToken=function(_){return this.lossy?_[0]==="space"?this.parseSpace(_[1]," "):this.parseValue(_[1]):_[1]},j.prototype.newNode=function(_,S){return S&&(_.namespace=this.parseNamespace(S)),this.spaces&&(_.spaces.before=this.spaces,this.spaces=""),this.current.append(_)},o(j,[{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]}}]),j}();e.default=ut,s.exports=e.default}),Hs=A((e,s)=>{e.__esModule=!0;var o=function(){function m(d,n){for(var t=0;t<n.length;t++){var h=n[t];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(d,h.key,h)}}return function(d,n,t){return n&&m(d.prototype,n),t&&m(d,t),d}}(),r=Js(),c=i(r);function i(m){return m&&m.__esModule?m:{default:m}}function a(m,d){if(!(m instanceof d))throw new TypeError("Cannot call a class as a function")}var l=function(){function m(d){return a(this,m),this.func=d||function(){},this}return m.prototype.process=function(d){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=new c.default({css:d,error:function(h){throw new Error(h)},options:n});return this.res=t,this.func(t),this},o(m,[{key:"result",get:function(){return String(this.res)}}]),m}();e.default=l,s.exports=e.default}),te=A((e,s)=>{var o=function(r,c){let i=new r.constructor;for(let a in r){if(!r.hasOwnProperty(a))continue;let l=r[a],m=typeof l;a==="parent"&&m==="object"?c&&(i[a]=c):a==="source"?i[a]=l:l instanceof Array?i[a]=l.map(d=>o(d,i)):a!=="before"&&a!=="after"&&a!=="between"&&a!=="semicolon"&&(m==="object"&&l!==null&&(l=o(l)),i[a]=l)}return i};s.exports=class{constructor(r){r=r||{},this.raws={before:"",after:""};for(let c in r)this[c]=r[c]}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(r){r=r||{};let c=o(this);for(let i in r)c[i]=r[i];return c}cloneBefore(r){r=r||{};let c=this.clone(r);return this.parent.insertBefore(this,c),c}cloneAfter(r){r=r||{};let c=this.clone(r);return this.parent.insertAfter(this,c),c}replaceWith(){let r=Array.prototype.slice.call(arguments);if(this.parent){for(let c of r)this.parent.insertBefore(this,c);this.remove()}return this}moveTo(r){return this.cleanRaws(this.root()===r.root()),this.remove(),r.append(this),this}moveBefore(r){return this.cleanRaws(this.root()===r.root()),this.remove(),r.parent.insertBefore(r,this),this}moveAfter(r){return this.cleanRaws(this.root()===r.root()),this.remove(),r.parent.insertAfter(r,this),this}next(){let r=this.parent.index(this);return this.parent.nodes[r+1]}prev(){let r=this.parent.index(this);return this.parent.nodes[r-1]}toJSON(){let r={};for(let c in this){if(!this.hasOwnProperty(c)||c==="parent")continue;let i=this[c];i instanceof Array?r[c]=i.map(a=>typeof a=="object"&&a.toJSON?a.toJSON():a):typeof i=="object"&&i.toJSON?r[c]=i.toJSON():r[c]=i}return r}root(){let r=this;for(;r.parent;)r=r.parent;return r}cleanRaws(r){delete this.raws.before,delete this.raws.after,r||delete this.raws.between}positionInside(r){let c=this.toString(),i=this.source.start.column,a=this.source.start.line;for(let l=0;l<r;l++)c[l]===`
28
+ `?(i=1,a+=1):i+=1;return{line:a,column:i}}positionBy(r){let c=this.source.start;if(Object(r).index)c=this.positionInside(r.index);else if(Object(r).word){let i=this.toString().indexOf(r.word);i!==-1&&(c=this.positionInside(i))}return c}}}),Z=A((e,s)=>{var o=te(),r=class extends o{constructor(c){super(c),this.nodes||(this.nodes=[])}push(c){return c.parent=this,this.nodes.push(c),this}each(c){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let i=this.lastEach,a,l;if(this.indexes[i]=0,!!this.nodes){for(;this.indexes[i]<this.nodes.length&&(a=this.indexes[i],l=c(this.nodes[a],a),l!==!1);)this.indexes[i]+=1;return delete this.indexes[i],l}}walk(c){return this.each((i,a)=>{let l=c(i,a);return l!==!1&&i.walk&&(l=i.walk(c)),l})}walkType(c,i){if(!c||!i)throw new Error("Parameters {type} and {callback} are required.");let a=typeof c=="function";return this.walk((l,m)=>{if(a&&l instanceof c||!a&&l.type===c)return i.call(this,l,m)})}append(c){return c.parent=this,this.nodes.push(c),this}prepend(c){return c.parent=this,this.nodes.unshift(c),this}cleanRaws(c){if(super.cleanRaws(c),this.nodes)for(let i of this.nodes)i.cleanRaws(c)}insertAfter(c,i){let a=this.index(c),l;this.nodes.splice(a+1,0,i);for(let m in this.indexes)l=this.indexes[m],a<=l&&(this.indexes[m]=l+this.nodes.length);return this}insertBefore(c,i){let a=this.index(c),l;this.nodes.splice(a,0,i);for(let m in this.indexes)l=this.indexes[m],a<=l&&(this.indexes[m]=l+this.nodes.length);return this}removeChild(c){c=this.index(c),this.nodes[c].parent=void 0,this.nodes.splice(c,1);let i;for(let a in this.indexes)i=this.indexes[a],i>=c&&(this.indexes[a]=i-1);return this}removeAll(){for(let c of this.nodes)c.parent=void 0;return this.nodes=[],this}every(c){return this.nodes.every(c)}some(c){return this.nodes.some(c)}index(c){return typeof c=="number"?c:this.nodes.indexOf(c)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let c=this.nodes.map(String).join("");return this.value&&(c=this.value+c),this.raws.before&&(c=this.raws.before+c),this.raws.after&&(c+=this.raws.after),c}};r.registerWalker=c=>{let i="walk"+c.name;i.lastIndexOf("s")!==i.length-1&&(i+="s"),!r.prototype[i]&&(r.prototype[i]=function(a){return this.walkType(c,a)})},s.exports=r}),Qs=A((e,s)=>{var o=Z();s.exports=class extends o{constructor(r){super(r),this.type="root"}}}),Zs=A((e,s)=>{var o=Z();s.exports=class extends o{constructor(r){super(r),this.type="value",this.unbalanced=0}}}),Ys=A((e,s)=>{var o=Z(),r=class extends o{constructor(c){super(c),this.type="atword"}toString(){return this.quoted&&this.raws.quote,[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};o.registerWalker(r),s.exports=r}),Ks=A((e,s)=>{var o=Z(),r=te(),c=class extends r{constructor(i){super(i),this.type="colon"}};o.registerWalker(c),s.exports=c}),Xs=A((e,s)=>{var o=Z(),r=te(),c=class extends r{constructor(i){super(i),this.type="comma"}};o.registerWalker(c),s.exports=c}),en=A((e,s)=>{var o=Z(),r=te(),c=class extends r{constructor(i){super(i),this.type="comment",this.inline=Object(i).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};o.registerWalker(c),s.exports=c}),tn=A((e,s)=>{var o=Z(),r=class extends o{constructor(c){super(c),this.type="func",this.unbalanced=-1}};o.registerWalker(r),s.exports=r}),rn=A((e,s)=>{var o=Z(),r=te(),c=class extends r{constructor(i){super(i),this.type="number",this.unit=Object(i).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};o.registerWalker(c),s.exports=c}),sn=A((e,s)=>{var o=Z(),r=te(),c=class extends r{constructor(i){super(i),this.type="operator"}};o.registerWalker(c),s.exports=c}),nn=A((e,s)=>{var o=Z(),r=te(),c=class extends r{constructor(i){super(i),this.type="paren",this.parenType=""}};o.registerWalker(c),s.exports=c}),on=A((e,s)=>{var o=Z(),r=te(),c=class extends r{constructor(i){super(i),this.type="string"}toString(){let i=this.quoted?this.raws.quote:"";return[this.raws.before,i,this.value+"",i,this.raws.after].join("")}};o.registerWalker(c),s.exports=c}),an=A((e,s)=>{var o=Z(),r=te(),c=class extends r{constructor(i){super(i),this.type="word"}};o.registerWalker(c),s.exports=c}),un=A((e,s)=>{var o=Z(),r=te(),c=class extends r{constructor(i){super(i),this.type="unicode-range"}};o.registerWalker(c),s.exports=c}),ln=A((e,s)=>{var o=class extends Error{constructor(r){super(r),this.name=this.constructor.name,this.message=r||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(r).stack}};s.exports=o}),cn=A((e,s)=>{var o=/[ \n\t\r\{\(\)'"\\;,/]/g,r=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,c=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,i=/^[a-z0-9]/i,a=/^[a-f0-9?\-]/i,l=ln();s.exports=function(m,d){d=d||{};let n=[],t=m.valueOf(),h=t.length,p=-1,f=1,u=0,b=0,v=null,y,g,x,w,k,T,O,C,E,I,N;function $(R){let M=`Unclosed ${R} at line: ${f}, column: ${u-p}, token: ${u}`;throw new l(M)}for(;u<h;){switch(y=t.charCodeAt(u),y===10&&(p=u,f+=1),y){case 10:case 32:case 9:case 13:case 12:g=u;do g+=1,y=t.charCodeAt(g),y===10&&(p=g,f+=1);while(y===32||y===10||y===9||y===13||y===12);n.push(["space",t.slice(u,g),f,u-p,f,g-p,u]),u=g-1;break;case 58:g=u+1,n.push(["colon",t.slice(u,g),f,u-p,f,g-p,u]),u=g-1;break;case 44:g=u+1,n.push(["comma",t.slice(u,g),f,u-p,f,g-p,u]),u=g-1;break;case 123:n.push(["{","{",f,u-p,f,g-p,u]);break;case 125:n.push(["}","}",f,u-p,f,g-p,u]);break;case 40:b++,v=!v&&b===1&&n.length>0&&n[n.length-1][0]==="word"&&n[n.length-1][1]==="url",n.push(["(","(",f,u-p,f,g-p,u]);break;case 41:b--,v=v&&b>0,n.push([")",")",f,u-p,f,g-p,u]);break;case 39:case 34:x=y===39?"'":'"',g=u;do for(E=!1,g=t.indexOf(x,g+1),g===-1&&$("quote"),I=g;t.charCodeAt(I-1)===92;)I-=1,E=!E;while(E);n.push(["string",t.slice(u,g+1),f,u-p,f,g-p,u]),u=g;break;case 64:o.lastIndex=u+1,o.test(t),o.lastIndex===0?g=t.length-1:g=o.lastIndex-2,n.push(["atword",t.slice(u,g+1),f,u-p,f,g-p,u]),u=g;break;case 92:g=u,y=t.charCodeAt(g+1),n.push(["word",t.slice(u,g+1),f,u-p,f,g-p,u]),u=g;break;case 43:case 45:case 42:if(g=u+1,N=t.slice(u+1,g+1),t.slice(u-1,u),y===45&&N.charCodeAt(0)===45){g++,n.push(["word",t.slice(u,g),f,u-p,f,g-p,u]),u=g-1;break}n.push(["operator",t.slice(u,g),f,u-p,f,g-p,u]),u=g-1;break;default:if(y===47&&(t.charCodeAt(u+1)===42||d.loose&&!v&&t.charCodeAt(u+1)===47)){if(t.charCodeAt(u+1)===42)g=t.indexOf("*/",u+2)+1,g===0&&$("comment");else{let R=t.indexOf(`
29
+ `,u+2);g=R!==-1?R-1:h}T=t.slice(u,g+1),w=T.split(`
30
+ `),k=w.length-1,k>0?(O=f+k,C=g-w[k].length):(O=f,C=p),n.push(["comment",T,f,u-p,O,g-C,u]),p=C,f=O,u=g}else if(y===35&&!i.test(t.slice(u+1,u+2)))g=u+1,n.push(["#",t.slice(u,g),f,u-p,f,g-p,u]),u=g-1;else if((y===117||y===85)&&t.charCodeAt(u+1)===43){g=u+2;do g+=1,y=t.charCodeAt(g);while(g<h&&a.test(t.slice(g,g+1)));n.push(["unicoderange",t.slice(u,g),f,u-p,f,g-p,u]),u=g-1}else if(y===47)g=u+1,n.push(["operator",t.slice(u,g),f,u-p,f,g-p,u]),u=g-1;else{let R=r;if(y>=48&&y<=57&&(R=c),R.lastIndex=u+1,R.test(t),R.lastIndex===0?g=t.length-1:g=R.lastIndex-2,R===c||y===46){let M=t.charCodeAt(g),P=t.charCodeAt(g+1),U=t.charCodeAt(g+2);(M===101||M===69)&&(P===45||P===43)&&U>=48&&U<=57&&(c.lastIndex=g+2,c.test(t),c.lastIndex===0?g=t.length-1:g=c.lastIndex-2)}n.push(["word",t.slice(u,g+1),f,u-p,f,g-p,u]),u=g}break}u++}return n}}),pn=A((e,s)=>{var o=class extends Error{constructor(r){super(r),this.name=this.constructor.name,this.message=r||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(r).stack}};s.exports=o}),hn=A((e,s)=>{var o=Qs(),r=Zs(),c=Ys(),i=Ks(),a=Xs(),l=en(),m=tn(),d=rn(),n=sn(),t=nn(),h=on(),p=an(),f=un(),u=cn(),b=hr(),v=fr(),y=dr(),g=pn();function x(w){return w.sort((k,T)=>k-T)}s.exports=class{constructor(w,k){let T={loose:!1};this.cache=[],this.input=w,this.options=Object.assign({},T,k),this.position=0,this.unbalanced=0,this.root=new o;let O=new r;this.root.append(O),this.current=O,this.tokens=u(w,this.options)}parse(){return this.loop()}colon(){let w=this.currToken;this.newNode(new i({value:w[1],source:{start:{line:w[2],column:w[3]},end:{line:w[4],column:w[5]}},sourceIndex:w[6]})),this.position++}comma(){let w=this.currToken;this.newNode(new a({value:w[1],source:{start:{line:w[2],column:w[3]},end:{line:w[4],column:w[5]}},sourceIndex:w[6]})),this.position++}comment(){let w=!1,k=this.currToken[1].replace(/\/\*|\*\//g,""),T;this.options.loose&&k.startsWith("//")&&(k=k.substring(2),w=!0),T=new l({value:k,inline:w,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(T),this.position++}error(w,k){throw new g(w+` at line: ${k[2]}, column ${k[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 w=this.currToken[1],k;if(w==="+"||w==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return k=new n({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(k)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let w=1,k=this.position+1,T=this.currToken,O;for(;k<this.tokens.length&&w;){let C=this.tokens[k];C[0]==="("&&w++,C[0]===")"&&w--,k++}if(w&&this.error("Expected closing parenthesis",T),O=this.current.last,O&&O.type==="func"&&O.unbalanced<0&&(O.unbalanced=0,this.current=O),this.current.unbalanced++,this.newNode(new t({value:T[1],source:{start:{line:T[2],column:T[3]},end:{line:T[4],column:T[5]}},sourceIndex:T[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let C=this.nextToken,E=this.currToken[1],I={line:this.currToken[2],column:this.currToken[3]};for(;C&&C[0]!==")"&&this.current.unbalanced;)this.position++,E+=this.currToken[1],C=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new p({value:E,source:{start:I,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let w=this.currToken;this.newNode(new t({value:w[1],source:{start:{line:w[2],column:w[3]},end:{line:w[4],column:w[5]}},sourceIndex:w[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",w),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let w=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=w[1],this.position++):(this.spaces=w[1],this.position++)}unicodeRange(){let w=this.currToken;this.newNode(new f({value:w[1],source:{start:{line:w[2],column:w[3]},end:{line:w[4],column:w[5]}},sourceIndex:w[6]})),this.position++}splitWord(){let w=this.nextToken,k=this.currToken[1],T=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,O=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,C,E;if(!O.test(k))for(;w&&w[0]==="word";){this.position++;let I=this.currToken[1];k+=I,w=this.nextToken}C=v(k,"@"),E=x(y(b([[0],C]))),E.forEach((I,N)=>{let $=E[N+1]||k.length,R=k.slice(I,$),M;if(~C.indexOf(I))M=new c({value:R.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+($-1)}},sourceIndex:this.currToken[6]+E[N]});else if(T.test(this.currToken[1])){let P=R.replace(T,"");M=new d({value:R.replace(P,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+($-1)}},sourceIndex:this.currToken[6]+E[N],unit:P})}else M=new(w&&w[0]==="("?m:p)({value:R,source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+($-1)}},sourceIndex:this.currToken[6]+E[N]}),M.type==="word"?(M.isHex=/^#(.+)/.test(R),M.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(R)):this.cache.push(this.current);this.newNode(M)}),this.position++}string(){let w=this.currToken,k=this.currToken[1],T=/^(\"|\')/,O=T.test(k),C="",E;O&&(C=k.match(T)[0],k=k.slice(1,k.length-1)),E=new h({value:k,source:{start:{line:w[2],column:w[3]},end:{line:w[4],column:w[5]}},sourceIndex:w[6],quoted:O}),E.raws.quote=C,this.newNode(E),this.position++}word(){return this.splitWord()}newNode(w){return this.spaces&&(w.raws.before+=this.spaces,this.spaces=""),this.current.append(w)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),mr={};Xt(mr,{languages:()=>Qr,options:()=>Zr,parsers:()=>qt,printers:()=>ns});var yr=(e,s)=>(o,r,...c)=>o|1&&r==null?void 0:(s.call(r)??r[e]).apply(r,c),fn=String.prototype.replaceAll??function(e,s){return e.global?this.replace(e,s):this.split(e).join(s)},dn=yr("replaceAll",function(){if(typeof this=="string")return fn}),F=dn;function mn(e){return this[e<0?this.length+e:e]}var yn=yr("at",function(){if(Array.isArray(this)||typeof this=="string")return mn}),ce=yn,vn=()=>{},gn=vn,vr="string",gr="array",wr="cursor",tt="indent",Mt="align",br="trim",rt="group",st="fill",nt="if-break",xr="indent-if-break",Rt="line-suffix",kr="line-suffix-boundary",Te="line",Tr="label",$t="break-parent",Or=new Set([wr,tt,Mt,br,rt,st,nt,xr,Rt,kr,Te,Tr,$t]);function wn(e){if(typeof e=="string")return vr;if(Array.isArray(e))return gr;if(!e)return;let{type:s}=e;if(Or.has(s))return s}var Pe=wn,bn=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function xn(e){let s=e===null?"null":typeof e;if(s!=="string"&&s!=="object")return`Unexpected doc '${s}',
31
+ Expected it to be 'string' or 'object'.`;if(Pe(e))throw new Error("doc is valid.");let o=Object.prototype.toString.call(e);if(o!=="[object Object]")return`Unexpected doc '${o}'.`;let r=bn([...Or].map(c=>`'${c}'`));return`Unexpected doc.type '${e.type}'.
32
+ Expected it to be ${r}.`}var kn=class extends Error{constructor(s){super(xn(s));lt(this,"name","InvalidDocError");this.doc=s}},Tn=kn;function On(e,s){if(typeof e=="string")return s(e);let o=new Map;return r(e);function r(i){if(o.has(i))return o.get(i);let a=c(i);return o.set(i,a),a}function c(i){switch(Pe(i)){case gr:return s(i.map(r));case st:return s({...i,parts:i.parts.map(r)});case nt:return s({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case rt:{let{expandedStates:a,contents:l}=i;return a?(a=a.map(r),l=a[0]):l=r(l),s({...i,contents:l,expandedStates:a})}case Mt:case tt:case xr:case Tr:case Rt:return s({...i,contents:r(i.contents)});case vr:case wr:case br:case kr:case Te:case $t:return s(i);default:throw new Tn(i)}}}function _n(e){return e.type===Te&&!e.hard?e.soft?"":" ":e.type===nt?e.flatContents:e}function Sn(e){return On(e,_n)}var Cn=gn;function Q(e){return{type:tt,contents:e}}function An(e,s){return{type:Mt,contents:s,n:e}}function $e(e){return An(-1,e)}var Nt={type:$t};function Qe(e){return{type:st,parts:e}}function K(e,s={}){return Cn(s.expandedStates),{type:rt,id:s.id,contents:e,break:!!s.shouldBreak,expandedStates:s.expandedStates}}function _r(e,s="",o={}){return{type:nt,breakContents:e,flatContents:s,groupId:o.groupId}}function ae(e,s){let o=[];for(let r=0;r<s.length;r++)r!==0&&o.push(e),o.push(s[r]);return o}var V={type:Te},Y={type:Te,soft:!0},En={type:Te,hard:!0},D=[En,Nt];function jn(e){return{type:Rt,contents:e}}function In(e){return Array.isArray(e)&&e.length>0}var ot=In,Sr=Object.freeze({character:"'",codePoint:39}),Cr=Object.freeze({character:'"',codePoint:34}),Pn=Object.freeze({preferred:Sr,alternate:Cr}),Mn=Object.freeze({preferred:Cr,alternate:Sr});function Rn(e,s){let{preferred:o,alternate:r}=s===!0||s==="'"?Pn:Mn,{length:c}=e,i=0,a=0;for(let l=0;l<c;l++){let m=e.charCodeAt(l);m===o.codePoint?i++:m===r.codePoint&&a++}return(i>a?r:o).character}var $n=Rn,Nn=/\\(["'\\])|(["'])/gu;function Ln(e,s){let o=s==='"'?"'":'"',r=F(0,e,Nn,(c,i,a)=>i?i===o?o:c:a===s?"\\"+a:a);return s+r+s}var Wn=Ln;function zn(e,s){let o=e.slice(1,-1),r=s.parser==="json"||s.parser==="jsonc"||s.parser==="json5"&&s.quoteProps==="preserve"&&!s.singleQuote?'"':s.__isInHtmlAttribute?"'":$n(o,s.singleQuote);return e.charAt(0)===r?e:Wn(o,r)}var Ar=zn,Bn=class extends Error{constructor(s,o,r="type"){super(`Unexpected ${o} node ${r}: ${JSON.stringify(s[r])}.`);lt(this,"name","UnexpectedNodeError");this.node=s}},qn=Bn,Er=Symbol.for("PRETTIER_IS_FRONT_MATTER");function Fn(e){return!!(e!=null&&e[Er])}var mt=Fn,Ce=3;function Dn(e){let s=e.slice(0,Ce);if(s!=="---"&&s!=="+++")return;let o=e.indexOf(`
33
+ `,Ce);if(o===-1)return;let r=e.slice(Ce,o).trim(),c=e.indexOf(`
34
+ ${s}`,o),i=r;if(i||(i=s==="+++"?"toml":"yaml"),c===-1&&s==="---"&&i==="yaml"&&(c=e.indexOf(`
35
+ ...`,o)),c===-1)return;let a=c+1+Ce,l=e.charAt(a+1);if(!/\s?/u.test(l))return;let m=e.slice(0,a),d;return{language:i,explicitLanguage:r||null,value:e.slice(o+1,c),startDelimiter:s,endDelimiter:m.slice(-Ce),raw:m,start:{line:1,column:0,index:0},end:{index:m.length,get line(){return d??(d=m.split(`
36
+ `)),d.length},get column(){return d??(d=m.split(`
37
+ `)),ce(0,d,-1).length}},[Er]:!0}}function Un(e){let s=Dn(e);return s?{frontMatter:s,get content(){let{raw:o}=s;return F(0,o,/[^\n]/gu," ")+e.slice(o.length)}}:{content:e}}var it=Un,Vn=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function jr(e,s,o){if(e.type==="css-comment"&&o.type==="css-root"&&o.nodes.length>0&&((o.nodes[0]===e||mt(o.nodes[0])&&o.nodes[1]===e)&&(delete s.text,/^\*\s*@(?:format|prettier)\s*$/u.test(e.text))||o.type==="css-root"&&ce(0,o.nodes,-1)===e))return null;if(e.type==="value-root"&&delete s.text,(e.type==="media-query"||e.type==="media-query-list"||e.type==="media-feature-expression")&&delete s.value,e.type==="css-rule"&&delete s.params,(e.type==="media-feature"||e.type==="media-keyword"||e.type==="media-type"||e.type==="media-unknown"||e.type==="media-url"||e.type==="media-value"||e.type==="selector-attribute"||e.type==="selector-string"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="value-string")&&e.value&&(s.value=Gn(e.value)),e.type==="selector-combinator"&&(s.value=F(0,s.value,/\s+/gu," ")),e.type==="media-feature"&&(s.value=F(0,s.value," ","")),(e.type==="value-word"&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||e.type==="media-feature"||e.type==="selector-root-invalid"||e.type==="selector-pseudo")&&(s.value=s.value.toLowerCase()),e.type==="css-decl"&&(s.prop=e.prop.toLowerCase()),(e.type==="css-atrule"||e.type==="css-import")&&(s.name=e.name.toLowerCase()),e.type==="value-number"&&(s.unit=e.unit.toLowerCase()),e.type==="value-unknown"&&(s.value=F(0,s.value,/;$/gu,"")),e.type==="selector-attribute"&&(s.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(s.namespace=e.namespace.trim()||!0),e.value)){let{value:r}=s;/\s[a-zA-Z]$/u.test(r)&&(s.__prettier_attribute_selector_flag=ce(0,r,-1),r=r.slice(0,-1)),r=r.trim(),r=r.replace(/^(?<quote>["'])(?<value>.*?)\k<quote>$/u,"$<value>"),s.value=r,delete s.quoted}if((e.type==="media-value"||e.type==="media-type"||e.type==="value-number"||e.type==="selector-root-invalid"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="selector-tag")&&e.value&&(s.value=F(0,s.value,/([\d+.e-]+)([a-z]*)/giu,(r,c,i)=>{let a=Number(c);return Number.isNaN(a)?r:a+i.toLowerCase()})),e.type==="selector-tag"){let r=s.value.toLowerCase();["from","to"].includes(r)&&(s.value=r)}if(e.type==="css-atrule"&&e.name.toLowerCase()==="supports"&&delete s.value,e.type==="selector-unknown"&&delete s.value,e.type==="value-comma_group"){let r=e.groups.findIndex(c=>c.type==="value-number"&&c.unit==="...");r!==-1&&(s.groups[r].unit="",s.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(e.type==="value-comma_group"&&e.groups.some(r=>r.type==="value-atword"&&(r.value.endsWith("[")||r.value.endsWith("]"))||r.type==="value-word"&&(r.value.startsWith("]")||r.value.startsWith("["))))return{type:"value-atword",value:e.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}jr.ignoredProperties=Vn;function Gn(e){return F(0,F(0,e,"'",'"'),/\\([^\da-f])/giu,"$1")}var Jn=jr;function Ir(){}Ir.getVisitorKeys=e=>e.type==="css-root"?["frontMatter"]:[];var Hn=Ir,Ae=null;function Me(e){if(Ae!==null&&typeof Ae.property){let s=Ae;return Ae=Me.prototype=null,s}return Ae=Me.prototype=e??Object.create(null),new Me}var Qn=10;for(let e=0;e<=Qn;e++)Me();function Zn(e){return Me(e)}function Yn(e,s="type"){Zn(e);function o(r){let c=r[s],i=e[c];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${c}'.`),{node:r});return i}return o}var Kn=Yn,L=[[],["nodes"],["group"]],Xn={"css-root":["frontMatter","nodes"],"css-comment":L[0],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":L[1],"media-query":L[1],"media-type":L[0],"media-feature-expression":L[1],"media-feature":L[0],"media-colon":L[0],"media-value":L[0],"media-keyword":L[0],"media-url":L[0],"media-unknown":L[0],"selector-root":L[1],"selector-selector":L[1],"selector-comment":L[0],"selector-string":L[0],"selector-tag":L[0],"selector-id":L[0],"selector-class":L[0],"selector-attribute":L[0],"selector-combinator":L[1],"selector-universal":L[0],"selector-pseudo":L[1],"selector-nesting":L[0],"selector-unknown":L[0],"value-value":L[2],"value-root":L[2],"value-comment":L[0],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":L[2],"value-paren":L[0],"value-number":L[0],"value-operator":L[0],"value-word":L[0],"value-colon":L[0],"value-comma":L[0],"value-string":L[0],"value-atword":L[0],"value-unicode-range":L[0],"value-unknown":L[0]},eo=Kn(Xn),to=eo;function ro(e,s){let o=0;for(let r=0;r<e.line-1;++r)o=s.indexOf(`
38
+ `,o)+1;return o+e.column}var Pr=ro;function Lt(e){return(s,o,r)=>{let c=!!(r!=null&&r.backwards);if(o===!1)return!1;let{length:i}=s,a=o;for(;a>=0&&a<i;){let l=s.charAt(a);if(e instanceof RegExp){if(!e.test(l))return a}else if(!e.includes(l))return a;c?a--:a++}return a===-1||a===i?a:!1}}var Mr=Lt(" "),so=Lt(",; "),Rr=Lt(/[^\n\r]/u);function $r(e,s){let{value:o}=e;return o==="-"||o==="--"||o.charAt(0)!=="-"?s:s-(o.charAt(1)==="-"?2:1)}function Nr(e,s){var o,r,c;if(typeof((r=(o=e.source)==null?void 0:o.start)==null?void 0:r.offset)=="number")return e.source.start.offset;if(typeof e.sourceIndex=="number")return e.type==="value-word"?$r(e,e.sourceIndex):e.sourceIndex;if((c=e.source)!=null&&c.start)return Pr(e.source.start,s);throw Object.assign(new Error("Can not locate node."),{node:e})}function Wt(e,s){var o,r;if(e.type==="css-comment"&&e.inline)return Rr(s,e.source.startOffset);if(typeof((r=(o=e.source)==null?void 0:o.end)==null?void 0:r.offset)=="number")return e.source.end.offset;if(e.source){if(e.source.end){let c=Pr(e.source.end,s);return e.type==="value-word"?$r(e,c):c}if(ot(e.nodes))return Wt(ce(0,e.nodes,-1),s)}return null}function Lr(e,s){e.source&&(e.source.startOffset=Nr(e,s),e.source.endOffset=Wt(e,s));for(let o in e){let r=e[o];o==="source"||!r||typeof r!="object"||(r.type==="value-root"||r.type==="value-unknown"?Wr(r,no(e),r.text||r.value):Lr(r,s))}}function Wr(e,s,o){e.source&&(e.source.startOffset=Nr(e,o)+s,e.source.endOffset=Wt(e,o)+s);for(let r in e){let c=e[r];r==="source"||!c||typeof c!="object"||Wr(c,s,o)}}function no(e){var o;let s=e.source.startOffset;return typeof e.prop=="string"&&(s+=e.prop.length),e.type==="css-atrule"&&typeof e.name=="string"&&(s+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/u)[0].length),e.type!=="css-atrule"&&typeof((o=e.raws)==null?void 0:o.between)=="string"&&(s+=e.raws.between.length),s}function oo(e){let s="initial",o="initial",r,c=!1,i=[];for(let a=0;a<e.length;a++){let l=e[a];switch(s){case"initial":if(l==="'"){s="single-quotes";continue}if(l==='"'){s="double-quotes";continue}if((l==="u"||l==="U")&&e.slice(a,a+4).toLowerCase()==="url("){s="url",a+=3;continue}if(l==="*"&&e[a-1]==="/"){s="comment-block";continue}if(l==="/"&&e[a-1]==="/"){s="comment-inline",r=a-1;continue}continue;case"single-quotes":if(l==="'"&&e[a-1]!=="\\"&&(s=o,o="initial"),l===`
39
+ `||l==="\r")return e;continue;case"double-quotes":if(l==='"'&&e[a-1]!=="\\"&&(s=o,o="initial"),l===`
40
+ `||l==="\r")return e;continue;case"url":if(l===")"&&(s="initial"),l===`
41
+ `||l==="\r")return e;if(l==="'"){s="single-quotes",o="url";continue}if(l==='"'){s="double-quotes",o="url";continue}continue;case"comment-block":l==="/"&&e[a-1]==="*"&&(s="initial");continue;case"comment-inline":(l==='"'||l==="'"||l==="*")&&(c=!0),(l===`
42
+ `||l==="\r")&&(c&&i.push([r,a]),s="initial",c=!1);continue}}for(let[a,l]of i)e=e.slice(0,a)+F(0,e.slice(a,l),/["'*]/gu," ")+e.slice(l);return e}var G=e=>{var s;return(s=e.source)==null?void 0:s.startOffset},J=e=>{var s;return(s=e.source)==null?void 0:s.endOffset},io=/\*\/$/,ao=/^\/\*\*?/,zr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,uo=/(^|\s+)\/\/([^\n\r]*)/g,Vt=/^(\r?\n)+/,lo=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Gt=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,co=/(\r?\n|^) *\* ?/g,Br=[];function po(e){let s=e.match(zr);return s?s[0].trimStart():""}function ho(e){var o;let s=(o=e.match(zr))==null?void 0:o[0];return s==null?e:e.slice(s.length)}function fo(e){e=F(0,e.replace(ao,"").replace(io,""),co,"$1");let s="";for(;s!==e;)s=e,e=F(0,e,lo,`
43
+ $1 $2
44
+ `);e=e.replace(Vt,"").trimEnd();let o=Object.create(null),r=F(0,e,Gt,"").replace(Vt,"").trimEnd(),c;for(;c=Gt.exec(e);){let i=F(0,c[2],uo,"");if(typeof o[c[1]]=="string"||Array.isArray(o[c[1]])){let a=o[c[1]];o[c[1]]=[...Br,...Array.isArray(a)?a:[a],i]}else o[c[1]]=i}return{comments:r,pragmas:o}}function mo({comments:e="",pragmas:s={}}){let o=Object.keys(s),r=o.flatMap(i=>Jt(i,s[i])).map(i=>` * ${i}
45
+ `).join("");if(!e){if(o.length===0)return"";if(o.length===1&&!Array.isArray(s[o[0]])){let i=s[o[0]];return`/** ${Jt(o[0],i)[0]} */`}}let c=e.split(`
46
+ `).map(i=>` * ${i}`).join(`
47
+ `)+`
48
+ `;return`/**
49
+ `+(e?c:"")+(e&&o.length>0?` *
50
+ `:"")+r+" */"}function Jt(e,s){return[...Br,...Array.isArray(s)?s:[s]].map(o=>`@${e} ${o}`.trim())}var yo=["noformat","noprettier"],vo=["format","prettier"],go="format";function wo(e){if(!e.startsWith("#!"))return"";let s=e.indexOf(`
51
+ `);return s===-1?e:e.slice(0,s)}var bo=wo;function zt(e){let s=bo(e);s&&(e=e.slice(s.length+1));let o=po(e),{pragmas:r,comments:c}=fo(o);return{shebang:s,text:e,pragmas:r,comments:c}}function xo(e){let{pragmas:s}=zt(e);return vo.some(o=>Object.prototype.hasOwnProperty.call(s,o))}function ko(e){let{pragmas:s}=zt(e);return yo.some(o=>Object.prototype.hasOwnProperty.call(s,o))}function To(e){let{shebang:s,text:o,pragmas:r,comments:c}=zt(e),i=ho(o),a=mo({pragmas:{[go]:"",...r},comments:c.trimStart()});return(s?`${s}
52
+ `:"")+a+(i.startsWith(`
53
+ `)?`
54
+ `:`
55
+
56
+ `)+i}var Oo=e=>xo(it(e).content),_o=e=>ko(it(e).content),So=e=>{let{frontMatter:s,content:o}=it(e);return(s?s.raw+`
57
+
58
+ `:"")+To(o)},Co=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Ao(e){var s,o;return(o=(s=e.findAncestor(r=>r.type==="css-decl"))==null?void 0:s.prop)==null?void 0:o.toLowerCase()}var Eo=new Set(["initial","inherit","unset","revert"]);function jo(e){return Eo.has(e.toLowerCase())}function Io(e,s){var o,r;return((r=(o=e.findAncestor(c=>c.type==="css-atrule"))==null?void 0:o.name)==null?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(s.toLowerCase())}function Ee(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function Ze(e,s){var o,r;return((r=(o=e.findAncestor(c=>c.type==="value-func"))==null?void 0:o.value)==null?void 0:r.toLowerCase())===s}function Po(e){return e.hasAncestor(s=>{var r;if(s.type!=="css-rule")return!1;let o=(r=s.raws)==null?void 0:r.selector;return o&&(o.startsWith(":import")||o.startsWith(":export"))})}function Re(e,s){let o=Array.isArray(s)?s:[s],r=e.findAncestor(c=>c.type==="css-atrule");return r&&o.includes(r.name.toLowerCase())}function Mo(e){var o,r;let{node:s}=e;return((o=s.groups[0])==null?void 0:o.value)==="url"&&s.groups.length===2&&((r=e.findAncestor(c=>c.type==="css-atrule"))==null?void 0:r.name)==="import"}function Ro(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function $o(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function No(e){let{selector:s}=e;return s?typeof s=="string"&&/^@.+:.*$/u.test(s)||s.value&&/^@.+:.*$/u.test(s.value):!1}function Lo(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function Wo(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function zo(e){return e.type==="value-word"&&e.value==="in"}function yt(e){return e.type==="value-operator"&&e.value==="*"}function we(e){return(e==null?void 0:e.type)==="value-operator"&&e.value==="/"}function ie(e){return e.type==="value-operator"&&e.value==="+"}function be(e){return e.type==="value-operator"&&e.value==="-"}function Bo(e){return e.type==="value-operator"&&e.value==="%"}function ct(e){return yt(e)||we(e)||ie(e)||be(e)||Bo(e)}function qo(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function Fo(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function vt(e,s){return s.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function Ht(e){var s;return((s=e.raws)==null?void 0:s.params)&&/^\(\s*\)$/u.test(e.raws.params)}function pt(e){return e.name.startsWith("prettier-placeholder")}function Do(e){return e.prop.startsWith("@prettier-placeholder")}function Uo(e,s){return e.value==="$$"&&e.type==="value-func"&&(s==null?void 0:s.type)==="value-word"&&!s.raws.before}function Vo(e){var s,o;return((s=e.value)==null?void 0:s.type)==="value-root"&&((o=e.value.group)==null?void 0:o.type)==="value-value"&&e.prop.toLowerCase()==="composes"}function Go(e){var s,o,r;return((r=(o=(s=e.value)==null?void 0:s.group)==null?void 0:o.group)==null?void 0:r.type)==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function oe(e){var s;return((s=e==null?void 0:e.raws)==null?void 0:s.before)===""}function Bt(e){var s,o;return e.type==="value-comma_group"&&((o=(s=e.groups)==null?void 0:s[1])==null?void 0:o.type)==="value-colon"}function ht(e){var s;return e.type==="value-paren_group"&&((s=e.groups)==null?void 0:s[0])&&Bt(e.groups[0])}function qr(e,s){var c,i;if(s.parser!=="scss")return!1;let{node:o}=e;if(o.groups.length===0)return!1;let r=e.grandparent;return!ht(o)&&!(r&&ht(r))?!1:!!((i=(c=e.findAncestor(a=>a.type==="css-decl"))==null?void 0:c.prop)!=null&&i.startsWith("$")||ht(r)||r.type==="value-func")}function Ve(e){return e.type==="value-comment"&&e.inline}function ft(e){return e.type==="value-word"&&e.value==="#"}function Qt(e){return e.type==="value-word"&&e.value==="{"}function dt(e){return e.type==="value-word"&&e.value==="}"}function Ge(e){return["value-word","value-atword"].includes(e.type)}function gt(e){return(e==null?void 0:e.type)==="value-colon"}function Jo(e,s){if(!Bt(s))return!1;let{groups:o}=s,r=o.indexOf(e);return r===-1?!1:gt(o[r+1])}function Ho(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function Qo(e){return e.type!=="value-func"?!1:Co.has(e.value.toLowerCase())}function je(e){return/\/\//u.test(e.split(/[\n\r]/u).pop())}function Je(e){return(e==null?void 0:e.type)==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function Zo(e,s){var o,r;if(((o=e.open)==null?void 0:o.value)!=="("||((r=e.close)==null?void 0:r.value)!==")"||e.groups.some(c=>c.type!=="value-comma_group"))return!1;if(s.type==="value-comma_group"){let c=s.groups.indexOf(e)-1,i=s.groups[c];if((i==null?void 0:i.type)==="value-word"&&i.value==="with")return!0}return!1}function He(e){var s,o;return e.type==="value-paren_group"&&((s=e.open)==null?void 0:s.value)==="("&&((o=e.close)==null?void 0:o.value)===")"}function Yo(e,s,o){var b;let{node:r}=e,c=e.parent,i=e.grandparent,a=Ao(e),l=a&&c.type==="value-value"&&(a==="grid"||a.startsWith("grid-template")),m=e.findAncestor(v=>v.type==="css-atrule"),d=m&&vt(m,s),n=r.groups.some(v=>Ve(v)),t=e.map(o,"groups"),h=[""],p=Ze(e,"url"),f=!1,u=!1;for(let v=0;v<r.groups.length;++v){let y=r.groups[v-1],g=r.groups[v],x=r.groups[v+1],w=r.groups[v+2];if(Ve(g)&&!x){h.push([h.pop(),jn([" ",t[v]])]);continue}if(h.push([h.pop(),t[v]]),p){(x&&ie(x)||ie(g))&&h.push([h.pop()," "]);continue}if(Re(e,"forward")&&g.type==="value-word"&&g.value&&y!==void 0&&y.type==="value-word"&&y.value==="as"&&x.type==="value-operator"&&x.value==="*"||Re(e,"utility")&&g.type==="value-word"&&x&&x.type==="value-operator"&&x.value==="*"||!x||g.type==="value-word"&&Je(x)&&J(g)===G(x))continue;if(g.type==="value-string"&&g.quoted){let I=g.value.lastIndexOf("#{"),N=g.value.lastIndexOf("}");I!==-1&&N!==-1?f=I>N:I!==-1?f=!0:N!==-1&&(f=!1)}if(f||gt(g)||gt(x)||g.type==="value-atword"&&(g.value===""||g.value.endsWith("["))||x.type==="value-word"&&x.value.startsWith("]")||g.value==="~"||s.parser==="less"&&((x==null?void 0:x.type)==="value-word"&&x.value==="["||g.type==="value-word"&&g.value==="["&&((x==null?void 0:x.type)==="value-atword"||(x==null?void 0:x.type)==="value-word")||g.type==="value-word"&&g.value==="]["&&(x==null?void 0:x.type)==="value-word")||g.type!=="value-string"&&g.value&&g.value.includes("\\")&&x&&x.type!=="value-comment"||y!=null&&y.value&&y.value.indexOf("\\")===y.value.length-1&&g.type==="value-operator"&&g.value==="/"||g.value==="\\"||Uo(g,x)||ft(g)||Qt(g)||dt(x)||Qt(x)&&oe(x)||dt(g)&&oe(x)||g.value==="--"&&ft(x))continue;let k=ct(g),T=ct(x);if((k&&ft(x)||T&&dt(g))&&oe(x)||!y&&we(g)||Ze(e,"calc")&&(ie(g)||ie(x)||be(g)||be(x))&&oe(x))continue;let O=(ie(g)||be(g))&&v===0&&(x.type==="value-number"||x.isHex)&&i&&Qo(i)&&!oe(x);if(s.parser==="scss"&&k&&g.value==="-"&&x.type==="value-func"&&J(g)!==G(x)){h.push([h.pop()," "]);continue}let C=(w==null?void 0:w.type)==="value-func"||w&&Ge(w)||g.type==="value-func"||Ge(g),E=x.type==="value-func"||Ge(x)||(y==null?void 0:y.type)==="value-func"||y&&Ge(y);if(!(!(yt(x)||yt(g))&&!Ze(e,"calc")&&!O&&(we(x)&&!C||we(g)&&!E||ie(x)&&!C||ie(g)&&!E||be(x)||be(g))&&(oe(x)||k&&(!y||y&&ct(y))))&&!((s.parser==="scss"||s.parser==="less")&&k&&g.value==="-"&&He(x)&&J(g)===G(x.open)&&x.open.value==="(")){if(Ve(g)){if(c.type==="value-paren_group"){h.push($e(D),"");continue}h.push(D,"");continue}if(d&&(qo(x)||Fo(x)||Wo(x)||zo(g)||Lo(g))){h.push([h.pop()," "]);continue}if(m&&m.name.toLowerCase()==="namespace"){h.push([h.pop()," "]);continue}if(l){g.source&&x.source&&g.source.start.line!==x.source.start.line?(h.push(D,""),u=!0):h.push([h.pop()," "]);continue}if(!(a&&(a==="font"||a.startsWith("--"))&&(we(x)&&oe(x)&&Zt(g)||we(g)&&oe(g)&&Zt(y)))){if(T){h.push([h.pop()," "]);continue}if((x==null?void 0:x.value)!=="..."&&!(Je(g)&&Je(x)&&J(g)===G(x))){if(Je(g)&&He(x)&&J(g)===G(x.open)){h.push(Y,"");continue}if(g.value==="with"&&He(x)){h=[[Qe(h)," "]];continue}if(!((b=g.value)!=null&&b.endsWith("#")&&x.value==="{"&&He(x.group))&&!(Ve(x)&&!w)){if(!m&&g.type==="value-comment"&&!g.inline&&r.groups.slice(0,v).every(I=>I.type==="value-comment")){h.push($e(V),"");continue}h.push(V,"")}}}}}return n&&h.push([h.pop(),Nt]),u&&h.unshift("",D),d?K(Q(h)):Mo(e)?K(Qe(h)):K(Q(Qe(h)))}function Zt(e){if((e==null?void 0:e.type)==="value-number")return!0;if((e==null?void 0:e.type)!=="value-func")return!1;let s=e.value.toLowerCase();return s==="var"||s==="calc"||s==="min"||s==="max"||s==="clamp"||s.startsWith("--")}var Ko=Yo;function Xo(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var ei=Xo,wt=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 Fr(e){let s=e.toLowerCase();return wt.has(s)?wt.get(s):e}var Dr=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,ti=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,ri=/[a-z]+/giu,si=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,ni=new RegExp(Dr.source+`|(${si.source})?(${ti.source})(${ri.source})?`,"giu");function ee(e,s){return F(0,e,Dr,o=>Ar(o,s))}function oi(e,s){let o=s.singleQuote?"'":'"',r="",c=e.match(/^(?<value>.+?)\s+(?<flag>[a-zA-Z])$/u);return c&&({value:e,flag:r}=c.groups),(e.includes('"')||e.includes("'")?e:o+e+o)+(r?` ${r}`:"")}function ge(e){return F(0,e,ni,(s,o,r,c,i)=>!r&&c&&(i??(i=""),i=i.toLowerCase(),!i||i==="n"||wt.has(i))?Ur(c)+(i?Fr(i):""):s)}function Ur(e){return ei(e).replace(/\.0(?=$|e)/u,"")}function ii(e){return e.trailingComma==="es5"||e.trailingComma==="all"}var Yt=e=>e===`
59
+ `||e==="\r"||e==="\u2028"||e==="\u2029";function ai(e,s,o){let r=!!(o!=null&&o.backwards);if(s===!1)return!1;let c=e.charAt(s);if(r){if(e.charAt(s-1)==="\r"&&c===`
60
+ `)return s-2;if(Yt(c))return s-1}else{if(c==="\r"&&e.charAt(s+1)===`
61
+ `)return s+2;if(Yt(c))return s+1}return s}var Vr=ai;function ui(e,s,o={}){let r=Mr(e,o.backwards?s-1:s,o),c=Vr(e,r,o);return r!==c}var Gr=ui;function li(e,s){if(s===!1)return!1;if(e.charAt(s)==="/"&&e.charAt(s+1)==="*"){for(let o=s+2;o<e.length;++o)if(e.charAt(o)==="*"&&e.charAt(o+1)==="/")return o+2}return s}var ci=li;function pi(e,s){return s===!1?!1:e.charAt(s)==="/"&&e.charAt(s+1)==="/"?Rr(e,s):s}var hi=pi;function fi(e,s){let o=null,r=s;for(;r!==o;)o=r,r=so(e,r),r=ci(e,r),r=Mr(e,r);return r=hi(e,r),r=Vr(e,r),r!==!1&&Gr(e,r)}var Jr=fi;function di({node:e,parent:s},o){return!!(e.source&&o.originalText.slice(G(e),G(s.close)).trimEnd().endsWith(","))}function mi(e,s){return $o(e.grandparent)&&di(e,s)?",":e.node.type!=="value-comment"&&!(e.node.type==="value-comma_group"&&e.node.groups.every(o=>o.type==="value-comment"))&&ii(s)&&e.callParent(()=>qr(e,s))?_r(","):""}function yi(e,s,o){let{node:r,parent:c}=e,i=e.map(({node:p})=>typeof p=="string"?p:o(),"groups");if(c&&Ro(c)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?o("open"):"",ae(",",i),r.close?o("close"):""];if(!r.open){let p=Hr(e),f=gi(ae(",",i),2),u=ae(p?D:V,f);return Q(p?[D,u]:K([vi(e)?Y:"",Qe(u)]))}let a=e.map(({node:p,isLast:f,index:u})=>{var y;let b=i[u];Bt(p)&&p.type==="value-comma_group"&&p.groups&&p.groups[0].type!=="value-paren_group"&&((y=p.groups[2])==null?void 0:y.type)==="value-paren_group"&&Pe(b)===rt&&Pe(b.contents)===tt&&Pe(b.contents.contents)===st&&(b=K($e(b)));let v=[b,f?mi(e,s):","];if(!f&&p.type==="value-comma_group"&&ot(p.groups)){let g=ce(0,p.groups,-1);!g.source&&g.close&&(g=g.close),g.source&&Jr(s.originalText,J(g))&&v.push(D)}return v},"groups"),l=Jo(r,c),m=Zo(r,c),d=qr(e,s),n=m||d&&!l,t=m||l,h=K([r.open?o("open"):"",Q([Y,ae(V,a)]),Y,r.close?o("close"):""],{shouldBreak:n});return t?$e(h):h}function Hr(e){return e.match(s=>s.type==="value-paren_group"&&!s.open&&s.groups.some(o=>o.type==="value-comma_group"),(s,o)=>o==="group"&&s.type==="value-value",(s,o)=>o==="group"&&s.type==="value-root",(s,o)=>o==="value"&&(s.type==="css-decl"&&!s.prop.startsWith("--")||s.type==="css-atrule"&&s.variable))}function vi(e){return e.match(s=>s.type==="value-paren_group"&&!s.open,(s,o)=>o==="group"&&s.type==="value-value",(s,o)=>o==="group"&&s.type==="value-root",(s,o)=>o==="value"&&s.type==="css-decl")}function gi(e,s){let o=[];for(let r=0;r<e.length;r+=s)o.push(e.slice(r,r+s));return o}function wi(e,s,o){let r=[];return e.each(()=>{let{node:c,previous:i}=e;if((i==null?void 0:i.type)==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(s.originalText.slice(G(c),J(c))):r.push(o()),e.isLast)return;let{next:a}=e;a.type==="css-comment"&&!Gr(s.originalText,G(a),{backwards:!0})&&!mt(c)||a.type==="css-atrule"&&a.name==="else"&&c.type!=="css-comment"?r.push(" "):(r.push(s.__isHTMLStyleAttribute?V:D),Jr(s.originalText,J(c))&&!mt(c)&&r.push(D))},"nodes"),r}var Ie=wi;function bi(e,s,o){var c,i,a,l,m;let{node:r}=e;switch(r.type){case"css-root":{let d=Ie(e,s,o),n=r.raws.after.trim();return n.startsWith(";")&&(n=n.slice(1).trim()),[r.frontMatter?[o("frontMatter"),D,r.nodes.length>0?D:""]:"",d,n?` ${n}`:"",r.nodes.length>0?D:""]}case"css-comment":{let d=r.inline||r.raws.inline,n=s.originalText.slice(G(r),J(r));return d?n.trimEnd():n}case"css-rule":return[o("selector"),r.important?" !important":"",r.nodes?[((c=r.selector)==null?void 0:c.type)==="selector-unknown"&&je(r.selector.value)?V:r.selector?" ":"","{",r.nodes.length>0?Q([D,Ie(e,s,o)]):"",D,"}",No(r)?";":""]:";"];case"css-decl":{let d=e.parent,{between:n}=r.raws,t=n.trim(),h=t===":",p=typeof r.value=="string"&&/^ *$/u.test(r.value),f=typeof r.value=="string"?r.value:o("value");return f=Vo(r)?Sn(f):f,!h&&je(t)&&!e.call(()=>Hr(e),"value","group","group")&&(f=Q([D,$e(f)])),[F(0,r.raws.before,/[\s;]/gu,""),d.type==="css-atrule"&&d.variable||Po(e)?r.prop:Ee(r.prop),t.startsWith("//")?" ":"",t,r.extend||p?"":" ",s.parser==="less"&&r.extend&&r.selector?["extend(",o("selector"),")"]:"",f,r.raws.important?r.raws.important.replace(/\s*!\s*important/iu," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/iu," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/iu," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",Q([Y,Ie(e,s,o)]),Y,"}"]:Do(r)&&!d.raws.semicolon&&s.originalText[J(r)-1]!==";"?"":s.__isHTMLStyleAttribute&&e.isLast?_r(";"):";"]}case"css-atrule":{let d=e.parent,n=pt(r)&&!d.raws.semicolon&&s.originalText[J(r)-1]!==";";if(s.parser==="less"){if(r.mixin)return[o("selector"),r.important?" !important":"",n?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:o("params"),n?"":";"];if(r.variable)return["@",r.name,": ",r.value?o("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",Q([r.nodes.length>0?Y:"",Ie(e,s,o)]),Y,"}"]:"",n?"":";"]}let t=r.name==="import"&&((i=r.params)==null?void 0:i.type)==="value-unknown"&&r.params.value.endsWith(";");return["@",Ht(r)||r.name.endsWith(":")||pt(r)?r.name:Ee(r.name),r.params?[Ht(r)?"":pt(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(r.raws.afterName)?[D,D]:/^\s*\n/u.test(r.raws.afterName)?D:" ":" ",typeof r.params=="string"?r.params:o("params")]:"",r.selector?Q([" ",o("selector")]):"",r.value?K([" ",o("value"),vt(r,s)?Go(r)?" ":V:""]):r.name==="else"?" ":"",r.nodes?[vt(r,s)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&je(r.selector.value)||!r.selector&&typeof r.params=="string"&&je(r.params)?V:" ","{",Q([r.nodes.length>0?Y:"",Ie(e,s,o)]),Y,"}"]:n||t?"":";"]}case"media-query-list":{let d=[];return e.each(({node:n})=>{n.type==="media-query"&&n.value===""||d.push(o())},"nodes"),K(Q(ae(V,d)))}case"media-query":return[ae(" ",e.map(o,"nodes")),e.isLast?"":","];case"media-type":return ge(ee(r.value,s));case"media-feature-expression":return r.nodes?["(",...e.map(o,"nodes"),")"]:r.value;case"media-feature":return Ee(ee(F(0,r.value,/ +/gu," "),s));case"media-colon":return[r.value," "];case"media-value":return ge(ee(r.value,s));case"media-keyword":return ee(r.value,s);case"media-url":return ee(F(0,F(0,r.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),s);case"media-unknown":return r.value;case"selector-root":return K([Re(e,"custom-selector")?[e.findAncestor(d=>d.type==="css-atrule").customSelector,V]:"",ae([",",Re(e,["extend","custom-selector","nest"])?V:D],e.map(o,"nodes"))]);case"selector-selector":{let d=r.nodes.length>2;return K((d?Q:n=>n)(e.map(o,"nodes")))}case"selector-comment":return r.value;case"selector-string":return ee(r.value,s);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",((a=e.previous)==null?void 0:a.type)==="selector-nesting"?r.value:ge(Io(e,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",ge(ee(r.value,s))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?oi(ee(r.value.trim(),s),s):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let t=e.parent;return[t.type==="selector-selector"&&t.nodes[0]===r?"":V,r.value,e.isLast?"":" "]}let d=r.value.trim().startsWith("(")?V:"",n=ge(ee(r.value.trim(),s))||V;return[d,n]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[Ee(r.value),ot(r.nodes)?K(["(",Q([Y,ae([",",V],e.map(o,"nodes"))]),Y,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{if((l=e.findAncestor(t=>t.type==="css-rule"))!=null&&l.isSCSSNesterProperty)return ge(ee(Ee(r.value),s));let d=e.parent;if((m=d.raws)!=null&&m.selector){let t=G(d),h=t+d.raws.selector.length;return s.originalText.slice(t,h).trim()}let n=e.grandparent;if(d.type==="value-paren_group"&&(n==null?void 0:n.type)==="value-func"&&n.value==="selector"){let t=J(d.open)+1,h=G(d.close),p=s.originalText.slice(t,h).trim();return je(p)?[Nt,p]:p}return r.value}case"value-value":case"value-root":return o("group");case"value-comment":return s.originalText.slice(G(r),J(r));case"value-comma_group":return Ko(e,s,o);case"value-paren_group":return yi(e,s,o);case"value-func":return[r.value,Re(e,"supports")&&Ho(r)?" ":"",o("group")];case"value-paren":return r.value;case"value-number":return[Ur(r.value),Fr(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||jo(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:d}=e;return K([r.value,typeof(d==null?void 0:d.value)=="string"&&d.value.endsWith("\\")||Ze(e,"url")?"":V])}case"value-string":return Ar(r.raws.quote+r.value+r.raws.quote,s);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;case"front-matter":case"value-comma":default:throw new qn(r,"PostCSS")}}var xi={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:bi,embed:Hn,insertPragma:So,massageAstNode:Jn,getVisitorKeys:to},ki=xi,Qr=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],Ti={singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."}},Oi={singleQuote:Ti.singleQuote},Zr=Oi,qt={};Xt(qt,{css:()=>ra,less:()=>sa,scss:()=>na});var _i=xe(et()),Si=xe(Ts()),Ci=xe(js());function Ai(e,s){let o=new SyntaxError(e+" ("+s.loc.start.line+":"+s.loc.start.column+")");return Object.assign(o,s)}var Ei=Ai;function ji(e){return e!==null&&typeof e=="object"}var at=ji,Ii=xe(Ps());function Be(e,s,o){if(at(e)){delete e.parent;for(let r in e)Be(e[r],s,o),r==="type"&&typeof e[r]=="string"&&!e[r].startsWith(s)&&(!o||!o.test(e[r]))&&(e[r]=s+e[r])}return e}function Yr(e){if(at(e)){delete e.parent;for(let s in e)Yr(e[s]);!Array.isArray(e)&&e.value&&!e.type&&(e.type="unknown")}return e}var Pi=Ii.default.default;function Mi(e){let s;try{s=Pi(e)}catch{return{type:"selector-unknown",value:e}}return Be(Yr(s),"media-")}var Ri=Mi,$i=xe(Hs());function Ni(e){if(/\/[/*]/u.test(F(0,e,/"[^"]+"|'[^']+'/gu,"")))return{type:"selector-unknown",value:e.trim()};let s;try{new $i.default(o=>{s=o}).process(e)}catch{return{type:"selector-unknown",value:e}}return Be(s,"selector-")}var le=Ni,Li=xe(hn()),Wi=e=>{for(;e.parent;)e=e.parent;return e},Kr=Wi;function zi(e){return Kr(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()}var Bi=zi;function qi(e){if(ot(e)){for(let s=e.length-1;s>0;s--)if(e[s].type==="word"&&e[s].value==="{"&&e[s-1].type==="word"&&e[s-1].value.endsWith("#"))return!0}return!1}var Fi=qi;function Di(e){return e.some(s=>s.type==="string"||s.type==="func"&&!s.value.endsWith("\\"))}var Ui=Di;function Vi(e,s){return!!(s.parser==="scss"&&(e==null?void 0:e.type)==="word"&&e.value.startsWith("$"))}var Gi=Vi,Kt=e=>e.type==="paren"&&e.value===")";function Ji(e,s){var m;let{nodes:o}=e,r={open:null,close:null,groups:[],type:"paren_group"},c=[r],i=r,a={groups:[],type:"comma_group"},l=[a];for(let d=0;d<o.length;++d){let n=o[d];if(s.parser==="scss"&&n.type==="number"&&n.unit===".."&&n.value.endsWith(".")&&(n.value=n.value.slice(0,-1),n.unit="..."),n.type==="func"&&n.value==="selector"&&(n.group.groups=[le(Kr(e).text.slice(n.group.open.sourceIndex+1,n.group.close.sourceIndex))]),n.type==="func"&&n.value==="url"){let t=((m=n.group)==null?void 0:m.groups)??[],h=[];for(let p=0;p<t.length;p++){let f=t[p];f.type==="comma_group"?h=[...h,...f.groups]:h.push(f)}(Fi(h)||!Ui(h)&&!Gi(h[0],s))&&(n.group.groups=[Bi(n)])}if(n.type==="paren"&&n.value==="(")r={open:n,close:null,groups:[],type:"paren_group"},c.push(r),a={groups:[],type:"comma_group"},l.push(a);else if(Kt(n)){if(a.groups.length>0&&r.groups.push(a),r.close=n,l.length===1)throw new Error("Unbalanced parenthesis");l.pop(),a=ce(0,l,-1),a.groups.push(r),c.pop(),r=ce(0,c,-1)}else if(n.type==="comma"){if(d===o.length-3&&o[d+1].type==="comment"&&Kt(o[d+2]))continue;r.groups.push(a),a={groups:[],type:"comma_group"},l[l.length-1]=a}else a.groups.push(n)}return a.groups.length>0&&r.groups.push(a),i}function bt(e){return e.type==="paren_group"&&!e.open&&!e.close&&e.groups.length===1||e.type==="comma_group"&&e.groups.length===1?bt(e.groups[0]):e.type==="paren_group"||e.type==="comma_group"?{...e,groups:e.groups.map(bt)}:e}function Xr(e,s){if(at(e))for(let o in e)o!=="parent"&&(Xr(e[o],s),o==="nodes"&&(e.group=bt(Ji(e,s)),delete e[o]));return e}function Hi(e,s){if(s.parser==="less"&&e.startsWith("~`"))return{type:"value-unknown",value:e};let o=null;try{o=new Li.default(e,{loose:!0}).parse()}catch{return{type:"value-unknown",value:e}}o.text=e;let r=Xr(o,s);return Be(r,"value-",/^selector-/u)}var ue=Hi,Qi=new Set(["import","use","forward"]);function Zi(e){return Qi.has(e)}var Yi=Zi;function Ki(e,s){return s.parser!=="scss"||!e.selector?!1:e.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var Xi=Ki,ea=/(\s*)(!default).*$/u,ta=/(\s*)(!global).*$/u;function es(e,s){var o,r;if(at(e)){delete e.parent;for(let l in e)es(e[l],s);if(!e.type)return e;if(e.raws??(e.raws={}),e.type==="css-decl"&&typeof e.prop=="string"&&e.prop.startsWith("--")&&typeof e.value=="string"&&e.value.startsWith("{")){let l;if(e.value.trimEnd().endsWith("}")){let m=s.originalText.slice(0,e.source.start.offset),d="a".repeat(e.prop.length)+s.originalText.slice(e.source.start.offset+e.prop.length,e.source.end.offset),n=F(0,m,/[^\n]/gu," ")+d,t;s.parser==="scss"?t=ss:s.parser==="less"?t=rs:t=ts;let h;try{h=t(n,{...s})}catch{}((o=h==null?void 0:h.nodes)==null?void 0:o.length)===1&&h.nodes[0].type==="css-rule"&&(l=h.nodes[0].nodes)}return l?e.value={type:"css-rule",nodes:l}:e.value={type:"value-unknown",value:e.raws.value.raw},e}let c="";typeof e.selector=="string"&&(c=e.raws.selector?e.raws.selector.scss??e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(c+=e.raws.between),e.raws.selector=c);let i="";typeof e.value=="string"&&(i=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,e.raws.value=i.trim());let a="";if(typeof e.params=="string"&&(a=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(a=e.raws.afterName+a),e.raws.between&&e.raws.between.trim().length>0&&(a=a+e.raws.between),a=a.trim(),e.raws.params=a),c.trim().length>0)return c.startsWith("@")&&c.endsWith(":")?e:e.mixin?(e.selector=ue(c,s),e):(Xi(e,s)&&(e.isSCSSNesterProperty=!0),e.selector=le(c),e);if(i.trim().length>0){let l=i.match(ea);l&&(i=i.slice(0,l.index),e.scssDefault=!0,l[0].trim()!=="!default"&&(e.raws.scssDefault=l[0]));let m=i.match(ta);if(m&&(i=i.slice(0,m.index),e.scssGlobal=!0,m[0].trim()!=="!global"&&(e.raws.scssGlobal=m[0])),i.startsWith("progid:"))return{type:"value-unknown",value:i};e.value=ue(i,s)}if(s.parser==="less"&&e.type==="css-decl"&&i.startsWith("extend(")&&(e.extend||(e.extend=e.raws.between===":"),e.extend&&!e.selector&&(delete e.value,e.selector=le(i.slice(7,-1)))),e.type==="css-atrule"){if(s.parser==="less"){if(e.mixin){let l=e.raws.identifier+e.name+e.raws.afterName+e.raws.params;return e.selector=le(l),delete e.params,e}if(e.function)return e}if(s.parser==="css"&&e.name==="custom-selector"){let l=e.params.match(/:--\S+\s+/u)[0].trim();return e.customSelector=l,e.selector=le(e.params.slice(l.length).trim()),delete e.params,e}if(s.parser==="less"){if(e.name.includes(":")){e.variable=!0;let l=e.name.split(":");e.name=l[0];let m=l.slice(1).join(":");e.params&&(m+=e.params),e.value=ue(m,s)}if(!["page","nest","keyframes"].includes(e.name)&&((r=e.params)==null?void 0:r[0])===":"){e.variable=!0;let l=e.params.slice(1);l&&(e.value=ue(l,s)),e.raws.afterName+=":"}if(e.variable)return delete e.params,e.value||delete e.value,e}}if(e.type==="css-atrule"&&a.length>0){let{name:l}=e,m=e.name.toLowerCase();return l==="warn"||l==="error"?(e.params={type:"media-unknown",value:a},e):l==="extend"||l==="nest"?(e.selector=le(a),delete e.params,e):l==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(a)?e.params=ue(a,s):(e.selector=le(a),delete e.params),e):Yi(m)?(e.import=!0,delete e.filename,e.params=ue(a,s),e):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(l)?(a=a.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),a=a.replace(/^(?!if)([^"'\s(]+)(\s+)\(/u,"$1($2"),e.value=ue(a,s),delete e.params,e):["media","custom-media"].includes(m)?a.includes("#{")?{type:"media-unknown",value:a}:(e.params=Ri(a),e):(e.params=a,e)}}return e}function Ft(e,s,o){let{frontMatter:r,content:c}=it(s),i;try{i=e(c,{map:!1})}catch(a){let{name:l,reason:m,line:d,column:n}=a;throw typeof d!="number"?a:Ei(`${l}: ${m}`,{loc:{start:{line:d,column:n}},cause:a})}return o.originalText=s,i=es(Be(i,"css-"),o),Lr(i,s),r&&(i.frontMatter={...r,type:"front-matter",source:{startOffset:r.start.index,endOffset:r.end.index}}),i}function ts(e,s={}){return Ft(_i.default.default,e,s)}function rs(e,s={}){return Ft(o=>Si.default.parse(oo(o)),e,s)}function ss(e,s={}){return Ft(Ci.default,e,s)}var Dt={astFormat:"postcss",hasPragma:Oo,hasIgnorePragma:_o,locStart:G,locEnd:J},ra={...Dt,parse:ts},sa={...Dt,parse:rs},na={...Dt,parse:ss},ns={postcss:ki};exports.default=mr;exports.languages=Qr;exports.options=Zr;exports.parsers=qt;exports.printers=ns;