soonjs 0.0.33 → 0.1.0
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.
- package/dist/deps/acorn-jU-39Pbw5W-x7qdgz1ts.js +3005 -0
- package/dist/deps/acorn-jU-39Pbw5W-z5debqqlj.js +16 -0
- package/dist/deps/angular-eXKcfordor-b1hkohm74.js +3 -0
- package/dist/deps/angular-eXKcfordor-l3kwajkbh.js +2533 -0
- package/dist/deps/babel-QODt_XJZCU-a8i81wjiu.js +15 -0
- package/dist/deps/babel-QODt_XJZCU-ghwhrb71b.js +7217 -0
- package/dist/deps/estree-_Gcr3virjH-h1acxq4yv.js +44 -0
- package/dist/deps/estree-_Gcr3virjH-j31qwtvbp.js +4528 -0
- package/dist/deps/flow-VkrRJr6lFd-qqbqr5hei.js +27411 -0
- package/dist/deps/flow-VkrRJr6lFd-ucth0k2tc.js +20 -0
- package/dist/deps/{glimmer-SKEURx3bl3-rp82ple5i.js → glimmer-I6jyK4xw2I-23lk5ck83.js} +1409 -1462
- package/dist/deps/glimmer-I6jyK4xw2I-3z8pf5pty.js +37 -0
- package/dist/deps/graphql-F7JRnTC996-4d02luxbf.js +28 -0
- package/dist/deps/graphql-F7JRnTC996-narvpamoj.js +1221 -0
- package/dist/deps/html-C-ZYESkdqr-ogat88tt8.js +25 -0
- package/dist/deps/html-C-ZYESkdqr-te4xlvh7i.js +2791 -0
- package/dist/deps/markdown-4m9fGqwyBD-3zxc7zsgm.js +3190 -0
- package/dist/deps/markdown-4m9fGqwyBD-pv6ycpbaq.js +62 -0
- package/dist/deps/meriyah-2XmgupY1jB-90gvtx3gl.js +5 -0
- package/dist/deps/meriyah-2XmgupY1jB-akr3gkgcz.js +2645 -0
- package/dist/deps/postcss-UtIjNac23s-dmefkra5w.js +61 -0
- package/dist/deps/postcss-UtIjNac23s-kaopmxfox.js +4739 -0
- package/dist/deps/typescript-7W94NRN5-v-d4v78yftm.js +21 -0
- package/dist/deps/typescript-7W94NRN5-v-y96cijxoo.js +12947 -0
- package/dist/deps/yaml-GTMY6ek0xu-5ybo8o2wg.js +159 -0
- package/dist/deps/yaml-GTMY6ek0xu-x856naz63.js +4079 -0
- package/dist/index.cjs +8 -8
- package/dist/index.js +1376 -1181
- package/dist/vite-plugin-soon-client.cjs +148 -156
- package/dist/vite-plugin-soon-client.js +33643 -38238
- package/dist/vite-plugin-soon-server.cjs +19 -20
- package/dist/vite-plugin-soon-server.d.ts +2 -2
- package/dist/vite-plugin-soon-server.js +1142 -1153
- package/package.json +12 -10
- package/dist/deps/acorn-MFuat2YCgG-l6wjg9m99.js +0 -15
- package/dist/deps/acorn-MFuat2YCgG-wuak0poow.js +0 -2895
- package/dist/deps/angular-Nz7Izt9RB4-px31m5zsp.js +0 -1
- package/dist/deps/angular-Nz7Izt9RB4-rmmyehg9b.js +0 -1448
- package/dist/deps/babel-JaNXSJC73c-mrrxx7w76.js +0 -15
- package/dist/deps/babel-JaNXSJC73c-wlfv7gcc8.js +0 -6844
- package/dist/deps/estree-lrVsLbm9_D-5wzu8mrhj.js +0 -36
- package/dist/deps/estree-lrVsLbm9_D-pkah75rfp.js +0 -4265
- package/dist/deps/flow-MAZ63dnw8p-483wf9q78.js +0 -19
- package/dist/deps/flow-MAZ63dnw8p-ipdsapaxz.js +0 -26221
- package/dist/deps/glimmer-SKEURx3bl3-v0ucxxip4.js +0 -30
- package/dist/deps/graphql--N7MQg-wpp-0xtsyo1wd.js +0 -29
- package/dist/deps/graphql--N7MQg-wpp-dbq3trrn1.js +0 -1212
- package/dist/deps/html-WW7XljTSl6-8dcid3s4p.js +0 -23
- package/dist/deps/html-WW7XljTSl6-nb3si9grn.js +0 -2623
- package/dist/deps/markdown-i-DCK3AslU-aj464zw4z.js +0 -62
- package/dist/deps/markdown-i-DCK3AslU-w8x7m0cha.js +0 -3058
- package/dist/deps/meriyah-0-URq6zZ8n-3k1kkhhe7.js +0 -2320
- package/dist/deps/meriyah-0-URq6zZ8n-r2lluy8ci.js +0 -4
- package/dist/deps/postcss-urUw1vxeu1-1jy7v5te8.js +0 -52
- package/dist/deps/postcss-urUw1vxeu1-ew775audn.js +0 -4664
- package/dist/deps/typescript-5-LBeuVeDB-7oofghhag.js +0 -12794
- package/dist/deps/typescript-5-LBeuVeDB-tvrl5vkhb.js +0 -20
- package/dist/deps/yaml-zChCAOpgM7-04u8k59ak.js +0 -4088
- package/dist/deps/yaml-zChCAOpgM7-3tlae50lh.js +0 -161
- /package/dist/deps/{soon-id-t25L9qRGGZ-9sc9fn6dr.js → soon-id-t25L9qRGGZ-fzl1kq3ux.js} +0 -0
- /package/dist/deps/{soon-id-t25L9qRGGZ-qutxk45vh.js → soon-id-t25L9qRGGZ-yp47pjtmz.js} +0 -0
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";var Zr=Object.defineProperty;var Yr=(e,r,o)=>r in e?Zr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o;var rt=(e,r,o)=>Yr(e,typeof r!="symbol"?r+"":r,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Xr=Object.create,ft=Object.defineProperty,en=Object.getOwnPropertyDescriptor,tn=Object.getOwnPropertyNames,rn=Object.getPrototypeOf,nn=Object.prototype.hasOwnProperty,_=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Ht=(e,r)=>{for(var o in r)ft(e,o,{get:r[o],enumerable:!0})},sn=(e,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of tn(r))!nn.call(e,l)&&l!==o&&ft(e,l,{get:()=>r[l],enumerable:!(i=en(r,l))||i.enumerable});return e},we=(e,r,o)=>(o=e!=null?Xr(rn(e)):{},sn(ft(o,"default",{value:e,enumerable:!0}),e)),dt=_((e,r)=>{r.exports.isClean=Symbol("isClean"),r.exports.my=Symbol("my")}),on=_((e,r)=>{var o=String,i=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}};r.exports=i(),r.exports.createColors=i}),Jt=_(()=>{}),mt=_((e,r)=>{var o=on(),i=Jt(),l=class Qt extends Error{constructor(c,u,m,s,n,t){super(c),this.name="CssSyntaxError",this.reason=c,n&&(this.file=n),s&&(this.source=s),t&&(this.plugin=t),typeof u<"u"&&typeof m<"u"&&(typeof u=="number"?(this.line=u,this.column=m):(this.line=u.line,this.column=u.column,this.endLine=m.line,this.endColumn=m.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Qt)}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(c){if(!this.source)return"";let u=this.source;c==null&&(c=o.isColorSupported),i&&c&&(u=i(u));let m=u.split(/\r?\n/),s=Math.max(this.line-3,0),n=Math.min(this.line+2,m.length),t=String(n).length,f,h;if(c){let{bold:d,gray:p,red:w}=o.createColors(!0);f=y=>d(w(y)),h=y=>p(y)}else f=h=d=>d;return m.slice(s,n).map((d,p)=>{let w=s+1+p,y=" "+(" "+w).slice(-t)+" | ";if(w===this.line){let v=h(y.replace(/\d/g," "))+d.slice(0,this.column-1).replace(/[^\t]/g," ");return f(">")+h(y)+d+`
|
|
2
|
-
`+v+f("^")}return" "+h(y)+d}).join(`
|
|
3
|
-
`)}toString(){let c=this.showSourceCode();return c&&(c=`
|
|
4
|
-
|
|
5
|
-
`+c+`
|
|
6
|
-
`),this.name+": "+this.message+c}};r.exports=l,l.default=l}),vt=_((e,r)=>{var o={after:`
|
|
7
|
-
`,beforeClose:`
|
|
8
|
-
`,beforeComment:`
|
|
9
|
-
`,beforeDecl:`
|
|
10
|
-
`,beforeOpen:" ",beforeRule:`
|
|
11
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function i(a){return a[0].toUpperCase()+a.slice(1)}var l=class{constructor(a){this.builder=a}atrule(a,c){let u="@"+a.name,m=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?u+=a.raws.afterName:m&&(u+=" "),a.nodes)this.block(a,u+m);else{let s=(a.raws.between||"")+(c?";":"");this.builder(u+m+s,a)}}beforeAfter(a,c){let u;a.type==="decl"?u=this.raw(a,null,"beforeDecl"):a.type==="comment"?u=this.raw(a,null,"beforeComment"):c==="before"?u=this.raw(a,null,"beforeRule"):u=this.raw(a,null,"beforeClose");let m=a.parent,s=0;for(;m&&m.type!=="root";)s+=1,m=m.parent;if(u.includes(`
|
|
12
|
-
`)){let n=this.raw(a,null,"indent");if(n.length)for(let t=0;t<s;t++)u+=n}return u}block(a,c){let u=this.raw(a,"between","beforeOpen");this.builder(c+u+"{",a,"start");let m;a.nodes&&a.nodes.length?(this.body(a),m=this.raw(a,"after")):m=this.raw(a,"after","emptyBody"),m&&this.builder(m),this.builder("}",a,"end")}body(a){let c=a.nodes.length-1;for(;c>0&&a.nodes[c].type==="comment";)c-=1;let u=this.raw(a,"semicolon");for(let m=0;m<a.nodes.length;m++){let s=a.nodes[m],n=this.raw(s,"before");n&&this.builder(n),this.stringify(s,c!==m||u)}}comment(a){let c=this.raw(a,"left","commentLeft"),u=this.raw(a,"right","commentRight");this.builder("/*"+c+a.text+u+"*/",a)}decl(a,c){let u=this.raw(a,"between","colon"),m=a.prop+u+this.rawValue(a,"value");a.important&&(m+=a.raws.important||" !important"),c&&(m+=";"),this.builder(m,a)}document(a){this.body(a)}raw(a,c,u){let m;if(u||(u=c),c&&(m=a.raws[c],typeof m<"u"))return m;let s=a.parent;if(u==="before"&&(!s||s.type==="root"&&s.first===a||s&&s.type==="document"))return"";if(!s)return o[u];let n=a.root();if(n.rawCache||(n.rawCache={}),typeof n.rawCache[u]<"u")return n.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(a,u);{let t="raw"+i(u);this[t]?m=this[t](n,a):n.walk(f=>{if(m=f.raws[c],typeof m<"u")return!1})}return typeof m>"u"&&(m=o[u]),n.rawCache[u]=m,m}rawBeforeClose(a){let c;return a.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return c=u.raws.after,c.includes(`
|
|
13
|
-
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawBeforeComment(a,c){let u;return a.walkComments(m=>{if(typeof m.raws.before<"u")return u=m.raws.before,u.includes(`
|
|
14
|
-
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(c,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(a,c){let u;return a.walkDecls(m=>{if(typeof m.raws.before<"u")return u=m.raws.before,u.includes(`
|
|
15
|
-
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(c,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(a){let c;return a.walk(u=>{if(u.type!=="decl"&&(c=u.raws.between,typeof c<"u"))return!1}),c}rawBeforeRule(a){let c;return a.walk(u=>{if(u.nodes&&(u.parent!==a||a.first!==u)&&typeof u.raws.before<"u")return c=u.raws.before,c.includes(`
|
|
16
|
-
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawColon(a){let c;return a.walkDecls(u=>{if(typeof u.raws.between<"u")return c=u.raws.between.replace(/[^\s:]/g,""),!1}),c}rawEmptyBody(a){let c;return a.walk(u=>{if(u.nodes&&u.nodes.length===0&&(c=u.raws.after,typeof c<"u"))return!1}),c}rawIndent(a){if(a.raws.indent)return a.raws.indent;let c;return a.walk(u=>{let m=u.parent;if(m&&m!==a&&m.parent&&m.parent===a&&typeof u.raws.before<"u"){let s=u.raws.before.split(`
|
|
17
|
-
`);return c=s[s.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(a){let c;return a.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(c=u.raws.semicolon,typeof c<"u"))return!1}),c}rawValue(a,c){let u=a[c],m=a.raws[c];return m&&m.value===u?m.raw:u}root(a){this.body(a),a.raws.after&&this.builder(a.raws.after)}rule(a){this.block(a,this.rawValue(a,"selector")),a.raws.ownSemicolon&&this.builder(a.raws.ownSemicolon,a,"end")}stringify(a,c){if(!this[a.type])throw new Error("Unknown AST node type "+a.type+". Maybe you need to change PostCSS stringifier.");this[a.type](a,c)}};r.exports=l,l.default=l}),Qe=_((e,r)=>{var o=vt();function i(l,a){new o(a).stringify(l)}r.exports=i,i.default=i}),Ke=_((e,r)=>{var{isClean:o,my:i}=dt(),l=mt(),a=vt(),c=Qe();function u(s,n){let t=new s.constructor;for(let f in s){if(!Object.prototype.hasOwnProperty.call(s,f)||f==="proxyCache")continue;let h=s[f],d=typeof h;f==="parent"&&d==="object"?n&&(t[f]=n):f==="source"?t[f]=h:Array.isArray(h)?t[f]=h.map(p=>u(p,t)):(d==="object"&&h!==null&&(h=u(h)),t[f]=h)}return t}var m=class{constructor(s={}){this.raws={},this[o]=!1,this[i]=!0;for(let n in s)if(n==="nodes"){this.nodes=[];for(let t of s[n])typeof t.clone=="function"?this.append(t.clone()):this.append(t)}else this[n]=s[n]}addToError(s){if(s.postcssNode=this,s.stack&&this.source&&/\n\s{4}at /.test(s.stack)){let n=this.source;s.stack=s.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return s}after(s){return this.parent.insertAfter(this,s),this}assign(s={}){for(let n in s)this[n]=s[n];return this}before(s){return this.parent.insertBefore(this,s),this}cleanRaws(s){delete this.raws.before,delete this.raws.after,s||delete this.raws.between}clone(s={}){let n=u(this);for(let t in s)n[t]=s[t];return n}cloneAfter(s={}){let n=this.clone(s);return this.parent.insertAfter(this,n),n}cloneBefore(s={}){let n=this.clone(s);return this.parent.insertBefore(this,n),n}error(s,n={}){if(this.source){let{end:t,start:f}=this.rangeBy(n);return this.source.input.error(s,{column:f.column,line:f.line},{column:t.column,line:t.line},n)}return new l(s)}getProxyProcessor(){return{get(s,n){return n==="proxyOf"?s:n==="root"?()=>s.root().toProxy():s[n]},set(s,n,t){return s[n]===t||(s[n]=t,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&s.markDirty()),!0}}}markDirty(){if(this[o]){this[o]=!1;let s=this;for(;s=s.parent;)s[o]=!1}}next(){if(!this.parent)return;let s=this.parent.index(this);return this.parent.nodes[s+1]}positionBy(s,n){let t=this.source.start;if(s.index)t=this.positionInside(s.index,n);else if(s.word){n=this.toString();let f=n.indexOf(s.word);f!==-1&&(t=this.positionInside(f,n))}return t}positionInside(s,n){let t=n||this.toString(),f=this.source.start.column,h=this.source.start.line;for(let d=0;d<s;d++)t[d]===`
|
|
18
|
-
`?(f=1,h+=1):f+=1;return{column:f,line:h}}prev(){if(!this.parent)return;let s=this.parent.index(this);return this.parent.nodes[s-1]}rangeBy(s){let n={column:this.source.start.column,line:this.source.start.line},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(s.word){let f=this.toString(),h=f.indexOf(s.word);h!==-1&&(n=this.positionInside(h,f),t=this.positionInside(h+s.word.length,f))}else s.start?n={column:s.start.column,line:s.start.line}:s.index&&(n=this.positionInside(s.index)),s.end?t={column:s.end.column,line:s.end.line}:typeof s.endIndex=="number"?t=this.positionInside(s.endIndex):s.index&&(t=this.positionInside(s.index+1));return(t.line<n.line||t.line===n.line&&t.column<=n.column)&&(t={column:n.column+1,line:n.line}),{end:t,start:n}}raw(s,n){return new a().raw(this,s,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...s){if(this.parent){let n=this,t=!1;for(let f of s)f===this?t=!0:t?(this.parent.insertAfter(n,f),n=f):this.parent.insertBefore(n,f);t||this.remove()}return this}root(){let s=this;for(;s.parent&&s.parent.type!=="document";)s=s.parent;return s}toJSON(s,n){let t={},f=n==null;n=n||new Map;let h=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let p=this[d];if(Array.isArray(p))t[d]=p.map(w=>typeof w=="object"&&w.toJSON?w.toJSON(null,n):w);else if(typeof p=="object"&&p.toJSON)t[d]=p.toJSON(null,n);else if(d==="source"){let w=n.get(p.input);w==null&&(w=h,n.set(p.input,h),h++),t[d]={end:p.end,inputId:w,start:p.start}}else t[d]=p}return f&&(t.inputs=[...n.keys()].map(d=>d.toJSON())),t}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(s=c){s.stringify&&(s=s.stringify);let n="";return s(this,t=>{n+=t}),n}warn(s,n,t){let f={node:this};for(let h in t)f[h]=t[h];return s.warn(n,f)}get proxyOf(){return this}};r.exports=m,m.default=m}),Ze=_((e,r)=>{var o=Ke(),i=class extends o{constructor(l){l&&typeof l.value<"u"&&typeof l.value!="string"&&(l={...l,value:String(l.value)}),super(l),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};r.exports=i,i.default=i}),Ie=_((e,r)=>{var o=Ke(),i=class extends o{constructor(l){super(l),this.type="comment"}};r.exports=i,i.default=i}),ue=_((e,r)=>{var{isClean:o,my:i}=dt(),l=Ze(),a=Ie(),c=Ke(),u,m,s,n;function t(d){return d.map(p=>(p.nodes&&(p.nodes=t(p.nodes)),delete p.source,p))}function f(d){if(d[o]=!1,d.proxyOf.nodes)for(let p of d.proxyOf.nodes)f(p)}var h=class Kt extends c{append(...p){for(let w of p){let y=this.normalize(w,this.last);for(let v of y)this.proxyOf.nodes.push(v)}return this.markDirty(),this}cleanRaws(p){if(super.cleanRaws(p),this.nodes)for(let w of this.nodes)w.cleanRaws(p)}each(p){if(!this.proxyOf.nodes)return;let w=this.getIterator(),y,v;for(;this.indexes[w]<this.proxyOf.nodes.length&&(y=this.indexes[w],v=p(this.proxyOf.nodes[y],y),v!==!1);)this.indexes[w]+=1;return delete this.indexes[w],v}every(p){return this.nodes.every(p)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let p=this.lastEach;return this.indexes[p]=0,p}getProxyProcessor(){return{get(p,w){return w==="proxyOf"?p:p[w]?w==="each"||typeof w=="string"&&w.startsWith("walk")?(...y)=>p[w](...y.map(v=>typeof v=="function"?(g,O)=>v(g.toProxy(),O):v)):w==="every"||w==="some"?y=>p[w]((v,...g)=>y(v.toProxy(),...g)):w==="root"?()=>p.root().toProxy():w==="nodes"?p.nodes.map(y=>y.toProxy()):w==="first"||w==="last"?p[w].toProxy():p[w]:p[w]},set(p,w,y){return p[w]===y||(p[w]=y,(w==="name"||w==="params"||w==="selector")&&p.markDirty()),!0}}}index(p){return typeof p=="number"?p:(p.proxyOf&&(p=p.proxyOf),this.proxyOf.nodes.indexOf(p))}insertAfter(p,w){let y=this.index(p),v=this.normalize(w,this.proxyOf.nodes[y]).reverse();y=this.index(p);for(let O of v)this.proxyOf.nodes.splice(y+1,0,O);let g;for(let O in this.indexes)g=this.indexes[O],y<g&&(this.indexes[O]=g+v.length);return this.markDirty(),this}insertBefore(p,w){let y=this.index(p),v=y===0?"prepend":!1,g=this.normalize(w,this.proxyOf.nodes[y],v).reverse();y=this.index(p);for(let b of g)this.proxyOf.nodes.splice(y,0,b);let O;for(let b in this.indexes)O=this.indexes[b],y<=O&&(this.indexes[b]=O+g.length);return this.markDirty(),this}normalize(p,w){if(typeof p=="string")p=t(u(p).nodes);else if(typeof p>"u")p=[];else if(Array.isArray(p)){p=p.slice(0);for(let y of p)y.parent&&y.parent.removeChild(y,"ignore")}else if(p.type==="root"&&this.type!=="document"){p=p.nodes.slice(0);for(let y of p)y.parent&&y.parent.removeChild(y,"ignore")}else if(p.type)p=[p];else if(p.prop){if(typeof p.value>"u")throw new Error("Value field is missed in node creation");typeof p.value!="string"&&(p.value=String(p.value)),p=[new l(p)]}else if(p.selector)p=[new m(p)];else if(p.name)p=[new s(p)];else if(p.text)p=[new a(p)];else throw new Error("Unknown node type in node creation");return p.map(y=>(y[i]||Kt.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[o]&&f(y),typeof y.raws.before>"u"&&w&&typeof w.raws.before<"u"&&(y.raws.before=w.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...p){p=p.reverse();for(let w of p){let y=this.normalize(w,this.first,"prepend").reverse();for(let v of y)this.proxyOf.nodes.unshift(v);for(let v in this.indexes)this.indexes[v]=this.indexes[v]+y.length}return this.markDirty(),this}push(p){return p.parent=this,this.proxyOf.nodes.push(p),this}removeAll(){for(let p of this.proxyOf.nodes)p.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(p){p=this.index(p),this.proxyOf.nodes[p].parent=void 0,this.proxyOf.nodes.splice(p,1);let w;for(let y in this.indexes)w=this.indexes[y],w>=p&&(this.indexes[y]=w-1);return this.markDirty(),this}replaceValues(p,w,y){return y||(y=w,w={}),this.walkDecls(v=>{w.props&&!w.props.includes(v.prop)||w.fast&&!v.value.includes(w.fast)||(v.value=v.value.replace(p,y))}),this.markDirty(),this}some(p){return this.nodes.some(p)}walk(p){return this.each((w,y)=>{let v;try{v=p(w,y)}catch(g){throw w.addToError(g)}return v!==!1&&w.walk&&(v=w.walk(p)),v})}walkAtRules(p,w){return w?p instanceof RegExp?this.walk((y,v)=>{if(y.type==="atrule"&&p.test(y.name))return w(y,v)}):this.walk((y,v)=>{if(y.type==="atrule"&&y.name===p)return w(y,v)}):(w=p,this.walk((y,v)=>{if(y.type==="atrule")return w(y,v)}))}walkComments(p){return this.walk((w,y)=>{if(w.type==="comment")return p(w,y)})}walkDecls(p,w){return w?p instanceof RegExp?this.walk((y,v)=>{if(y.type==="decl"&&p.test(y.prop))return w(y,v)}):this.walk((y,v)=>{if(y.type==="decl"&&y.prop===p)return w(y,v)}):(w=p,this.walk((y,v)=>{if(y.type==="decl")return w(y,v)}))}walkRules(p,w){return w?p instanceof RegExp?this.walk((y,v)=>{if(y.type==="rule"&&p.test(y.selector))return w(y,v)}):this.walk((y,v)=>{if(y.type==="rule"&&y.selector===p)return w(y,v)}):(w=p,this.walk((y,v)=>{if(y.type==="rule")return w(y,v)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};h.registerParse=d=>{u=d},h.registerRule=d=>{m=d},h.registerAtRule=d=>{s=d},h.registerRoot=d=>{n=d},r.exports=h,h.default=h,h.rebuild=d=>{d.type==="atrule"?Object.setPrototypeOf(d,s.prototype):d.type==="rule"?Object.setPrototypeOf(d,m.prototype):d.type==="decl"?Object.setPrototypeOf(d,l.prototype):d.type==="comment"?Object.setPrototypeOf(d,a.prototype):d.type==="root"&&Object.setPrototypeOf(d,n.prototype),d[i]=!0,d.nodes&&d.nodes.forEach(p=>{h.rebuild(p)})}}),yt=_((e,r)=>{var o=/[\t\n\f\r "#'()/;[\\\]{}]/g,i=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,l=/.[\r\n"'(/\\]/,a=/[\da-f]/i;r.exports=function(c,u={}){let m=c.css.valueOf(),s=u.ignoreErrors,n,t,f,h,d,p,w,y,v,g,O=m.length,b=0,x=[],k=[];function T(){return b}function E(R){throw c.error("Unclosed "+R,b)}function j(){return k.length===0&&b>=O}function $(R){if(k.length)return k.pop();if(b>=O)return;let M=R?R.ignoreUnclosed:!1;switch(n=m.charCodeAt(b),n){case 10:case 32:case 9:case 13:case 12:{t=b;do t+=1,n=m.charCodeAt(t);while(n===32||n===10||n===9||n===13||n===12);g=["space",m.slice(b,t)],b=t-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let P=String.fromCharCode(n);g=[P,P,b];break}case 40:{if(y=x.length?x.pop()[1]:"",v=m.charCodeAt(b+1),y==="url"&&v!==39&&v!==34&&v!==32&&v!==10&&v!==9&&v!==12&&v!==13){t=b;do{if(p=!1,t=m.indexOf(")",t+1),t===-1)if(s||M){t=b;break}else E("bracket");for(w=t;m.charCodeAt(w-1)===92;)w-=1,p=!p}while(p);g=["brackets",m.slice(b,t+1),b,t],b=t}else t=m.indexOf(")",b+1),h=m.slice(b,t+1),t===-1||l.test(h)?g=["(","(",b]:(g=["brackets",h,b,t],b=t);break}case 39:case 34:{f=n===39?"'":'"',t=b;do{if(p=!1,t=m.indexOf(f,t+1),t===-1)if(s||M){t=b+1;break}else E("string");for(w=t;m.charCodeAt(w-1)===92;)w-=1,p=!p}while(p);g=["string",m.slice(b,t+1),b,t],b=t;break}case 64:{o.lastIndex=b+1,o.test(m),o.lastIndex===0?t=m.length-1:t=o.lastIndex-2,g=["at-word",m.slice(b,t+1),b,t],b=t;break}case 92:{for(t=b,d=!0;m.charCodeAt(t+1)===92;)t+=1,d=!d;if(n=m.charCodeAt(t+1),d&&n!==47&&n!==32&&n!==10&&n!==9&&n!==13&&n!==12&&(t+=1,a.test(m.charAt(t)))){for(;a.test(m.charAt(t+1));)t+=1;m.charCodeAt(t+1)===32&&(t+=1)}g=["word",m.slice(b,t+1),b,t],b=t;break}default:{n===47&&m.charCodeAt(b+1)===42?(t=m.indexOf("*/",b+2)+1,t===0&&(s||M?t=m.length:E("comment")),g=["comment",m.slice(b,t+1),b,t],b=t):(i.lastIndex=b+1,i.test(m),i.lastIndex===0?t=m.length-1:t=i.lastIndex-2,g=["word",m.slice(b,t+1),b,t],x.push(g),b=t);break}}return b++,g}function L(R){k.push(R)}return{back:L,endOfFile:j,nextToken:$,position:T}}}),gt=_((e,r)=>{var o=ue(),i=class extends o{constructor(l){super(l),this.type="atrule"}append(...l){return this.proxyOf.nodes||(this.nodes=[]),super.append(...l)}prepend(...l){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...l)}};r.exports=i,i.default=i,o.registerAtRule(i)}),Pe=_((e,r)=>{var o=ue(),i,l,a=class extends o{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,u,m){let s=super.normalize(c);if(u){if(m==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let n of s)n.raws.before=u.raws.before}return s}removeChild(c,u){let m=this.index(c);return!u&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(c)}toResult(c={}){return new i(new l,this,c).stringify()}};a.registerLazyResult=c=>{i=c},a.registerProcessor=c=>{l=c},r.exports=a,a.default=a,o.registerRoot(a)}),Zt=_((e,r)=>{var o={comma(i){return o.split(i,[","],!0)},space(i){let l=[" ",`
|
|
19
|
-
`," "];return o.split(i,l)},split(i,l,a){let c=[],u="",m=!1,s=0,n=!1,t="",f=!1;for(let h of i)f?f=!1:h==="\\"?f=!0:n?h===t&&(n=!1):h==='"'||h==="'"?(n=!0,t=h):h==="("?s+=1:h===")"?s>0&&(s-=1):s===0&&l.includes(h)&&(m=!0),m?(u!==""&&c.push(u.trim()),u="",m=!1):u+=h;return(a||u!=="")&&c.push(u.trim()),c}};r.exports=o,o.default=o}),wt=_((e,r)=>{var o=ue(),i=Zt(),l=class extends o{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(a){let c=this.selector?this.selector.match(/,\s*/):null,u=c?c[0]:","+this.raw("between","beforeOpen");this.selector=a.join(u)}};r.exports=l,l.default=l,o.registerRule(l)}),bt=_((e,r)=>{var o=Ze(),i=yt(),l=Ie(),a=gt(),c=Pe(),u=wt(),m={empty:!0,space:!0};function s(t){for(let f=t.length-1;f>=0;f--){let h=t[f],d=h[3]||h[2];if(d)return d}}var n=class{constructor(t){this.input=t,this.root=new c,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 f=new a;f.name=t[1].slice(1),f.name===""&&this.unnamedAtrule(f,t),this.init(f,t[2]);let h,d,p,w=!1,y=!1,v=[],g=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),h=t[0],h==="("||h==="["?g.push(h==="("?")":"]"):h==="{"&&g.length>0?g.push("}"):h===g[g.length-1]&&g.pop(),g.length===0)if(h===";"){f.source.end=this.getPosition(t[2]),f.source.end.offset++,this.semicolon=!0;break}else if(h==="{"){y=!0;break}else if(h==="}"){if(v.length>0){for(p=v.length-1,d=v[p];d&&d[0]==="space";)d=v[--p];d&&(f.source.end=this.getPosition(d[3]||d[2]),f.source.end.offset++)}this.end(t);break}else v.push(t);else v.push(t);if(this.tokenizer.endOfFile()){w=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(f.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(f,"params",v),w&&(t=v[v.length-1],f.source.end=this.getPosition(t[3]||t[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),y&&(f.nodes=[],this.current=f)}checkMissedSemicolon(t){let f=this.colon(t);if(f===!1)return;let h=0,d;for(let p=f-1;p>=0&&(d=t[p],!(d[0]!=="space"&&(h+=1,h===2)));p--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(t){let f=0,h,d,p;for(let[w,y]of t.entries()){if(h=y,d=h[0],d==="("&&(f+=1),d===")"&&(f-=1),f===0&&d===":")if(!p)this.doubleColon(h);else{if(p[0]==="word"&&p[1]==="progid")continue;return w}p=h}return!1}comment(t){let f=new l;this.init(f,t[2]),f.source.end=this.getPosition(t[3]||t[2]),f.source.end.offset++;let h=t[1].slice(2,-2);if(/^\s*$/.test(h))f.text="",f.raws.left=h,f.raws.right="";else{let d=h.match(/^(\s*)([^]*\S)(\s*)$/);f.text=d[2],f.raws.left=d[1],f.raws.right=d[3]}}createTokenizer(){this.tokenizer=i(this.input)}decl(t,f){let h=new o;this.init(h,t[0][2]);let d=t[t.length-1];for(d[0]===";"&&(this.semicolon=!0,t.pop()),h.source.end=this.getPosition(d[3]||d[2]||s(t)),h.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),h.raws.before+=t.shift()[1];for(h.source.start=this.getPosition(t[0][2]),h.prop="";t.length;){let v=t[0][0];if(v===":"||v==="space"||v==="comment")break;h.prop+=t.shift()[1]}h.raws.between="";let p;for(;t.length;)if(p=t.shift(),p[0]===":"){h.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),h.raws.between+=p[1];(h.prop[0]==="_"||h.prop[0]==="*")&&(h.raws.before+=h.prop[0],h.prop=h.prop.slice(1));let w=[],y;for(;t.length&&(y=t[0][0],!(y!=="space"&&y!=="comment"));)w.push(t.shift());this.precheckMissedSemicolon(t);for(let v=t.length-1;v>=0;v--){if(p=t[v],p[1].toLowerCase()==="!important"){h.important=!0;let g=this.stringFrom(t,v);g=this.spacesFromEnd(t)+g,g!==" !important"&&(h.raws.important=g);break}else if(p[1].toLowerCase()==="important"){let g=t.slice(0),O="";for(let b=v;b>0;b--){let x=g[b][0];if(O.trim().indexOf("!")===0&&x!=="space")break;O=g.pop()[1]+O}O.trim().indexOf("!")===0&&(h.important=!0,h.raws.important=O,t=g)}if(p[0]!=="space"&&p[0]!=="comment")break}t.some(v=>v[0]!=="space"&&v[0]!=="comment")&&(h.raws.between+=w.map(v=>v[1]).join(""),w=[]),this.raw(h,"value",w.concat(t),f),h.value.includes(":")&&!f&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let f=new u;this.init(f,t[2]),f.selector="",f.raws.between="",this.current=f}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 f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let f=this.input.fromOffset(t);return{column:f.col,line:f.line,offset:t}}init(t,f){this.current.push(t),t.source={input:this.input,start:this.getPosition(f)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let f=!1,h=null,d=!1,p=null,w=[],y=t[1].startsWith("--"),v=[],g=t;for(;g;){if(h=g[0],v.push(g),h==="("||h==="[")p||(p=g),w.push(h==="("?")":"]");else if(y&&d&&h==="{")p||(p=g),w.push("}");else if(w.length===0)if(h===";")if(d){this.decl(v,y);return}else break;else if(h==="{"){this.rule(v);return}else if(h==="}"){this.tokenizer.back(v.pop()),f=!0;break}else h===":"&&(d=!0);else h===w[w.length-1]&&(w.pop(),w.length===0&&(p=null));g=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),w.length>0&&this.unclosedBracket(p),f&&d){if(!y)for(;v.length&&(g=v[v.length-1][0],!(g!=="space"&&g!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,y)}else this.unknownWord(v)}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,f,h,d){let p,w,y=h.length,v="",g=!0,O,b;for(let x=0;x<y;x+=1)p=h[x],w=p[0],w==="space"&&x===y-1&&!d?g=!1:w==="comment"?(b=h[x-1]?h[x-1][0]:"empty",O=h[x+1]?h[x+1][0]:"empty",!m[b]&&!m[O]?v.slice(-1)===","?g=!1:v+=p[1]:g=!1):v+=p[1];if(!g){let x=h.reduce((k,T)=>k+T[1],"");t.raws[f]={raw:x,value:v}}t[f]=v}rule(t){t.pop();let f=new u;this.init(f,t[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(f,"selector",t),this.current=f}spacesAndCommentsFromEnd(t){let f,h="";for(;t.length&&(f=t[t.length-1][0],!(f!=="space"&&f!=="comment"));)h=t.pop()[1]+h;return h}spacesAndCommentsFromStart(t){let f,h="";for(;t.length&&(f=t[0][0],!(f!=="space"&&f!=="comment"));)h+=t.shift()[1];return h}spacesFromEnd(t){let f,h="";for(;t.length&&(f=t[t.length-1][0],f==="space");)h=t.pop()[1]+h;return h}stringFrom(t,f){let h="";for(let d=f;d<t.length;d++)h+=t[d][1];return t.splice(f,t.length-f),h}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",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}};r.exports=n}),an=_(()=>{}),un=_((e,r)=>{var o="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",i=(a,c=21)=>(u=c)=>{let m="",s=u;for(;s--;)m+=a[Math.random()*a.length|0];return m},l=(a=21)=>{let c="",u=a;for(;u--;)c+=o[Math.random()*64|0];return c};r.exports={nanoid:l,customAlphabet:i}}),Yt=_((e,r)=>{r.exports=class{}}),Me=_((e,r)=>{var{SourceMapConsumer:o,SourceMapGenerator:i}=an(),{fileURLToPath:l,pathToFileURL:a}={},{isAbsolute:c,resolve:u}={},{nanoid:m}=un(),s=Jt(),n=mt(),t=Yt(),f=Symbol("fromOffsetCache"),h=!!(o&&i),d=!!(u&&c),p=class{constructor(w,y={}){if(w===null||typeof w>"u"||typeof w=="object"&&!w.toString)throw new Error(`PostCSS received ${w} instead of CSS string`);if(this.css=w.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,y.from&&(!d||/^\w+:\/\//.test(y.from)||c(y.from)?this.file=y.from:this.file=u(y.from)),d&&h){let v=new t(this.css,y);if(v.text){this.map=v;let g=v.consumer().file;!this.file&&g&&(this.file=this.mapResolve(g))}}this.file||(this.id="<input css "+m(6)+">"),this.map&&(this.map.file=this.from)}error(w,y,v,g={}){let O,b,x;if(y&&typeof y=="object"){let T=y,E=v;if(typeof T.offset=="number"){let j=this.fromOffset(T.offset);y=j.line,v=j.col}else y=T.line,v=T.column;if(typeof E.offset=="number"){let j=this.fromOffset(E.offset);b=j.line,x=j.col}else b=E.line,x=E.column}else if(!v){let T=this.fromOffset(y);y=T.line,v=T.col}let k=this.origin(y,v,b,x);return k?O=new n(w,k.endLine===void 0?k.line:{column:k.column,line:k.line},k.endLine===void 0?k.column:{column:k.endColumn,line:k.endLine},k.source,k.file,g.plugin):O=new n(w,b===void 0?y:{column:v,line:y},b===void 0?v:{column:x,line:b},this.css,this.file,g.plugin),O.input={column:v,endColumn:x,endLine:b,line:y,source:this.css},this.file&&(a&&(O.input.url=a(this.file).toString()),O.input.file=this.file),O}fromOffset(w){let y,v;if(this[f])v=this[f];else{let O=this.css.split(`
|
|
20
|
-
`);v=new Array(O.length);let b=0;for(let x=0,k=O.length;x<k;x++)v[x]=b,b+=O[x].length+1;this[f]=v}y=v[v.length-1];let g=0;if(w>=y)g=v.length-1;else{let O=v.length-2,b;for(;g<O;)if(b=g+(O-g>>1),w<v[b])O=b-1;else if(w>=v[b+1])g=b+1;else{g=b;break}}return{col:w-v[g]+1,line:g+1}}mapResolve(w){return/^\w+:\/\//.test(w)?w:u(this.map.consumer().sourceRoot||this.map.root||".",w)}origin(w,y,v,g){if(!this.map)return!1;let O=this.map.consumer(),b=O.originalPositionFor({column:y,line:w});if(!b.source)return!1;let x;typeof v=="number"&&(x=O.originalPositionFor({column:g,line:v}));let k;c(b.source)?k=a(b.source):k=new URL(b.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let T={column:b.column,endColumn:x&&x.column,endLine:x&&x.line,line:b.line,url:k.toString()};if(k.protocol==="file:")if(l)T.file=l(k);else throw new Error("file: protocol is not available in this PostCSS build");let E=O.sourceContentFor(b.source);return E&&(T.source=E),T}toJSON(){let w={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(w[y]=this[y]);return this.map&&(w.map={...this.map},w.map.consumerCache&&(w.map.consumerCache=void 0)),w}get from(){return this.file||this.id}};r.exports=p,p.default=p,s&&s.registerInput&&s.registerInput(p)}),Ye=_((e,r)=>{var o=ue(),i=bt(),l=Me();function a(c,u){let m=new l(c,u),s=new i(m);try{s.parse()}catch(n){throw n}return s.root}r.exports=a,a.default=a,o.registerParse(a)}),ln=_((e,r)=>{var o=yt(),i=Me();r.exports={isInlineComment(l){if(l[0]==="word"&&l[1].slice(0,2)==="//"){let a=l,c=[],u,m;for(;l;){if(/\r?\n/.test(l[1])){if(/['"].*\r?\n/.test(l[1])){c.push(l[1].substring(0,l[1].indexOf(`
|
|
21
|
-
`))),m=l[1].substring(l[1].indexOf(`
|
|
22
|
-
`));let n=this.input.css.valueOf().substring(this.tokenizer.position());m+=n,u=l[3]+n.length-m.length}else this.tokenizer.back(l);break}c.push(l[1]),u=l[2],l=this.tokenizer.nextToken({ignoreUnclosed:!0})}let s=["comment",c.join(""),a[2],u];return this.inlineComment(s),m&&(this.input=new i(m),this.tokenizer=o(this.input)),!0}else if(l[1]==="/"){let a=this.tokenizer.nextToken({ignoreUnclosed:!0});if(a[0]==="comment"&&/^\/\*/.test(a[1]))return a[0]="word",a[1]=a[1].slice(1),l[1]="//",this.tokenizer.back(a),r.exports.isInlineComment.bind(this)(l)}return!1}}}),cn=_((e,r)=>{r.exports={interpolation(o){let i=[o,this.tokenizer.nextToken()],l=["word","}"];if(i[0][1].length>1||i[1][0]!=="{")return this.tokenizer.back(i[1]),!1;for(o=this.tokenizer.nextToken();o&&l.includes(o[0]);)i.push(o),o=this.tokenizer.nextToken();let a=i.map(s=>s[1]),[c]=i,u=i.pop(),m=["word",a.join(""),c[2],u[2]];return this.tokenizer.back(o),this.tokenizer.back(m),!0}}}),pn=_((e,r)=>{var o=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,i=/\.[0-9]/,l=a=>{let[,c]=a,[u]=c;return(u==="."||u==="#")&&o.test(c)===!1&&i.test(c)===!1};r.exports={isMixinToken:l}}),hn=_((e,r)=>{var o=yt(),i=/^url\((.+)\)/;r.exports=l=>{let{name:a,params:c=""}=l;if(a==="import"&&c.length){l.import=!0;let u=o({css:c});for(l.filename=c.replace(i,"$1");!u.endOfFile();){let[m,s]=u.nextToken();if(m==="word"&&s==="url")return;if(m==="brackets"){l.options=s,l.filename=c.replace(s,"").trim();break}}}}}),fn=_((e,r)=>{var o=/:$/,i=/^:(\s+)?/;r.exports=l=>{let{name:a,params:c=""}=l;if(l.name.slice(-1)===":"){if(o.test(a)){let[u]=a.match(o);l.name=a.replace(u,""),l.raws.afterName=u+(l.raws.afterName||""),l.variable=!0,l.value=l.params}if(i.test(c)){let[u]=c.match(i);l.value=c.replace(u,""),l.raws.afterName=(l.raws.afterName||"")+u,l.variable=!0}}}}),dn=_((e,r)=>{var o=Ie(),i=bt(),{isInlineComment:l}=ln(),{interpolation:a}=cn(),{isMixinToken:c}=pn(),u=hn(),m=fn(),s=/(!\s*important)$/i;r.exports=class extends i{constructor(...n){super(...n),this.lastNode=null}atrule(n){a.bind(this)(n)||(super.atrule(n),u(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(p=>p[0]==="("),f=n.reverse().find(p=>p[0]===")"),h=n.reverse().indexOf(f),d=n.splice(t,h).map(p=>p[1]).join("");for(let p of n.reverse())this.tokenizer.back(p);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=d}init(n,t,f){super.init(n,t,f),this.lastNode=n}inlineComment(n){let t=new o,f=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(f))t.text="",t.raws.left=f,t.raws.right="";else{let h=f.match(/^(\s*)([^]*[^\s])(\s*)$/);[,t.raws.left,t.text,t.raws.right]=h}}mixin(n){let[t]=n,f=t[1].slice(0,1),h=n.findIndex(v=>v[0]==="brackets"),d=n.findIndex(v=>v[0]==="("),p="";if((h<0||h>3)&&d>0){let v=n.reduce(($,L,R)=>L[0]===")"?R:$),g=n.slice(d,v+d).map($=>$[1]).join(""),[O]=n.slice(d),b=[O[2],O[3]],[x]=n.slice(v,v+1),k=[x[2],x[3]],T=["brackets",g].concat(b,k),E=n.slice(0,d),j=n.slice(v+1);n=E,n.push(T),n=n.concat(j)}let w=[];for(let v of n)if((v[1]==="!"||w.length)&&w.push(v),v[1]==="important")break;if(w.length){let[v]=w,g=n.indexOf(v),O=w[w.length-1],b=[v[2],v[3]],x=[O[4],O[5]],k=["word",w.map(T=>T[1]).join("")].concat(b,x);n.splice(g,w.length,k)}let y=n.findIndex(v=>s.test(v[1]));y>0&&([,p]=n[y],n.splice(y,1));for(let v of n.reverse())this.tokenizer.back(v);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=f,p&&(this.lastNode.important=!0,this.lastNode.raws.important=p)}other(n){l.bind(this)(n)||super.other(n)}rule(n){let t=n[n.length-1],f=n[n.length-2];if(f[0]==="at-word"&&t[0]==="{"&&(this.tokenizer.back(t),a.bind(this)(f))){let h=this.tokenizer.nextToken();n=n.slice(0,n.length-2).concat([h]);for(let d of n.reverse())this.tokenizer.back(d);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(c(t)){this.mixin(n);return}super.unknownWord(n)}}}),mn=_((e,r)=>{var o=vt();r.exports=class extends o{atrule(i,l){if(!i.mixin&&!i.variable&&!i.function){super.atrule(i,l);return}let a=`${i.function?"":i.raws.identifier||"@"}${i.name}`,c=i.params?this.rawValue(i,"params"):"",u=i.raws.important||"";if(i.variable&&(c=i.value),typeof i.raws.afterName<"u"?a+=i.raws.afterName:c&&(a+=" "),i.nodes)this.block(i,a+c+u);else{let m=(i.raws.between||"")+u+(l?";":"");this.builder(a+c+m,i)}}comment(i){if(i.inline){let l=this.raw(i,"left","commentLeft"),a=this.raw(i,"right","commentRight");this.builder(`//${l}${i.text}${a}`,i)}else super.comment(i)}}}),vn=_((e,r)=>{var o=Me(),i=dn(),l=mn();r.exports={parse(a,c){let u=new o(a,c),m=new i(u);return m.parse(),m.root.walk(s=>{let n=u.css.lastIndexOf(s.source.input.css);if(n===0)return;if(n+s.source.input.css.length!==u.css.length)throw new Error("Invalid state detected in postcss-less");let t=n+s.source.start.offset,f=u.fromOffset(n+s.source.start.offset);if(s.source.start={offset:t,line:f.line,column:f.col},s.source.end){let h=n+s.source.end.offset,d=u.fromOffset(n+s.source.end.offset);s.source.end={offset:h,line:d.line,column:d.col}}}),m.root},stringify(a,c){new l(c).stringify(a)},nodeToString(a){let c="";return r.exports.stringify(a,u=>{c+=u}),c}}}),Xt=_((e,r)=>{r.exports=class{generate(){}}}),xt=_((e,r)=>{var o=ue(),i,l,a=class extends o{constructor(c){super({type:"document",...c}),this.nodes||(this.nodes=[])}toResult(c={}){return new i(new l,this,c).stringify()}};a.registerLazyResult=c=>{i=c},a.registerProcessor=c=>{l=c},r.exports=a,a.default=a}),er=_((e,r)=>{var o={};r.exports=function(i){o[i]||(o[i]=!0,typeof console<"u"&&console.warn&&console.warn(i))}}),tr=_((e,r)=>{var o=class{constructor(i,l={}){if(this.type="warning",this.text=i,l.node&&l.node.source){let a=l.node.rangeBy(l);this.line=a.start.line,this.column=a.start.column,this.endLine=a.end.line,this.endColumn=a.end.column}for(let a in l)this[a]=l[a]}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}};r.exports=o,o.default=o}),kt=_((e,r)=>{var o=tr(),i=class{constructor(l,a,c){this.processor=l,this.messages=[],this.root=a,this.opts=c,this.css=void 0,this.map=void 0}toString(){return this.css}warn(l,a={}){a.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(a.plugin=this.lastPlugin.postcssPlugin);let c=new o(l,a);return this.messages.push(c),c}warnings(){return this.messages.filter(l=>l.type==="warning")}get content(){return this.css}};r.exports=i,i.default=i}),rr=_((e,r)=>{var{isClean:o,my:i}=dt(),l=Xt(),a=Qe(),c=ue(),u=xt();er();var m=kt(),s=Ye(),n=Pe(),t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},h={Once:!0,postcssPlugin:!0,prepare:!0},d=0;function p(b){return typeof b=="object"&&typeof b.then=="function"}function w(b){let x=!1,k=t[b.type];return b.type==="decl"?x=b.prop.toLowerCase():b.type==="atrule"&&(x=b.name.toLowerCase()),x&&b.append?[k,k+"-"+x,d,k+"Exit",k+"Exit-"+x]:x?[k,k+"-"+x,k+"Exit",k+"Exit-"+x]:b.append?[k,d,k+"Exit"]:[k,k+"Exit"]}function y(b){let x;return b.type==="document"?x=["Document",d,"DocumentExit"]:b.type==="root"?x=["Root",d,"RootExit"]:x=w(b),{eventIndex:0,events:x,iterator:0,node:b,visitorIndex:0,visitors:[]}}function v(b){return b[o]=!1,b.nodes&&b.nodes.forEach(x=>v(x)),b}var g={},O=class nr{constructor(x,k,T){this.stringified=!1,this.processed=!1;let E;if(typeof k=="object"&&k!==null&&(k.type==="root"||k.type==="document"))E=v(k);else if(k instanceof nr||k instanceof m)E=v(k.root),k.map&&(typeof T.map>"u"&&(T.map={}),T.map.inline||(T.map.inline=!1),T.map.prev=k.map);else{let j=s;T.syntax&&(j=T.syntax.parse),T.parser&&(j=T.parser),j.parse&&(j=j.parse);try{E=j(k,T)}catch($){this.processed=!0,this.error=$}E&&!E[i]&&c.rebuild(E)}this.result=new m(x,E,T),this.helpers={...g,postcss:g,result:this.result},this.plugins=this.processor.plugins.map(j=>typeof j=="object"&&j.prepare?{...j,...j.prepare(this.result)}:j)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(x){return this.async().catch(x)}finally(x){return this.async().then(x,x)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(x,k){let T=this.result.lastPlugin;try{k&&k.addToError(x),this.error=x,x.name==="CssSyntaxError"&&!x.plugin?(x.plugin=T.postcssPlugin,x.setMessage()):T.postcssVersion}catch(E){console&&console.error&&console.error(E)}return x}prepareVisitors(){this.listeners={};let x=(k,T,E)=>{this.listeners[T]||(this.listeners[T]=[]),this.listeners[T].push([k,E])};for(let k of this.plugins)if(typeof k=="object")for(let T in k){if(!f[T]&&/^[A-Z]/.test(T))throw new Error(`Unknown event ${T} in ${k.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[T])if(typeof k[T]=="object")for(let E in k[T])E==="*"?x(k,T,k[T][E]):x(k,T+"-"+E.toLowerCase(),k[T][E]);else typeof k[T]=="function"&&x(k,T,k[T])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let x=0;x<this.plugins.length;x++){let k=this.plugins[x],T=this.runOnRoot(k);if(p(T))try{await T}catch(E){throw this.handleError(E)}}if(this.prepareVisitors(),this.hasListener){let x=this.result.root;for(;!x[o];){x[o]=!0;let k=[y(x)];for(;k.length>0;){let T=this.visitTick(k);if(p(T))try{await T}catch(E){let j=k[k.length-1].node;throw this.handleError(E,j)}}}if(this.listeners.OnceExit)for(let[k,T]of this.listeners.OnceExit){this.result.lastPlugin=k;try{if(x.type==="document"){let E=x.nodes.map(j=>T(j,this.helpers));await Promise.all(E)}else await T(x,this.helpers)}catch(E){throw this.handleError(E)}}}return this.processed=!0,this.stringify()}runOnRoot(x){this.result.lastPlugin=x;try{if(typeof x=="object"&&x.Once){if(this.result.root.type==="document"){let k=this.result.root.nodes.map(T=>x.Once(T,this.helpers));return p(k[0])?Promise.all(k):k}return x.Once(this.result.root,this.helpers)}else if(typeof x=="function")return x(this.result.root,this.result)}catch(k){throw this.handleError(k)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let x=this.result.opts,k=a;x.syntax&&(k=x.syntax.stringify),x.stringifier&&(k=x.stringifier),k.stringify&&(k=k.stringify);let T=new l(k,this.result.root,this.result.opts).generate();return this.result.css=T[0],this.result.map=T[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 x of this.plugins){let k=this.runOnRoot(x);if(p(k))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let x=this.result.root;for(;!x[o];)x[o]=!0,this.walkSync(x);if(this.listeners.OnceExit)if(x.type==="document")for(let k of x.nodes)this.visitSync(this.listeners.OnceExit,k);else this.visitSync(this.listeners.OnceExit,x)}return this.result}then(x,k){return this.async().then(x,k)}toString(){return this.css}visitSync(x,k){for(let[T,E]of x){this.result.lastPlugin=T;let j;try{j=E(k,this.helpers)}catch($){throw this.handleError($,k.proxyOf)}if(k.type!=="root"&&k.type!=="document"&&!k.parent)return!0;if(p(j))throw this.getAsyncError()}}visitTick(x){let k=x[x.length-1],{node:T,visitors:E}=k;if(T.type!=="root"&&T.type!=="document"&&!T.parent){x.pop();return}if(E.length>0&&k.visitorIndex<E.length){let[$,L]=E[k.visitorIndex];k.visitorIndex+=1,k.visitorIndex===E.length&&(k.visitors=[],k.visitorIndex=0),this.result.lastPlugin=$;try{return L(T.toProxy(),this.helpers)}catch(R){throw this.handleError(R,T)}}if(k.iterator!==0){let $=k.iterator,L;for(;L=T.nodes[T.indexes[$]];)if(T.indexes[$]+=1,!L[o]){L[o]=!0,x.push(y(L));return}k.iterator=0,delete T.indexes[$]}let j=k.events;for(;k.eventIndex<j.length;){let $=j[k.eventIndex];if(k.eventIndex+=1,$===d){T.nodes&&T.nodes.length&&(T[o]=!0,k.iterator=T.getIterator());return}else if(this.listeners[$]){k.visitors=this.listeners[$];return}}x.pop()}walkSync(x){x[o]=!0;let k=w(x);for(let T of k)if(T===d)x.nodes&&x.each(E=>{E[o]||this.walkSync(E)});else{let E=this.listeners[T];if(E&&this.visitSync(E,x.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};O.registerPostcss=b=>{g=b},r.exports=O,O.default=O,n.registerLazyResult(O),u.registerLazyResult(O)}),yn=_((e,r)=>{var o=Xt(),i=Qe();er();var l=Ye(),a=kt(),c=class{constructor(u,m,s){m=m.toString(),this.stringified=!1,this._processor=u,this._css=m,this._opts=s,this._map=void 0;let n,t=i;this.result=new a(this._processor,n,this._opts),this.result.css=m;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new o(t,n,this._opts,m);if(h.isMap()){let[d,p]=h.generate();d&&(this.result.css=d),p&&(this.result.map=p)}else h.clearAnnotation(),this.result.css=h.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,m){return this.async().then(u,m)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,m=l;try{u=m(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}};r.exports=c,c.default=c}),gn=_((e,r)=>{var o=yn(),i=rr(),l=xt(),a=Pe(),c=class{constructor(u=[]){this.version="8.4.39",this.plugins=this.normalize(u)}normalize(u){let m=[];for(let s of u)if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),typeof s=="object"&&Array.isArray(s.plugins))m=m.concat(s.plugins);else if(typeof s=="object"&&s.postcssPlugin)m.push(s);else if(typeof s=="function")m.push(s);else if(!(typeof s=="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin");return m}process(u,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new o(this,u,m):new i(this,u,m)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}};r.exports=c,c.default=c,a.registerProcessor(c),l.registerProcessor(c)}),wn=_((e,r)=>{var o=Ze(),i=Yt(),l=Ie(),a=gt(),c=Me(),u=Pe(),m=wt();function s(n,t){if(Array.isArray(n))return n.map(d=>s(d));let{inputs:f,...h}=n;if(f){t=[];for(let d of f){let p={...d,__proto__:c.prototype};p.map&&(p.map={...p.map,__proto__:i.prototype}),t.push(p)}}if(h.nodes&&(h.nodes=n.nodes.map(d=>s(d,t))),h.source){let{inputId:d,...p}=h.source;h.source=p,d!=null&&(h.source.input=t[d])}if(h.type==="root")return new u(h);if(h.type==="decl")return new o(h);if(h.type==="rule")return new m(h);if(h.type==="comment")return new l(h);if(h.type==="atrule")return new a(h);throw new Error("Unknown node type: "+n.type)}r.exports=s,s.default=s}),Ot=_((e,r)=>{var o=mt(),i=Ze(),l=rr(),a=ue(),c=gn(),u=Qe(),m=wn(),s=xt(),n=tr(),t=Ie(),f=gt(),h=kt(),d=Me(),p=Ye(),w=Zt(),y=wt(),v=Pe(),g=Ke();function O(...b){return b.length===1&&Array.isArray(b[0])&&(b=b[0]),new c(b)}O.plugin=function(b,x){let k=!1;function T(...j){console&&console.warn&&!k&&(k=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
|
|
23
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let $=x(...j);return $.postcssPlugin=b,$.postcssVersion=new c().version,$}let E;return Object.defineProperty(T,"postcss",{get(){return E||(E=T()),E}}),T.process=function(j,$,L){return O([T(L)]).process(j,$)},T},O.stringify=u,O.parse=p,O.fromJSON=m,O.list=w,O.comment=b=>new t(b),O.atRule=b=>new f(b),O.decl=b=>new i(b),O.rule=b=>new y(b),O.root=b=>new v(b),O.document=b=>new s(b),O.CssSyntaxError=o,O.Declaration=i,O.Container=a,O.Processor=c,O.Document=s,O.Comment=t,O.Warning=n,O.AtRule=f,O.Result=h,O.Input=d,O.Rule=y,O.Root=v,O.Node=g,l.registerPostcss(O),r.exports=O,O.default=O}),bn=_((e,r)=>{var{Container:o}=Ot(),i=class extends o{constructor(l){super(l),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};r.exports=i}),xn=_((e,r)=>{var o=/[\t\n\f\r "#'()/;[\\\]{}]/g,i=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,l=/.[\r\n"'(/\\]/,a=/[\da-f]/i,c=/[\n\f\r]/g;r.exports=function(u,m={}){let s=u.css.valueOf(),n=m.ignoreErrors,t,f,h,d,p,w,y,v,g,O=s.length,b=0,x=[],k=[],T;function E(){return b}function j(P){throw u.error("Unclosed "+P,b)}function $(){return k.length===0&&b>=O}function L(){let P=1,I=!1,U=!1;for(;P>0;)f+=1,s.length<=f&&j("interpolation"),t=s.charCodeAt(f),v=s.charCodeAt(f+1),I?!U&&t===I?(I=!1,U=!1):t===92?U=!U:U&&(U=!1):t===39||t===34?I=t:t===125?P-=1:t===35&&v===123&&(P+=1)}function R(P){if(k.length)return k.pop();if(b>=O)return;let I=P?P.ignoreUnclosed:!1;switch(t=s.charCodeAt(b),t){case 10:case 32:case 9:case 13:case 12:{f=b;do f+=1,t=s.charCodeAt(f);while(t===32||t===10||t===9||t===13||t===12);g=["space",s.slice(b,f)],b=f-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let U=String.fromCharCode(t);g=[U,U,b];break}case 44:{g=["word",",",b,b+1];break}case 40:{if(y=x.length?x.pop()[1]:"",v=s.charCodeAt(b+1),y==="url"&&v!==39&&v!==34){for(T=1,w=!1,f=b+1;f<=s.length-1;){if(v=s.charCodeAt(f),v===92)w=!w;else if(v===40)T+=1;else if(v===41&&(T-=1,T===0))break;f+=1}d=s.slice(b,f+1),g=["brackets",d,b,f],b=f}else f=s.indexOf(")",b+1),d=s.slice(b,f+1),f===-1||l.test(d)?g=["(","(",b]:(g=["brackets",d,b,f],b=f);break}case 39:case 34:{for(h=t,f=b,w=!1;f<O&&(f++,f===O&&j("string"),t=s.charCodeAt(f),v=s.charCodeAt(f+1),!(!w&&t===h));)t===92?w=!w:w?w=!1:t===35&&v===123&&L();g=["string",s.slice(b,f+1),b,f],b=f;break}case 64:{o.lastIndex=b+1,o.test(s),o.lastIndex===0?f=s.length-1:f=o.lastIndex-2,g=["at-word",s.slice(b,f+1),b,f],b=f;break}case 92:{for(f=b,p=!0;s.charCodeAt(f+1)===92;)f+=1,p=!p;if(t=s.charCodeAt(f+1),p&&t!==47&&t!==32&&t!==10&&t!==9&&t!==13&&t!==12&&(f+=1,a.test(s.charAt(f)))){for(;a.test(s.charAt(f+1));)f+=1;s.charCodeAt(f+1)===32&&(f+=1)}g=["word",s.slice(b,f+1),b,f],b=f;break}default:v=s.charCodeAt(b+1),t===35&&v===123?(f=b,L(),d=s.slice(b,f+1),g=["word",d,b,f],b=f):t===47&&v===42?(f=s.indexOf("*/",b+2)+1,f===0&&(n||I?f=s.length:j("comment")),g=["comment",s.slice(b,f+1),b,f],b=f):t===47&&v===47?(c.lastIndex=b+1,c.test(s),c.lastIndex===0?f=s.length-1:f=c.lastIndex-2,d=s.slice(b,f+1),g=["comment",d,b,f,"inline"],b=f):(i.lastIndex=b+1,i.test(s),i.lastIndex===0?f=s.length-1:f=i.lastIndex-2,g=["word",s.slice(b,f+1),b,f],x.push(g),b=f);break}return b++,g}function M(P){k.push(P)}return{back:M,endOfFile:$,nextToken:R,position:E}}}),kn=_((e,r)=>{var{Comment:o}=Ot(),i=bt(),l=bn(),a=xn(),c=class extends i{atrule(u){let m=u[1],s=u;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===s[3]+1)m+=n[1],s=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",m,u[2],s[3]])}comment(u){if(u[4]==="inline"){let m=new o;this.init(m,u[2]),m.raws.inline=!0;let s=this.input.fromOffset(u[3]);m.source.end={column:s.col,line:s.line,offset:u[3]+1};let n=u[1].slice(2);if(/^\s*$/.test(n))m.text="",m.raws.left=n,m.raws.right="";else{let t=n.match(/^(\s*)([^]*\S)(\s*)$/),f=t[2].replace(/(\*\/|\/\*)/g,"*//*");m.text=f,m.raws.left=t[1],m.raws.right=t[3],m.raws.text=t[2]}}else super.comment(u)}createTokenizer(){this.tokenizer=a(this.input)}raw(u,m,s,n){if(super.raw(u,m,s,n),u.raws[m]){let t=u.raws[m].raw;u.raws[m].raw=s.reduce((f,h)=>{if(h[0]==="comment"&&h[4]==="inline"){let d=h[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return f+"/*"+d+"*/"}else return f+h[1]},""),t!==u.raws[m].raw&&(u.raws[m].scss=t)}}rule(u){let m=!1,s=0,n="";for(let t of u)if(m)t[0]!=="comment"&&t[0]!=="{"&&(n+=t[1]);else{if(t[0]==="space"&&t[1].includes(`
|
|
24
|
-
`))break;t[0]==="("?s+=1:t[0]===")"?s-=1:s===0&&t[0]===":"&&(m=!0)}if(!m||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(u);else{u.pop();let t=new l;this.init(t,u[0][2]);let f;for(let d=u.length-1;d>=0;d--)if(u[d][0]!=="space"){f=u[d];break}if(f[3]){let d=this.input.fromOffset(f[3]);t.source.end={column:d.col,line:d.line,offset:f[3]+1}}else{let d=this.input.fromOffset(f[2]);t.source.end={column:d.col,line:d.line,offset:f[2]+1}}for(;u[0][0]!=="word";)t.raws.before+=u.shift()[1];if(u[0][2]){let d=this.input.fromOffset(u[0][2]);t.source.start={column:d.col,line:d.line,offset:u[0][2]}}for(t.prop="";u.length;){let d=u[0][0];if(d===":"||d==="space"||d==="comment")break;t.prop+=u.shift()[1]}t.raws.between="";let h;for(;u.length;)if(h=u.shift(),h[0]===":"){t.raws.between+=h[1];break}else t.raws.between+=h[1];(t.prop[0]==="_"||t.prop[0]==="*")&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(u),this.precheckMissedSemicolon(u);for(let d=u.length-1;d>0;d--){if(h=u[d],h[1]==="!important"){t.important=!0;let p=this.stringFrom(u,d);p=this.spacesFromEnd(u)+p,p!==" !important"&&(t.raws.important=p);break}else if(h[1]==="important"){let p=u.slice(0),w="";for(let y=d;y>0;y--){let v=p[y][0];if(w.trim().indexOf("!")===0&&v!=="space")break;w=p.pop()[1]+w}w.trim().indexOf("!")===0&&(t.important=!0,t.raws.important=w,u=p)}if(h[0]!=="space"&&h[0]!=="comment")break}this.raw(t,"value",u),t.value.includes(":")&&this.checkMissedSemicolon(u),this.current=t}}};r.exports=c}),On=_((e,r)=>{var{Input:o}=Ot(),i=kn();r.exports=function(l,a){let c=new o(l,a),u=new i(c);return u.parse(),u.root}}),sr=_(e=>{Object.defineProperty(e,"__esModule",{value:!0});function r(o){this.after=o.after,this.before=o.before,this.type=o.type,this.value=o.value,this.sourceIndex=o.sourceIndex}e.default=r}),or=_(e=>{Object.defineProperty(e,"__esModule",{value:!0});var r=sr(),o=i(r);function i(a){return a&&a.__esModule?a:{default:a}}function l(a){var c=this;this.constructor(a),this.nodes=a.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(u){u.parent=c})}l.prototype=Object.create(o.default.prototype),l.constructor=o.default,l.prototype.walk=function(a,c){for(var u=typeof a=="string"||a instanceof RegExp,m=u?c:a,s=typeof a=="string"?new RegExp(a):a,n=0;n<this.nodes.length;n++){var t=this.nodes[n],f=u?s.test(t.type):!0;if(f&&m&&m(t,n,this.nodes)===!1||t.nodes&&t.walk(a,c)===!1)return!1}return!0},l.prototype.each=function(){for(var a=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],c=0;c<this.nodes.length;c++){var u=this.nodes[c];if(a(u,c,this.nodes)===!1)return!1}return!0},e.default=l}),Tn=_(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseMediaFeature=c,e.parseMediaQuery=u,e.parseMediaList=m;var r=sr(),o=a(r),i=or(),l=a(i);function a(s){return s&&s.__esModule?s:{default:s}}function c(s){var n=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[{mode:"normal",character:null}],f=[],h=0,d="",p=null,w=null,y=n,v=s;s[0]==="("&&s[s.length-1]===")"&&(v=s.substring(1,s.length-1),y++);for(var g=0;g<v.length;g++){var O=v[g];if((O==="'"||O==='"')&&(t[h].isCalculationEnabled===!0?(t.push({mode:"string",isCalculationEnabled:!1,character:O}),h++):t[h].mode==="string"&&t[h].character===O&&v[g-1]!=="\\"&&(t.pop(),h--)),O==="{"?(t.push({mode:"interpolation",isCalculationEnabled:!0}),h++):O==="}"&&(t.pop(),h--),t[h].mode==="normal"&&O===":"){var b=v.substring(g+1);w={type:"value",before:/^(\s*)/.exec(b)[1],after:/(\s*)$/.exec(b)[1],value:b.trim()},w.sourceIndex=w.before.length+g+1+y,p={type:"colon",sourceIndex:g+y,after:w.before,value:":"};break}d+=O}return d={type:"media-feature",before:/^(\s*)/.exec(d)[1],after:/(\s*)$/.exec(d)[1],value:d.trim()},d.sourceIndex=d.before.length+y,f.push(d),p!==null&&(p.before=d.after,f.push(p)),w!==null&&f.push(w),f}function u(s){var n=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[],f=0,h=!1,d=void 0;function p(){return{before:"",after:"",value:""}}d=p();for(var w=0;w<s.length;w++){var y=s[w];h?(d.value+=y,(y==="{"||y==="(")&&f++,(y===")"||y==="}")&&f--):y.search(/\s/)!==-1?d.before+=y:(y==="("&&(d.type="media-feature-expression",f++),d.value=y,d.sourceIndex=n+w,h=!0),h&&f===0&&(y===")"||w===s.length-1||s[w+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(d.value)!==-1&&(d.type="keyword"),d.type==="media-feature-expression"&&(d.nodes=c(d.value,d.sourceIndex)),t.push(Array.isArray(d.nodes)?new l.default(d):new o.default(d)),d=p(),h=!1)}for(var v=0;v<t.length;v++)if(d=t[v],v>0&&(t[v-1].after=d.before),d.type===void 0){if(v>0){if(t[v-1].type==="media-feature-expression"){d.type="keyword";continue}if(t[v-1].value==="not"||t[v-1].value==="only"){d.type="media-type";continue}if(t[v-1].value==="and"){d.type="media-feature-expression";continue}t[v-1].type==="media-type"&&(t[v+1]?d.type=t[v+1].type==="media-feature-expression"?"keyword":"media-feature-expression":d.type="media-feature-expression")}if(v===0){if(!t[v+1]){d.type="media-type";continue}if(t[v+1]&&(t[v+1].type==="media-feature-expression"||t[v+1].type==="keyword")){d.type="media-type";continue}if(t[v+2]){if(t[v+2].type==="media-feature-expression"){d.type="media-type",t[v+1].type="keyword";continue}if(t[v+2].type==="keyword"){d.type="keyword",t[v+1].type="media-type";continue}}if(t[v+3]&&t[v+3].type==="media-feature-expression"){d.type="keyword",t[v+1].type="media-type",t[v+2].type="keyword";continue}}}return t}function m(s){var n=[],t=0,f=0,h=/^(\s*)url\s*\(/.exec(s);if(h!==null){for(var d=h[0].length,p=1;p>0;){var w=s[d];w==="("&&p++,w===")"&&p--,d++}n.unshift(new o.default({type:"url",value:s.substring(0,d).trim(),sourceIndex:h[1].length,before:h[1],after:/^(\s*)/.exec(s.substring(d))[1]})),t=d}for(var y=t;y<s.length;y++){var v=s[y];if(v==="("&&f++,v===")"&&f--,f===0&&v===","){var g=s.substring(t,y),O=/^(\s*)/.exec(g)[1];n.push(new l.default({type:"media-query",value:g.trim(),sourceIndex:t+O.length,nodes:u(g,t),before:O,after:/(\s*)$/.exec(g)[1]})),t=y+1}}var b=s.substring(t),x=/^(\s*)/.exec(b)[1];return n.push(new l.default({type:"media-query",value:b.trim(),sourceIndex:t+x.length,nodes:u(b,t),before:x,after:/(\s*)$/.exec(b)[1]})),n}}),Sn=_(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=or(),o=l(r),i=Tn();function l(c){return c&&c.__esModule?c:{default:c}}function a(c){return new o.default({nodes:(0,i.parseMediaList)(c),type:"media-query-list",value:c.trim()})}}),ir=_((e,r)=>{r.exports=function(o,i){if(i=typeof i=="number"?i:1/0,!i)return Array.isArray(o)?o.map(function(a){return a}):o;return l(o,1);function l(a,c){return a.reduce(function(u,m){return Array.isArray(m)&&c<i?u.concat(l(m,c+1)):u.concat(m)},[])}}}),ar=_((e,r)=>{r.exports=function(o,i){for(var l=-1,a=[];(l=o.indexOf(i,l+1))!==-1;)a.push(l);return a}}),ur=_((e,r)=>{function o(a,c){for(var u=1,m=a.length,s=a[0],n=a[0],t=1;t<m;++t)if(n=s,s=a[t],c(s,n)){if(t===u){u++;continue}a[u++]=s}return a.length=u,a}function i(a){for(var c=1,u=a.length,m=a[0],s=a[0],n=1;n<u;++n,s=m)if(s=m,m=a[n],m!==s){if(n===c){c++;continue}a[c++]=m}return a.length=c,a}function l(a,c,u){return a.length===0?a:c?(u||a.sort(c),o(a,c)):(u||a.sort(),i(a))}r.exports=l}),be=_((e,r)=>{e.__esModule=!0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};function i(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}var l=function c(u,m){if((typeof u>"u"?"undefined":o(u))!=="object")return u;var s=new u.constructor;for(var n in u)if(u.hasOwnProperty(n)){var t=u[n],f=typeof t>"u"?"undefined":o(t);n==="parent"&&f==="object"?m&&(s[n]=m):t instanceof Array?s[n]=t.map(function(h){return c(h,s)}):s[n]=c(t,s)}return s},a=function(){function c(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,c);for(var m in u)this[m]=u[m];var s=u.spaces;s=s===void 0?{}:s;var n=s.before,t=n===void 0?"":n,f=s.after,h=f===void 0?"":f;this.spaces={before:t,after:h}}return c.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},c.prototype.replaceWith=function(){if(this.parent){for(var u in arguments)this.parent.insertBefore(this,arguments[u]);this.remove()}return this},c.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},c.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},c.prototype.clone=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=l(this);for(var s in u)m[s]=u[s];return m},c.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},c}();e.default=a,r.exports=e.default}),V=_(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"}),Tt=_((e,r)=>{e.__esModule=!0;var o=function(){function h(d,p){for(var w=0;w<p.length;w++){var y=p[w];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(d,y.key,y)}}return function(d,p,w){return p&&h(d.prototype,p),w&&h(d,w),d}}(),i=be(),l=m(i),a=V(),c=u(a);function u(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(d[p]=h[p]);return d.default=h,d}function m(h){return h&&h.__esModule?h:{default:h}}function s(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function n(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function t(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var f=function(h){t(d,h);function d(p){s(this,d);var w=n(this,h.call(this,p));return w.nodes||(w.nodes=[]),w}return d.prototype.append=function(p){return p.parent=this,this.nodes.push(p),this},d.prototype.prepend=function(p){return p.parent=this,this.nodes.unshift(p),this},d.prototype.at=function(p){return this.nodes[p]},d.prototype.index=function(p){return typeof p=="number"?p:this.nodes.indexOf(p)},d.prototype.removeChild=function(p){p=this.index(p),this.at(p).parent=void 0,this.nodes.splice(p,1);var w=void 0;for(var y in this.indexes)w=this.indexes[y],w>=p&&(this.indexes[y]=w-1);return this},d.prototype.removeAll=function(){for(var y=this.nodes,p=Array.isArray(y),w=0,y=p?y:y[Symbol.iterator]();;){var v;if(p){if(w>=y.length)break;v=y[w++]}else{if(w=y.next(),w.done)break;v=w.value}var g=v;g.parent=void 0}return this.nodes=[],this},d.prototype.empty=function(){return this.removeAll()},d.prototype.insertAfter=function(p,w){var y=this.index(p);this.nodes.splice(y+1,0,w);var v=void 0;for(var g in this.indexes)v=this.indexes[g],y<=v&&(this.indexes[g]=v+this.nodes.length);return this},d.prototype.insertBefore=function(p,w){var y=this.index(p);this.nodes.splice(y,0,w);var v=void 0;for(var g in this.indexes)v=this.indexes[g],y<=v&&(this.indexes[g]=v+this.nodes.length);return this},d.prototype.each=function(p){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var w=this.lastEach;if(this.indexes[w]=0,!!this.length){for(var y=void 0,v=void 0;this.indexes[w]<this.length&&(y=this.indexes[w],v=p(this.at(y),y),v!==!1);)this.indexes[w]+=1;if(delete this.indexes[w],v===!1)return!1}},d.prototype.walk=function(p){return this.each(function(w,y){var v=p(w,y);if(v!==!1&&w.length&&(v=w.walk(p)),v===!1)return!1})},d.prototype.walkAttributes=function(p){var w=this;return this.walk(function(y){if(y.type===c.ATTRIBUTE)return p.call(w,y)})},d.prototype.walkClasses=function(p){var w=this;return this.walk(function(y){if(y.type===c.CLASS)return p.call(w,y)})},d.prototype.walkCombinators=function(p){var w=this;return this.walk(function(y){if(y.type===c.COMBINATOR)return p.call(w,y)})},d.prototype.walkComments=function(p){var w=this;return this.walk(function(y){if(y.type===c.COMMENT)return p.call(w,y)})},d.prototype.walkIds=function(p){var w=this;return this.walk(function(y){if(y.type===c.ID)return p.call(w,y)})},d.prototype.walkNesting=function(p){var w=this;return this.walk(function(y){if(y.type===c.NESTING)return p.call(w,y)})},d.prototype.walkPseudos=function(p){var w=this;return this.walk(function(y){if(y.type===c.PSEUDO)return p.call(w,y)})},d.prototype.walkTags=function(p){var w=this;return this.walk(function(y){if(y.type===c.TAG)return p.call(w,y)})},d.prototype.walkUniversals=function(p){var w=this;return this.walk(function(y){if(y.type===c.UNIVERSAL)return p.call(w,y)})},d.prototype.split=function(p){var w=this,y=[];return this.reduce(function(v,g,O){var b=p.call(w,g);return y.push(g),b?(v.push(y),y=[]):O===w.length-1&&v.push(y),v},[])},d.prototype.map=function(p){return this.nodes.map(p)},d.prototype.reduce=function(p,w){return this.nodes.reduce(p,w)},d.prototype.every=function(p){return this.nodes.every(p)},d.prototype.some=function(p){return this.nodes.some(p)},d.prototype.filter=function(p){return this.nodes.filter(p)},d.prototype.sort=function(p){return this.nodes.sort(p)},d.prototype.toString=function(){return this.map(String).join("")},o(d,[{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}}]),d}(l.default);e.default=f,r.exports=e.default}),Cn=_((e,r)=>{e.__esModule=!0;var o=Tt(),i=a(o),l=V();function a(n){return n&&n.__esModule?n:{default:n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 s=function(n){m(t,n);function t(f){c(this,t);var h=u(this,n.call(this,f));return h.type=l.ROOT,h}return t.prototype.toString=function(){var f=this.reduce(function(h,d){var p=String(d);return p?h+p+",":""},"").slice(0,-1);return this.trailingComma?f+",":f},t}(i.default);e.default=s,r.exports=e.default}),_n=_((e,r)=>{e.__esModule=!0;var o=Tt(),i=a(o),l=V();function a(n){return n&&n.__esModule?n:{default:n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 s=function(n){m(t,n);function t(f){c(this,t);var h=u(this,n.call(this,f));return h.type=l.SELECTOR,h}return t}(i.default);e.default=s,r.exports=e.default}),$e=_((e,r)=>{e.__esModule=!0;var o=function(){function n(t,f){for(var h=0;h<f.length;h++){var d=f[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(t,d.key,d)}}return function(t,f,h){return f&&n(t.prototype,f),h&&n(t,h),t}}(),i=be(),l=a(i);function a(n){return n&&n.__esModule?n:{default:n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 s=function(n){m(t,n);function t(){return c(this,t),u(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 f=this.namespace;return f?(typeof f=="string"?f:"")+"|":""}}]),t}(l.default);e.default=s,r.exports=e.default}),En=_((e,r)=>{e.__esModule=!0;var o=$e(),i=a(o),l=V();function a(n){return n&&n.__esModule?n:{default:n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 s=function(n){m(t,n);function t(f){c(this,t);var h=u(this,n.call(this,f));return h.type=l.CLASS,h}return t.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},t}(i.default);e.default=s,r.exports=e.default}),An=_((e,r)=>{e.__esModule=!0;var o=be(),i=a(o),l=V();function a(n){return n&&n.__esModule?n:{default:n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 s=function(n){m(t,n);function t(f){c(this,t);var h=u(this,n.call(this,f));return h.type=l.COMMENT,h}return t}(i.default);e.default=s,r.exports=e.default}),jn=_((e,r)=>{e.__esModule=!0;var o=$e(),i=a(o),l=V();function a(n){return n&&n.__esModule?n:{default:n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 s=function(n){m(t,n);function t(f){c(this,t);var h=u(this,n.call(this,f));return h.type=l.ID,h}return t.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},t}(i.default);e.default=s,r.exports=e.default}),In=_((e,r)=>{e.__esModule=!0;var o=$e(),i=a(o),l=V();function a(n){return n&&n.__esModule?n:{default:n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 s=function(n){m(t,n);function t(f){c(this,t);var h=u(this,n.call(this,f));return h.type=l.TAG,h}return t}(i.default);e.default=s,r.exports=e.default}),Pn=_((e,r)=>{e.__esModule=!0;var o=be(),i=a(o),l=V();function a(n){return n&&n.__esModule?n:{default:n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 s=function(n){m(t,n);function t(f){c(this,t);var h=u(this,n.call(this,f));return h.type=l.STRING,h}return t}(i.default);e.default=s,r.exports=e.default}),Mn=_((e,r)=>{e.__esModule=!0;var o=Tt(),i=a(o),l=V();function a(n){return n&&n.__esModule?n:{default:n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 s=function(n){m(t,n);function t(f){c(this,t);var h=u(this,n.call(this,f));return h.type=l.PSEUDO,h}return t.prototype.toString=function(){var f=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),f,this.spaces.after].join("")},t}(i.default);e.default=s,r.exports=e.default}),$n=_((e,r)=>{e.__esModule=!0;var o=$e(),i=a(o),l=V();function a(n){return n&&n.__esModule?n:{default:n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 s=function(n){m(t,n);function t(f){c(this,t);var h=u(this,n.call(this,f));return h.type=l.ATTRIBUTE,h.raws={},h}return t.prototype.toString=function(){var f=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&f.push(this.operator),this.value&&f.push(this.value),this.raws.insensitive?f.push(this.raws.insensitive):this.insensitive&&f.push(" i"),f.push("]"),f.concat(this.spaces.after).join("")},t}(i.default);e.default=s,r.exports=e.default}),Rn=_((e,r)=>{e.__esModule=!0;var o=$e(),i=a(o),l=V();function a(n){return n&&n.__esModule?n:{default:n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 s=function(n){m(t,n);function t(f){c(this,t);var h=u(this,n.call(this,f));return h.type=l.UNIVERSAL,h.value="*",h}return t}(i.default);e.default=s,r.exports=e.default}),Nn=_((e,r)=>{e.__esModule=!0;var o=be(),i=a(o),l=V();function a(n){return n&&n.__esModule?n:{default:n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 s=function(n){m(t,n);function t(f){c(this,t);var h=u(this,n.call(this,f));return h.type=l.COMBINATOR,h}return t}(i.default);e.default=s,r.exports=e.default}),Ln=_((e,r)=>{e.__esModule=!0;var o=be(),i=a(o),l=V();function a(n){return n&&n.__esModule?n:{default:n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 s=function(n){m(t,n);function t(f){c(this,t);var h=u(this,n.call(this,f));return h.type=l.NESTING,h.value="&",h}return t}(i.default);e.default=s,r.exports=e.default}),Wn=_((e,r)=>{e.__esModule=!0,e.default=o;function o(i){return i.sort(function(l,a){return l-a})}r.exports=e.default}),zn=_((e,r)=>{e.__esModule=!0,e.default=$;var o=39,i=34,l=92,a=47,c=10,u=32,m=12,s=9,n=13,t=43,f=62,h=126,d=124,p=44,w=40,y=41,v=91,g=93,O=59,b=42,x=58,k=38,T=64,E=/[ \n\t\r\{\(\)'"\\;/]/g,j=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function $(L){for(var R=[],M=L.css.valueOf(),P=void 0,I=void 0,U=void 0,ke=void 0,le=void 0,ce=void 0,pe=void 0,he=void 0,fe=void 0,z=void 0,Oe=void 0,tt=M.length,A=-1,S=1,C=0,N=function(W,q){if(L.safe)M+=q,I=M.length-1;else throw L.error("Unclosed "+W,S,C-A,C)};C<tt;){switch(P=M.charCodeAt(C),P===c&&(A=C,S+=1),P){case c:case u:case s:case n:case m:I=C;do I+=1,P=M.charCodeAt(I),P===c&&(A=I,S+=1);while(P===u||P===c||P===s||P===n||P===m);R.push(["space",M.slice(C,I),S,C-A,C]),C=I-1;break;case t:case f:case h:case d:I=C;do I+=1,P=M.charCodeAt(I);while(P===t||P===f||P===h||P===d);R.push(["combinator",M.slice(C,I),S,C-A,C]),C=I-1;break;case b:R.push(["*","*",S,C-A,C]);break;case k:R.push(["&","&",S,C-A,C]);break;case p:R.push([",",",",S,C-A,C]);break;case v:R.push(["[","[",S,C-A,C]);break;case g:R.push(["]","]",S,C-A,C]);break;case x:R.push([":",":",S,C-A,C]);break;case O:R.push([";",";",S,C-A,C]);break;case w:R.push(["(","(",S,C-A,C]);break;case y:R.push([")",")",S,C-A,C]);break;case o:case i:U=P===o?"'":'"',I=C;do for(z=!1,I=M.indexOf(U,I+1),I===-1&&N("quote",U),Oe=I;M.charCodeAt(Oe-1)===l;)Oe-=1,z=!z;while(z);R.push(["string",M.slice(C,I+1),S,C-A,S,I-A,C]),C=I;break;case T:E.lastIndex=C+1,E.test(M),E.lastIndex===0?I=M.length-1:I=E.lastIndex-2,R.push(["at-word",M.slice(C,I+1),S,C-A,S,I-A,C]),C=I;break;case l:for(I=C,pe=!0;M.charCodeAt(I+1)===l;)I+=1,pe=!pe;P=M.charCodeAt(I+1),pe&&P!==a&&P!==u&&P!==c&&P!==s&&P!==n&&P!==m&&(I+=1),R.push(["word",M.slice(C,I+1),S,C-A,S,I-A,C]),C=I;break;default:P===a&&M.charCodeAt(C+1)===b?(I=M.indexOf("*/",C+2)+1,I===0&&N("comment","*/"),ce=M.slice(C,I+1),ke=ce.split(`
|
|
25
|
-
`),le=ke.length-1,le>0?(he=S+le,fe=I-ke[le].length):(he=S,fe=A),R.push(["comment",ce,S,C-A,he,I-fe,C]),A=fe,S=he,C=I):(j.lastIndex=C+1,j.test(M),j.lastIndex===0?I=M.length-1:I=j.lastIndex-2,R.push(["word",M.slice(C,I+1),S,C-A,S,I-A,C]),C=I);break}C++}return R}r.exports=e.default}),qn=_((e,r)=>{e.__esModule=!0;var o=function(){function A(S,C){for(var N=0;N<C.length;N++){var W=C[N];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(S,W.key,W)}}return function(S,C,N){return C&&A(S.prototype,C),N&&A(S,N),S}}(),i=ir(),l=z(i),a=ar(),c=z(a),u=ur(),m=z(u),s=Cn(),n=z(s),t=_n(),f=z(t),h=En(),d=z(h),p=An(),w=z(p),y=jn(),v=z(y),g=In(),O=z(g),b=Pn(),x=z(b),k=Mn(),T=z(k),E=$n(),j=z(E),$=Rn(),L=z($),R=Nn(),M=z(R),P=Ln(),I=z(P),U=Wn(),ke=z(U),le=zn(),ce=z(le),pe=V(),he=fe(pe);function fe(A){if(A&&A.__esModule)return A;var S={};if(A!=null)for(var C in A)Object.prototype.hasOwnProperty.call(A,C)&&(S[C]=A[C]);return S.default=A,S}function z(A){return A&&A.__esModule?A:{default:A}}function Oe(A,S){if(!(A instanceof S))throw new TypeError("Cannot call a class as a function")}var tt=function(){function A(S){Oe(this,A),this.input=S,this.lossy=S.options.lossless===!1,this.position=0,this.root=new n.default;var C=new f.default;return this.root.append(C),this.current=C,this.lossy?this.tokens=(0,ce.default)({safe:S.safe,css:S.css.trim()}):this.tokens=(0,ce.default)(S),this.loop()}return A.prototype.attribute=function(){var S="",C=void 0,N=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)S+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~S.indexOf("]")&&this.error("Expected a closing square bracket.");var W=S.split(/((?:[*~^$|]?=))([^]*)/),q=W[0].split(/(\|)/g),Y={operator:W[1],value:W[2],source:{start:{line:N[2],column:N[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:N[4]};if(q.length>1?(q[0]===""&&(q[0]=!0),Y.attribute=this.parseValue(q[2]),Y.namespace=this.parseNamespace(q[0])):Y.attribute=this.parseValue(W[0]),C=new j.default(Y),W[2]){var te=W[2].split(/(\s+i\s*?)$/),re=te[0].trim();C.value=this.lossy?re:te[0],te[1]&&(C.insensitive=!0,this.lossy||(C.raws.insensitive=te[1])),C.quoted=re[0]==="'"||re[0]==='"',C.raws.unquoted=C.quoted?re.slice(1,-1):re}this.newNode(C),this.position++},A.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var S=new M.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"?(S.spaces.before=this.parseSpace(this.currToken[1]),S.source.start.line=this.nextToken[2],S.source.start.column=this.nextToken[3],S.source.end.column=this.nextToken[3],S.source.end.line=this.nextToken[2],S.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?S.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?S.value=this.currToken[1]:this.currToken[0]==="space"&&(S.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(S)},A.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var S=new f.default;this.current.parent.append(S),this.current=S,this.position++},A.prototype.comment=function(){var S=new w.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(S),this.position++},A.prototype.error=function(S){throw new this.input.error(S)},A.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},A.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},A.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},A.prototype.namespace=function(){var S=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(S);if(this.nextToken[0]==="*")return this.position++,this.universal(S)},A.prototype.nesting=function(){this.newNode(new I.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++},A.prototype.parentheses=function(){var S=this.current.last;if(S&&S.type===he.PSEUDO){var C=new f.default,N=this.current;S.append(C),this.current=C;var W=1;for(this.position++;this.position<this.tokens.length&&W;)this.currToken[0]==="("&&W++,this.currToken[0]===")"&&W--,W?this.parse():(C.parent.source.end.line=this.currToken[2],C.parent.source.end.column=this.currToken[3],this.position++);W&&this.error("Expected closing parenthesis."),this.current=N}else{var q=1;for(this.position++,S.value+="(";this.position<this.tokens.length&&q;)this.currToken[0]==="("&&q++,this.currToken[0]===")"&&q--,S.value+=this.parseParenthesisToken(this.currToken),this.position++;q&&this.error("Expected closing parenthesis.")}},A.prototype.pseudo=function(){for(var S=this,C="",N=this.currToken;this.currToken&&this.currToken[0]===":";)C+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var W=void 0;this.splitWord(!1,function(q,Y){C+=q,W=new T.default({value:C,source:{start:{line:N[2],column:N[3]},end:{line:S.currToken[4],column:S.currToken[5]}},sourceIndex:N[4]}),S.newNode(W),Y>1&&S.nextToken&&S.nextToken[0]==="("&&S.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},A.prototype.space=function(){var S=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(S[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(S[1]),this.position++):this.combinator()},A.prototype.string=function(){var S=this.currToken;this.newNode(new x.default({value:this.currToken[1],source:{start:{line:S[2],column:S[3]},end:{line:S[4],column:S[5]}},sourceIndex:S[6]})),this.position++},A.prototype.universal=function(S){var C=this.nextToken;if(C&&C[1]==="|")return this.position++,this.namespace();this.newNode(new L.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]}),S),this.position++},A.prototype.splitWord=function(S,C){for(var N=this,W=this.nextToken,q=this.currToken[1];W&&W[0]==="word";){this.position++;var Y=this.currToken[1];if(q+=Y,Y.lastIndexOf("\\")===Y.length-1){var te=this.nextToken;te&&te[0]==="space"&&(q+=this.parseSpace(te[1]," "),this.position++)}W=this.nextToken}var re=(0,c.default)(q,"."),Ne=(0,c.default)(q,"#"),Wt=(0,c.default)(q,"#{");Wt.length&&(Ne=Ne.filter(function(ne){return!~Wt.indexOf(ne)}));var de=(0,ke.default)((0,m.default)((0,l.default)([[0],re,Ne])));de.forEach(function(ne,Te){var Le=de[Te+1]||q.length,We=q.slice(ne,Le);if(Te===0&&C)return C.call(N,We,de.length);var ze=void 0;~re.indexOf(ne)?ze=new d.default({value:We.slice(1),source:{start:{line:N.currToken[2],column:N.currToken[3]+ne},end:{line:N.currToken[4],column:N.currToken[3]+(Le-1)}},sourceIndex:N.currToken[6]+de[Te]}):~Ne.indexOf(ne)?ze=new v.default({value:We.slice(1),source:{start:{line:N.currToken[2],column:N.currToken[3]+ne},end:{line:N.currToken[4],column:N.currToken[3]+(Le-1)}},sourceIndex:N.currToken[6]+de[Te]}):ze=new O.default({value:We,source:{start:{line:N.currToken[2],column:N.currToken[3]+ne},end:{line:N.currToken[4],column:N.currToken[3]+(Le-1)}},sourceIndex:N.currToken[6]+de[Te]}),N.newNode(ze,S)}),this.position++},A.prototype.word=function(S){var C=this.nextToken;return C&&C[1]==="|"?(this.position++,this.namespace()):this.splitWord(S)},A.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},A.prototype.parse=function(S){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":S&&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}},A.prototype.parseNamespace=function(S){if(this.lossy&&typeof S=="string"){var C=S.trim();return C.length?C:!0}return S},A.prototype.parseSpace=function(S,C){return this.lossy?C||"":S},A.prototype.parseValue=function(S){return this.lossy&&S&&typeof S=="string"?S.trim():S},A.prototype.parseParenthesisToken=function(S){return this.lossy?S[0]==="space"?this.parseSpace(S[1]," "):this.parseValue(S[1]):S[1]},A.prototype.newNode=function(S,C){return C&&(S.namespace=this.parseNamespace(C)),this.spaces&&(S.spaces.before=this.spaces,this.spaces=""),this.current.append(S)},o(A,[{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]}}]),A}();e.default=tt,r.exports=e.default}),Fn=_((e,r)=>{e.__esModule=!0;var o=function(){function m(s,n){for(var t=0;t<n.length;t++){var f=n[t];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,n,t){return n&&m(s.prototype,n),t&&m(s,t),s}}(),i=qn(),l=a(i);function a(m){return m&&m.__esModule?m:{default:m}}function c(m,s){if(!(m instanceof s))throw new TypeError("Cannot call a class as a function")}var u=function(){function m(s){return c(this,m),this.func=s||function(){},this}return m.prototype.process=function(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=new l.default({css:s,error:function(f){throw new Error(f)},options:n});return this.res=t,this.func(t),this},o(m,[{key:"result",get:function(){return String(this.res)}}]),m}();e.default=u,r.exports=e.default}),ee=_((e,r)=>{var o=function(i,l){let a=new i.constructor;for(let c in i){if(!i.hasOwnProperty(c))continue;let u=i[c],m=typeof u;c==="parent"&&m==="object"?l&&(a[c]=l):c==="source"?a[c]=u:u instanceof Array?a[c]=u.map(s=>o(s,a)):c!=="before"&&c!=="after"&&c!=="between"&&c!=="semicolon"&&(m==="object"&&u!==null&&(u=o(u)),a[c]=u)}return a};r.exports=class{constructor(i){i=i||{},this.raws={before:"",after:""};for(let l in i)this[l]=i[l]}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(i){i=i||{};let l=o(this);for(let a in i)l[a]=i[a];return l}cloneBefore(i){i=i||{};let l=this.clone(i);return this.parent.insertBefore(this,l),l}cloneAfter(i){i=i||{};let l=this.clone(i);return this.parent.insertAfter(this,l),l}replaceWith(){let i=Array.prototype.slice.call(arguments);if(this.parent){for(let l of i)this.parent.insertBefore(this,l);this.remove()}return this}moveTo(i){return this.cleanRaws(this.root()===i.root()),this.remove(),i.append(this),this}moveBefore(i){return this.cleanRaws(this.root()===i.root()),this.remove(),i.parent.insertBefore(i,this),this}moveAfter(i){return this.cleanRaws(this.root()===i.root()),this.remove(),i.parent.insertAfter(i,this),this}next(){let i=this.parent.index(this);return this.parent.nodes[i+1]}prev(){let i=this.parent.index(this);return this.parent.nodes[i-1]}toJSON(){let i={};for(let l in this){if(!this.hasOwnProperty(l)||l==="parent")continue;let a=this[l];a instanceof Array?i[l]=a.map(c=>typeof c=="object"&&c.toJSON?c.toJSON():c):typeof a=="object"&&a.toJSON?i[l]=a.toJSON():i[l]=a}return i}root(){let i=this;for(;i.parent;)i=i.parent;return i}cleanRaws(i){delete this.raws.before,delete this.raws.after,i||delete this.raws.between}positionInside(i){let l=this.toString(),a=this.source.start.column,c=this.source.start.line;for(let u=0;u<i;u++)l[u]===`
|
|
26
|
-
`?(a=1,c+=1):a+=1;return{line:c,column:a}}positionBy(i){let l=this.source.start;if(Object(i).index)l=this.positionInside(i.index);else if(Object(i).word){let a=this.toString().indexOf(i.word);a!==-1&&(l=this.positionInside(a))}return l}}}),Q=_((e,r)=>{var o=ee(),i=class extends o{constructor(l){super(l),this.nodes||(this.nodes=[])}push(l){return l.parent=this,this.nodes.push(l),this}each(l){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let a=this.lastEach,c,u;if(this.indexes[a]=0,!!this.nodes){for(;this.indexes[a]<this.nodes.length&&(c=this.indexes[a],u=l(this.nodes[c],c),u!==!1);)this.indexes[a]+=1;return delete this.indexes[a],u}}walk(l){return this.each((a,c)=>{let u=l(a,c);return u!==!1&&a.walk&&(u=a.walk(l)),u})}walkType(l,a){if(!l||!a)throw new Error("Parameters {type} and {callback} are required.");let c=typeof l=="function";return this.walk((u,m)=>{if(c&&u instanceof l||!c&&u.type===l)return a.call(this,u,m)})}append(l){return l.parent=this,this.nodes.push(l),this}prepend(l){return l.parent=this,this.nodes.unshift(l),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let a of this.nodes)a.cleanRaws(l)}insertAfter(l,a){let c=this.index(l),u;this.nodes.splice(c+1,0,a);for(let m in this.indexes)u=this.indexes[m],c<=u&&(this.indexes[m]=u+this.nodes.length);return this}insertBefore(l,a){let c=this.index(l),u;this.nodes.splice(c,0,a);for(let m in this.indexes)u=this.indexes[m],c<=u&&(this.indexes[m]=u+this.nodes.length);return this}removeChild(l){l=this.index(l),this.nodes[l].parent=void 0,this.nodes.splice(l,1);let a;for(let c in this.indexes)a=this.indexes[c],a>=l&&(this.indexes[c]=a-1);return this}removeAll(){for(let l of this.nodes)l.parent=void 0;return this.nodes=[],this}every(l){return this.nodes.every(l)}some(l){return this.nodes.some(l)}index(l){return typeof l=="number"?l:this.nodes.indexOf(l)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let l=this.nodes.map(String).join("");return this.value&&(l=this.value+l),this.raws.before&&(l=this.raws.before+l),this.raws.after&&(l+=this.raws.after),l}};i.registerWalker=l=>{let a="walk"+l.name;a.lastIndexOf("s")!==a.length-1&&(a+="s"),!i.prototype[a]&&(i.prototype[a]=function(c){return this.walkType(l,c)})},r.exports=i}),Dn=_((e,r)=>{var o=Q();r.exports=class extends o{constructor(i){super(i),this.type="root"}}}),Un=_((e,r)=>{var o=Q();r.exports=class extends o{constructor(i){super(i),this.type="value",this.unbalanced=0}}}),Bn=_((e,r)=>{var o=Q(),i=class extends o{constructor(l){super(l),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(i),r.exports=i}),Vn=_((e,r)=>{var o=Q(),i=ee(),l=class extends i{constructor(a){super(a),this.type="colon"}};o.registerWalker(l),r.exports=l}),Gn=_((e,r)=>{var o=Q(),i=ee(),l=class extends i{constructor(a){super(a),this.type="comma"}};o.registerWalker(l),r.exports=l}),Hn=_((e,r)=>{var o=Q(),i=ee(),l=class extends i{constructor(a){super(a),this.type="comment",this.inline=Object(a).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};o.registerWalker(l),r.exports=l}),Jn=_((e,r)=>{var o=Q(),i=class extends o{constructor(l){super(l),this.type="func",this.unbalanced=-1}};o.registerWalker(i),r.exports=i}),Qn=_((e,r)=>{var o=Q(),i=ee(),l=class extends i{constructor(a){super(a),this.type="number",this.unit=Object(a).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};o.registerWalker(l),r.exports=l}),Kn=_((e,r)=>{var o=Q(),i=ee(),l=class extends i{constructor(a){super(a),this.type="operator"}};o.registerWalker(l),r.exports=l}),Zn=_((e,r)=>{var o=Q(),i=ee(),l=class extends i{constructor(a){super(a),this.type="paren",this.parenType=""}};o.registerWalker(l),r.exports=l}),Yn=_((e,r)=>{var o=Q(),i=ee(),l=class extends i{constructor(a){super(a),this.type="string"}toString(){let a=this.quoted?this.raws.quote:"";return[this.raws.before,a,this.value+"",a,this.raws.after].join("")}};o.registerWalker(l),r.exports=l}),Xn=_((e,r)=>{var o=Q(),i=ee(),l=class extends i{constructor(a){super(a),this.type="word"}};o.registerWalker(l),r.exports=l}),es=_((e,r)=>{var o=Q(),i=ee(),l=class extends i{constructor(a){super(a),this.type="unicode-range"}};o.registerWalker(l),r.exports=l}),ts=_((e,r)=>{var o=class extends Error{constructor(i){super(i),this.name=this.constructor.name,this.message=i||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(i).stack}};r.exports=o}),rs=_((e,r)=>{var o=/[ \n\t\r\{\(\)'"\\;,/]/g,i=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,l=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,a=/^[a-z0-9]/i,c=/^[a-f0-9?\-]/i,u=ts();r.exports=function(m,s){s=s||{};let n=[],t=m.valueOf(),f=t.length,h=-1,d=1,p=0,w=0,y=null,v,g,O,b,x,k,T,E,j,$,L;function R(M){let P=`Unclosed ${M} at line: ${d}, column: ${p-h}, token: ${p}`;throw new u(P)}for(;p<f;){switch(v=t.charCodeAt(p),v===10&&(h=p,d+=1),v){case 10:case 32:case 9:case 13:case 12:g=p;do g+=1,v=t.charCodeAt(g),v===10&&(h=g,d+=1);while(v===32||v===10||v===9||v===13||v===12);n.push(["space",t.slice(p,g),d,p-h,d,g-h,p]),p=g-1;break;case 58:g=p+1,n.push(["colon",t.slice(p,g),d,p-h,d,g-h,p]),p=g-1;break;case 44:g=p+1,n.push(["comma",t.slice(p,g),d,p-h,d,g-h,p]),p=g-1;break;case 123:n.push(["{","{",d,p-h,d,g-h,p]);break;case 125:n.push(["}","}",d,p-h,d,g-h,p]);break;case 40:w++,y=!y&&w===1&&n.length>0&&n[n.length-1][0]==="word"&&n[n.length-1][1]==="url",n.push(["(","(",d,p-h,d,g-h,p]);break;case 41:w--,y=y&&w>0,n.push([")",")",d,p-h,d,g-h,p]);break;case 39:case 34:O=v===39?"'":'"',g=p;do for(j=!1,g=t.indexOf(O,g+1),g===-1&&R("quote"),$=g;t.charCodeAt($-1)===92;)$-=1,j=!j;while(j);n.push(["string",t.slice(p,g+1),d,p-h,d,g-h,p]),p=g;break;case 64:o.lastIndex=p+1,o.test(t),o.lastIndex===0?g=t.length-1:g=o.lastIndex-2,n.push(["atword",t.slice(p,g+1),d,p-h,d,g-h,p]),p=g;break;case 92:g=p,v=t.charCodeAt(g+1),n.push(["word",t.slice(p,g+1),d,p-h,d,g-h,p]),p=g;break;case 43:case 45:case 42:if(g=p+1,L=t.slice(p+1,g+1),t.slice(p-1,p),v===45&&L.charCodeAt(0)===45){g++,n.push(["word",t.slice(p,g),d,p-h,d,g-h,p]),p=g-1;break}n.push(["operator",t.slice(p,g),d,p-h,d,g-h,p]),p=g-1;break;default:if(v===47&&(t.charCodeAt(p+1)===42||s.loose&&!y&&t.charCodeAt(p+1)===47)){if(t.charCodeAt(p+1)===42)g=t.indexOf("*/",p+2)+1,g===0&&R("comment");else{let M=t.indexOf(`
|
|
27
|
-
`,p+2);g=M!==-1?M-1:f}k=t.slice(p,g+1),b=k.split(`
|
|
28
|
-
`),x=b.length-1,x>0?(T=d+x,E=g-b[x].length):(T=d,E=h),n.push(["comment",k,d,p-h,T,g-E,p]),h=E,d=T,p=g}else if(v===35&&!a.test(t.slice(p+1,p+2)))g=p+1,n.push(["#",t.slice(p,g),d,p-h,d,g-h,p]),p=g-1;else if((v===117||v===85)&&t.charCodeAt(p+1)===43){g=p+2;do g+=1,v=t.charCodeAt(g);while(g<f&&c.test(t.slice(g,g+1)));n.push(["unicoderange",t.slice(p,g),d,p-h,d,g-h,p]),p=g-1}else if(v===47)g=p+1,n.push(["operator",t.slice(p,g),d,p-h,d,g-h,p]),p=g-1;else{let M=i;if(v>=48&&v<=57&&(M=l),M.lastIndex=p+1,M.test(t),M.lastIndex===0?g=t.length-1:g=M.lastIndex-2,M===l||v===46){let P=t.charCodeAt(g),I=t.charCodeAt(g+1),U=t.charCodeAt(g+2);(P===101||P===69)&&(I===45||I===43)&&U>=48&&U<=57&&(l.lastIndex=g+2,l.test(t),l.lastIndex===0?g=t.length-1:g=l.lastIndex-2)}n.push(["word",t.slice(p,g+1),d,p-h,d,g-h,p]),p=g}break}p++}return n}}),ns=_((e,r)=>{var o=class extends Error{constructor(i){super(i),this.name=this.constructor.name,this.message=i||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(i).stack}};r.exports=o}),ss=_((e,r)=>{var o=Dn(),i=Un(),l=Bn(),a=Vn(),c=Gn(),u=Hn(),m=Jn(),s=Qn(),n=Kn(),t=Zn(),f=Yn(),h=Xn(),d=es(),p=rs(),w=ir(),y=ar(),v=ur(),g=ns();function O(b){return b.sort((x,k)=>x-k)}r.exports=class{constructor(b,x){let k={loose:!1};this.cache=[],this.input=b,this.options=Object.assign({},k,x),this.position=0,this.unbalanced=0,this.root=new o;let T=new i;this.root.append(T),this.current=T,this.tokens=p(b,this.options)}parse(){return this.loop()}colon(){let b=this.currToken;this.newNode(new a({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++}comma(){let b=this.currToken;this.newNode(new c({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++}comment(){let b=!1,x=this.currToken[1].replace(/\/\*|\*\//g,""),k;this.options.loose&&x.startsWith("//")&&(x=x.substring(2),b=!0),k=new u({value:x,inline:b,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(k),this.position++}error(b,x){throw new g(b+` at line: ${x[2]}, column ${x[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 b=this.currToken[1],x;if(b==="+"||b==="-"){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 x=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(x)}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 b=1,x=this.position+1,k=this.currToken,T;for(;x<this.tokens.length&&b;){let E=this.tokens[x];E[0]==="("&&b++,E[0]===")"&&b--,x++}if(b&&this.error("Expected closing parenthesis",k),T=this.current.last,T&&T.type==="func"&&T.unbalanced<0&&(T.unbalanced=0,this.current=T),this.current.unbalanced++,this.newNode(new t({value:k[1],source:{start:{line:k[2],column:k[3]},end:{line:k[4],column:k[5]}},sourceIndex:k[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let E=this.nextToken,j=this.currToken[1],$={line:this.currToken[2],column:this.currToken[3]};for(;E&&E[0]!==")"&&this.current.unbalanced;)this.position++,j+=this.currToken[1],E=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new h({value:j,source:{start:$,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let b=this.currToken;this.newNode(new t({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",b),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let b=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=b[1],this.position++):(this.spaces=b[1],this.position++)}unicodeRange(){let b=this.currToken;this.newNode(new d({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++}splitWord(){let b=this.nextToken,x=this.currToken[1],k=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,T=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,E,j;if(!T.test(x))for(;b&&b[0]==="word";){this.position++;let $=this.currToken[1];x+=$,b=this.nextToken}E=y(x,"@"),j=O(v(w([[0],E]))),j.forEach(($,L)=>{let R=j[L+1]||x.length,M=x.slice($,R),P;if(~E.indexOf($))P=new l({value:M.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+$},end:{line:this.currToken[4],column:this.currToken[3]+(R-1)}},sourceIndex:this.currToken[6]+j[L]});else if(k.test(this.currToken[1])){let I=M.replace(k,"");P=new s({value:M.replace(I,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+$},end:{line:this.currToken[4],column:this.currToken[3]+(R-1)}},sourceIndex:this.currToken[6]+j[L],unit:I})}else P=new(b&&b[0]==="("?m:h)({value:M,source:{start:{line:this.currToken[2],column:this.currToken[3]+$},end:{line:this.currToken[4],column:this.currToken[3]+(R-1)}},sourceIndex:this.currToken[6]+j[L]}),P.type==="word"?(P.isHex=/^#(.+)/.test(M),P.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(M)):this.cache.push(this.current);this.newNode(P)}),this.position++}string(){let b=this.currToken,x=this.currToken[1],k=/^(\"|\')/,T=k.test(x),E="",j;T&&(E=x.match(k)[0],x=x.slice(1,x.length-1)),j=new f({value:x,source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6],quoted:T}),j.raws.quote=E,this.newNode(j),this.position++}word(){return this.splitWord()}newNode(b){return this.spaces&&(b.raws.before+=this.spaces,this.spaces=""),this.current.append(b)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),lr={};Ht(lr,{languages:()=>Fr,options:()=>Dr,parsers:()=>Rt,printers:()=>Kr});var os=(e,r,o,i)=>{if(!(e&&r==null))return r.replaceAll?r.replaceAll(o,i):o.global?r.replace(o,i):r.split(o).join(i)},D=os,cr="string",pr="array",hr="cursor",St="indent",Ct="align",fr="trim",_t="group",Et="fill",Xe="if-break",dr="indent-if-break",mr="line-suffix",vr="line-suffix-boundary",xe="line",yr="label",At="break-parent",gr=new Set([hr,St,Ct,fr,_t,Et,Xe,dr,mr,vr,xe,yr,At]);function is(e){if(typeof e=="string")return cr;if(Array.isArray(e))return pr;if(!e)return;let{type:r}=e;if(gr.has(r))return r}var wr=is,as=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function us(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}',
|
|
29
|
-
Expected it to be 'string' or 'object'.`;if(wr(e))throw new Error("doc is valid.");let o=Object.prototype.toString.call(e);if(o!=="[object Object]")return`Unexpected doc '${o}'.`;let i=as([...gr].map(l=>`'${l}'`));return`Unexpected doc.type '${e.type}'.
|
|
30
|
-
Expected it to be ${i}.`}var ls=class extends Error{constructor(r){super(us(r));rt(this,"name","InvalidDocError");this.doc=r}},cs=ls,ps=()=>{},hs=ps;function G(e){return{type:St,contents:e}}function br(e,r){return{type:Ct,contents:r,n:e}}function K(e,r={}){return hs(r.expandedStates),{type:_t,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function fs(e){return br({type:"root"},e)}function He(e){return br(-1,e)}function ut(e){return{type:Et,parts:e}}function xr(e,r="",o={}){return{type:Xe,breakContents:e,flatContents:r,groupId:o.groupId}}var jt={type:At},ds={type:xe,hard:!0},B={type:xe},Z={type:xe,soft:!0},F=[ds,jt];function ae(e,r){let o=[];for(let i=0;i<r.length;i++)i!==0&&o.push(e),o.push(r[i]);return o}var ms=(e,r,o)=>{if(!(e&&r==null))return Array.isArray(r)||typeof r=="string"?r[o<0?r.length+o:o]:r.at(o)},je=ms;function vs(e,r){if(typeof e=="string")return r(e);let o=new Map;return i(e);function i(a){if(o.has(a))return o.get(a);let c=l(a);return o.set(a,c),c}function l(a){switch(wr(a)){case pr:return r(a.map(i));case Et:return r({...a,parts:a.parts.map(i)});case Xe:return r({...a,breakContents:i(a.breakContents),flatContents:i(a.flatContents)});case _t:{let{expandedStates:c,contents:u}=a;return c?(c=c.map(i),u=c[0]):u=i(u),r({...a,contents:u,expandedStates:c})}case Ct:case St:case dr:case yr:case mr:return r({...a,contents:i(a.contents)});case cr:case hr:case fr:case vr:case xe:case At:return r(a);default:throw new cs(a)}}}function ys(e){return e.type===xe&&!e.hard?e.soft?"":" ":e.type===Xe?e.flatContents:e}function gs(e){return vs(e,ys)}function ws(e){return Array.isArray(e)&&e.length>0}var et=ws,qe="'",zt='"';function bs(e,r){let o=r===!0||r===qe?qe:zt,i=o===qe?zt:qe,l=0,a=0;for(let c of e)c===o?l++:c===i&&a++;return l>a?i:o}var xs=bs;function ks(e,r,o){let i=r==='"'?"'":'"',l=D(!1,e,/\\(.)|(["'])/gsu,(a,c,u)=>c===i?c:u===r?"\\"+u:u||(o&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(c)?c:"\\"+c));return r+l+r}var Os=ks;function Ts(e,r){let o=e.slice(1,-1),i=r.parser==="json"||r.parser==="jsonc"||r.parser==="json5"&&r.quoteProps==="preserve"&&!r.singleQuote?'"':r.__isInHtmlAttribute?"'":xs(o,r.singleQuote);return Os(o,i,!(r.parser==="css"||r.parser==="less"||r.parser==="scss"||r.__embeddedInHtml))}var kr=Ts,Ss=class extends Error{constructor(r,o,i="type"){super(`Unexpected ${o} node ${i}: ${JSON.stringify(r[i])}.`);rt(this,"name","UnexpectedNodeError");this.node=r}},Cs=Ss;function _s(e){return(e==null?void 0:e.type)==="front-matter"}var Je=_s,Es=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function Or(e,r,o){if(Je(e)&&e.language==="yaml"&&delete r.value,e.type==="css-comment"&&o.type==="css-root"&&o.nodes.length>0&&((o.nodes[0]===e||Je(o.nodes[0])&&o.nodes[1]===e)&&(delete r.text,/^\*\s*@(?:format|prettier)\s*$/u.test(e.text))||o.type==="css-root"&&je(!1,o.nodes,-1)===e))return null;if(e.type==="value-root"&&delete r.text,(e.type==="media-query"||e.type==="media-query-list"||e.type==="media-feature-expression")&&delete r.value,e.type==="css-rule"&&delete r.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&&(r.value=As(e.value)),e.type==="selector-combinator"&&(r.value=D(!1,r.value,/\s+/gu," ")),e.type==="media-feature"&&(r.value=D(!1,r.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")&&(r.value=r.value.toLowerCase()),e.type==="css-decl"&&(r.prop=e.prop.toLowerCase()),(e.type==="css-atrule"||e.type==="css-import")&&(r.name=e.name.toLowerCase()),e.type==="value-number"&&(r.unit=e.unit.toLowerCase()),e.type==="value-unknown"&&(r.value=D(!1,r.value,/;$/gu,"")),e.type==="selector-attribute"&&(r.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(r.namespace=e.namespace.trim()||!0),e.value&&(r.value=D(!1,r.value.trim(),/^["']|["']$/gu,""),delete r.quoted)),(e.type==="media-value"||e.type==="media-type"||e.type==="value-number"||e.type==="selector-root-invalid"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="selector-tag")&&e.value&&(r.value=D(!1,r.value,/([\d+.e-]+)([a-z]*)/giu,(i,l,a)=>{let c=Number(l);return Number.isNaN(c)?i:c+a.toLowerCase()})),e.type==="selector-tag"){let i=r.value.toLowerCase();["from","to"].includes(i)&&(r.value=i)}if(e.type==="css-atrule"&&e.name.toLowerCase()==="supports"&&delete r.value,e.type==="selector-unknown"&&delete r.value,e.type==="value-comma_group"){let i=e.groups.findIndex(l=>l.type==="value-number"&&l.unit==="...");i!==-1&&(r.groups[i].unit="",r.groups.splice(i+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(e.type==="value-comma_group"&&e.groups.some(i=>i.type==="value-atword"&&i.value.endsWith("[")||i.type==="value-word"&&i.value.startsWith("]")))return{type:"value-atword",value:e.groups.map(i=>i.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}Or.ignoredProperties=Es;function As(e){return D(!1,D(!1,e,"'",'"'),/\\([^\da-f])/giu,"$1")}var js=Or;async function Is(e,r){if(e.language==="yaml"){let o=e.value.trim(),i=o?await r(o,{parser:"yaml"}):"";return fs([e.startDelimiter,e.explicitLanguage,F,i,i?F:"",e.endDelimiter])}}var Ps=Is;function Tr(e){let{node:r}=e;if(r.type==="front-matter")return async o=>{let i=await Ps(r,o);return i?[i,F]:void 0}}Tr.getVisitorKeys=e=>e.type==="css-root"?["frontMatter"]:[];var Ms=Tr,Se=null;function Ae(e){if(Se!==null&&typeof Se.property){let r=Se;return Se=Ae.prototype=null,r}return Se=Ae.prototype=e??Object.create(null),new Ae}var $s=10;for(let e=0;e<=$s;e++)Ae();function Rs(e){return Ae(e)}function Ns(e,r="type"){Rs(e);function o(i){let l=i[r],a=e[l];if(!Array.isArray(a))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:i});return a}return o}var Ls=Ns,Ws={"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},zs=Ws,qs=Ls(zs),Fs=qs;function Ds(e,r){let o=0;for(let i=0;i<e.line-1;++i)o=r.indexOf(`
|
|
31
|
-
`,o)+1;return o+e.column}var Sr=Ds;function It(e){return(r,o,i)=>{let l=!!(i!=null&&i.backwards);if(o===!1)return!1;let{length:a}=r,c=o;for(;c>=0&&c<a;){let u=r.charAt(c);if(e instanceof RegExp){if(!e.test(u))return c}else if(!e.includes(u))return c;l?c--:c++}return c===-1||c===a?c:!1}}var Cr=It(" "),Us=It(",; "),_r=It(/[^\n\r]/u);function Er(e,r){var o,i,l;if(typeof((i=(o=e.source)==null?void 0:o.start)==null?void 0:i.offset)=="number")return e.source.start.offset;if(typeof e.sourceIndex=="number")return e.sourceIndex;if((l=e.source)!=null&&l.start)return Sr(e.source.start,r);throw Object.assign(new Error("Can not locate node."),{node:e})}function Pt(e,r){var o,i;if(e.type==="css-comment"&&e.inline)return _r(r,e.source.startOffset);if(typeof((i=(o=e.source)==null?void 0:o.end)==null?void 0:i.offset)=="number")return e.source.end.offset;if(e.source){if(e.source.end)return Sr(e.source.end,r);if(et(e.nodes))return Pt(je(!1,e.nodes,-1),r)}return null}function Ar(e,r){e.source&&(e.source.startOffset=Er(e,r),e.source.endOffset=Pt(e,r));for(let o in e){let i=e[o];o==="source"||!i||typeof i!="object"||(i.type==="value-root"||i.type==="value-unknown"?jr(i,Bs(e),i.text||i.value):Ar(i,r))}}function jr(e,r,o){e.source&&(e.source.startOffset=Er(e,o)+r,e.source.endOffset=Pt(e,o)+r);for(let i in e){let l=e[i];i==="source"||!l||typeof l!="object"||jr(l,r,o)}}function Bs(e){var r;let o=e.source.startOffset;return typeof e.prop=="string"&&(o+=e.prop.length),e.type==="css-atrule"&&typeof e.name=="string"&&(o+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/u)[0].length),e.type!=="css-atrule"&&typeof((r=e.raws)==null?void 0:r.between)=="string"&&(o+=e.raws.between.length),o}function Vs(e){let r="initial",o="initial",i,l=!1,a=[];for(let c=0;c<e.length;c++){let u=e[c];switch(r){case"initial":if(u==="'"){r="single-quotes";continue}if(u==='"'){r="double-quotes";continue}if((u==="u"||u==="U")&&e.slice(c,c+4).toLowerCase()==="url("){r="url",c+=3;continue}if(u==="*"&&e[c-1]==="/"){r="comment-block";continue}if(u==="/"&&e[c-1]==="/"){r="comment-inline",i=c-1;continue}continue;case"single-quotes":if(u==="'"&&e[c-1]!=="\\"&&(r=o,o="initial"),u===`
|
|
32
|
-
`||u==="\r")return e;continue;case"double-quotes":if(u==='"'&&e[c-1]!=="\\"&&(r=o,o="initial"),u===`
|
|
33
|
-
`||u==="\r")return e;continue;case"url":if(u===")"&&(r="initial"),u===`
|
|
34
|
-
`||u==="\r")return e;if(u==="'"){r="single-quotes",o="url";continue}if(u==='"'){r="double-quotes",o="url";continue}continue;case"comment-block":u==="/"&&e[c-1]==="*"&&(r="initial");continue;case"comment-inline":(u==='"'||u==="'"||u==="*")&&(l=!0),(u===`
|
|
35
|
-
`||u==="\r")&&(l&&a.push([i,c]),r="initial",l=!1);continue}}for(let[c,u]of a)e=e.slice(0,c)+D(!1,e.slice(c,u),/["'*]/gu," ")+e.slice(u);return e}function J(e){var r;return(r=e.source)==null?void 0:r.startOffset}function H(e){var r;return(r=e.source)==null?void 0:r.endOffset}var Gs=/\*\/$/,Hs=/^\/\*\*?/,Ir=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Js=/(^|\s+)\/\/([^\n\r]*)/g,qt=/^(\r?\n)+/,Qs=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Ft=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Ks=/(\r?\n|^) *\* ?/g,Pr=[];function Zs(e){let r=e.match(Ir);return r?r[0].trimStart():""}function Ys(e){let r=e.match(Ir),o=r==null?void 0:r[0];return o==null?e:e.slice(o.length)}function Xs(e){let r=`
|
|
36
|
-
`;e=D(!1,e.replace(Hs,"").replace(Gs,""),Ks,"$1");let o="";for(;o!==e;)o=e,e=D(!1,e,Qs,`${r}$1 $2${r}`);e=e.replace(qt,"").trimEnd();let i=Object.create(null),l=D(!1,e,Ft,"").replace(qt,"").trimEnd(),a;for(;a=Ft.exec(e);){let c=D(!1,a[2],Js,"");if(typeof i[a[1]]=="string"||Array.isArray(i[a[1]])){let u=i[a[1]];i[a[1]]=[...Pr,...Array.isArray(u)?u:[u],c]}else i[a[1]]=c}return{comments:l,pragmas:i}}function eo({comments:e="",pragmas:r={}}){let o=`
|
|
37
|
-
`,i="/**",l=" *",a=" */",c=Object.keys(r),u=c.flatMap(s=>Dt(s,r[s])).map(s=>`${l} ${s}${o}`).join("");if(!e){if(c.length===0)return"";if(c.length===1&&!Array.isArray(r[c[0]])){let s=r[c[0]];return`${i} ${Dt(c[0],s)[0]}${a}`}}let m=e.split(o).map(s=>`${l} ${s}`).join(o)+o;return i+o+(e?m:"")+(e&&c.length>0?l+o:"")+u+a}function Dt(e,r){return[...Pr,...Array.isArray(r)?r:[r]].map(o=>`@${e} ${o}`.trim())}function to(e){if(!e.startsWith("#!"))return"";let r=e.indexOf(`
|
|
38
|
-
`);return r===-1?e:e.slice(0,r)}var ro=to;function Mr(e){let r=ro(e);r&&(e=e.slice(r.length+1));let o=Zs(e),{pragmas:i,comments:l}=Xs(o);return{shebang:r,text:e,pragmas:i,comments:l}}function no(e){let{pragmas:r}=Mr(e);return Object.prototype.hasOwnProperty.call(r,"prettier")||Object.prototype.hasOwnProperty.call(r,"format")}function so(e){let{shebang:r,text:o,pragmas:i,comments:l}=Mr(e),a=Ys(o),c=eo({pragmas:{format:"",...i},comments:l.trimStart()});return(r?`${r}
|
|
39
|
-
`:"")+c+(a.startsWith(`
|
|
40
|
-
`)?`
|
|
41
|
-
`:`
|
|
42
|
-
|
|
43
|
-
`)+a}var Ce=3;function oo(e){let r=e.slice(0,Ce);if(r!=="---"&&r!=="+++")return;let o=e.indexOf(`
|
|
44
|
-
`,Ce);if(o===-1)return;let i=e.slice(Ce,o).trim(),l=e.indexOf(`
|
|
45
|
-
${r}`,o),a=i;if(a||(a=r==="+++"?"toml":"yaml"),l===-1&&r==="---"&&a==="yaml"&&(l=e.indexOf(`
|
|
46
|
-
...`,o)),l===-1)return;let c=l+1+Ce,u=e.charAt(c+1);if(!/\s?/u.test(u))return;let m=e.slice(0,c);return{type:"front-matter",language:a,explicitLanguage:i,value:e.slice(o+1,l),startDelimiter:r,endDelimiter:m.slice(-Ce),raw:m}}function io(e){let r=oo(e);if(!r)return{content:e};let{raw:o}=r;return{frontMatter:r,content:D(!1,o,/[^\n]/gu," ")+e.slice(o.length)}}var Mt=io;function ao(e){return no(Mt(e).content)}function uo(e){let{frontMatter:r,content:o}=Mt(e);return(r?r.raw+`
|
|
47
|
-
|
|
48
|
-
`:"")+so(o)}var lo=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 co(e){var r,o;return(o=(r=e.findAncestor(i=>i.type==="css-decl"))==null?void 0:r.prop)==null?void 0:o.toLowerCase()}var po=new Set(["initial","inherit","unset","revert"]);function ho(e){return po.has(e.toLowerCase())}function fo(e,r){var o;let i=e.findAncestor(l=>l.type==="css-atrule");return((o=i==null?void 0:i.name)==null?void 0:o.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(r.toLowerCase())}function ye(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function Be(e,r){var o;let i=e.findAncestor(l=>l.type==="value-func");return((o=i==null?void 0:i.value)==null?void 0:o.toLowerCase())===r}function mo(e){var r;let o=e.findAncestor(l=>l.type==="css-rule"),i=(r=o==null?void 0:o.raws)==null?void 0:r.selector;return i&&(i.startsWith(":import")||i.startsWith(":export"))}function Ve(e,r){let o=Array.isArray(r)?r:[r],i=e.findAncestor(l=>l.type==="css-atrule");return i&&o.includes(i.name.toLowerCase())}function vo(e){var r;let{node:o}=e;return o.groups[0].value==="url"&&o.groups.length===2&&((r=e.findAncestor(i=>i.type==="css-atrule"))==null?void 0:r.name)==="import"}function yo(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function go(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function wo(e){let{selector:r}=e;return r?typeof r=="string"&&/^@.+:.*$/u.test(r)||r.value&&/^@.+:.*$/u.test(r.value):!1}function bo(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function xo(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function ko(e){return e.type==="value-word"&&e.value==="in"}function lt(e){return e.type==="value-operator"&&e.value==="*"}function Ge(e){return e.type==="value-operator"&&e.value==="/"}function se(e){return e.type==="value-operator"&&e.value==="+"}function ge(e){return e.type==="value-operator"&&e.value==="-"}function Oo(e){return e.type==="value-operator"&&e.value==="%"}function nt(e){return lt(e)||Ge(e)||se(e)||ge(e)||Oo(e)}function To(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function So(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function ct(e,r){return r.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function Ut(e){var r;return((r=e.raws)==null?void 0:r.params)&&/^\(\s*\)$/u.test(e.raws.params)}function st(e){return e.name.startsWith("prettier-placeholder")}function Co(e){return e.prop.startsWith("@prettier-placeholder")}function _o(e,r){return e.value==="$$"&&e.type==="value-func"&&(r==null?void 0:r.type)==="value-word"&&!r.raws.before}function Eo(e){var r,o;return((r=e.value)==null?void 0:r.type)==="value-root"&&((o=e.value.group)==null?void 0:o.type)==="value-value"&&e.prop.toLowerCase()==="composes"}function Ao(e){var r,o,i;return((i=(o=(r=e.value)==null?void 0:r.group)==null?void 0:o.group)==null?void 0:i.type)==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function me(e){var r;return((r=e.raws)==null?void 0:r.before)===""}function $t(e){var r,o;return e.type==="value-comma_group"&&((o=(r=e.groups)==null?void 0:r[1])==null?void 0:o.type)==="value-colon"}function ot(e){var r;return e.type==="value-paren_group"&&((r=e.groups)==null?void 0:r[0])&&$t(e.groups[0])}function $r(e,r){var o;if(r.parser!=="scss")return!1;let{node:i}=e;if(i.groups.length===0)return!1;let l=e.grandparent;if(!ot(i)&&!(l&&ot(l)))return!1;let a=e.findAncestor(c=>c.type==="css-decl");return!!((o=a==null?void 0:a.prop)!=null&&o.startsWith("$")||ot(l)||l.type==="value-func")}function Bt(e){return e.type==="value-comment"&&e.inline}function it(e){return e.type==="value-word"&&e.value==="#"}function Vt(e){return e.type==="value-word"&&e.value==="{"}function at(e){return e.type==="value-word"&&e.value==="}"}function Fe(e){return["value-word","value-atword"].includes(e.type)}function pt(e){return(e==null?void 0:e.type)==="value-colon"}function jo(e,r){if(!$t(r))return!1;let{groups:o}=r,i=o.indexOf(e);return i===-1?!1:pt(o[i+1])}function Io(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function Po(e){return e.type!=="value-func"?!1:lo.has(e.value.toLowerCase())}function _e(e){return/\/\//u.test(e.split(/[\n\r]/u).pop())}function De(e){return(e==null?void 0:e.type)==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function Mo(e,r){var o,i;if(((o=e.open)==null?void 0:o.value)!=="("||((i=e.close)==null?void 0:i.value)!==")"||e.groups.some(l=>l.type!=="value-comma_group"))return!1;if(r.type==="value-comma_group"){let l=r.groups.indexOf(e)-1,a=r.groups[l];if((a==null?void 0:a.type)==="value-word"&&a.value==="with")return!0}return!1}function Ue(e){var r,o;return e.type==="value-paren_group"&&((r=e.open)==null?void 0:r.value)==="("&&((o=e.close)==null?void 0:o.value)===")"}function $o(e,r,o){var i;let{node:l}=e,a=e.parent,c=e.grandparent,u=co(e),m=u&&a.type==="value-value"&&(u==="grid"||u.startsWith("grid-template")),s=e.findAncestor(y=>y.type==="css-atrule"),n=s&&ct(s,r),t=l.groups.some(y=>Bt(y)),f=e.map(o,"groups"),h=[],d=Be(e,"url"),p=!1,w=!1;for(let y=0;y<l.groups.length;++y){h.push(f[y]);let v=l.groups[y-1],g=l.groups[y],O=l.groups[y+1],b=l.groups[y+2];if(d){(O&&se(O)||se(g))&&h.push(" ");continue}if(Ve(e,"forward")&&g.type==="value-word"&&g.value&&v!==void 0&&v.type==="value-word"&&v.value==="as"&&O.type==="value-operator"&&O.value==="*"||!O||g.type==="value-word"&&g.value.endsWith("-")&&De(O))continue;if(g.type==="value-string"&&g.quoted){let $=g.value.lastIndexOf("#{"),L=g.value.lastIndexOf("}");$!==-1&&L!==-1?p=$>L:$!==-1?p=!0:L!==-1&&(p=!1)}if(p||pt(g)||pt(O)||g.type==="value-atword"&&(g.value===""||g.value.endsWith("["))||O.type==="value-word"&&O.value.startsWith("]")||g.value==="~"||g.type!=="value-string"&&g.value&&g.value.includes("\\")&&O&&O.type!=="value-comment"||v!=null&&v.value&&v.value.indexOf("\\")===v.value.length-1&&g.type==="value-operator"&&g.value==="/"||g.value==="\\"||_o(g,O)||it(g)||Vt(g)||at(O)||Vt(O)&&me(O)||at(g)&&me(O)||g.value==="--"&&it(O))continue;let x=nt(g),k=nt(O);if((x&&it(O)||k&&at(g))&&me(O)||!v&&Ge(g)||Be(e,"calc")&&(se(g)||se(O)||ge(g)||ge(O))&&me(O))continue;let T=(se(g)||ge(g))&&y===0&&(O.type==="value-number"||O.isHex)&&c&&Po(c)&&!me(O),E=(b==null?void 0:b.type)==="value-func"||b&&Fe(b)||g.type==="value-func"||Fe(g),j=O.type==="value-func"||Fe(O)||(v==null?void 0:v.type)==="value-func"||v&&Fe(v);if(r.parser==="scss"&&x&&g.value==="-"&&O.type==="value-func"&&H(g)!==J(O)){h.push(" ");continue}if(!(!(lt(O)||lt(g))&&!Be(e,"calc")&&!T&&(Ge(O)&&!E||Ge(g)&&!j||se(O)&&!E||se(g)&&!j||ge(O)||ge(g))&&(me(O)||x&&(!v||v&&nt(v))))&&!((r.parser==="scss"||r.parser==="less")&&x&&g.value==="-"&&Ue(O)&&H(g)===J(O.open)&&O.open.value==="(")){if(Bt(g)){if(a.type==="value-paren_group"){h.push(He(F));continue}h.push(F);continue}if(n&&(To(O)||So(O)||xo(O)||ko(g)||bo(g))){h.push(" ");continue}if(s&&s.name.toLowerCase()==="namespace"){h.push(" ");continue}if(m){g.source&&O.source&&g.source.start.line!==O.source.start.line?(h.push(F),w=!0):h.push(" ");continue}if(k){h.push(" ");continue}if((O==null?void 0:O.value)!=="..."&&!(De(g)&&De(O)&&H(g)===J(O))){if(De(g)&&Ue(O)&&H(g)===J(O.open)){h.push(Z);continue}if(g.value==="with"&&Ue(O)){h.push(" ");continue}(i=g.value)!=null&&i.endsWith("#")&&O.value==="{"&&Ue(O.group)||h.push(B)}}}return t&&h.push(jt),w&&h.unshift(F),n?K(G(h)):vo(e)?K(ut(h)):K(G(ut(h)))}var Ro=$o;function No(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 Lo=No,Gt=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"]]);function Wo(e){let r=e.toLowerCase();return Gt.has(r)?Gt.get(r):e}var Rr=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,zo=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,qo=/[a-z]+/giu,Fo=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,Do=new RegExp(Rr.source+`|(${Fo.source})?(${zo.source})(${qo.source})?`,"giu");function X(e,r){return D(!1,e,Rr,o=>kr(o,r))}function Uo(e,r){let o=r.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:o+e+o}function ve(e){return D(!1,e,Do,(r,o,i,l,a)=>!i&&l?Nr(l)+ye(a||""):r)}function Nr(e){return Lo(e).replace(/\.0(?=$|e)/u,"")}function Bo(e){return e.trailingComma==="es5"||e.trailingComma==="all"}function Vo(e,r,o){let i=!!(o!=null&&o.backwards);if(r===!1)return!1;let l=e.charAt(r);if(i){if(e.charAt(r-1)==="\r"&&l===`
|
|
49
|
-
`)return r-2;if(l===`
|
|
50
|
-
`||l==="\r"||l==="\u2028"||l==="\u2029")return r-1}else{if(l==="\r"&&e.charAt(r+1)===`
|
|
51
|
-
`)return r+2;if(l===`
|
|
52
|
-
`||l==="\r"||l==="\u2028"||l==="\u2029")return r+1}return r}var Lr=Vo;function Go(e,r,o={}){let i=Cr(e,o.backwards?r-1:r,o),l=Lr(e,i,o);return i!==l}var Wr=Go;function Ho(e,r){if(r===!1)return!1;if(e.charAt(r)==="/"&&e.charAt(r+1)==="*"){for(let o=r+2;o<e.length;++o)if(e.charAt(o)==="*"&&e.charAt(o+1)==="/")return o+2}return r}var Jo=Ho;function Qo(e,r){return r===!1?!1:e.charAt(r)==="/"&&e.charAt(r+1)==="/"?_r(e,r):r}var Ko=Qo;function Zo(e,r){let o=null,i=r;for(;i!==o;)o=i,i=Us(e,i),i=Jo(e,i),i=Cr(e,i);return i=Ko(e,i),i=Lr(e,i),i!==!1&&Wr(e,i)}var zr=Zo;function Yo({node:e,parent:r},o){return!!(e.source&&o.originalText.slice(J(e),J(r.close)).trimEnd().endsWith(","))}function Xo(e,r){return go(e.grandparent)&&Yo(e,r)?",":e.node.type!=="value-comment"&&!(e.node.type==="value-comma_group"&&e.node.groups.every(o=>o.type==="value-comment"))&&Bo(r)&&e.callParent(()=>$r(e,r))?xr(","):""}function ei(e,r,o){let{node:i,parent:l}=e,a=e.map(({node:h})=>typeof h=="string"?h:o(),"groups");if(l&&yo(l)&&(i.groups.length===1||i.groups.length>0&&i.groups[0].type==="value-comma_group"&&i.groups[0].groups.length>0&&i.groups[0].groups[0].type==="value-word"&&i.groups[0].groups[0].value.startsWith("data:")))return[i.open?o("open"):"",ae(",",a),i.close?o("close"):""];if(!i.open){let h=qr(e),d=ae([",",h?F:B],a);return G(h?[F,d]:K(ut(d)))}let c=e.map(({node:h,isLast:d,index:p})=>{var w;let y=a[p];if($t(h)&&h.type==="value-comma_group"&&h.groups&&h.groups[0].type!=="value-paren_group"&&((w=h.groups[2])==null?void 0:w.type)==="value-paren_group"){let{parts:g}=y.contents.contents;g[1]=K(g[1]),y=K(He(y))}let v=[y,d?Xo(e,r):","];if(!d&&h.type==="value-comma_group"&&et(h.groups)){let g=je(!1,h.groups,-1);!g.source&&g.close&&(g=g.close),g.source&&zr(r.originalText,H(g))&&v.push(F)}return v},"groups"),u=jo(i,l),m=Mo(i,l),s=$r(e,r),n=m||s&&!u,t=m||u,f=K([i.open?o("open"):"",G([Z,ae(B,c)]),Z,i.close?o("close"):""],{shouldBreak:n});return t?He(f):f}function qr(e){return e.match(r=>r.type==="value-paren_group"&&!r.open&&r.groups.some(o=>o.type==="value-comma_group"),(r,o)=>o==="group"&&r.type==="value-value",(r,o)=>o==="group"&&r.type==="value-root",(r,o)=>o==="value"&&(r.type==="css-decl"&&!r.prop.startsWith("--")||r.type==="css-atrule"&&r.variable))}function ti(e,r,o){let i=[];return e.each(()=>{let{node:l,previous:a}=e;if((a==null?void 0:a.type)==="css-comment"&&a.text.trim()==="prettier-ignore"?i.push(r.originalText.slice(J(l),H(l))):i.push(o()),e.isLast)return;let{next:c}=e;c.type==="css-comment"&&!Wr(r.originalText,J(c),{backwards:!0})&&!Je(l)||c.type==="css-atrule"&&c.name==="else"&&l.type!=="css-comment"?i.push(" "):(i.push(r.__isHTMLStyleAttribute?B:F),zr(r.originalText,H(l))&&!Je(l)&&i.push(F))},"nodes"),i}var Ee=ti;function ri(e,r,o){var i,l,a,c,u,m;let{node:s}=e;switch(s.type){case"front-matter":return[s.raw,F];case"css-root":{let n=Ee(e,r,o),t=s.raws.after.trim();return t.startsWith(";")&&(t=t.slice(1).trim()),[s.frontMatter?[o("frontMatter"),F]:"",n,t?` ${t}`:"",s.nodes.length>0?F:""]}case"css-comment":{let n=s.inline||s.raws.inline,t=r.originalText.slice(J(s),H(s));return n?t.trimEnd():t}case"css-rule":return[o("selector"),s.important?" !important":"",s.nodes?[((i=s.selector)==null?void 0:i.type)==="selector-unknown"&&_e(s.selector.value)?B:s.selector?" ":"","{",s.nodes.length>0?G([F,Ee(e,r,o)]):"",F,"}",wo(s)?";":""]:";"];case"css-decl":{let n=e.parent,{between:t}=s.raws,f=t.trim(),h=f===":",d=typeof s.value=="string"&&/^ *$/u.test(s.value),p=typeof s.value=="string"?s.value:o("value");return p=Eo(s)?gs(p):p,!h&&_e(f)&&!((a=(l=s.value)==null?void 0:l.group)!=null&&a.group&&e.call(()=>qr(e),"value","group","group"))&&(p=G([F,He(p)])),[D(!1,s.raws.before,/[\s;]/gu,""),n.type==="css-atrule"&&n.variable||mo(e)?s.prop:ye(s.prop),f.startsWith("//")?" ":"",f,s.extend||d?"":" ",r.parser==="less"&&s.extend&&s.selector?["extend(",o("selector"),")"]:"",p,s.raws.important?s.raws.important.replace(/\s*!\s*important/iu," !important"):s.important?" !important":"",s.raws.scssDefault?s.raws.scssDefault.replace(/\s*!default/iu," !default"):s.scssDefault?" !default":"",s.raws.scssGlobal?s.raws.scssGlobal.replace(/\s*!global/iu," !global"):s.scssGlobal?" !global":"",s.nodes?[" {",G([Z,Ee(e,r,o)]),Z,"}"]:Co(s)&&!n.raws.semicolon&&r.originalText[H(s)-1]!==";"?"":r.__isHTMLStyleAttribute&&e.isLast?xr(";"):";"]}case"css-atrule":{let n=e.parent,t=st(s)&&!n.raws.semicolon&&r.originalText[H(s)-1]!==";";if(r.parser==="less"){if(s.mixin)return[o("selector"),s.important?" !important":"",t?"":";"];if(s.function)return[s.name,typeof s.params=="string"?s.params:o("params"),t?"":";"];if(s.variable)return["@",s.name,": ",s.value?o("value"):"",s.raws.between.trim()?s.raws.between.trim()+" ":"",s.nodes?["{",G([s.nodes.length>0?Z:"",Ee(e,r,o)]),Z,"}"]:"",t?"":";"]}let f=s.name==="import"&&((c=s.params)==null?void 0:c.type)==="value-unknown"&&s.params.value.endsWith(";");return["@",Ut(s)||s.name.endsWith(":")||st(s)?s.name:ye(s.name),s.params?[Ut(s)?"":st(s)?s.raws.afterName===""?"":s.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(s.raws.afterName)?[F,F]:/^\s*\n/u.test(s.raws.afterName)?F:" ":" ",typeof s.params=="string"?s.params:o("params")]:"",s.selector?G([" ",o("selector")]):"",s.value?K([" ",o("value"),ct(s,r)?Ao(s)?" ":B:""]):s.name==="else"?" ":"",s.nodes?[ct(s,r)?"":s.selector&&!s.selector.nodes&&typeof s.selector.value=="string"&&_e(s.selector.value)||!s.selector&&typeof s.params=="string"&&_e(s.params)?B:" ","{",G([s.nodes.length>0?Z:"",Ee(e,r,o)]),Z,"}"]:t||f?"":";"]}case"media-query-list":{let n=[];return e.each(({node:t})=>{t.type==="media-query"&&t.value===""||n.push(o())},"nodes"),K(G(ae(B,n)))}case"media-query":return[ae(" ",e.map(o,"nodes")),e.isLast?"":","];case"media-type":return ve(X(s.value,r));case"media-feature-expression":return s.nodes?["(",...e.map(o,"nodes"),")"]:s.value;case"media-feature":return ye(X(D(!1,s.value,/ +/gu," "),r));case"media-colon":return[s.value," "];case"media-value":return ve(X(s.value,r));case"media-keyword":return X(s.value,r);case"media-url":return X(D(!1,D(!1,s.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),r);case"media-unknown":return s.value;case"selector-root":return K([Ve(e,"custom-selector")?[e.findAncestor(n=>n.type==="css-atrule").customSelector,B]:"",ae([",",Ve(e,["extend","custom-selector","nest"])?B:F],e.map(o,"nodes"))]);case"selector-selector":return K(G(e.map(o,"nodes")));case"selector-comment":return s.value;case"selector-string":return X(s.value,r);case"selector-tag":return[s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",((u=e.previous)==null?void 0:u.type)==="selector-nesting"?s.value:ve(fo(e,s.value)?s.value.toLowerCase():s.value)];case"selector-id":return["#",s.value];case"selector-class":return[".",ve(X(s.value,r))];case"selector-attribute":return["[",s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",s.attribute.trim(),s.operator??"",s.value?Uo(X(s.value.trim(),r),r):"",s.insensitive?" i":"","]"];case"selector-combinator":{if(s.value==="+"||s.value===">"||s.value==="~"||s.value===">>>"){let f=e.parent;return[f.type==="selector-selector"&&f.nodes[0]===s?"":B,s.value,e.isLast?"":" "]}let n=s.value.trim().startsWith("(")?B:"",t=ve(X(s.value.trim(),r))||B;return[n,t]}case"selector-universal":return[s.namespace?[s.namespace===!0?"":s.namespace.trim(),"|"]:"",s.value];case"selector-pseudo":return[ye(s.value),et(s.nodes)?K(["(",G([Z,ae([",",B],e.map(o,"nodes"))]),Z,")"]):""];case"selector-nesting":return s.value;case"selector-unknown":{let n=e.findAncestor(h=>h.type==="css-rule");if(n!=null&&n.isSCSSNesterProperty)return ve(X(ye(s.value),r));let t=e.parent;if((m=t.raws)!=null&&m.selector){let h=J(t),d=h+t.raws.selector.length;return r.originalText.slice(h,d).trim()}let f=e.grandparent;if(t.type==="value-paren_group"&&(f==null?void 0:f.type)==="value-func"&&f.value==="selector"){let h=H(t.open)+1,d=J(t.close),p=r.originalText.slice(h,d).trim();return _e(p)?[jt,p]:p}return s.value}case"value-value":case"value-root":return o("group");case"value-comment":return r.originalText.slice(J(s),H(s));case"value-comma_group":return Ro(e,r,o);case"value-paren_group":return ei(e,r,o);case"value-func":return[s.value,Ve(e,"supports")&&Io(s)?" ":"",o("group")];case"value-paren":return s.value;case"value-number":return[Nr(s.value),Wo(s.unit)];case"value-operator":return s.value;case"value-word":return s.isColor&&s.isHex||ho(s.value)?s.value.toLowerCase():s.value;case"value-colon":{let{previous:n}=e;return[s.value,typeof(n==null?void 0:n.value)=="string"&&n.value.endsWith("\\")||Be(e,"url")?"":B]}case"value-string":return kr(s.raws.quote+s.value+s.raws.quote,r);case"value-atword":return["@",s.value];case"value-unicode-range":return s.value;case"value-unknown":return s.value;case"value-comma":default:throw new Cs(s,"PostCSS")}}var ni={print:ri,embed:Ms,insertPragma:uo,massageAstNode:js,getVisitorKeys:Fs},si=ni,Fr=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}],oi={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},ii={singleQuote:oi.singleQuote},Dr=ii,Rt={};Ht(Rt,{css:()=>Li,less:()=>Wi,scss:()=>zi});var ai=we(Ye()),ui=we(vn()),li=we(On());function ci(e,r){let o=new SyntaxError(e+" ("+r.loc.start.line+":"+r.loc.start.column+")");return Object.assign(o,r)}var pi=ci,hi=we(Sn());function Re(e,r,o){if(e&&typeof e=="object"){delete e.parent;for(let i in e)Re(e[i],r,o),i==="type"&&typeof e[i]=="string"&&!e[i].startsWith(r)&&(!o||!o.test(e[i]))&&(e[i]=r+e[i])}return e}function Ur(e){if(e&&typeof e=="object"){delete e.parent;for(let r in e)Ur(e[r]);!Array.isArray(e)&&e.value&&!e.type&&(e.type="unknown")}return e}var fi=hi.default.default;function di(e){let r;try{r=fi(e)}catch{return{type:"selector-unknown",value:e}}return Re(Ur(r),"media-")}var mi=di,vi=we(Fn());function yi(e){if(/\/\/|\/\*/u.test(e))return{type:"selector-unknown",value:e.trim()};let r;try{new vi.default(o=>{r=o}).process(e)}catch{return{type:"selector-unknown",value:e}}return Re(r,"selector-")}var ie=yi,gi=we(ss()),wi=e=>{for(;e.parent;)e=e.parent;return e},Br=wi;function bi(e){return Br(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()}var xi=bi;function ki(e){if(et(e)){for(let r=e.length-1;r>0;r--)if(e[r].type==="word"&&e[r].value==="{"&&e[r-1].type==="word"&&e[r-1].value.endsWith("#"))return!0}return!1}var Oi=ki;function Ti(e){return e.some(r=>r.type==="string"||r.type==="func"&&!r.value.endsWith("\\"))}var Si=Ti;function Ci(e,r){return!!(r.parser==="scss"&&(e==null?void 0:e.type)==="word"&&e.value.startsWith("$"))}var _i=Ci;function Ei(e,r){var o;let{nodes:i}=e,l={open:null,close:null,groups:[],type:"paren_group"},a=[l],c=l,u={groups:[],type:"comma_group"},m=[u];for(let s=0;s<i.length;++s){let n=i[s];if(r.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=[ie(Br(e).text.slice(n.group.open.sourceIndex+1,n.group.close.sourceIndex))]),n.type==="func"&&n.value==="url"){let t=((o=n.group)==null?void 0:o.groups)??[],f=[];for(let h=0;h<t.length;h++){let d=t[h];d.type==="comma_group"?f=[...f,...d.groups]:f.push(d)}(Oi(f)||!Si(f)&&!_i(f[0],r))&&(n.group.groups=[xi(n)])}if(n.type==="paren"&&n.value==="(")l={open:n,close:null,groups:[],type:"paren_group"},a.push(l),u={groups:[],type:"comma_group"},m.push(u);else if(n.type==="paren"&&n.value===")"){if(u.groups.length>0&&l.groups.push(u),l.close=n,m.length===1)throw new Error("Unbalanced parenthesis");m.pop(),u=je(!1,m,-1),u.groups.push(l),a.pop(),l=je(!1,a,-1)}else n.type==="comma"?(l.groups.push(u),u={groups:[],type:"comma_group"},m[m.length-1]=u):u.groups.push(n)}return u.groups.length>0&&l.groups.push(u),c}function ht(e){return e.type==="paren_group"&&!e.open&&!e.close&&e.groups.length===1||e.type==="comma_group"&&e.groups.length===1?ht(e.groups[0]):e.type==="paren_group"||e.type==="comma_group"?{...e,groups:e.groups.map(ht)}:e}function Vr(e,r){if(e&&typeof e=="object")for(let o in e)o!=="parent"&&(Vr(e[o],r),o==="nodes"&&(e.group=ht(Ei(e,r)),delete e[o]));return e}function Ai(e,r){if(r.parser==="less"&&e.startsWith("~`"))return{type:"value-unknown",value:e};let o=null;try{o=new gi.default(e,{loose:!0}).parse()}catch{return{type:"value-unknown",value:e}}o.text=e;let i=Vr(o,r);return Re(i,"value-",/^selector-/u)}var oe=Ai,ji=new Set(["import","use","forward"]);function Ii(e){return ji.has(e)}var Pi=Ii;function Mi(e,r){return r.parser!=="scss"||!e.selector?!1:e.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var $i=Mi,Ri=/(\s*)(!default).*$/u,Ni=/(\s*)(!global).*$/u;function Gr(e,r){var o,i;if(e&&typeof e=="object"){delete e.parent;for(let u in e)Gr(e[u],r);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 u;if(e.value.trimEnd().endsWith("}")){let m=r.originalText.slice(0,e.source.start.offset),s="a".repeat(e.prop.length)+r.originalText.slice(e.source.start.offset+e.prop.length,e.source.end.offset),n=D(!1,m,/[^\n]/gu," ")+s,t;r.parser==="scss"?t=Qr:r.parser==="less"?t=Jr:t=Hr;let f;try{f=t(n,{...r})}catch{}((o=f==null?void 0:f.nodes)==null?void 0:o.length)===1&&f.nodes[0].type==="css-rule"&&(u=f.nodes[0].nodes)}return u?e.value={type:"css-rule",nodes:u}:e.value={type:"value-unknown",value:e.raws.value.raw},e}let l="";typeof e.selector=="string"&&(l=e.raws.selector?e.raws.selector.scss??e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(l+=e.raws.between),e.raws.selector=l);let a="";typeof e.value=="string"&&(a=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,a=a.trim(),e.raws.value=a);let c="";if(typeof e.params=="string"&&(c=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(c=e.raws.afterName+c),e.raws.between&&e.raws.between.trim().length>0&&(c=c+e.raws.between),c=c.trim(),e.raws.params=c),l.trim().length>0)return l.startsWith("@")&&l.endsWith(":")?e:e.mixin?(e.selector=oe(l,r),e):($i(e,r)&&(e.isSCSSNesterProperty=!0),e.selector=ie(l),e);if(a.length>0){let u=a.match(Ri);u&&(a=a.slice(0,u.index),e.scssDefault=!0,u[0].trim()!=="!default"&&(e.raws.scssDefault=u[0]));let m=a.match(Ni);if(m&&(a=a.slice(0,m.index),e.scssGlobal=!0,m[0].trim()!=="!global"&&(e.raws.scssGlobal=m[0])),a.startsWith("progid:"))return{type:"value-unknown",value:a};e.value=oe(a,r)}if(r.parser==="less"&&e.type==="css-decl"&&a.startsWith("extend(")&&(e.extend||(e.extend=e.raws.between===":"),e.extend&&!e.selector&&(delete e.value,e.selector=ie(a.slice(7,-1)))),e.type==="css-atrule"){if(r.parser==="less"){if(e.mixin){let u=e.raws.identifier+e.name+e.raws.afterName+e.raws.params;return e.selector=ie(u),delete e.params,e}if(e.function)return e}if(r.parser==="css"&&e.name==="custom-selector"){let u=e.params.match(/:--\S+\s+/u)[0].trim();return e.customSelector=u,e.selector=ie(e.params.slice(u.length).trim()),delete e.params,e}if(r.parser==="less"){if(e.name.includes(":")&&!e.params){e.variable=!0;let u=e.name.split(":");e.name=u[0],e.value=oe(u.slice(1).join(":"),r)}if(!["page","nest","keyframes"].includes(e.name)&&((i=e.params)==null?void 0:i[0])===":"){e.variable=!0;let u=e.params.slice(1);u&&(e.value=oe(u,r)),e.raws.afterName+=":"}if(e.variable)return delete e.params,e.value||delete e.value,e}}if(e.type==="css-atrule"&&c.length>0){let{name:u}=e,m=e.name.toLowerCase();return u==="warn"||u==="error"?(e.params={type:"media-unknown",value:c},e):u==="extend"||u==="nest"?(e.selector=ie(c),delete e.params,e):u==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(c)?e.params=oe(c,r):(e.selector=ie(c),delete e.params),e):Pi(m)?(e.import=!0,delete e.filename,e.params=oe(c,r),e):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(u)?(c=c.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),c=c.replace(/^(?!if)(\S+)(\s+)\(/u,"$1($2"),e.value=oe(c,r),delete e.params,e):["media","custom-media"].includes(m)?c.includes("#{")?{type:"media-unknown",value:c}:(e.params=mi(c),e):(e.params=c,e)}}return e}function Nt(e,r,o){let i=Mt(r),{frontMatter:l}=i;r=i.content;let a;try{a=e(r,{map:!1})}catch(c){let{name:u,reason:m,line:s,column:n}=c;throw typeof s!="number"?c:pi(`${u}: ${m}`,{loc:{start:{line:s,column:n}},cause:c})}return o.originalText=r,a=Gr(Re(a,"css-"),o),Ar(a,r),l&&(l.source={startOffset:0,endOffset:l.raw.length},a.frontMatter=l),a}function Hr(e,r={}){return Nt(ai.default.default,e,r)}function Jr(e,r={}){return Nt(o=>ui.default.parse(Vs(o)),e,r)}function Qr(e,r={}){return Nt(li.default,e,r)}var Lt={astFormat:"postcss",hasPragma:ao,locStart:J,locEnd:H},Li={...Lt,parse:Hr},Wi={...Lt,parse:Jr},zi={...Lt,parse:Qr},Kr={postcss:si},qi=lr;exports.default=qi;exports.languages=Fr;exports.options=Dr;exports.parsers=Rt;exports.printers=Kr;
|