prettier 3.0.0-alpha.3 → 3.0.0-alpha.5
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/LICENSE +875 -677
- package/README.md +3 -3
- package/doc.d.ts +248 -0
- package/doc.js +314 -246
- package/doc.mjs +309 -241
- package/index.cjs +399 -229
- package/index.d.ts +903 -0
- package/index.mjs +18131 -16873
- package/internal/cli.mjs +3958 -10433
- package/internal/third-party.mjs +2948 -5593
- package/package.json +32 -1
- package/plugins/acorn-and-espree.d.ts +10 -0
- package/plugins/acorn-and-espree.js +12 -12
- package/plugins/acorn-and-espree.mjs +12 -12
- package/plugins/angular.d.ts +11 -0
- package/plugins/angular.js +2 -2
- package/plugins/angular.mjs +2 -2
- package/plugins/babel.d.ts +16 -0
- package/plugins/babel.js +12 -12
- package/plugins/babel.mjs +12 -12
- package/plugins/flow.d.ts +8 -0
- package/plugins/flow.js +20 -20
- package/plugins/flow.mjs +20 -20
- package/plugins/glimmer.d.ts +8 -0
- package/plugins/glimmer.js +18 -18
- package/plugins/glimmer.mjs +18 -18
- package/plugins/graphql.d.ts +8 -0
- package/plugins/graphql.js +7 -7
- package/plugins/graphql.mjs +7 -7
- package/plugins/html.d.ts +11 -0
- package/plugins/html.js +17 -28
- package/plugins/html.mjs +17 -28
- package/plugins/markdown.d.ts +10 -0
- package/plugins/markdown.js +28 -29
- package/plugins/markdown.mjs +28 -29
- package/plugins/meriyah.d.ts +8 -0
- package/plugins/meriyah.js +5 -6
- package/plugins/meriyah.mjs +5 -6
- package/plugins/postcss.d.ts +10 -0
- package/plugins/postcss.js +32 -43
- package/plugins/postcss.mjs +32 -43
- package/plugins/typescript.d.ts +8 -0
- package/plugins/typescript.js +18 -231
- package/plugins/typescript.mjs +18 -231
- package/plugins/yaml.d.ts +8 -0
- package/plugins/yaml.js +108 -108
- package/plugins/yaml.mjs +108 -108
- package/standalone.d.ts +33 -0
- package/standalone.js +77 -83
- package/standalone.mjs +77 -83
package/plugins/postcss.js
CHANGED
|
@@ -1,50 +1,39 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
|
|
3
|
-
`,n="/**",i=" *",o=" */",s=Object.keys(e),u=s.map(l=>bi(l,e[l])).reduce((l,h)=>l.concat(h),[]).map(l=>`${i} ${l}${r}`).join("");if(!t){if(s.length===0)return"";if(s.length===1&&!Array.isArray(e[s[0]])){let l=e[s[0]];return`${n} ${bi(s[0],l)[0]}${o}`}}let a=t.split(r).map(l=>`${i} ${l}`).join(r)+r;return n+r+(t?a:"")+(t&&s.length?i+r:"")+u+o}function bi(t,e){return Oi.concat(e).map(r=>`@${t} ${r}`.trim())}});var z=v((Ww,Bi)=>{"use strict";c();var jr=function(t,e){let r=new t.constructor;for(let n in t){if(!t.hasOwnProperty(n))continue;let i=t[n],o=typeof i;n==="parent"&&o==="object"?e&&(r[n]=e):n==="source"?r[n]=i:i instanceof Array?r[n]=i.map(s=>jr(s,r)):n!=="before"&&n!=="after"&&n!=="between"&&n!=="semicolon"&&(o==="object"&&i!==null&&(i=jr(i)),r[n]=i)}return r};Bi.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let r in e)this[r]=e[r]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let r=jr(this);for(let n in e)r[n]=e[n];return r}cloneBefore(e){e=e||{};let r=this.clone(e);return this.parent.insertBefore(this,r),r}cloneAfter(e){e=e||{};let r=this.clone(e);return this.parent.insertAfter(this,r),r}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let r of e)this.parent.insertBefore(this,r);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let r in this){if(!this.hasOwnProperty(r)||r==="parent")continue;let n=this[r];n instanceof Array?e[r]=n.map(i=>typeof i=="object"&&i.toJSON?i.toJSON():i):typeof n=="object"&&n.toJSON?e[r]=n.toJSON():e[r]=n}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let r=this.toString(),n=this.source.start.column,i=this.source.start.line;for(let o=0;o<e;o++)r[o]===`
|
|
4
|
-
`?(n=1,i+=1):n+=1;return{line:i,column:n}}positionBy(e){let r=this.source.start;if(Object(e).index)r=this.positionInside(e.index);else if(Object(e).word){let n=this.toString().indexOf(e.word);n!==-1&&(r=this.positionInside(n))}return r}}});var N=v((Gw,$i)=>{"use strict";c();var Xl=z(),me=class extends Xl{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let r=this.lastEach,n,i;if(this.indexes[r]=0,!!this.nodes){for(;this.indexes[r]<this.nodes.length&&(n=this.indexes[r],i=e(this.nodes[n],n),i!==!1);)this.indexes[r]+=1;return delete this.indexes[r],i}}walk(e){return this.each((r,n)=>{let i=e(r,n);return i!==!1&&r.walk&&(i=r.walk(e)),i})}walkType(e,r){if(!e||!r)throw new Error("Parameters {type} and {callback} are required.");let n=typeof e=="function";return this.walk((i,o)=>{if(n&&i instanceof e||!n&&i.type===e)return r.call(this,i,o)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}insertAfter(e,r){let n=this.index(e),i;this.nodes.splice(n+1,0,r);for(let o in this.indexes)i=this.indexes[o],n<=i&&(this.indexes[o]=i+this.nodes.length);return this}insertBefore(e,r){let n=this.index(e),i;this.nodes.splice(n,0,r);for(let o in this.indexes)i=this.indexes[o],n<=i&&(this.indexes[o]=i+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(!!this.nodes)return this.nodes[0]}get last(){if(!!this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};me.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!me.prototype[e]&&(me.prototype[e]=function(r){return this.walkType(t,r)})};$i.exports=me});var Wi=v((Qw,Fi)=>{"use strict";c();var ec=N();Fi.exports=class extends ec{constructor(e){super(e),this.type="root"}}});var Gi=v((Zw,Vi)=>{"use strict";c();var tc=N();Vi.exports=class extends tc{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var Qi=v((ev,Ji)=>{"use strict";c();var Hi=N(),pt=class extends Hi{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};Hi.registerWalker(pt);Ji.exports=pt});var Yi=v((rv,Ki)=>{"use strict";c();var rc=N(),nc=z(),dt=class extends nc{constructor(e){super(e),this.type="colon"}};rc.registerWalker(dt);Ki.exports=dt});var Xi=v((iv,Zi)=>{"use strict";c();var ic=N(),sc=z(),mt=class extends sc{constructor(e){super(e),this.type="comma"}};ic.registerWalker(mt);Zi.exports=mt});var ts=v((ov,es)=>{"use strict";c();var oc=N(),ac=z(),gt=class extends ac{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};oc.registerWalker(gt);es.exports=gt});var is=v((uv,ns)=>{"use strict";c();var rs=N(),yt=class extends rs{constructor(e){super(e),this.type="func",this.unbalanced=-1}};rs.registerWalker(yt);ns.exports=yt});var os=v((cv,ss)=>{"use strict";c();var uc=N(),lc=z(),wt=class extends lc{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};uc.registerWalker(wt);ss.exports=wt});var us=v((hv,as)=>{"use strict";c();var cc=N(),fc=z(),vt=class extends fc{constructor(e){super(e),this.type="operator"}};cc.registerWalker(vt);as.exports=vt});var cs=v((dv,ls)=>{"use strict";c();var hc=N(),pc=z(),xt=class extends pc{constructor(e){super(e),this.type="paren",this.parenType=""}};hc.registerWalker(xt);ls.exports=xt});var hs=v((gv,fs)=>{"use strict";c();var dc=N(),mc=z(),bt=class extends mc{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};dc.registerWalker(bt);fs.exports=bt});var ds=v((wv,ps)=>{"use strict";c();var gc=N(),yc=z(),kt=class extends yc{constructor(e){super(e),this.type="word"}};gc.registerWalker(kt);ps.exports=kt});var gs=v((xv,ms)=>{"use strict";c();var wc=N(),vc=z(),Ot=class extends vc{constructor(e){super(e),this.type="unicode-range"}};wc.registerWalker(Ot);ms.exports=Ot});function ys(){throw new Error("setTimeout has not been defined")}function ws(){throw new Error("clearTimeout has not been defined")}function vs(t){if(K===setTimeout)return setTimeout(t,0);if((K===ys||!K)&&setTimeout)return K=setTimeout,setTimeout(t,0);try{return K(t,0)}catch{try{return K.call(null,t,0)}catch{return K.call(this,t,0)}}}function xc(t){if(Y===clearTimeout)return clearTimeout(t);if((Y===ws||!Y)&&clearTimeout)return Y=clearTimeout,clearTimeout(t);try{return Y(t)}catch{try{return Y.call(null,t)}catch{return Y.call(this,t)}}}function bc(){!ye||!re||(ye=!1,re.length?G=re.concat(G):St=-1,G.length&&xs())}function xs(){if(!ye){var t=vs(bc);ye=!0;for(var e=G.length;e;){for(re=G,G=[];++St<e;)re&&re[St].run();St=-1,e=G.length}re=null,ye=!1,xc(t)}}function kc(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];G.push(new bs(t,e)),G.length===1&&!ye&&vs(xs)}function bs(t,e){this.fun=t,this.array=e}function ne(){}function jc(t){throw new Error("process.binding is not supported")}function Uc(){return"/"}function Bc(t){throw new Error("process.chdir is not supported")}function $c(){return 0}function Wc(t){var e=Fc.call(ge)*.001,r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r=r-t[0],n=n-t[1],n<0&&(r--,n+=1e9)),[r,n]}function Gc(){var t=new Date,e=t-Vc;return e/1e3}var K,Y,G,ye,re,St,Oc,Sc,Tc,_c,Ec,Ac,Cc,qc,Rc,Pc,Ic,Nc,Mc,Dc,Lc,zc,ge,Fc,Vc,Hc,Re,ks=Q(()=>{c();K=ys,Y=ws;typeof globalThis.setTimeout=="function"&&(K=setTimeout);typeof globalThis.clearTimeout=="function"&&(Y=clearTimeout);G=[],ye=!1,St=-1;bs.prototype.run=function(){this.fun.apply(null,this.array)};Oc="browser",Sc="browser",Tc=!0,_c={},Ec=[],Ac="",Cc={},qc={},Rc={};Pc=ne,Ic=ne,Nc=ne,Mc=ne,Dc=ne,Lc=ne,zc=ne;ge=globalThis.performance||{},Fc=ge.now||ge.mozNow||ge.msNow||ge.oNow||ge.webkitNow||function(){return new Date().getTime()};Vc=new Date;Hc={nextTick:kc,title:Oc,browser:Tc,env:_c,argv:Ec,version:Ac,versions:Cc,on:Pc,addListener:Ic,once:Nc,off:Mc,removeListener:Dc,removeAllListeners:Lc,emit:zc,binding:jc,cwd:Uc,chdir:Bc,umask:$c,hrtime:Wc,platform:Sc,release:qc,config:Rc,uptime:Gc},Re=Hc});var Ur,Br,Os=Q(()=>{c();typeof Object.create=="function"?Ur=function(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Ur=function(e,r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e};Br=Ur});var qs={};ut(qs,{_extend:()=>Kr,debuglog:()=>Ss,default:()=>nf,deprecate:()=>Gr,format:()=>At,inherits:()=>Br,inspect:()=>B,isArray:()=>Hr,isBoolean:()=>Ct,isBuffer:()=>Es,isDate:()=>Et,isError:()=>Ie,isFunction:()=>Ne,isNull:()=>$,isNullOrUndefined:()=>qt,isNumber:()=>Jr,isObject:()=>F,isPrimitive:()=>_s,isRegExp:()=>Pe,isString:()=>H,isSymbol:()=>Ts,isUndefined:()=>U,log:()=>As});function At(t){if(!H(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(B(arguments[r]));return e.join(" ")}for(var r=1,n=arguments,i=n.length,o=String(t).replace(Jc,function(u){if(u==="%%")return"%";if(r>=i)return u;switch(u){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return u}}),s=n[r];r<i;s=n[++r])$(s)||!F(s)?o+=" "+s:o+=" "+B(s);return o}function Gr(t,e){if(U(globalThis.process))return function(){return Gr(t,e).apply(this,arguments)};if(Re.noDeprecation===!0)return t;var r=!1;function n(){if(!r){if(Re.throwDeprecation)throw new Error(e);Re.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}return n}function Ss(t){if(U($r)&&($r=Re.env.NODE_DEBUG||""),t=t.toUpperCase(),!Tt[t])if(new RegExp("\\b"+t+"\\b","i").test($r)){var e=0;Tt[t]=function(){var r=At.apply(null,arguments);console.error("%s %d: %s",t,e,r)}}else Tt[t]=function(){};return Tt[t]}function B(t,e){var r={seen:[],stylize:Kc};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Ct(e)?r.showHidden=e:e&&Kr(r,e),U(r.showHidden)&&(r.showHidden=!1),U(r.depth)&&(r.depth=2),U(r.colors)&&(r.colors=!1),U(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=Qc),_t(r,t,r.depth)}function Qc(t,e){var r=B.styles[e];return r?"\x1B["+B.colors[r][0]+"m"+t+"\x1B["+B.colors[r][1]+"m":t}function Kc(t,e){return t}function Yc(t){var e={};return t.forEach(function(r,n){e[r]=!0}),e}function _t(t,e,r){if(t.customInspect&&e&&Ne(e.inspect)&&e.inspect!==B&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(r,t);return H(n)||(n=_t(t,n,r)),n}var i=Zc(t,e);if(i)return i;var o=Object.keys(e),s=Yc(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),Ie(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Fr(e);if(o.length===0){if(Ne(e)){var u=e.name?": "+e.name:"";return t.stylize("[Function"+u+"]","special")}if(Pe(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Et(e))return t.stylize(Date.prototype.toString.call(e),"date");if(Ie(e))return Fr(e)}var a="",l=!1,h=["{","}"];if(Hr(e)&&(l=!0,h=["[","]"]),Ne(e)){var p=e.name?": "+e.name:"";a=" [Function"+p+"]"}if(Pe(e)&&(a=" "+RegExp.prototype.toString.call(e)),Et(e)&&(a=" "+Date.prototype.toUTCString.call(e)),Ie(e)&&(a=" "+Fr(e)),o.length===0&&(!l||e.length==0))return h[0]+a+h[1];if(r<0)return Pe(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var f;return l?f=Xc(t,e,r,s,o):f=o.map(function(g){return Vr(t,e,r,s,g,l)}),t.seen.pop(),ef(f,a,h)}function Zc(t,e){if(U(e))return t.stylize("undefined","undefined");if(H(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(Jr(e))return t.stylize(""+e,"number");if(Ct(e))return t.stylize(""+e,"boolean");if($(e))return t.stylize("null","null")}function Fr(t){return"["+Error.prototype.toString.call(t)+"]"}function Xc(t,e,r,n,i){for(var o=[],s=0,u=e.length;s<u;++s)Cs(e,String(s))?o.push(Vr(t,e,r,n,String(s),!0)):o.push("");return i.forEach(function(a){a.match(/^\d+$/)||o.push(Vr(t,e,r,n,a,!0))}),o}function Vr(t,e,r,n,i,o){var s,u,a;if(a=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},a.get?a.set?u=t.stylize("[Getter/Setter]","special"):u=t.stylize("[Getter]","special"):a.set&&(u=t.stylize("[Setter]","special")),Cs(n,i)||(s="["+i+"]"),u||(t.seen.indexOf(a.value)<0?($(r)?u=_t(t,a.value,null):u=_t(t,a.value,r-1),u.indexOf(`
|
|
5
|
-
`)>-1&&(o?u=u.split(`
|
|
6
|
-
`).map(function(l){return" "+l}).join(`
|
|
7
|
-
`).substr(2):u=`
|
|
8
|
-
`+u.split(`
|
|
9
|
-
`).map(function(l){return" "+l}).join(`
|
|
10
|
-
`))):u=t.stylize("[Circular]","special")),U(s)){if(o&&i.match(/^\d+$/))return u;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+u}function ef(t,e,r){var n=0,i=t.reduce(function(o,s){return n++,s.indexOf(`
|
|
11
|
-
`)>=0&&n++,o+s.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(e===""?"":e+`
|
|
12
|
-
`)+" "+t.join(`,
|
|
13
|
-
`)+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function Hr(t){return Array.isArray(t)}function Ct(t){return typeof t=="boolean"}function $(t){return t===null}function qt(t){return t==null}function Jr(t){return typeof t=="number"}function H(t){return typeof t=="string"}function Ts(t){return typeof t=="symbol"}function U(t){return t===void 0}function Pe(t){return F(t)&&Qr(t)==="[object RegExp]"}function F(t){return typeof t=="object"&&t!==null}function Et(t){return F(t)&&Qr(t)==="[object Date]"}function Ie(t){return F(t)&&(Qr(t)==="[object Error]"||t instanceof Error)}function Ne(t){return typeof t=="function"}function _s(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}function Es(t){return Buffer.isBuffer(t)}function Qr(t){return Object.prototype.toString.call(t)}function Wr(t){return t<10?"0"+t.toString(10):t.toString(10)}function rf(){var t=new Date,e=[Wr(t.getHours()),Wr(t.getMinutes()),Wr(t.getSeconds())].join(":");return[t.getDate(),tf[t.getMonth()],e].join(" ")}function As(){console.log("%s - %s",rf(),At.apply(null,arguments))}function Kr(t,e){if(!e||!F(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function Cs(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Jc,Tt,$r,tf,nf,Yr=Q(()=>{c();ks();Os();Jc=/%[sdj%]/g;Tt={};B.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};B.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};tf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];nf={inherits:Br,_extend:Kr,log:As,isBuffer:Es,isPrimitive:_s,isFunction:Ne,isError:Ie,isDate:Et,isObject:F,isRegExp:Pe,isUndefined:U,isSymbol:Ts,isString:H,isNumber:Jr,isNullOrUndefined:qt,isNull:$,isBoolean:Ct,isArray:Hr,inspect:B,deprecate:Gr,format:At,debuglog:Ss}});var Rs=v((Cv,Rt)=>{c();var ie=(Yr(),lt(qs));if(ie&&ie.default){Rt.exports=ie.default;for(let t in ie)Rt.exports[t]=ie[t]}else ie&&(Rt.exports=ie)});var Is=v((Rv,Ps)=>{"use strict";c();var Zr=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Ps.exports=Zr});var Bs=v((Iv,Us)=>{"use strict";c();var sf="{".charCodeAt(0),of="}".charCodeAt(0),af="(".charCodeAt(0),uf=")".charCodeAt(0),Ns="'".charCodeAt(0),lf='"'.charCodeAt(0),Ms="\\".charCodeAt(0),Pt="/".charCodeAt(0),cf=".".charCodeAt(0),ff=",".charCodeAt(0),hf=":".charCodeAt(0),Xr="*".charCodeAt(0),It="-".charCodeAt(0),en="+".charCodeAt(0),pf="#".charCodeAt(0),Me=`
|
|
14
|
-
`.charCodeAt(0),tn=" ".charCodeAt(0),rn="\f".charCodeAt(0),nn=" ".charCodeAt(0),sn="\r".charCodeAt(0),df="@".charCodeAt(0),mf="e".charCodeAt(0),gf="E".charCodeAt(0),Ds="0".charCodeAt(0),Ls="9".charCodeAt(0),yf="u".charCodeAt(0),wf="U".charCodeAt(0),Nt=/[ \n\t\r\{\(\)'"\\;,/]/g,vf=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,we=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,xf=/^[a-z0-9]/i,bf=/^[a-f0-9?\-]/i,zs=Rs(),js=Is();Us.exports=function(e,r){r=r||{};let n=[],i=e.valueOf(),o=i.length,s=-1,u=1,a=0,l=0,h=null,p,f,g,x,m,w,y,E,b,A,S,C;function L(O){let T=zs.format("Unclosed %s at line: %d, column: %d, token: %d",O,u,a-s,a);throw new js(T)}function q(){let O=zs.format("Syntax error at line: %d, column: %d, token: %d",u,a-s,a);throw new js(O)}for(;a<o;){switch(p=i.charCodeAt(a),p===Me&&(s=a,u+=1),p){case Me:case tn:case nn:case sn:case rn:f=a;do f+=1,p=i.charCodeAt(f),p===Me&&(s=f,u+=1);while(p===tn||p===Me||p===nn||p===sn||p===rn);n.push(["space",i.slice(a,f),u,a-s,u,f-s,a]),a=f-1;break;case hf:f=a+1,n.push(["colon",i.slice(a,f),u,a-s,u,f-s,a]),a=f-1;break;case ff:f=a+1,n.push(["comma",i.slice(a,f),u,a-s,u,f-s,a]),a=f-1;break;case sf:n.push(["{","{",u,a-s,u,f-s,a]);break;case of:n.push(["}","}",u,a-s,u,f-s,a]);break;case af:l++,h=!h&&l===1&&n.length>0&&n[n.length-1][0]==="word"&&n[n.length-1][1]==="url",n.push(["(","(",u,a-s,u,f-s,a]);break;case uf:l--,h=h&&l>0,n.push([")",")",u,a-s,u,f-s,a]);break;case Ns:case lf:g=p===Ns?"'":'"',f=a;do for(A=!1,f=i.indexOf(g,f+1),f===-1&&L("quote",g),S=f;i.charCodeAt(S-1)===Ms;)S-=1,A=!A;while(A);n.push(["string",i.slice(a,f+1),u,a-s,u,f-s,a]),a=f;break;case df:Nt.lastIndex=a+1,Nt.test(i),Nt.lastIndex===0?f=i.length-1:f=Nt.lastIndex-2,n.push(["atword",i.slice(a,f+1),u,a-s,u,f-s,a]),a=f;break;case Ms:f=a,p=i.charCodeAt(f+1),y&&p!==Pt&&p!==tn&&p!==Me&&p!==nn&&p!==sn&&p!==rn&&(f+=1),n.push(["word",i.slice(a,f+1),u,a-s,u,f-s,a]),a=f;break;case en:case It:case Xr:f=a+1,C=i.slice(a+1,f+1);let O=i.slice(a-1,a);if(p===It&&C.charCodeAt(0)===It){f++,n.push(["word",i.slice(a,f),u,a-s,u,f-s,a]),a=f-1;break}n.push(["operator",i.slice(a,f),u,a-s,u,f-s,a]),a=f-1;break;default:if(p===Pt&&(i.charCodeAt(a+1)===Xr||r.loose&&!h&&i.charCodeAt(a+1)===Pt)){if(i.charCodeAt(a+1)===Xr)f=i.indexOf("*/",a+2)+1,f===0&&L("comment","*/");else{let R=i.indexOf(`
|
|
15
|
-
`,a+2);f=R!==-1?R-1:o}w=i.slice(a,f+1),x=w.split(`
|
|
16
|
-
`),m=x.length-1,m>0?(E=u+m,b=f-x[m].length):(E=u,b=s),n.push(["comment",w,u,a-s,E,f-b,a]),s=b,u=E,a=f}else if(p===pf&&!xf.test(i.slice(a+1,a+2)))f=a+1,n.push(["#",i.slice(a,f),u,a-s,u,f-s,a]),a=f-1;else if((p===yf||p===wf)&&i.charCodeAt(a+1)===en){f=a+2;do f+=1,p=i.charCodeAt(f);while(f<o&&bf.test(i.slice(f,f+1)));n.push(["unicoderange",i.slice(a,f),u,a-s,u,f-s,a]),a=f-1}else if(p===Pt)f=a+1,n.push(["operator",i.slice(a,f),u,a-s,u,f-s,a]),a=f-1;else{let T=vf;if(p>=Ds&&p<=Ls&&(T=we),T.lastIndex=a+1,T.test(i),T.lastIndex===0?f=i.length-1:f=T.lastIndex-2,T===we||p===cf){let R=i.charCodeAt(f),pe=i.charCodeAt(f+1),st=i.charCodeAt(f+2);(R===mf||R===gf)&&(pe===It||pe===en)&&st>=Ds&&st<=Ls&&(we.lastIndex=f+2,we.test(i),we.lastIndex===0?f=i.length-1:f=we.lastIndex-2)}n.push(["word",i.slice(a,f+1),u,a-s,u,f-s,a]),a=f}break}a++}return n}});var on=v((Mv,$s)=>{c();$s.exports=function(e,r){if(r=typeof r=="number"?r:1/0,!r)return Array.isArray(e)?e.map(function(i){return i}):e;return n(e,1);function n(i,o){return i.reduce(function(s,u){return Array.isArray(u)&&o<r?s.concat(n(u,o+1)):s.concat(u)},[])}}});var an=v((Lv,Fs)=>{c();Fs.exports=function(t,e){for(var r=-1,n=[];(r=t.indexOf(e,r+1))!==-1;)n.push(r);return n}});var un=v((jv,Ws)=>{"use strict";c();function kf(t,e){for(var r=1,n=t.length,i=t[0],o=t[0],s=1;s<n;++s)if(o=i,i=t[s],e(i,o)){if(s===r){r++;continue}t[r++]=i}return t.length=r,t}function Of(t){for(var e=1,r=t.length,n=t[0],i=t[0],o=1;o<r;++o,i=n)if(i=n,n=t[o],n!==i){if(o===e){e++;continue}t[e++]=n}return t.length=e,t}function Sf(t,e,r){return t.length===0?t:e?(r||t.sort(e),kf(t,e)):(r||t.sort(),Of(t))}Ws.exports=Sf});var Gs=v((Bv,Vs)=>{"use strict";c();var ln=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Vs.exports=ln});var Ks=v((Wv,Qs)=>{"use strict";c();var Tf=Wi(),_f=Gi(),Ef=Qi(),Af=Yi(),Cf=Xi(),qf=ts(),Rf=is(),Pf=os(),If=us(),Hs=cs(),Nf=hs(),Js=ds(),Mf=gs(),Df=Bs(),Lf=on(),zf=an(),jf=un(),Uf=Gs();function Bf(t){return t.sort((e,r)=>e-r)}Qs.exports=class{constructor(e,r){let n={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},n,r),this.position=0,this.unbalanced=0,this.root=new Tf;let i=new _f;this.root.append(i),this.current=i,this.tokens=Df(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new Af({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new Cf({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,r=this.currToken[1].replace(/\/\*|\*\//g,""),n;this.options.loose&&r.startsWith("//")&&(r=r.substring(2),e=!0),n=new qf({value:r,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(n),this.position++}error(e,r){throw new Uf(e+` at line: ${r[2]}, column ${r[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let e=this.currToken[1],r;if(e==="+"||e==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.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 r=new If({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(r)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,r=this.position+1,n=this.currToken,i;for(;r<this.tokens.length&&e;){let o=this.tokens[r];o[0]==="("&&e++,o[0]===")"&&e--,r++}if(e&&this.error("Expected closing parenthesis",n),i=this.current.last,i&&i.type==="func"&&i.unbalanced<0&&(i.unbalanced=0,this.current=i),this.current.unbalanced++,this.newNode(new Hs({value:n[1],source:{start:{line:n[2],column:n[3]},end:{line:n[4],column:n[5]}},sourceIndex:n[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let o=this.nextToken,s=this.currToken[1],u={line:this.currToken[2],column:this.currToken[3]};for(;o&&o[0]!==")"&&this.current.unbalanced;)this.position++,s+=this.currToken[1],o=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new Js({value:s,source:{start:u,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let e=this.currToken;this.newNode(new Hs({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new Mf({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,r=this.currToken[1],n=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,i=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,o,s;if(!i.test(r))for(;e&&e[0]==="word";)this.position++,r+=this.currToken[1],e=this.nextToken;o=zf(r,"@"),s=Bf(jf(Lf([[0],o]))),s.forEach((u,a)=>{let l=s[a+1]||r.length,h=r.slice(u,l),p;if(~o.indexOf(u))p=new Ef({value:h.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(l-1)}},sourceIndex:this.currToken[6]+s[a]});else if(n.test(this.currToken[1])){let f=h.replace(n,"");p=new Pf({value:h.replace(f,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(l-1)}},sourceIndex:this.currToken[6]+s[a],unit:f})}else p=new(e&&e[0]==="("?Rf:Js)({value:h,source:{start:{line:this.currToken[2],column:this.currToken[3]+u},end:{line:this.currToken[4],column:this.currToken[3]+(l-1)}},sourceIndex:this.currToken[6]+s[a]}),p.type==="word"?(p.isHex=/^#(.+)/.test(h),p.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(h)):this.cache.push(this.current);this.newNode(p)}),this.position++}string(){let e=this.currToken,r=this.currToken[1],n=/^(\"|\')/,i=n.test(r),o="",s;i&&(o=r.match(n)[0],r=r.slice(1,r.length-1)),s=new Nf({value:r,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:i}),s.raws.quote=o,this.newNode(s),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var se=v((Mt,Zs)=>{"use strict";c();Mt.__esModule=!0;var Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function $f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ff=function t(e,r){if((typeof e>"u"?"undefined":Ys(e))!=="object")return e;var n=new e.constructor;for(var i in e)if(!!e.hasOwnProperty(i)){var o=e[i],s=typeof o>"u"?"undefined":Ys(o);i==="parent"&&s==="object"?r&&(n[i]=r):o instanceof Array?n[i]=o.map(function(u){return t(u,n)}):n[i]=t(o,n)}return n},Wf=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$f(this,t);for(var r in e)this[r]=e[r];var n=e.spaces;n=n===void 0?{}:n;var i=n.before,o=i===void 0?"":i,s=n.after,u=s===void 0?"":s;this.spaces={before:o,after:u}}return t.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.prototype.replaceWith=function(){if(this.parent){for(var r in arguments)this.parent.insertBefore(this,arguments[r]);this.remove()}return this},t.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.prototype.clone=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Ff(this);for(var i in r)n[i]=r[i];return n},t.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},t}();Mt.default=Wf;Zs.exports=Mt.default});var I=v(M=>{"use strict";c();M.__esModule=!0;var Hv=M.TAG="tag",Jv=M.STRING="string",Qv=M.SELECTOR="selector",Kv=M.ROOT="root",Yv=M.PSEUDO="pseudo",Zv=M.NESTING="nesting",Xv=M.ID="id",ex=M.COMMENT="comment",tx=M.COMBINATOR="combinator",rx=M.CLASS="class",nx=M.ATTRIBUTE="attribute",ix=M.UNIVERSAL="universal"});var Lt=v((Dt,Xs)=>{"use strict";c();Dt.__esModule=!0;var Vf=function(){function t(e,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Gf=se(),Hf=Kf(Gf),Jf=I(),J=Qf(Jf);function Qf(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function Kf(t){return t&&t.__esModule?t:{default:t}}function Yf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zf(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Xf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var eh=function(t){Xf(e,t);function e(r){Yf(this,e);var n=Zf(this,t.call(this,r));return n.nodes||(n.nodes=[]),n}return e.prototype.append=function(n){return n.parent=this,this.nodes.push(n),this},e.prototype.prepend=function(n){return n.parent=this,this.nodes.unshift(n),this},e.prototype.at=function(n){return this.nodes[n]},e.prototype.index=function(n){return typeof n=="number"?n:this.nodes.indexOf(n)},e.prototype.removeChild=function(n){n=this.index(n),this.at(n).parent=void 0,this.nodes.splice(n,1);var i=void 0;for(var o in this.indexes)i=this.indexes[o],i>=n&&(this.indexes[o]=i-1);return this},e.prototype.removeAll=function(){for(var o=this.nodes,n=Array.isArray(o),i=0,o=n?o:o[Symbol.iterator]();;){var s;if(n){if(i>=o.length)break;s=o[i++]}else{if(i=o.next(),i.done)break;s=i.value}var u=s;u.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(n,i){var o=this.index(n);this.nodes.splice(o+1,0,i);var s=void 0;for(var u in this.indexes)s=this.indexes[u],o<=s&&(this.indexes[u]=s+this.nodes.length);return this},e.prototype.insertBefore=function(n,i){var o=this.index(n);this.nodes.splice(o,0,i);var s=void 0;for(var u in this.indexes)s=this.indexes[u],o<=s&&(this.indexes[u]=s+this.nodes.length);return this},e.prototype.each=function(n){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var i=this.lastEach;if(this.indexes[i]=0,!!this.length){for(var o=void 0,s=void 0;this.indexes[i]<this.length&&(o=this.indexes[i],s=n(this.at(o),o),s!==!1);)this.indexes[i]+=1;if(delete this.indexes[i],s===!1)return!1}},e.prototype.walk=function(n){return this.each(function(i,o){var s=n(i,o);if(s!==!1&&i.length&&(s=i.walk(n)),s===!1)return!1})},e.prototype.walkAttributes=function(n){var i=this;return this.walk(function(o){if(o.type===J.ATTRIBUTE)return n.call(i,o)})},e.prototype.walkClasses=function(n){var i=this;return this.walk(function(o){if(o.type===J.CLASS)return n.call(i,o)})},e.prototype.walkCombinators=function(n){var i=this;return this.walk(function(o){if(o.type===J.COMBINATOR)return n.call(i,o)})},e.prototype.walkComments=function(n){var i=this;return this.walk(function(o){if(o.type===J.COMMENT)return n.call(i,o)})},e.prototype.walkIds=function(n){var i=this;return this.walk(function(o){if(o.type===J.ID)return n.call(i,o)})},e.prototype.walkNesting=function(n){var i=this;return this.walk(function(o){if(o.type===J.NESTING)return n.call(i,o)})},e.prototype.walkPseudos=function(n){var i=this;return this.walk(function(o){if(o.type===J.PSEUDO)return n.call(i,o)})},e.prototype.walkTags=function(n){var i=this;return this.walk(function(o){if(o.type===J.TAG)return n.call(i,o)})},e.prototype.walkUniversals=function(n){var i=this;return this.walk(function(o){if(o.type===J.UNIVERSAL)return n.call(i,o)})},e.prototype.split=function(n){var i=this,o=[];return this.reduce(function(s,u,a){var l=n.call(i,u);return o.push(u),l?(s.push(o),o=[]):a===i.length-1&&s.push(o),s},[])},e.prototype.map=function(n){return this.nodes.map(n)},e.prototype.reduce=function(n,i){return this.nodes.reduce(n,i)},e.prototype.every=function(n){return this.nodes.every(n)},e.prototype.some=function(n){return this.nodes.some(n)},e.prototype.filter=function(n){return this.nodes.filter(n)},e.prototype.sort=function(n){return this.nodes.sort(n)},e.prototype.toString=function(){return this.map(String).join("")},Vf(e,[{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}}]),e}(Hf.default);Dt.default=eh;Xs.exports=Dt.default});var to=v((zt,eo)=>{"use strict";c();zt.__esModule=!0;var th=Lt(),rh=ih(th),nh=I();function ih(t){return t&&t.__esModule?t:{default:t}}function sh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ah(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var uh=function(t){ah(e,t);function e(r){sh(this,e);var n=oh(this,t.call(this,r));return n.type=nh.ROOT,n}return e.prototype.toString=function(){var n=this.reduce(function(i,o){var s=String(o);return s?i+s+",":""},"").slice(0,-1);return this.trailingComma?n+",":n},e}(rh.default);zt.default=uh;eo.exports=zt.default});var no=v((jt,ro)=>{"use strict";c();jt.__esModule=!0;var lh=Lt(),ch=hh(lh),fh=I();function hh(t){return t&&t.__esModule?t:{default:t}}function ph(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function mh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var gh=function(t){mh(e,t);function e(r){ph(this,e);var n=dh(this,t.call(this,r));return n.type=fh.SELECTOR,n}return e}(ch.default);jt.default=gh;ro.exports=jt.default});var ve=v((Ut,io)=>{"use strict";c();Ut.__esModule=!0;var yh=function(){function t(e,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),wh=se(),vh=xh(wh);function xh(t){return t&&t.__esModule?t:{default:t}}function bh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Oh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Sh=function(t){Oh(e,t);function e(){return bh(this,e),kh(this,t.apply(this,arguments))}return e.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},yh(e,[{key:"ns",get:function(){var n=this.namespace;return n?(typeof n=="string"?n:"")+"|":""}}]),e}(vh.default);Ut.default=Sh;io.exports=Ut.default});var oo=v((Bt,so)=>{"use strict";c();Bt.__esModule=!0;var Th=ve(),_h=Ah(Th),Eh=I();function Ah(t){return t&&t.__esModule?t:{default:t}}function Ch(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Rh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ph=function(t){Rh(e,t);function e(r){Ch(this,e);var n=qh(this,t.call(this,r));return n.type=Eh.CLASS,n}return e.prototype.toString=function(){return[this.spaces.before,this.ns,String("."+this.value),this.spaces.after].join("")},e}(_h.default);Bt.default=Ph;so.exports=Bt.default});var uo=v(($t,ao)=>{"use strict";c();$t.__esModule=!0;var Ih=se(),Nh=Dh(Ih),Mh=I();function Dh(t){return t&&t.__esModule?t:{default:t}}function Lh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function jh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Uh=function(t){jh(e,t);function e(r){Lh(this,e);var n=zh(this,t.call(this,r));return n.type=Mh.COMMENT,n}return e}(Nh.default);$t.default=Uh;ao.exports=$t.default});var co=v((Ft,lo)=>{"use strict";c();Ft.__esModule=!0;var Bh=ve(),$h=Wh(Bh),Fh=I();function Wh(t){return t&&t.__esModule?t:{default:t}}function Vh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Hh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Jh=function(t){Hh(e,t);function e(r){Vh(this,e);var n=Gh(this,t.call(this,r));return n.type=Fh.ID,n}return e.prototype.toString=function(){return[this.spaces.before,this.ns,String("#"+this.value),this.spaces.after].join("")},e}($h.default);Ft.default=Jh;lo.exports=Ft.default});var ho=v((Wt,fo)=>{"use strict";c();Wt.__esModule=!0;var Qh=ve(),Kh=Zh(Qh),Yh=I();function Zh(t){return t&&t.__esModule?t:{default:t}}function Xh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ep(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function tp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var rp=function(t){tp(e,t);function e(r){Xh(this,e);var n=ep(this,t.call(this,r));return n.type=Yh.TAG,n}return e}(Kh.default);Wt.default=rp;fo.exports=Wt.default});var mo=v((Vt,po)=>{"use strict";c();Vt.__esModule=!0;var np=se(),ip=op(np),sp=I();function op(t){return t&&t.__esModule?t:{default:t}}function ap(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function up(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function lp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var cp=function(t){lp(e,t);function e(r){ap(this,e);var n=up(this,t.call(this,r));return n.type=sp.STRING,n}return e}(ip.default);Vt.default=cp;po.exports=Vt.default});var yo=v((Gt,go)=>{"use strict";c();Gt.__esModule=!0;var fp=Lt(),hp=dp(fp),pp=I();function dp(t){return t&&t.__esModule?t:{default:t}}function mp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function yp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var wp=function(t){yp(e,t);function e(r){mp(this,e);var n=gp(this,t.call(this,r));return n.type=pp.PSEUDO,n}return e.prototype.toString=function(){var n=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),n,this.spaces.after].join("")},e}(hp.default);Gt.default=wp;go.exports=Gt.default});var vo=v((Ht,wo)=>{"use strict";c();Ht.__esModule=!0;var vp=ve(),xp=kp(vp),bp=I();function kp(t){return t&&t.__esModule?t:{default:t}}function Op(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Tp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _p=function(t){Tp(e,t);function e(r){Op(this,e);var n=Sp(this,t.call(this,r));return n.type=bp.ATTRIBUTE,n.raws={},n}return e.prototype.toString=function(){var n=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&n.push(this.operator),this.value&&n.push(this.value),this.raws.insensitive?n.push(this.raws.insensitive):this.insensitive&&n.push(" i"),n.push("]"),n.concat(this.spaces.after).join("")},e}(xp.default);Ht.default=_p;wo.exports=Ht.default});var bo=v((Jt,xo)=>{"use strict";c();Jt.__esModule=!0;var Ep=ve(),Ap=qp(Ep),Cp=I();function qp(t){return t&&t.__esModule?t:{default:t}}function Rp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ip(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Np=function(t){Ip(e,t);function e(r){Rp(this,e);var n=Pp(this,t.call(this,r));return n.type=Cp.UNIVERSAL,n.value="*",n}return e}(Ap.default);Jt.default=Np;xo.exports=Jt.default});var Oo=v((Qt,ko)=>{"use strict";c();Qt.__esModule=!0;var Mp=se(),Dp=zp(Mp),Lp=I();function zp(t){return t&&t.__esModule?t:{default:t}}function jp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Up(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Bp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $p=function(t){Bp(e,t);function e(r){jp(this,e);var n=Up(this,t.call(this,r));return n.type=Lp.COMBINATOR,n}return e}(Dp.default);Qt.default=$p;ko.exports=Qt.default});var To=v((Kt,So)=>{"use strict";c();Kt.__esModule=!0;var Fp=se(),Wp=Gp(Fp),Vp=I();function Gp(t){return t&&t.__esModule?t:{default:t}}function Hp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Qp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Kp=function(t){Qp(e,t);function e(r){Hp(this,e);var n=Jp(this,t.call(this,r));return n.type=Vp.NESTING,n.value="&",n}return e}(Wp.default);Kt.default=Kp;So.exports=Kt.default});var Eo=v((Yt,_o)=>{"use strict";c();Yt.__esModule=!0;Yt.default=Yp;function Yp(t){return t.sort(function(e,r){return e-r})}_o.exports=Yt.default});var Do=v((er,Mo)=>{"use strict";c();er.__esModule=!0;er.default=ud;var Ao=39,Zp=34,cn=92,Co=47,De=10,fn=32,hn=12,pn=9,dn=13,qo=43,Ro=62,Po=126,Io=124,Xp=44,ed=40,td=41,rd=91,nd=93,id=59,No=42,sd=58,od=38,ad=64,Zt=/[ \n\t\r\{\(\)'"\\;/]/g,Xt=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function ud(t){for(var e=[],r=t.css.valueOf(),n=void 0,i=void 0,o=void 0,s=void 0,u=void 0,a=void 0,l=void 0,h=void 0,p=void 0,f=void 0,g=void 0,x=r.length,m=-1,w=1,y=0,E=function(A,S){if(t.safe)r+=S,i=r.length-1;else throw t.error("Unclosed "+A,w,y-m,y)};y<x;){switch(n=r.charCodeAt(y),n===De&&(m=y,w+=1),n){case De:case fn:case pn:case dn:case hn:i=y;do i+=1,n=r.charCodeAt(i),n===De&&(m=i,w+=1);while(n===fn||n===De||n===pn||n===dn||n===hn);e.push(["space",r.slice(y,i),w,y-m,y]),y=i-1;break;case qo:case Ro:case Po:case Io:i=y;do i+=1,n=r.charCodeAt(i);while(n===qo||n===Ro||n===Po||n===Io);e.push(["combinator",r.slice(y,i),w,y-m,y]),y=i-1;break;case No:e.push(["*","*",w,y-m,y]);break;case od:e.push(["&","&",w,y-m,y]);break;case Xp:e.push([",",",",w,y-m,y]);break;case rd:e.push(["[","[",w,y-m,y]);break;case nd:e.push(["]","]",w,y-m,y]);break;case sd:e.push([":",":",w,y-m,y]);break;case id:e.push([";",";",w,y-m,y]);break;case ed:e.push(["(","(",w,y-m,y]);break;case td:e.push([")",")",w,y-m,y]);break;case Ao:case Zp:o=n===Ao?"'":'"',i=y;do for(f=!1,i=r.indexOf(o,i+1),i===-1&&E("quote",o),g=i;r.charCodeAt(g-1)===cn;)g-=1,f=!f;while(f);e.push(["string",r.slice(y,i+1),w,y-m,w,i-m,y]),y=i;break;case ad:Zt.lastIndex=y+1,Zt.test(r),Zt.lastIndex===0?i=r.length-1:i=Zt.lastIndex-2,e.push(["at-word",r.slice(y,i+1),w,y-m,w,i-m,y]),y=i;break;case cn:for(i=y,l=!0;r.charCodeAt(i+1)===cn;)i+=1,l=!l;n=r.charCodeAt(i+1),l&&n!==Co&&n!==fn&&n!==De&&n!==pn&&n!==dn&&n!==hn&&(i+=1),e.push(["word",r.slice(y,i+1),w,y-m,w,i-m,y]),y=i;break;default:n===Co&&r.charCodeAt(y+1)===No?(i=r.indexOf("*/",y+2)+1,i===0&&E("comment","*/"),a=r.slice(y,i+1),s=a.split(`
|
|
17
|
-
`),u=s.length-1,u>0?(h=w+u,p=i-s[u].length):(h=w,p=m),e.push(["comment",a,w,y-m,h,i-p,y]),m=p,w=h,y=i):(Xt.lastIndex=y+1,Xt.test(r),Xt.lastIndex===0?i=r.length-1:i=Xt.lastIndex-2,e.push(["word",r.slice(y,i+1),w,y-m,w,i-m,y]),y=i);break}y++}return e}Mo.exports=er.default});var jo=v((tr,zo)=>{"use strict";c();tr.__esModule=!0;var ld=function(){function t(e,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),cd=on(),fd=P(cd),hd=an(),mn=P(hd),pd=un(),dd=P(pd),md=to(),gd=P(md),yd=no(),gn=P(yd),wd=oo(),vd=P(wd),xd=uo(),bd=P(xd),kd=co(),Od=P(kd),Sd=ho(),Td=P(Sd),_d=mo(),Ed=P(_d),Ad=yo(),Cd=P(Ad),qd=vo(),Rd=P(qd),Pd=bo(),Id=P(Pd),Nd=Oo(),Md=P(Nd),Dd=To(),Ld=P(Dd),zd=Eo(),jd=P(zd),Ud=Do(),Lo=P(Ud),Bd=I(),$d=Fd(Bd);function Fd(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function P(t){return t&&t.__esModule?t:{default:t}}function Wd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Vd=function(){function t(e){Wd(this,t),this.input=e,this.lossy=e.options.lossless===!1,this.position=0,this.root=new gd.default;var r=new gn.default;return this.root.append(r),this.current=r,this.lossy?this.tokens=(0,Lo.default)({safe:e.safe,css:e.css.trim()}):this.tokens=(0,Lo.default)(e),this.loop()}return t.prototype.attribute=function(){var r="",n=void 0,i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)r+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~r.indexOf("]")&&this.error("Expected a closing square bracket.");var o=r.split(/((?:[*~^$|]?=))([^]*)/),s=o[0].split(/(\|)/g),u={operator:o[1],value:o[2],source:{start:{line:i[2],column:i[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:i[4]};if(s.length>1?(s[0]===""&&(s[0]=!0),u.attribute=this.parseValue(s[2]),u.namespace=this.parseNamespace(s[0])):u.attribute=this.parseValue(o[0]),n=new Rd.default(u),o[2]){var a=o[2].split(/(\s+i\s*?)$/),l=a[0].trim();n.value=this.lossy?l:a[0],a[1]&&(n.insensitive=!0,this.lossy||(n.raws.insensitive=a[1])),n.quoted=l[0]==="'"||l[0]==='"',n.raws.unquoted=n.quoted?l.slice(1,-1):l}this.newNode(n),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var r=new Md.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"?(r.spaces.before=this.parseSpace(this.currToken[1]),r.source.start.line=this.nextToken[2],r.source.start.column=this.nextToken[3],r.source.end.column=this.nextToken[3],r.source.end.line=this.nextToken[2],r.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?r.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?r.value=this.currToken[1]:this.currToken[0]==="space"&&(r.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(r)},t.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var r=new gn.default;this.current.parent.append(r),this.current=r,this.position++},t.prototype.comment=function(){var r=new bd.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(r),this.position++},t.prototype.error=function(r){throw new this.input.error(r)},t.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},t.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},t.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},t.prototype.namespace=function(){var r=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(r);if(this.nextToken[0]==="*")return this.position++,this.universal(r)},t.prototype.nesting=function(){this.newNode(new Ld.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++},t.prototype.parentheses=function(){var r=this.current.last;if(r&&r.type===$d.PSEUDO){var n=new gn.default,i=this.current;r.append(n),this.current=n;var o=1;for(this.position++;this.position<this.tokens.length&&o;)this.currToken[0]==="("&&o++,this.currToken[0]===")"&&o--,o?this.parse():(n.parent.source.end.line=this.currToken[2],n.parent.source.end.column=this.currToken[3],this.position++);o&&this.error("Expected closing parenthesis."),this.current=i}else{var s=1;for(this.position++,r.value+="(";this.position<this.tokens.length&&s;)this.currToken[0]==="("&&s++,this.currToken[0]===")"&&s--,r.value+=this.parseParenthesisToken(this.currToken),this.position++;s&&this.error("Expected closing parenthesis.")}},t.prototype.pseudo=function(){for(var r=this,n="",i=this.currToken;this.currToken&&this.currToken[0]===":";)n+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var o=void 0;this.splitWord(!1,function(s,u){n+=s,o=new Cd.default({value:n,source:{start:{line:i[2],column:i[3]},end:{line:r.currToken[4],column:r.currToken[5]}},sourceIndex:i[4]}),r.newNode(o),u>1&&r.nextToken&&r.nextToken[0]==="("&&r.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},t.prototype.space=function(){var r=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(r[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(r[1]),this.position++):this.combinator()},t.prototype.string=function(){var r=this.currToken;this.newNode(new Ed.default({value:this.currToken[1],source:{start:{line:r[2],column:r[3]},end:{line:r[4],column:r[5]}},sourceIndex:r[6]})),this.position++},t.prototype.universal=function(r){var n=this.nextToken;if(n&&n[1]==="|")return this.position++,this.namespace();this.newNode(new Id.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]}),r),this.position++},t.prototype.splitWord=function(r,n){for(var i=this,o=this.nextToken,s=this.currToken[1];o&&o[0]==="word";){this.position++;var u=this.currToken[1];if(s+=u,u.lastIndexOf("\\")===u.length-1){var a=this.nextToken;a&&a[0]==="space"&&(s+=this.parseSpace(a[1]," "),this.position++)}o=this.nextToken}var l=(0,mn.default)(s,"."),h=(0,mn.default)(s,"#"),p=(0,mn.default)(s,"#{");p.length&&(h=h.filter(function(g){return!~p.indexOf(g)}));var f=(0,jd.default)((0,dd.default)((0,fd.default)([[0],l,h])));f.forEach(function(g,x){var m=f[x+1]||s.length,w=s.slice(g,m);if(x===0&&n)return n.call(i,w,f.length);var y=void 0;~l.indexOf(g)?y=new vd.default({value:w.slice(1),source:{start:{line:i.currToken[2],column:i.currToken[3]+g},end:{line:i.currToken[4],column:i.currToken[3]+(m-1)}},sourceIndex:i.currToken[6]+f[x]}):~h.indexOf(g)?y=new Od.default({value:w.slice(1),source:{start:{line:i.currToken[2],column:i.currToken[3]+g},end:{line:i.currToken[4],column:i.currToken[3]+(m-1)}},sourceIndex:i.currToken[6]+f[x]}):y=new Td.default({value:w,source:{start:{line:i.currToken[2],column:i.currToken[3]+g},end:{line:i.currToken[4],column:i.currToken[3]+(m-1)}},sourceIndex:i.currToken[6]+f[x]}),i.newNode(y,r)}),this.position++},t.prototype.word=function(r){var n=this.nextToken;return n&&n[1]==="|"?(this.position++,this.namespace()):this.splitWord(r)},t.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},t.prototype.parse=function(r){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":r&&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}},t.prototype.parseNamespace=function(r){if(this.lossy&&typeof r=="string"){var n=r.trim();return n.length?n:!0}return r},t.prototype.parseSpace=function(r,n){return this.lossy?n||"":r},t.prototype.parseValue=function(r){return this.lossy&&r&&typeof r=="string"?r.trim():r},t.prototype.parseParenthesisToken=function(r){return this.lossy?r[0]==="space"?this.parseSpace(r[1]," "):this.parseValue(r[1]):r[1]},t.prototype.newNode=function(r,n){return n&&(r.namespace=this.parseNamespace(n)),this.spaces&&(r.spaces.before=this.spaces,this.spaces=""),this.current.append(r)},ld(t,[{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]}}]),t}();tr.default=Vd;zo.exports=tr.default});var Bo=v((rr,Uo)=>{"use strict";c();rr.__esModule=!0;var Gd=function(){function t(e,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),Hd=jo(),Jd=Qd(Hd);function Qd(t){return t&&t.__esModule?t:{default:t}}function Kd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Yd=function(){function t(e){return Kd(this,t),this.func=e||function(){},this}return t.prototype.process=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=new Jd.default({css:r,error:function(s){throw new Error(s)},options:n});return this.res=i,this.func(i),this},Gd(t,[{key:"result",get:function(){return String(this.res)}}]),t}();rr.default=Yd;Uo.exports=rr.default});var wn=v(yn=>{"use strict";c();Object.defineProperty(yn,"__esModule",{value:!0});function Zd(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}yn.default=Zd});var xn=v(vn=>{"use strict";c();Object.defineProperty(vn,"__esModule",{value:!0});var Xd=wn(),$o=em(Xd);function em(t){return t&&t.__esModule?t:{default:t}}function Le(t){var e=this;this.constructor(t),this.nodes=t.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(r){r.parent=e})}Le.prototype=Object.create($o.default.prototype);Le.constructor=$o.default;Le.prototype.walk=function(e,r){for(var n=typeof e=="string"||e instanceof RegExp,i=n?r:e,o=typeof e=="string"?new RegExp(e):e,s=0;s<this.nodes.length;s++){var u=this.nodes[s],a=n?o.test(u.type):!0;if(a&&i&&i(u,s,this.nodes)===!1||u.nodes&&u.walk(e,r)===!1)return!1}return!0};Le.prototype.each=function(){for(var e=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],r=0;r<this.nodes.length;r++){var n=this.nodes[r];if(e(n,r,this.nodes)===!1)return!1}return!0};vn.default=Le});var Go=v(ze=>{"use strict";c();Object.defineProperty(ze,"__esModule",{value:!0});ze.parseMediaFeature=Vo;ze.parseMediaQuery=kn;ze.parseMediaList=nm;var tm=wn(),Fo=Wo(tm),rm=xn(),bn=Wo(rm);function Wo(t){return t&&t.__esModule?t:{default:t}}function Vo(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],r=[{mode:"normal",character:null}],n=[],i=0,o="",s=null,u=null,a=e,l=t;t[0]==="("&&t[t.length-1]===")"&&(l=t.substring(1,t.length-1),a++);for(var h=0;h<l.length;h++){var p=l[h];if((p==="'"||p==='"')&&(r[i].isCalculationEnabled===!0?(r.push({mode:"string",isCalculationEnabled:!1,character:p}),i++):r[i].mode==="string"&&r[i].character===p&&l[h-1]!=="\\"&&(r.pop(),i--)),p==="{"?(r.push({mode:"interpolation",isCalculationEnabled:!0}),i++):p==="}"&&(r.pop(),i--),r[i].mode==="normal"&&p===":"){var f=l.substring(h+1);u={type:"value",before:/^(\s*)/.exec(f)[1],after:/(\s*)$/.exec(f)[1],value:f.trim()},u.sourceIndex=u.before.length+h+1+a,s={type:"colon",sourceIndex:h+a,after:u.before,value:":"};break}o+=p}return o={type:"media-feature",before:/^(\s*)/.exec(o)[1],after:/(\s*)$/.exec(o)[1],value:o.trim()},o.sourceIndex=o.before.length+a,n.push(o),s!==null&&(s.before=o.after,n.push(s)),u!==null&&n.push(u),n}function kn(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],r=[],n=0,i=!1,o=void 0;function s(){return{before:"",after:"",value:""}}o=s();for(var u=0;u<t.length;u++){var a=t[u];i?(o.value+=a,(a==="{"||a==="(")&&n++,(a===")"||a==="}")&&n--):a.search(/\s/)!==-1?o.before+=a:(a==="("&&(o.type="media-feature-expression",n++),o.value=a,o.sourceIndex=e+u,i=!0),i&&n===0&&(a===")"||u===t.length-1||t[u+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(o.value)!==-1&&(o.type="keyword"),o.type==="media-feature-expression"&&(o.nodes=Vo(o.value,o.sourceIndex)),r.push(Array.isArray(o.nodes)?new bn.default(o):new Fo.default(o)),o=s(),i=!1)}for(var l=0;l<r.length;l++)if(o=r[l],l>0&&(r[l-1].after=o.before),o.type===void 0){if(l>0){if(r[l-1].type==="media-feature-expression"){o.type="keyword";continue}if(r[l-1].value==="not"||r[l-1].value==="only"){o.type="media-type";continue}if(r[l-1].value==="and"){o.type="media-feature-expression";continue}r[l-1].type==="media-type"&&(r[l+1]?o.type=r[l+1].type==="media-feature-expression"?"keyword":"media-feature-expression":o.type="media-feature-expression")}if(l===0){if(!r[l+1]){o.type="media-type";continue}if(r[l+1]&&(r[l+1].type==="media-feature-expression"||r[l+1].type==="keyword")){o.type="media-type";continue}if(r[l+2]){if(r[l+2].type==="media-feature-expression"){o.type="media-type",r[l+1].type="keyword";continue}if(r[l+2].type==="keyword"){o.type="keyword",r[l+1].type="media-type";continue}}if(r[l+3]&&r[l+3].type==="media-feature-expression"){o.type="keyword",r[l+1].type="media-type",r[l+2].type="keyword";continue}}}return r}function nm(t){var e=[],r=0,n=0,i=/^(\s*)url\s*\(/.exec(t);if(i!==null){for(var o=i[0].length,s=1;s>0;){var u=t[o];u==="("&&s++,u===")"&&s--,o++}e.unshift(new Fo.default({type:"url",value:t.substring(0,o).trim(),sourceIndex:i[1].length,before:i[1],after:/^(\s*)/.exec(t.substring(o))[1]})),r=o}for(var a=r;a<t.length;a++){var l=t[a];if(l==="("&&n++,l===")"&&n--,n===0&&l===","){var h=t.substring(r,a),p=/^(\s*)/.exec(h)[1];e.push(new bn.default({type:"media-query",value:h.trim(),sourceIndex:r+p.length,nodes:kn(h,r),before:p,after:/(\s*)$/.exec(h)[1]})),r=a+1}}var f=t.substring(r),g=/^(\s*)/.exec(f)[1];return e.push(new bn.default({type:"media-query",value:f.trim(),sourceIndex:r+g.length,nodes:kn(f,r),before:g,after:/(\s*)$/.exec(f)[1]})),e}});var Ho=v(On=>{"use strict";c();Object.defineProperty(On,"__esModule",{value:!0});On.default=um;var im=xn(),sm=am(im),om=Go();function am(t){return t&&t.__esModule?t:{default:t}}function um(t){return new sm.default({nodes:(0,om.parseMediaList)(t),type:"media-query-list",value:t.trim()})}});var nr=v((Ix,Sn)=>{"use strict";c();Sn.exports.isClean=Symbol("isClean");Sn.exports.my=Symbol("my")});var Qo=v((Mx,Tn)=>{c();var _=String,Jo=function(){return{isColorSupported:!1,reset:_,bold:_,dim:_,italic:_,underline:_,inverse:_,hidden:_,strikethrough:_,black:_,red:_,green:_,yellow:_,blue:_,magenta:_,cyan:_,white:_,gray:_,bgBlack:_,bgRed:_,bgGreen:_,bgYellow:_,bgBlue:_,bgMagenta:_,bgCyan:_,bgWhite:_}};Tn.exports=Jo();Tn.exports.createColors=Jo});var _n=v(()=>{c()});var ir=v((Ux,Zo)=>{"use strict";c();var Ko=Qo(),Yo=_n(),oe=class extends Error{constructor(e,r,n,i,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),i&&(this.source=i),s&&(this.plugin=s),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,oe)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=Ko.isColorSupported),Yo&&e&&(r=Yo(r));let n=r.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),s=String(o).length,u,a;if(e){let{bold:l,red:h,gray:p}=Ko.createColors(!0);u=f=>l(h(f)),a=f=>p(f)}else u=a=l=>l;return n.slice(i,o).map((l,h)=>{let p=i+1+h,f=" "+(" "+p).slice(-s)+" | ";if(p===this.line){let g=a(f.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+a(f)+l+`
|
|
18
|
-
`+g+u("^")}return" "+a(f)+l}).join(`
|
|
1
|
+
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.postcss=e()}})(function(){"use strict";var ka=Object.create;var qe=Object.defineProperty;var _a=Object.getOwnPropertyDescriptor;var Ta=Object.getOwnPropertyNames;var Sa=Object.getPrototypeOf,Oa=Object.prototype.hasOwnProperty;var d=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Ea=(r,e)=>{for(var t in e)qe(r,t,{get:e[t],enumerable:!0})},ss=(r,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ta(e))!Oa.call(r,n)&&n!==t&&qe(r,n,{get:()=>e[n],enumerable:!(s=_a(e,n))||s.enumerable});return r};var j=(r,e,t)=>(t=r!=null?ka(Sa(r)):{},ss(e||!r||!r.__esModule?qe(t,"default",{value:r,enumerable:!0}):t,r)),Aa=r=>ss(qe({},"__esModule",{value:!0}),r);var Re=d((Bd,Ft)=>{"use strict";Ft.exports.isClean=Symbol("isClean");Ft.exports.my=Symbol("my")});var is=d((Wd,jt)=>{var v=String,ns=function(){return{isColorSupported:!1,reset:v,bold:v,dim:v,italic:v,underline:v,inverse:v,hidden:v,strikethrough:v,black:v,red:v,green:v,yellow:v,blue:v,magenta:v,cyan:v,white:v,gray:v,bgBlack:v,bgRed:v,bgGreen:v,bgYellow:v,bgBlue:v,bgMagenta:v,bgCyan:v,bgWhite:v}};jt.exports=ns();jt.exports.createColors=ns});var Vt=d(()=>{});var Pe=d((jd,us)=>{"use strict";var os=is(),as=Vt(),G=class extends Error{constructor(e,t,s,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),typeof t<"u"&&typeof s<"u"&&(typeof t=="number"?(this.line=t,this.column=s):(this.line=t.line,this.column=t.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,G)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=os.isColorSupported),as&&e&&(t=as(t));let s=t.split(/\r?\n/),n=Math.max(this.line-3,0),i=Math.min(this.line+2,s.length),o=String(i).length,a,u;if(e){let{bold:l,red:f,gray:h}=os.createColors(!0);a=c=>l(f(c)),u=c=>h(c)}else a=u=l=>l;return s.slice(n,i).map((l,f)=>{let h=n+1+f,c=" "+(" "+h).slice(-o)+" | ";if(h===this.line){let y=u(c.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+u(c)+l+`
|
|
2
|
+
`+y+a("^")}return" "+u(c)+l}).join(`
|
|
19
3
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
20
4
|
|
|
21
5
|
`+e+`
|
|
22
|
-
`),this.name+": "+this.message+e}};
|
|
6
|
+
`),this.name+": "+this.message+e}};us.exports=G;G.default=G});var Ie=d((Vd,cs)=>{"use strict";var ls={colon:": ",indent:" ",beforeDecl:`
|
|
23
7
|
`,beforeRule:`
|
|
24
8
|
`,beforeOpen:" ",beforeClose:`
|
|
25
9
|
`,beforeComment:`
|
|
26
10
|
`,after:`
|
|
27
|
-
`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function
|
|
28
|
-
`);return
|
|
29
|
-
`)&&(
|
|
30
|
-
`)&&(
|
|
31
|
-
`)&&(
|
|
32
|
-
`)&&(
|
|
33
|
-
`)){let
|
|
34
|
-
`?(
|
|
35
|
-
`.charCodeAt(0),
|
|
36
|
-
`," "];return He.split(t,e)},comma(t){return He.split(t,[","],!0)}};Sa.exports=He;He.default=He});var gr=v((u0,_a)=>{"use strict";c();var Ta=Z(),Cm=Pn(),Oe=class extends Ta{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Cm.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};_a.exports=Oe;Oe.default=Oe;Ta.registerRule(Oe)});var yr=v((c0,Ca)=>{"use strict";c();var qm=We(),Rm=dr(),Pm=xe(),Im=mr(),Nm=ke(),Ea=gr(),Aa={empty:!0,space:!0};function Mm(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}var In=class{constructor(e){this.input=e,this.root=new Nm,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=Rm(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}comment(e){let r=new Pm;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]);let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}emptyRule(e){let r=new Ea;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}other(e){let r=!1,n=null,i=!1,o=null,s=[],u=e[1].startsWith("--"),a=[],l=e;for(;l;){if(n=l[0],a.push(l),n==="("||n==="[")o||(o=l),s.push(n==="("?")":"]");else if(u&&i&&n==="{")o||(o=l),s.push("}");else if(s.length===0)if(n===";")if(i){this.decl(a,u);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),r=!0;break}else n===":"&&(i=!0);else n===s[s.length-1]&&(s.pop(),s.length===0&&(o=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),s.length>0&&this.unclosedBracket(o),r&&i){if(!u)for(;a.length&&(l=a[a.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,u)}else this.unknownWord(a)}rule(e){e.pop();let r=new Ea;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}decl(e,r){let n=new qm;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||Mm(e));e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let l=e[0][0];if(l===":"||l==="space"||l==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){n.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),n.raws.between+=o[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s=[],u;for(;e.length&&(u=e[0][0],!(u!=="space"&&u!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(o=e[l],o[1].toLowerCase()==="!important"){n.important=!0;let h=this.stringFrom(e,l);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(o[1].toLowerCase()==="important"){let h=e.slice(0),p="";for(let f=l;f>0;f--){let g=h[f][0];if(p.trim().indexOf("!")===0&&g!=="space")break;p=h.pop()[1]+p}p.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=p,e=h)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(n.raws.between+=s.map(l=>l[1]).join(""),s=[]),this.raw(n,"value",s.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}atrule(e){let r=new Im;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,i,o,s=!1,u=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?l.push(n==="("?")":"]"):n==="{"&&l.length>0?l.push("}"):n===l[l.length-1]&&l.pop(),l.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),this.semicolon=!0;break}else if(n==="{"){u=!0;break}else if(n==="}"){if(a.length>0){for(o=a.length-1,i=a[o];i&&i[0]==="space";)i=a[--o];i&&(r.source.end=this.getPosition(i[3]||i[2]))}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(r.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(r,"params",a),s&&(e=a[a.length-1],r.source.end=this.getPosition(e[3]||e[2]),this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),u&&(r.nodes=[],this.current=r)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let r=this.input.fromOffset(e);return{offset:e,line:r.line,column:r.col}}init(e,r){this.current.push(e),e.source={start:this.getPosition(r),input:this.input},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}raw(e,r,n,i){let o,s,u=n.length,a="",l=!0,h,p;for(let f=0;f<u;f+=1)o=n[f],s=o[0],s==="space"&&f===u-1&&!i?l=!1:s==="comment"?(p=n[f-1]?n[f-1][0]:"empty",h=n[f+1]?n[f+1][0]:"empty",!Aa[p]&&!Aa[h]?a.slice(-1)===","?l=!1:a+=o[1]:l=!1):a+=o[1];if(!l){let f=n.reduce((g,x)=>g+x[1],"");e.raws[r]={value:a,raw:f}}e[r]=a}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let i=r;i<e.length;i++)n+=e[i][1];return e.splice(r,e.length-r),n}colon(e){let r=0,n,i,o;for(let[s,u]of e.entries()){if(n=u,i=n[0],i==="("&&(r+=1),i===")"&&(r-=1),r===0&&i===":")if(!o)this.doubleColon(n);else{if(o[0]==="word"&&o[1]==="progid")continue;return s}o=n}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,i;for(let o=r-1;o>=0&&(i=e[o],!(i[0]!=="space"&&(n+=1,n===2)));o--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}};Ca.exports=In});var qa=v(()=>{c()});function Ra(t){throw new RangeError(Fm[t])}function Wm(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function Vm(t,e){var r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace($m,".");var i=t.split("."),o=Wm(i,e).join(".");return n+o}function Gm(t){for(var e=[],r=0,n=t.length,i,o;r<n;)i=t.charCodeAt(r++),i>=55296&&i<=56319&&r<n?(o=t.charCodeAt(r++),(o&64512)==56320?e.push(((i&1023)<<10)+(o&1023)+65536):(e.push(i),r--)):e.push(i);return e}function Pa(t,e){return t+22+75*(t<26)-((e!=0)<<5)}function Hm(t,e,r){var n=0;for(t=r?Se(t/Lm):t>>1,t+=Se(t/e);t>Mn*Ln>>1;n+=Je)t=Se(t/Mn);return Se(n+(Mn+1)*t/(t+Dm))}function Jm(t){var e,r,n,i,o,s,u,a,l,h,p,f=[],g,x,m,w;for(t=Gm(t),g=t.length,e=jm,r=0,o=zm,s=0;s<g;++s)p=t[s],p<128&&f.push(Dn(p));for(n=i=f.length,i&&f.push(Um);n<g;){for(u=Nn,s=0;s<g;++s)p=t[s],p>=e&&p<u&&(u=p);for(x=n+1,u-e>Se((Nn-r)/x)&&Ra("overflow"),r+=(u-e)*x,e=u,s=0;s<g;++s)if(p=t[s],p<e&&++r>Nn&&Ra("overflow"),p==e){for(a=r,l=Je;h=l<=o?Ia:l>=o+Ln?Ln:l-o,!(a<h);l+=Je)w=a-h,m=Je-h,f.push(Dn(Pa(h+w%m,0))),a=Se(w/m);f.push(Dn(Pa(a,0))),o=Hm(r,x,n==i),r=0,++n}++r,++e}return f.join("")}function Na(t){return Vm(t,function(e){return Bm.test(e)?"xn--"+Jm(e):e})}var Nn,Je,Ia,Ln,Dm,Lm,zm,jm,Um,Bm,$m,Fm,Mn,Se,Dn,Ma=Q(()=>{c();Nn=2147483647,Je=36,Ia=1,Ln=26,Dm=38,Lm=700,zm=72,jm=128,Um="-",Bm=/[^\x20-\x7E]/,$m=/[\x2E\u3002\uFF0E\uFF61]/g,Fm={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Mn=Je-Ia,Se=Math.floor,Dn=String.fromCharCode});function Qm(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Qe(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}function za(t,e,r,n){return e=e||"&",r=r||"=",t===null&&(t=void 0),typeof t=="object"?Da(Km(t),function(i){var o=encodeURIComponent(Qe(i))+r;return La(t[i])?Da(t[i],function(s){return o+encodeURIComponent(Qe(s))}).join(e):o+encodeURIComponent(Qe(t[i]))}).join(e):n?encodeURIComponent(Qe(n))+r+encodeURIComponent(Qe(t)):""}function Da(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}function zn(t,e,r,n){e=e||"&",r=r||"=";var i={};if(typeof t!="string"||t.length===0)return i;var o=/\+/g;t=t.split(e);var s=1e3;n&&typeof n.maxKeys=="number"&&(s=n.maxKeys);var u=t.length;s>0&&u>s&&(u=s);for(var a=0;a<u;++a){var l=t[a].replace(o,"%20"),h=l.indexOf(r),p,f,g,x;h>=0?(p=l.substr(0,h),f=l.substr(h+1)):(p=l,f=""),g=decodeURIComponent(p),x=decodeURIComponent(f),Qm(i,g)?La(i[g])?i[g].push(x):i[g]=[i[g],x]:i[g]=x}return i}var La,Km,ja=Q(()=>{c();La=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};Km=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}});var Ja={};ut(Ja,{Url:()=>j,default:()=>Ym,format:()=>Wa,parse:()=>Ke,resolve:()=>Va,resolveObject:()=>Ga});function j(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function Ke(t,e,r){if(t&&F(t)&&t instanceof j)return t;var n=new j;return n.parse(t,e,r),n}function Fa(t,e,r,n){if(!H(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),o=i!==-1&&i<e.indexOf("#")?"?":"#",s=e.split(o),u=/\\/g;s[0]=s[0].replace(u,"/"),e=s.join(o);var a=e;if(a=a.trim(),!n&&e.split("#").length===1){var l=eg.exec(a);if(l)return t.path=a,t.href=a,t.pathname=l[1],l[2]?(t.search=l[2],r?t.query=zn(t.search.substr(1)):t.query=t.search.substr(1)):r&&(t.search="",t.query={}),t}var h=Zm.exec(a);if(h){h=h[0];var p=h.toLowerCase();t.protocol=p,a=a.substr(h.length)}if(n||h||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var f=a.substr(0,2)==="//";f&&!(h&&Un[h])&&(a=a.substr(2),t.slashes=!0)}var g,x,m,w;if(!Un[h]&&(f||h&&!Te[h])){var y=-1;for(g=0;g<Ba.length;g++)x=a.indexOf(Ba[g]),x!==-1&&(y===-1||x<y)&&(y=x);var E,b;for(y===-1?b=a.lastIndexOf("@"):b=a.lastIndexOf("@",y),b!==-1&&(E=a.slice(0,b),a=a.slice(b+1),t.auth=decodeURIComponent(E)),y=-1,g=0;g<Ua.length;g++)x=a.indexOf(Ua[g]),x!==-1&&(y===-1||x<y)&&(y=x);y===-1&&(y=a.length),t.host=a.slice(0,y),a=a.slice(y),Ha(t),t.hostname=t.hostname||"";var A=t.hostname[0]==="["&&t.hostname[t.hostname.length-1]==="]";if(!A){var S=t.hostname.split(/\./);for(g=0,m=S.length;g<m;g++){var C=S[g];if(!!C&&!C.match($a)){for(var L="",q=0,O=C.length;q<O;q++)C.charCodeAt(q)>127?L+="x":L+=C[q];if(!L.match($a)){var T=S.slice(0,g),R=S.slice(g+1),pe=C.match(ig);pe&&(T.push(pe[1]),R.unshift(pe[2])),R.length&&(a="/"+R.join(".")+a),t.hostname=T.join(".");break}}}}t.hostname.length>ng?t.hostname="":t.hostname=t.hostname.toLowerCase(),A||(t.hostname=Na(t.hostname)),w=t.port?":"+t.port:"";var st=t.hostname||"";t.host=st+w,t.href+=t.host,A&&(t.hostname=t.hostname.substr(1,t.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!sg[p])for(g=0,m=jn.length;g<m;g++){var Ce=jn[g];if(a.indexOf(Ce)!==-1){var Ir=encodeURIComponent(Ce);Ir===Ce&&(Ir=escape(Ce)),a=a.split(Ce).join(Ir)}}var Nr=a.indexOf("#");Nr!==-1&&(t.hash=a.substr(Nr),a=a.slice(0,Nr));var ot=a.indexOf("?");if(ot!==-1?(t.search=a.substr(ot),t.query=a.substr(ot+1),r&&(t.query=zn(t.query)),a=a.slice(0,ot)):r&&(t.search="",t.query={}),a&&(t.pathname=a),Te[p]&&t.hostname&&!t.pathname&&(t.pathname="/"),t.pathname||t.search){w=t.pathname||"";var kl=t.search||"";t.path=w+kl}return t.href=Bn(t),t}function Wa(t){return H(t)&&(t=Fa({},t)),Bn(t)}function Bn(t){var e=t.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var r=t.protocol||"",n=t.pathname||"",i=t.hash||"",o=!1,s="";t.host?o=e+t.host:t.hostname&&(o=e+(t.hostname.indexOf(":")===-1?t.hostname:"["+this.hostname+"]"),t.port&&(o+=":"+t.port)),t.query&&F(t.query)&&Object.keys(t.query).length&&(s=za(t.query));var u=t.search||s&&"?"+s||"";return r&&r.substr(-1)!==":"&&(r+=":"),t.slashes||(!r||Te[r])&&o!==!1?(o="//"+(o||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):o||(o=""),i&&i.charAt(0)!=="#"&&(i="#"+i),u&&u.charAt(0)!=="?"&&(u="?"+u),n=n.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),u=u.replace("#","%23"),r+o+n+u+i}function Va(t,e){return Ke(t,!1,!0).resolve(e)}function Ga(t,e){return t?Ke(t,!1,!0).resolveObject(e):e}function Ha(t){var e=t.host,r=Xm.exec(e);r&&(r=r[0],r!==":"&&(t.port=r.substr(1)),e=e.substr(0,e.length-r.length)),e&&(t.hostname=e)}var Ym,Zm,Xm,eg,tg,rg,jn,Ua,Ba,ng,$a,ig,sg,Un,Te,Qa=Q(()=>{c();Ma();Yr();ja();Ym={parse:Ke,resolve:Va,resolveObject:Ga,format:Wa,Url:j};Zm=/^([a-z0-9.+-]+:)/i,Xm=/:[0-9]*$/,eg=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,tg=["<",">",'"',"`"," ","\r",`
|
|
37
|
-
|
|
38
|
-
`)
|
|
39
|
-
`))),i=t[1].substring(t[1].indexOf(`
|
|
40
|
-
`));let s=this.input.css.valueOf().substring(this.tokenizer.position());i+=s,n=t[3]+s.length-i.length}else this.tokenizer.back(t);break}r.push(t[1]),n=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let o=["comment",r.join(""),e[2],n];return this.inlineComment(o),i&&(this.input=new bg(i),this.tokenizer=xg(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),Yn.exports.isInlineComment.bind(this)(t)}return!1}}});var wu=v((j0,yu)=>{c();yu.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],r=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&r.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let n=e.map(u=>u[1]),[i]=e,o=e.pop(),s=["word",n.join(""),i[2],o[2]];return this.tokenizer.back(t),this.tokenizer.back(s),!0}}});var xu=v((B0,vu)=>{c();var kg=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Og=/\.[0-9]/,Sg=t=>{let[,e]=t,[r]=e;return(r==="."||r==="#")&&kg.test(e)===!1&&Og.test(e)===!1};vu.exports={isMixinToken:Sg}});var ku=v((F0,bu)=>{c();var Tg=dr(),_g=/^url\((.+)\)/;bu.exports=t=>{let{name:e,params:r=""}=t;if(e==="import"&&r.length){t.import=!0;let n=Tg({css:r});for(t.filename=r.replace(_g,"$1");!n.endOfFile();){let[i,o]=n.nextToken();if(i==="word"&&o==="url")return;if(i==="brackets"){t.options=o,t.filename=r.replace(o,"").trim();break}}}}});var _u=v((V0,Tu)=>{c();var Ou=/:$/,Su=/^:(\s+)?/;Tu.exports=t=>{let{name:e,params:r=""}=t;if(t.name.slice(-1)===":"){if(Ou.test(e)){let[n]=e.match(Ou);t.name=e.replace(n,""),t.raws.afterName=n+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(Su.test(r)){let[n]=r.match(Su);t.value=r.replace(n,""),t.raws.afterName=(t.raws.afterName||"")+n,t.variable=!0}}}});var Cu=v((J0,Au)=>{c();var Eg=xe(),Ag=yr(),{isInlineComment:Cg}=gu(),{interpolation:Eu}=wu(),{isMixinToken:qg}=xu(),Rg=ku(),Pg=_u(),Ig=/(!\s*important)$/i;Au.exports=class extends Ag{constructor(...e){super(...e),this.lastNode=null}atrule(e){Eu.bind(this)(e)||(super.atrule(e),Rg(this.lastNode),Pg(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let r=e.findIndex(u=>u[0]==="("),n=e.reverse().find(u=>u[0]===")"),i=e.reverse().indexOf(n),s=e.splice(r,i).map(u=>u[1]).join("");for(let u of e.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=s}init(e,r,n){super.init(e,r,n),this.lastNode=e}inlineComment(e){let r=new Eg,n=e[1].slice(2);if(this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.inline=!0,r.raws.begin="//",/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*[^\s])(\s*)$/);[,r.raws.left,r.text,r.raws.right]=i}}mixin(e){let[r]=e,n=r[1].slice(0,1),i=e.findIndex(l=>l[0]==="brackets"),o=e.findIndex(l=>l[0]==="("),s="";if((i<0||i>3)&&o>0){let l=e.reduce((b,A,S)=>A[0]===")"?S:b),p=e.slice(o,l+o).map(b=>b[1]).join(""),[f]=e.slice(o),g=[f[2],f[3]],[x]=e.slice(l,l+1),m=[x[2],x[3]],w=["brackets",p].concat(g,m),y=e.slice(0,o),E=e.slice(l+1);e=y,e.push(w),e=e.concat(E)}let u=[];for(let l of e)if((l[1]==="!"||u.length)&&u.push(l),l[1]==="important")break;if(u.length){let[l]=u,h=e.indexOf(l),p=u[u.length-1],f=[l[2],l[3]],g=[p[4],p[5]],x=u.map(w=>w[1]).join(""),m=["word",x].concat(f,g);e.splice(h,u.length,m)}let a=e.findIndex(l=>Ig.test(l[1]));a>0&&([,s]=e[a],e.splice(a,1));for(let l of e.reverse())this.tokenizer.back(l);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=n,s&&(this.lastNode.important=!0,this.lastNode.raws.important=s)}other(e){Cg.bind(this)(e)||super.other(e)}rule(e){let r=e[e.length-1],n=e[e.length-2];if(n[0]==="at-word"&&r[0]==="{"&&(this.tokenizer.back(r),Eu.bind(this)(n))){let o=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([o]);for(let s of e.reverse())this.tokenizer.back(s);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[r]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(qg(r)){this.mixin(e);return}super.unknownWord(e)}}});var Ru=v((Y0,qu)=>{c();var Ng=sr();qu.exports=class extends Ng{atrule(e,r){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,r);return}let i=`${e.function?"":e.raws.identifier||"@"}${e.name}`,o=e.params?this.rawValue(e,"params"):"",s=e.raws.important||"";if(e.variable&&(o=e.value),typeof e.raws.afterName<"u"?i+=e.raws.afterName:o&&(i+=" "),e.nodes)this.block(e,i+o+s);else{let u=(e.raws.between||"")+s+(r?";":"");this.builder(i+o+u,e)}}comment(e){if(e.inline){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder(`//${r}${e.text}${n}`,e)}else super.comment(e)}}});var Pu=v((X0,Zn)=>{c();var Mg=Ee(),Dg=Cu(),Lg=Ru();Zn.exports={parse(t,e){let r=new Mg(t,e),n=new Dg(r);return n.parse(),n.root.walk(i=>{let o=r.css.lastIndexOf(i.source.input.css);if(o===0)return;if(o+i.source.input.css.length!==r.css.length)throw new Error("Invalid state detected in postcss-less");let s=o+i.source.start.offset,u=r.fromOffset(o+i.source.start.offset);if(i.source.start={offset:s,line:u.line,column:u.col},i.source.end){let a=o+i.source.end.offset,l=r.fromOffset(o+i.source.end.offset);i.source.end={offset:a,line:l.line,column:l.col}}}),n.root},stringify(t,e){new Lg(e).stringify(t)},nodeToString(t){let e="";return Zn.exports.stringify(t,r=>{e+=r}),e}}});var Xn=v((tb,Iu)=>{c();Iu.exports=class{generate(){}}});var Or=v((ib,Du)=>{"use strict";c();var zg=Z(),Nu,Mu,le=class extends zg{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Nu(new Mu,this,e).stringify()}};le.registerLazyResult=t=>{Nu=t};le.registerProcessor=t=>{Mu=t};Du.exports=le;le.default=le});var ei=v((ob,zu)=>{"use strict";c();var Lu={};zu.exports=function(e){Lu[e]||(Lu[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var ti=v((ub,ju)=>{"use strict";c();var Ze=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};ju.exports=Ze;Ze.default=Ze});var Sr=v((cb,Uu)=>{"use strict";c();var jg=ti(),Xe=class{constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new jg(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};Uu.exports=Xe;Xe.default=Xe});var ii=v((pb,Wu)=>{"use strict";c();var{isClean:W,my:Ug}=nr(),Bg=Xn(),$g=Ue(),Fg=Z(),Wg=Or(),hb=ei(),Bu=Sr(),Vg=Ye(),Gg=ke(),Hg={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Jg={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},Qg={postcssPlugin:!0,prepare:!0,Once:!0},Ae=0;function et(t){return typeof t=="object"&&typeof t.then=="function"}function Fu(t){let e=!1,r=Hg[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Ae,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Ae,r+"Exit"]:[r,r+"Exit"]}function $u(t){let e;return t.type==="document"?e=["Document",Ae,"DocumentExit"]:t.type==="root"?e=["Root",Ae,"RootExit"]:e=Fu(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function ri(t){return t[W]=!1,t.nodes&&t.nodes.forEach(e=>ri(e)),t}var ni={},V=class{constructor(e,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=ri(r);else if(r instanceof V||r instanceof Bu)i=ri(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let o=Vg;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{i=o(r,n)}catch(s){this.processed=!0,this.error=s}i&&!i[Ug]&&Fg.rebuild(i)}this.result=new Bu(e,i,n),this.helpers={...ni,result:this.result,postcss:ni},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,r){return this.async().then(e,r)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(et(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];)e[W]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=$g;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new Bg(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}walkSync(e){e[W]=!0;let r=Fu(e);for(let n of r)if(n===Ae)e.nodes&&e.each(i=>{i[W]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}visitSync(e,r){for(let[n,i]of e){this.result.lastPlugin=n;let o;try{o=i(r,this.helpers)}catch(s){throw this.handleError(s,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(et(o))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return et(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(et(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];){e[W]=!0;let r=[$u(e)];for(;r.length>0;){let n=this.visitTick(r);if(et(n))try{await n}catch(i){let o=r[r.length-1].node;throw this.handleError(i,o)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(o=>n(o,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!Jg[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Qg[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let r=e[e.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&r.visitorIndex<i.length){let[s,u]=i[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===i.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=s;try{return u(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(r.iterator!==0){let s=r.iterator,u;for(;u=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!u[W]){u[W]=!0,e.push($u(u));return}r.iterator=0,delete n.indexes[s]}let o=r.events;for(;r.eventIndex<o.length;){let s=o[r.eventIndex];if(r.eventIndex+=1,s===Ae){n.nodes&&n.nodes.length&&(n[W]=!0,r.iterator=n.getIterator());return}else if(this.listeners[s]){r.visitors=this.listeners[s];return}}e.pop()}};V.registerPostcss=t=>{ni=t};Wu.exports=V;V.default=V;Gg.registerLazyResult(V);Wg.registerLazyResult(V)});var Gu=v((gb,Vu)=>{"use strict";c();var Kg=Xn(),Yg=Ue(),mb=ei(),Zg=Ye(),Xg=Sr(),tt=class{constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let i,o=Yg;this.result=new Xg(this._processor,i,this._opts),this.result.css=r;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let u=new Kg(o,i,this._opts,r);if(u.isMap()){let[a,l]=u.generate();a&&(this.result.css=a),l&&(this.result.map=l)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,r=Zg;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,r){return this.async().then(e,r)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}};Vu.exports=tt;tt.default=tt});var Ju=v((wb,Hu)=>{"use strict";c();var ey=Gu(),ty=ii(),ry=Or(),ny=ke(),ce=class{constructor(e=[]){this.version="8.4.18",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,r={}){return this.plugins.length===0&&typeof r.parser>"u"&&typeof r.stringifier>"u"&&typeof r.syntax>"u"?new ey(this,e,r):new ty(this,e,r)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return r}};Hu.exports=ce;ce.default=ce;ny.registerProcessor(ce);ry.registerProcessor(ce)});var Ku=v((xb,Qu)=>{"use strict";c();var iy=We(),sy=Gn(),oy=xe(),ay=mr(),uy=Ee(),ly=ke(),cy=gr();function rt(t,e){if(Array.isArray(t))return t.map(i=>rt(i));let{inputs:r,...n}=t;if(r){e=[];for(let i of r){let o={...i,__proto__:uy.prototype};o.map&&(o.map={...o.map,__proto__:sy.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=t.nodes.map(i=>rt(i,e))),n.source){let{inputId:i,...o}=n.source;n.source=o,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new ly(n);if(n.type==="decl")return new iy(n);if(n.type==="rule")return new cy(n);if(n.type==="comment")return new oy(n);if(n.type==="atrule")return new ay(n);throw new Error("Unknown node type: "+t.type)}Qu.exports=rt;rt.default=rt});var Tr=v((kb,nl)=>{"use strict";c();var fy=ir(),Yu=We(),hy=ii(),py=Z(),si=Ju(),dy=Ue(),my=Ku(),Zu=Or(),gy=ti(),Xu=xe(),el=mr(),yy=Sr(),wy=Ee(),vy=Ye(),xy=Pn(),tl=gr(),rl=ke(),by=$e();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new si(t)}k.plugin=function(e,r){let n=!1;function i(...s){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
`||u==="\r")return t;continue;case"url":if(u===")"&&(e="initial"),u===`
|
|
49
|
-
`||u==="\r")return t;if(u==="'"){e="single-quotes",r="url";continue}if(u==='"'){e="double-quotes",r="url";continue}continue;case"comment-block":u==="/"&&t[s-1]==="*"&&(e="initial");continue;case"comment-inline":(u==='"'||u==="'"||u==="*")&&(i=!0),(u===`
|
|
50
|
-
|
|
11
|
+
`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function qa(r){return r[0].toUpperCase()+r.slice(1)}var le=class{constructor(e){this.builder=e}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+s+"*/",e)}decl(e,t){let s=this.raw(e,"between","colon"),n=e.prop+s+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let s="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?s+=e.raws.afterName:n&&(s+=" "),e.nodes)this.block(e,s+n);else{let i=(e.raws.between||"")+(t?";":"");this.builder(s+n+i,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let s=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||s)}}block(e,t){let s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start");let n;e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}raw(e,t,s){let n;if(s||(s=t),t&&(n=e.raws[t],typeof n<"u"))return n;let i=e.parent;if(s==="before"&&(!i||i.type==="root"&&i.first===e||i&&i.type==="document"))return"";if(!i)return ls[s];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[s]<"u")return o.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);{let a="raw"+qa(s);this[a]?n=this[a](o,e):o.walk(u=>{if(n=u.raws[t],typeof n<"u")return!1})}return typeof n>"u"&&(n=ls[s]),o.rawCache[s]=n,n}rawSemicolon(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(t=s.raws.semicolon,typeof t<"u"))return!1}),t}rawEmptyBody(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length===0&&(t=s.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(s=>{let n=s.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof s.raws.before<"u"){let i=s.raws.before.split(`
|
|
12
|
+
`);return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t}rawBeforeComment(e,t){let s;return e.walkComments(n=>{if(typeof n.raws.before<"u")return s=n.raws.before,s.includes(`
|
|
13
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(t,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(e,t){let s;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return s=n.raws.before,s.includes(`
|
|
14
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(t,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeRule(e){let t;return e.walk(s=>{if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before<"u")return t=s.raws.before,t.includes(`
|
|
15
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return t=s.raws.after,t.includes(`
|
|
16
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk(s=>{if(s.type!=="decl"&&(t=s.raws.between,typeof t<"u"))return!1}),t}rawColon(e){let t;return e.walkDecls(s=>{if(typeof s.raws.between<"u")return t=s.raws.between.replace(/[^\s:]/g,""),!1}),t}beforeAfter(e,t){let s;e.type==="decl"?s=this.raw(e,null,"beforeDecl"):e.type==="comment"?s=this.raw(e,null,"beforeComment"):t==="before"?s=this.raw(e,null,"beforeRule"):s=this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(s.includes(`
|
|
17
|
+
`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<i;a++)s+=o}return s}rawValue(e,t){let s=e[t],n=e.raws[t];return n&&n.value===s?n.raw:s}};cs.exports=le;le.default=le});var ce=d((Gd,fs)=>{"use strict";var Ra=Ie();function Gt(r,e){new Ra(e).stringify(r)}fs.exports=Gt;Gt.default=Gt});var he=d((Qd,hs)=>{"use strict";var{isClean:Ne,my:Pa}=Re(),Ia=Pe(),Na=Ie(),Ma=ce();function Qt(r,e){let t=new r.constructor;for(let s in r){if(!Object.prototype.hasOwnProperty.call(r,s)||s==="proxyCache")continue;let n=r[s],i=typeof n;s==="parent"&&i==="object"?e&&(t[s]=e):s==="source"?t[s]=n:Array.isArray(n)?t[s]=n.map(o=>Qt(o,t)):(i==="object"&&n!==null&&(n=Qt(n)),t[s]=n)}return t}var fe=class{constructor(e={}){this.raws={},this[Ne]=!1,this[Pa]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let s of e[t])typeof s.clone=="function"?this.append(s.clone()):this.append(s)}else this[t]=e[t]}error(e,t={}){if(this.source){let{start:s,end:n}=this.rangeBy(t);return this.source.input.error(e,{line:s.line,column:s.column},{line:n.line,column:n.column},t)}return new Ia(e)}warn(e,t,s){let n={node:this};for(let i in s)n[i]=s[i];return e.warn(t,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=Ma){e.stringify&&(e=e.stringify);let t="";return e(this,s=>{t+=s}),t}assign(e={}){for(let t in e)this[t]=e[t];return this}clone(e={}){let t=Qt(this);for(let s in e)t[s]=e[s];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,s=!1;for(let n of e)n===this?s=!0:s?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);s||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}raw(e,t){return new Na().raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,t){let s={},n=t==null;t=t||new Map;let i=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))s[o]=a.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,t):u);else if(typeof a=="object"&&a.toJSON)s[o]=a.toJSON(null,t);else if(o==="source"){let u=t.get(a.input);u==null&&(u=i,t.set(a.input,i),i++),s[o]={inputId:u,start:a.start,end:a.end}}else s[o]=a}return n&&(s.inputs=[...t.keys()].map(o=>o.toJSON())),s}positionInside(e){let t=this.toString(),s=this.source.start.column,n=this.source.start.line;for(let i=0;i<e;i++)t[i]===`
|
|
18
|
+
`?(s=1,n+=1):s+=1;return{line:n,column:s}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let s=this.toString().indexOf(e.word);s!==-1&&(t=this.positionInside(s))}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column},s=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:t.line,column:t.column+1};if(e.word){let n=this.toString().indexOf(e.word);n!==-1&&(t=this.positionInside(n),s=this.positionInside(n+e.word.length))}else e.start?t={line:e.start.line,column:e.start.column}:e.index&&(t=this.positionInside(e.index)),e.end?s={line:e.end.line,column:e.end.column}:e.endIndex?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<t.line||s.line===t.line&&s.column<=t.column)&&(s={line:t.line,column:t.column+1}),{start:t,end:s}}getProxyProcessor(){return{set(e,t,s){return e[t]===s||(e[t]=s,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0},get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[Ne]){this[Ne]=!1;let e=this;for(;e=e.parent;)e[Ne]=!1}}get proxyOf(){return this}};hs.exports=fe;fe.default=fe});var de=d((Hd,ps)=>{"use strict";var La=he(),pe=class extends La{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};ps.exports=pe;pe.default=pe});var X=d((Jd,ds)=>{"use strict";var Da=he(),me=class extends Da{constructor(e){super(e),this.type="comment"}};ds.exports=me;me.default=me});var B=d((Yd,_s)=>{"use strict";var{isClean:ms,my:ws}=Re(),ys=de(),gs=X(),$a=he(),xs,Ht,Jt,vs;function bs(r){return r.map(e=>(e.nodes&&(e.nodes=bs(e.nodes)),delete e.source,e))}function ks(r){if(r[ms]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)ks(e)}var R=class extends $a{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),s,n;for(;this.indexes[t]<this.proxyOf.nodes.length&&(s=this.indexes[t],n=e(this.proxyOf.nodes[s],s),n!==!1);)this.indexes[t]+=1;return delete this.indexes[t],n}walk(e){return this.each((t,s)=>{let n;try{n=e(t,s)}catch(i){throw t.addToError(i)}return n!==!1&&t.walk&&(n=t.walk(e)),n})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((s,n)=>{if(s.type==="decl"&&e.test(s.prop))return t(s,n)}):this.walk((s,n)=>{if(s.type==="decl"&&s.prop===e)return t(s,n)}):(t=e,this.walk((s,n)=>{if(s.type==="decl")return t(s,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((s,n)=>{if(s.type==="rule"&&e.test(s.selector))return t(s,n)}):this.walk((s,n)=>{if(s.type==="rule"&&s.selector===e)return t(s,n)}):(t=e,this.walk((s,n)=>{if(s.type==="rule")return t(s,n)}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((s,n)=>{if(s.type==="atrule"&&e.test(s.name))return t(s,n)}):this.walk((s,n)=>{if(s.type==="atrule"&&s.name===e)return t(s,n)}):(t=e,this.walk((s,n)=>{if(s.type==="atrule")return t(s,n)}))}walkComments(e){return this.walk((t,s)=>{if(t.type==="comment")return e(t,s)})}append(...e){for(let t of e){let s=this.normalize(t,this.last);for(let n of s)this.proxyOf.nodes.push(n)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let s=this.normalize(t,this.first,"prepend").reverse();for(let n of s)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+s.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let s=this.index(e),n=s===0?"prepend":!1,i=this.normalize(t,this.proxyOf.nodes[s],n).reverse();s=this.index(e);for(let a of i)this.proxyOf.nodes.splice(s,0,a);let o;for(let a in this.indexes)o=this.indexes[a],s<=o&&(this.indexes[a]=o+i.length);return this.markDirty(),this}insertAfter(e,t){let s=this.index(e),n=this.normalize(t,this.proxyOf.nodes[s]).reverse();s=this.index(e);for(let o of n)this.proxyOf.nodes.splice(s+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],s<i&&(this.indexes[o]=i+n.length);return this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let s in this.indexes)t=this.indexes[s],t>=e&&(this.indexes[s]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,s){return s||(s=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,s))}),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}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]}normalize(e,t){if(typeof e=="string")e=bs(xs(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new ys(e)]}else if(e.selector)e=[new Ht(e)];else if(e.name)e=[new Jt(e)];else if(e.text)e=[new gs(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[ws]||R.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[ms]&&ks(n),typeof n.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(n.raws.before=t.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}getProxyProcessor(){return{set(e,t,s){return e[t]===s||(e[t]=s,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0},get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...s)=>e[t](...s.map(n=>typeof n=="function"?(i,o)=>n(i.toProxy(),o):n)):t==="every"||t==="some"?s=>e[t]((n,...i)=>s(n.toProxy(),...i)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(s=>s.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}};R.registerParse=r=>{xs=r};R.registerRule=r=>{Ht=r};R.registerAtRule=r=>{Jt=r};R.registerRoot=r=>{vs=r};_s.exports=R;R.default=R;R.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,Jt.prototype):r.type==="rule"?Object.setPrototypeOf(r,Ht.prototype):r.type==="decl"?Object.setPrototypeOf(r,ys.prototype):r.type==="comment"?Object.setPrototypeOf(r,gs.prototype):r.type==="root"&&Object.setPrototypeOf(r,vs.prototype),r[ws]=!0,r.nodes&&r.nodes.forEach(e=>{R.rebuild(e)})}});var Ue=d((Kd,Es)=>{"use strict";var Yt="'".charCodeAt(0),Ts='"'.charCodeAt(0),Me="\\".charCodeAt(0),Ss="/".charCodeAt(0),Le=`
|
|
19
|
+
`.charCodeAt(0),we=" ".charCodeAt(0),De="\f".charCodeAt(0),$e=" ".charCodeAt(0),ze="\r".charCodeAt(0),za="[".charCodeAt(0),Ba="]".charCodeAt(0),Wa="(".charCodeAt(0),Ua=")".charCodeAt(0),Fa="{".charCodeAt(0),ja="}".charCodeAt(0),Va=";".charCodeAt(0),Ga="*".charCodeAt(0),Qa=":".charCodeAt(0),Ha="@".charCodeAt(0),Be=/[\t\n\f\r "#'()/;[\\\]{}]/g,We=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ja=/.[\n"'(/\\]/,Os=/[\da-f]/i;Es.exports=function(e,t={}){let s=e.css.valueOf(),n=t.ignoreErrors,i,o,a,u,l,f,h,c,y,g,p=s.length,m=0,w=[],b=[];function q(){return m}function S(L){throw e.error("Unclosed "+L,m)}function P(){return b.length===0&&m>=p}function F(L){if(b.length)return b.pop();if(m>=p)return;let k=L?L.ignoreUnclosed:!1;switch(i=s.charCodeAt(m),i){case Le:case we:case $e:case ze:case De:{o=m;do o+=1,i=s.charCodeAt(o);while(i===we||i===Le||i===$e||i===ze||i===De);g=["space",s.slice(m,o)],m=o-1;break}case za:case Ba:case Fa:case ja:case Qa:case Va:case Ua:{let _=String.fromCharCode(i);g=[_,_,m];break}case Wa:{if(c=w.length?w.pop()[1]:"",y=s.charCodeAt(m+1),c==="url"&&y!==Yt&&y!==Ts&&y!==we&&y!==Le&&y!==$e&&y!==De&&y!==ze){o=m;do{if(f=!1,o=s.indexOf(")",o+1),o===-1)if(n||k){o=m;break}else S("bracket");for(h=o;s.charCodeAt(h-1)===Me;)h-=1,f=!f}while(f);g=["brackets",s.slice(m,o+1),m,o],m=o}else o=s.indexOf(")",m+1),u=s.slice(m,o+1),o===-1||Ja.test(u)?g=["(","(",m]:(g=["brackets",u,m,o],m=o);break}case Yt:case Ts:{a=i===Yt?"'":'"',o=m;do{if(f=!1,o=s.indexOf(a,o+1),o===-1)if(n||k){o=m+1;break}else S("string");for(h=o;s.charCodeAt(h-1)===Me;)h-=1,f=!f}while(f);g=["string",s.slice(m,o+1),m,o],m=o;break}case Ha:{Be.lastIndex=m+1,Be.test(s),Be.lastIndex===0?o=s.length-1:o=Be.lastIndex-2,g=["at-word",s.slice(m,o+1),m,o],m=o;break}case Me:{for(o=m,l=!0;s.charCodeAt(o+1)===Me;)o+=1,l=!l;if(i=s.charCodeAt(o+1),l&&i!==Ss&&i!==we&&i!==Le&&i!==$e&&i!==ze&&i!==De&&(o+=1,Os.test(s.charAt(o)))){for(;Os.test(s.charAt(o+1));)o+=1;s.charCodeAt(o+1)===we&&(o+=1)}g=["word",s.slice(m,o+1),m,o],m=o;break}default:{i===Ss&&s.charCodeAt(m+1)===Ga?(o=s.indexOf("*/",m+2)+1,o===0&&(n||k?o=s.length:S("comment")),g=["comment",s.slice(m,o+1),m,o],m=o):(We.lastIndex=m+1,We.test(s),We.lastIndex===0?o=s.length-1:o=We.lastIndex-2,g=["word",s.slice(m,o+1),m,o],w.push(g),m=o);break}}return m++,g}function K(L){b.push(L)}return{back:K,nextToken:F,endOfFile:P,position:q}}});var Fe=d((Xd,Cs)=>{"use strict";var As=B(),Z=class extends As{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};Cs.exports=Z;Z.default=Z;As.registerAtRule(Z)});var ee=d((Zd,Is)=>{"use strict";var qs=B(),Rs,Ps,W=class extends qs{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let s=this.index(e);return!t&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}normalize(e,t,s){let n=super.normalize(e);if(t){if(s==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let i of n)i.raws.before=t.raws.before}return n}toResult(e={}){return new Rs(new Ps,this,e).stringify()}};W.registerLazyResult=r=>{Rs=r};W.registerProcessor=r=>{Ps=r};Is.exports=W;W.default=W;qs.registerRoot(W)});var Kt=d((em,Ns)=>{"use strict";var ye={split(r,e,t){let s=[],n="",i=!1,o=0,a=!1,u="",l=!1;for(let f of r)l?l=!1:f==="\\"?l=!0:a?f===u&&(a=!1):f==='"'||f==="'"?(a=!0,u=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(n!==""&&s.push(n.trim()),n="",i=!1):n+=f;return(t||n!=="")&&s.push(n.trim()),s},space(r){let e=[" ",`
|
|
20
|
+
`," "];return ye.split(r,e)},comma(r){return ye.split(r,[","],!0)}};Ns.exports=ye;ye.default=ye});var je=d((tm,Ls)=>{"use strict";var Ms=B(),Ya=Kt(),te=class extends Ms{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ya.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,s=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}};Ls.exports=te;te.default=te;Ms.registerRule(te)});var Ve=d((rm,zs)=>{"use strict";var Ka=de(),Xa=Ue(),Za=X(),eu=Fe(),tu=ee(),Ds=je(),$s={empty:!0,space:!0};function ru(r){for(let e=r.length-1;e>=0;e--){let t=r[e],s=t[3]||t[2];if(s)return s}}var Xt=class{constructor(e){this.input=e,this.root=new tu,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=Xa(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}comment(e){let t=new Za;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let s=e[1].slice(2,-2);if(/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let n=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}emptyRule(e){let t=new Ds;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,s=null,n=!1,i=null,o=[],a=e[1].startsWith("--"),u=[],l=e;for(;l;){if(s=l[0],u.push(l),s==="("||s==="[")i||(i=l),o.push(s==="("?")":"]");else if(a&&n&&s==="{")i||(i=l),o.push("}");else if(o.length===0)if(s===";")if(n){this.decl(u,a);return}else break;else if(s==="{"){this.rule(u);return}else if(s==="}"){this.tokenizer.back(u.pop()),t=!0;break}else s===":"&&(n=!0);else s===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!a)for(;u.length&&(l=u[u.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,a)}else this.unknownWord(u)}rule(e){e.pop();let t=new Ds;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let s=new Ka;this.init(s,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(n[3]||n[2]||ru(e));e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){let l=e[0][0];if(l===":"||l==="space"||l==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){s.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),s.raws.between+=i[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(i=e[l],i[1].toLowerCase()==="!important"){s.important=!0;let f=this.stringFrom(e,l);f=this.spacesFromEnd(e)+f,f!==" !important"&&(s.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),h="";for(let c=l;c>0;c--){let y=f[c][0];if(h.trim().indexOf("!")===0&&y!=="space")break;h=f.pop()[1]+h}h.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=h,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(s.raws.between+=o.map(l=>l[1]).join(""),o=[]),this.raw(s,"value",o.concat(e),t),s.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t=new eu;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let s,n,i,o=!1,a=!1,u=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?l.push(s==="("?")":"]"):s==="{"&&l.length>0?l.push("}"):s===l[l.length-1]&&l.pop(),l.length===0)if(s===";"){t.source.end=this.getPosition(e[2]),this.semicolon=!0;break}else if(s==="{"){a=!0;break}else if(s==="}"){if(u.length>0){for(i=u.length-1,n=u[i];n&&n[0]==="space";)n=u[--i];n&&(t.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(t.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(t,"params",u),o&&(e=u[u.length-1],t.source.end=this.getPosition(e[3]||e[2]),this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}raw(e,t,s,n){let i,o,a=s.length,u="",l=!0,f,h;for(let c=0;c<a;c+=1)i=s[c],o=i[0],o==="space"&&c===a-1&&!n?l=!1:o==="comment"?(h=s[c-1]?s[c-1][0]:"empty",f=s[c+1]?s[c+1][0]:"empty",!$s[h]&&!$s[f]?u.slice(-1)===","?l=!1:u+=i[1]:l=!1):u+=i[1];if(!l){let c=s.reduce((y,g)=>y+g[1],"");e.raws[t]={value:u,raw:c}}e[t]=u}spacesAndCommentsFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let t,s="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)s+=e.shift()[1];return s}spacesFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],t==="space");)s=e.pop()[1]+s;return s}stringFrom(e,t){let s="";for(let n=t;n<e.length;n++)s+=e[n][1];return e.splice(t,e.length-t),s}colon(e){let t=0,s,n,i;for(let[o,a]of e.entries()){if(s=a,n=s[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!i)this.doubleColon(s);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=s}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let s=0,n;for(let i=t-1;i>=0&&(n=e[i],!(n[0]!=="space"&&(s+=1,s===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}};zs.exports=Xt});var Bs=d(()=>{});var Us=d((im,Ws)=>{var su="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",nu=(r,e=21)=>(t=e)=>{let s="",n=t;for(;n--;)s+=r[Math.random()*r.length|0];return s},iu=(r=21)=>{let e="",t=r;for(;t--;)e+=su[Math.random()*64|0];return e};Ws.exports={nanoid:iu,customAlphabet:nu}});var Zt=d((om,Fs)=>{Fs.exports=class{}});var se=d((um,Qs)=>{"use strict";var{SourceMapConsumer:ou,SourceMapGenerator:au}=Bs(),{fileURLToPath:js,pathToFileURL:Ge}={},{resolve:rr,isAbsolute:sr}={},{nanoid:uu}=Us(),er=Vt(),Vs=Pe(),lu=Zt(),tr=Symbol("fromOffsetCache"),cu=Boolean(ou&&au),Gs=Boolean(rr&&sr),re=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Gs||/^\w+:\/\//.test(t.from)||sr(t.from)?this.file=t.from:this.file=rr(t.from)),Gs&&cu){let s=new lu(this.css,t);if(s.text){this.map=s;let n=s.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+uu(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,s;if(this[tr])s=this[tr];else{let i=this.css.split(`
|
|
21
|
+
`);s=new Array(i.length);let o=0;for(let a=0,u=i.length;a<u;a++)s[a]=o,o+=i[a].length+1;this[tr]=s}t=s[s.length-1];let n=0;if(e>=t)n=s.length-1;else{let i=s.length-2,o;for(;n<i;)if(o=n+(i-n>>1),e<s[o])i=o-1;else if(e>=s[o+1])n=o+1;else{n=o;break}}return{line:n+1,col:e-s[n]+1}}error(e,t,s,n={}){let i,o,a;if(t&&typeof t=="object"){let l=t,f=s;if(typeof l.offset=="number"){let h=this.fromOffset(l.offset);t=h.line,s=h.col}else t=l.line,s=l.column;if(typeof f.offset=="number"){let h=this.fromOffset(f.offset);o=h.line,a=h.col}else o=f.line,a=f.column}else if(!s){let l=this.fromOffset(t);t=l.line,s=l.col}let u=this.origin(t,s,o,a);return u?i=new Vs(e,u.endLine===void 0?u.line:{line:u.line,column:u.column},u.endLine===void 0?u.column:{line:u.endLine,column:u.endColumn},u.source,u.file,n.plugin):i=new Vs(e,o===void 0?t:{line:t,column:s},o===void 0?s:{line:o,column:a},this.css,this.file,n.plugin),i.input={line:t,column:s,endLine:o,endColumn:a,source:this.css},this.file&&(Ge&&(i.input.url=Ge(this.file).toString()),i.input.file=this.file),i}origin(e,t,s,n){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({line:e,column:t});if(!o.source)return!1;let a;typeof s=="number"&&(a=i.originalPositionFor({line:s,column:n}));let u;sr(o.source)?u=Ge(o.source):u=new URL(o.source,this.map.consumer().sourceRoot||Ge(this.map.mapFile));let l={url:u.toString(),line:o.line,column:o.column,endLine:a&&a.line,endColumn:a&&a.column};if(u.protocol==="file:")if(js)l.file=js(u);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(l.source=f),l}mapResolve(e){return/^\w+:\/\//.test(e)?e:rr(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};Qs.exports=re;re.default=re;er&&er.registerInput&&er.registerInput(re)});var ge=d((lm,Hs)=>{"use strict";var fu=B(),hu=Ve(),pu=se();function Qe(r,e){let t=new pu(r,e),s=new hu(t);try{s.parse()}catch(n){throw n}return s.root}Hs.exports=Qe;Qe.default=Qe;fu.registerParse(Qe)});var Js=d((cm,nr)=>{var du=Ue(),mu=se();nr.exports={isInlineComment(r){if(r[0]==="word"&&r[1].slice(0,2)==="//"){let e=r,t=[],s,n;for(;r;){if(/\r?\n/.test(r[1])){if(/['"].*\r?\n/.test(r[1])){t.push(r[1].substring(0,r[1].indexOf(`
|
|
22
|
+
`))),n=r[1].substring(r[1].indexOf(`
|
|
23
|
+
`));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,s=r[3]+o.length-n.length}else this.tokenizer.back(r);break}t.push(r[1]),s=r[2],r=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",t.join(""),e[2],s];return this.inlineComment(i),n&&(this.input=new mu(n),this.tokenizer=du(this.input)),!0}else if(r[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),r[1]="//",this.tokenizer.back(e),nr.exports.isInlineComment.bind(this)(r)}return!1}}});var Ks=d((fm,Ys)=>{Ys.exports={interpolation(r){let e=[r,this.tokenizer.nextToken()],t=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(r=this.tokenizer.nextToken();r&&t.includes(r[0]);)e.push(r),r=this.tokenizer.nextToken();let s=e.map(a=>a[1]),[n]=e,i=e.pop(),o=["word",s.join(""),n[2],i[2]];return this.tokenizer.back(r),this.tokenizer.back(o),!0}}});var Zs=d((hm,Xs)=>{var wu=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,yu=/\.[0-9]/,gu=r=>{let[,e]=r,[t]=e;return(t==="."||t==="#")&&wu.test(e)===!1&&yu.test(e)===!1};Xs.exports={isMixinToken:gu}});var tn=d((pm,en)=>{var xu=Ue(),vu=/^url\((.+)\)/;en.exports=r=>{let{name:e,params:t=""}=r;if(e==="import"&&t.length){r.import=!0;let s=xu({css:t});for(r.filename=t.replace(vu,"$1");!s.endOfFile();){let[n,i]=s.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){r.options=i,r.filename=t.replace(i,"").trim();break}}}}});var on=d((dm,nn)=>{var rn=/:$/,sn=/^:(\s+)?/;nn.exports=r=>{let{name:e,params:t=""}=r;if(r.name.slice(-1)===":"){if(rn.test(e)){let[s]=e.match(rn);r.name=e.replace(s,""),r.raws.afterName=s+(r.raws.afterName||""),r.variable=!0,r.value=r.params}if(sn.test(t)){let[s]=t.match(sn);r.value=t.replace(s,""),r.raws.afterName=(r.raws.afterName||"")+s,r.variable=!0}}}});var ln=d((wm,un)=>{var bu=X(),ku=Ve(),{isInlineComment:_u}=Js(),{interpolation:an}=Ks(),{isMixinToken:Tu}=Zs(),Su=tn(),Ou=on(),Eu=/(!\s*important)$/i;un.exports=class extends ku{constructor(...e){super(...e),this.lastNode=null}atrule(e){an.bind(this)(e)||(super.atrule(e),Su(this.lastNode),Ou(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let t=e.findIndex(a=>a[0]==="("),s=e.reverse().find(a=>a[0]===")"),n=e.reverse().indexOf(s),o=e.splice(t,n).map(a=>a[1]).join("");for(let a of e.reverse())this.tokenizer.back(a);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,t,s){super.init(e,t,s),this.lastNode=e}inlineComment(e){let t=new bu,s=e[1].slice(2);if(this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.inline=!0,t.raws.begin="//",/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let n=s.match(/^(\s*)([^]*[^\s])(\s*)$/);[,t.raws.left,t.text,t.raws.right]=n}}mixin(e){let[t]=e,s=t[1].slice(0,1),n=e.findIndex(l=>l[0]==="brackets"),i=e.findIndex(l=>l[0]==="("),o="";if((n<0||n>3)&&i>0){let l=e.reduce((q,S,P)=>S[0]===")"?P:q),h=e.slice(i,l+i).map(q=>q[1]).join(""),[c]=e.slice(i),y=[c[2],c[3]],[g]=e.slice(l,l+1),p=[g[2],g[3]],m=["brackets",h].concat(y,p),w=e.slice(0,i),b=e.slice(l+1);e=w,e.push(m),e=e.concat(b)}let a=[];for(let l of e)if((l[1]==="!"||a.length)&&a.push(l),l[1]==="important")break;if(a.length){let[l]=a,f=e.indexOf(l),h=a[a.length-1],c=[l[2],l[3]],y=[h[4],h[5]],p=["word",a.map(m=>m[1]).join("")].concat(c,y);e.splice(f,a.length,p)}let u=e.findIndex(l=>Eu.test(l[1]));u>0&&([,o]=e[u],e.splice(u,1));for(let l of e.reverse())this.tokenizer.back(l);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=s,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){_u.bind(this)(e)||super.other(e)}rule(e){let t=e[e.length-1],s=e[e.length-2];if(s[0]==="at-word"&&t[0]==="{"&&(this.tokenizer.back(t),an.bind(this)(s))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[t]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(Tu(t)){this.mixin(e);return}super.unknownWord(e)}}});var fn=d((gm,cn)=>{var Au=Ie();cn.exports=class extends Au{atrule(e,t){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,t);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let a=(e.raws.between||"")+o+(t?";":"");this.builder(n+i+a,e)}}comment(e){if(e.inline){let t=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder(`//${t}${e.text}${s}`,e)}else super.comment(e)}}});var hn=d((xm,ir)=>{var Cu=se(),qu=ln(),Ru=fn();ir.exports={parse(r,e){let t=new Cu(r,e),s=new qu(t);return s.parse(),s.root.walk(n=>{let i=t.css.lastIndexOf(n.source.input.css);if(i===0)return;if(i+n.source.input.css.length!==t.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+n.source.start.offset,a=t.fromOffset(i+n.source.start.offset);if(n.source.start={offset:o,line:a.line,column:a.col},n.source.end){let u=i+n.source.end.offset,l=t.fromOffset(i+n.source.end.offset);n.source.end={offset:u,line:l.line,column:l.col}}}),s.root},stringify(r,e){new Ru(e).stringify(r)},nodeToString(r){let e="";return ir.exports.stringify(r,t=>{e+=t}),e}}});var or=d((vm,pn)=>{pn.exports=class{generate(){}}});var He=d((km,wn)=>{"use strict";var Pu=B(),dn,mn,Q=class extends Pu{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new dn(new mn,this,e).stringify()}};Q.registerLazyResult=r=>{dn=r};Q.registerProcessor=r=>{mn=r};wn.exports=Q;Q.default=Q});var ar=d((_m,gn)=>{"use strict";var yn={};gn.exports=function(e){yn[e]||(yn[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var ur=d((Tm,xn)=>{"use strict";var xe=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let s=t.node.rangeBy(t);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in t)this[s]=t[s]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};xn.exports=xe;xe.default=xe});var Je=d((Sm,vn)=>{"use strict";var Iu=ur(),ve=class{constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let s=new Iu(e,t);return this.messages.push(s),s}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};vn.exports=ve;ve.default=ve});var fr=d((Em,Tn)=>{"use strict";var{isClean:N,my:Nu}=Re(),Mu=or(),Lu=ce(),Du=B(),$u=He(),Om=ar(),bn=Je(),zu=ge(),Bu=ee(),Wu={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Uu={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},Fu={postcssPlugin:!0,prepare:!0,Once:!0},ne=0;function be(r){return typeof r=="object"&&typeof r.then=="function"}function _n(r){let e=!1,t=Wu[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,ne,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,ne,t+"Exit"]:[t,t+"Exit"]}function kn(r){let e;return r.type==="document"?e=["Document",ne,"DocumentExit"]:r.type==="root"?e=["Root",ne,"RootExit"]:e=_n(r),{node:r,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function lr(r){return r[N]=!1,r.nodes&&r.nodes.forEach(e=>lr(e)),r}var cr={},M=class{constructor(e,t,s){this.stringified=!1,this.processed=!1;let n;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))n=lr(t);else if(t instanceof M||t instanceof bn)n=lr(t.root),t.map&&(typeof s.map>"u"&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=t.map);else{let i=zu;s.syntax&&(i=s.syntax.parse),s.parser&&(i=s.parser),i.parse&&(i=i.parse);try{n=i(t,s)}catch(o){this.processed=!0,this.error=o}n&&!n[Nu]&&Du.rebuild(n)}this.result=new bn(e,n,s),this.helpers={...cr,result:this.result,postcss:cr},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(be(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[N];)e[N]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Lu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new Mu(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[N]=!0;let t=_n(e);for(let s of t)if(s===ne)e.nodes&&e.each(n=>{n[N]||this.walkSync(n)});else{let n=this.listeners[s];if(n&&this.visitSync(n,e.toProxy()))return}}visitSync(e,t){for(let[s,n]of e){this.result.lastPlugin=s;let i;try{i=n(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(be(i))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(s=>e.Once(s,this.helpers));return be(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let s=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=s.postcssPlugin,e.setMessage()):s.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],s=this.runOnRoot(t);if(be(s))try{await s}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[N];){e[N]=!0;let t=[kn(e)];for(;t.length>0;){let s=this.visitTick(t);if(be(s))try{await s}catch(n){let i=t[t.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[t,s]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let n=e.nodes.map(i=>s(i,this.helpers));await Promise.all(n)}else await s(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(t,s,n)=>{this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push([t,n])};for(let t of this.plugins)if(typeof t=="object")for(let s in t){if(!Uu[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Fu[s])if(typeof t[s]=="object")for(let n in t[s])n==="*"?e(t,s,t[s][n]):e(t,s+"-"+n.toLowerCase(),t[s][n]);else typeof t[s]=="function"&&e(t,s,t[s])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:s,visitors:n}=t;if(s.type!=="root"&&s.type!=="document"&&!s.parent){e.pop();return}if(n.length>0&&t.visitorIndex<n.length){let[o,a]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(s.toProxy(),this.helpers)}catch(u){throw this.handleError(u,s)}}if(t.iterator!==0){let o=t.iterator,a;for(;a=s.nodes[s.indexes[o]];)if(s.indexes[o]+=1,!a[N]){a[N]=!0,e.push(kn(a));return}t.iterator=0,delete s.indexes[o]}let i=t.events;for(;t.eventIndex<i.length;){let o=i[t.eventIndex];if(t.eventIndex+=1,o===ne){s.nodes&&s.nodes.length&&(s[N]=!0,t.iterator=s.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}};M.registerPostcss=r=>{cr=r};Tn.exports=M;M.default=M;Bu.registerLazyResult(M);$u.registerLazyResult(M)});var On=d((Cm,Sn)=>{"use strict";var ju=or(),Vu=ce(),Am=ar(),Gu=ge(),Qu=Je(),ke=class{constructor(e,t,s){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=s,this._map=void 0;let n,i=Vu;this.result=new Qu(this._processor,n,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new ju(i,n,this._opts,t);if(a.isMap()){let[u,l]=a.generate();u&&(this.result.css=u),l&&(this.result.map=l)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,t=Gu;try{e=t(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}};Sn.exports=ke;ke.default=ke});var An=d((qm,En)=>{"use strict";var Hu=On(),Ju=fr(),Yu=He(),Ku=ee(),H=class{constructor(e=[]){this.version="8.4.21",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new Hu(this,e,t):new Ju(this,e,t)}normalize(e){let t=[];for(let s of e)if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),typeof s=="object"&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if(typeof s=="object"&&s.postcssPlugin)t.push(s);else if(typeof s=="function")t.push(s);else if(!(typeof s=="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin");return t}};En.exports=H;H.default=H;Ku.registerProcessor(H);Yu.registerProcessor(H)});var qn=d((Rm,Cn)=>{"use strict";var Xu=de(),Zu=Zt(),el=X(),tl=Fe(),rl=se(),sl=ee(),nl=je();function _e(r,e){if(Array.isArray(r))return r.map(n=>_e(n));let{inputs:t,...s}=r;if(t){e=[];for(let n of t){let i={...n,__proto__:rl.prototype};i.map&&(i.map={...i.map,__proto__:Zu.prototype}),e.push(i)}}if(s.nodes&&(s.nodes=r.nodes.map(n=>_e(n,e))),s.source){let{inputId:n,...i}=s.source;s.source=i,n!=null&&(s.source.input=e[n])}if(s.type==="root")return new sl(s);if(s.type==="decl")return new Xu(s);if(s.type==="rule")return new nl(s);if(s.type==="comment")return new el(s);if(s.type==="atrule")return new tl(s);throw new Error("Unknown node type: "+r.type)}Cn.exports=_e;_e.default=_e});var Ye=d((Pm,Dn)=>{"use strict";var il=Pe(),Rn=de(),ol=fr(),al=B(),hr=An(),ul=ce(),ll=qn(),Pn=He(),cl=ur(),In=X(),Nn=Fe(),fl=Je(),hl=se(),pl=ge(),dl=Kt(),Mn=je(),Ln=ee(),ml=he();function x(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new hr(r)}x.plugin=function(e,t){let s=!1;function n(...o){console&&console.warn&&!s&&(s=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
24
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new hr().version,a}let i;return Object.defineProperty(n,"postcss",{get(){return i||(i=n()),i}}),n.process=function(o,a,u){return x([n(u)]).process(o,a)},n};x.stringify=ul;x.parse=pl;x.fromJSON=ll;x.list=dl;x.comment=r=>new In(r);x.atRule=r=>new Nn(r);x.decl=r=>new Rn(r);x.rule=r=>new Mn(r);x.root=r=>new Ln(r);x.document=r=>new Pn(r);x.CssSyntaxError=il;x.Declaration=Rn;x.Container=al;x.Processor=hr;x.Document=Pn;x.Comment=In;x.Warning=cl;x.AtRule=Nn;x.Result=fl;x.Input=hl;x.Rule=Mn;x.Root=Ln;x.Node=ml;ol.registerPostcss(x);Dn.exports=x;x.default=x});var zn=d((Im,$n)=>{var{Container:wl}=Ye(),pr=class extends wl{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};$n.exports=pr});var Vn=d((Nm,jn)=>{"use strict";var dr="'".charCodeAt(0),mr='"'.charCodeAt(0),Te="\\".charCodeAt(0),Ke="/".charCodeAt(0),wr=`
|
|
25
|
+
`.charCodeAt(0),Xe=" ".charCodeAt(0),yr="\f".charCodeAt(0),gr=" ".charCodeAt(0),xr="\r".charCodeAt(0),yl="[".charCodeAt(0),gl="]".charCodeAt(0),Bn="(".charCodeAt(0),Wn=")".charCodeAt(0),Ze="{".charCodeAt(0),Un="}".charCodeAt(0),xl=";".charCodeAt(0),vl="*".charCodeAt(0),bl=":".charCodeAt(0),kl="@".charCodeAt(0),_l=",".charCodeAt(0),vr="#".charCodeAt(0),et=/[\t\n\f\r "#'()/;[\\\]{}]/g,tt=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Tl=/.[\n"'(/\\]/,Fn=/[\da-f]/i,rt=/[\n\f\r]/g;jn.exports=function(e,t={}){let s=e.css.valueOf(),n=t.ignoreErrors,i,o,a,u,l,f,h,c,y,g=s.length,p=0,m=[],w=[],b;function q(){return p}function S(k){throw e.error("Unclosed "+k,p)}function P(){return w.length===0&&p>=g}function F(){let k=1,_=!1,O=!1;for(;k>0;)o+=1,s.length<=o&&S("interpolation"),i=s.charCodeAt(o),c=s.charCodeAt(o+1),_?!O&&i===_?(_=!1,O=!1):i===Te?O=!O:O&&(O=!1):i===dr||i===mr?_=i:i===Un?k-=1:i===vr&&c===Ze&&(k+=1)}function K(k){if(w.length)return w.pop();if(p>=g)return;let _=k?k.ignoreUnclosed:!1;switch(i=s.charCodeAt(p),i){case wr:case Xe:case gr:case xr:case yr:{o=p;do o+=1,i=s.charCodeAt(o);while(i===Xe||i===wr||i===gr||i===xr||i===yr);y=["space",s.slice(p,o)],p=o-1;break}case yl:case gl:case Ze:case Un:case bl:case xl:case Wn:{let O=String.fromCharCode(i);y=[O,O,p];break}case _l:{y=["word",",",p,p+1];break}case Bn:{if(h=m.length?m.pop()[1]:"",c=s.charCodeAt(p+1),h==="url"&&c!==dr&&c!==mr){for(b=1,f=!1,o=p+1;o<=s.length-1;){if(c=s.charCodeAt(o),c===Te)f=!f;else if(c===Bn)b+=1;else if(c===Wn&&(b-=1,b===0))break;o+=1}u=s.slice(p,o+1),y=["brackets",u,p,o],p=o}else o=s.indexOf(")",p+1),u=s.slice(p,o+1),o===-1||Tl.test(u)?y=["(","(",p]:(y=["brackets",u,p,o],p=o);break}case dr:case mr:{for(a=i,o=p,f=!1;o<g&&(o++,o===g&&S("string"),i=s.charCodeAt(o),c=s.charCodeAt(o+1),!(!f&&i===a));)i===Te?f=!f:f?f=!1:i===vr&&c===Ze&&F();y=["string",s.slice(p,o+1),p,o],p=o;break}case kl:{et.lastIndex=p+1,et.test(s),et.lastIndex===0?o=s.length-1:o=et.lastIndex-2,y=["at-word",s.slice(p,o+1),p,o],p=o;break}case Te:{for(o=p,l=!0;s.charCodeAt(o+1)===Te;)o+=1,l=!l;if(i=s.charCodeAt(o+1),l&&i!==Ke&&i!==Xe&&i!==wr&&i!==gr&&i!==xr&&i!==yr&&(o+=1,Fn.test(s.charAt(o)))){for(;Fn.test(s.charAt(o+1));)o+=1;s.charCodeAt(o+1)===Xe&&(o+=1)}y=["word",s.slice(p,o+1),p,o],p=o;break}default:c=s.charCodeAt(p+1),i===vr&&c===Ze?(o=p,F(),u=s.slice(p,o+1),y=["word",u,p,o],p=o):i===Ke&&c===vl?(o=s.indexOf("*/",p+2)+1,o===0&&(n||_?o=s.length:S("comment")),y=["comment",s.slice(p,o+1),p,o],p=o):i===Ke&&c===Ke?(rt.lastIndex=p+1,rt.test(s),rt.lastIndex===0?o=s.length-1:o=rt.lastIndex-2,u=s.slice(p,o+1),y=["comment",u,p,o,"inline"],p=o):(tt.lastIndex=p+1,tt.test(s),tt.lastIndex===0?o=s.length-1:o=tt.lastIndex-2,y=["word",s.slice(p,o+1),p,o],m.push(y),p=o);break}return p++,y}function L(k){w.push(k)}return{back:L,nextToken:K,endOfFile:P,position:q}}});var Qn=d((Mm,Gn)=>{var{Comment:Sl}=Ye(),Ol=Ve(),El=zn(),Al=Vn(),br=class extends Ol{createTokenizer(){this.tokenizer=Al(this.input)}rule(e){let t=!1,s=0,n="";for(let i of e)if(t)i[0]!=="comment"&&i[0]!=="{"&&(n+=i[1]);else{if(i[0]==="space"&&i[1].includes(`
|
|
26
|
+
`))break;i[0]==="("?s+=1:i[0]===")"?s-=1:s===0&&i[0]===":"&&(t=!0)}if(!t||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let i=new El;this.init(i,e[0][2]);let o;for(let u=e.length-1;u>=0;u--)if(e[u][0]!=="space"){o=e[u];break}if(o[3]){let u=this.input.fromOffset(o[3]);i.source.end={offset:o[3],line:u.line,column:u.col}}else{let u=this.input.fromOffset(o[2]);i.source.end={offset:o[2],line:u.line,column:u.col}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let u=this.input.fromOffset(e[0][2]);i.source.start={offset:e[0][2],line:u.line,column:u.col}}for(i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){i.raws.between+=a[1];break}else i.raws.between+=a[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let u=e.length-1;u>0;u--){if(a=e[u],a[1]==="!important"){i.important=!0;let l=this.stringFrom(e,u);l=this.spacesFromEnd(e)+l,l!==" !important"&&(i.raws.important=l);break}else if(a[1]==="important"){let l=e.slice(0),f="";for(let h=u;h>0;h--){let c=l[h][0];if(f.trim().indexOf("!")===0&&c!=="space")break;f=l.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=l)}if(a[0]!=="space"&&a[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}comment(e){if(e[4]==="inline"){let t=new Sl;this.init(t,e[2]),t.raws.inline=!0;let s=this.input.fromOffset(e[3]);t.source.end={offset:e[3],line:s.line,column:s.col};let n=e[1].slice(2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");t.text=o,t.raws.left=i[1],t.raws.right=i[3],t.raws.text=i[2]}}else super.comment(e)}atrule(e){let t=e[1],s=e;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===s[3]+1)t+=n[1],s=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",t,e[2],s[3]])}raw(e,t,s,n){if(super.raw(e,t,s,n),e.raws[t]){let i=e.raws[t].raw;e.raws[t].raw=s.reduce((o,a)=>{if(a[0]==="comment"&&a[4]==="inline"){let u=a[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+u+"*/"}else return o+a[1]},""),i!==e.raws[t].raw&&(e.raws[t].scss=i)}}};Gn.exports=br});var Jn=d((Lm,Hn)=>{var{Input:Cl}=Ye(),ql=Qn();Hn.exports=function(e,t){let s=new Cl(e,t),n=new ql(s);return n.parse(),n.root}});var si=d(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.extract=zl;J.parse=Wl;J.parseWithComments=ri;J.print=Ul;J.strip=Bl;var Nl=/\*\/$/,Ml=/^\/\*\*?/,ei=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Ll=/(^|\s+)\/\/([^\r\n]*)/g,Kn=/^(\r?\n)+/,Dl=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Xn=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,$l=/(\r?\n|^) *\* ?/g,ti=[];function zl(r){let e=r.match(ei);return e?e[0].trimLeft():""}function Bl(r){let e=r.match(ei);return e&&e[0]?r.substring(e[0].length):r}function Wl(r){return ri(r).pragmas}function ri(r){let e=`
|
|
27
|
+
`;r=r.replace(Ml,"").replace(Nl,"").replace($l,"$1");let t="";for(;t!==r;)t=r,r=r.replace(Dl,`${e}$1 $2${e}`);r=r.replace(Kn,"").trimRight();let s=Object.create(null),n=r.replace(Xn,"").replace(Kn,"").trimRight(),i;for(;i=Xn.exec(r);){let o=i[2].replace(Ll,"");typeof s[i[1]]=="string"||Array.isArray(s[i[1]])?s[i[1]]=ti.concat(s[i[1]],o):s[i[1]]=o}return{comments:n,pragmas:s}}function Ul({comments:r="",pragmas:e={}}){let t=`
|
|
28
|
+
`,s="/**",n=" *",i=" */",o=Object.keys(e),a=o.map(l=>Zn(l,e[l])).reduce((l,f)=>l.concat(f),[]).map(l=>`${n} ${l}${t}`).join("");if(!r){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let l=e[o[0]];return`${s} ${Zn(o[0],l)[0]}${i}`}}let u=r.split(t).map(l=>`${n} ${l}`).join(t)+t;return s+t+(r?u:"")+(r&&o.length?n+t:"")+a+i}function Zn(r,e){return ti.concat(e).map(t=>`@${r} ${t}`.trim())}});var I=d((dw,mi)=>{"use strict";var Sr=function(r,e){let t=new r.constructor;for(let s in r){if(!r.hasOwnProperty(s))continue;let n=r[s],i=typeof n;s==="parent"&&i==="object"?e&&(t[s]=e):s==="source"?t[s]=n:n instanceof Array?t[s]=n.map(o=>Sr(o,t)):s!=="before"&&s!=="after"&&s!=="between"&&s!=="semicolon"&&(i==="object"&&n!==null&&(n=Sr(n)),t[s]=n)}return t};mi.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let t in e)this[t]=e[t]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let t=Sr(this);for(let s in e)t[s]=e[s];return t}cloneBefore(e){e=e||{};let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e){e=e||{};let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let t of e)this.parent.insertBefore(this,t);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let t in this){if(!this.hasOwnProperty(t)||t==="parent")continue;let s=this[t];s instanceof Array?e[t]=s.map(n=>typeof n=="object"&&n.toJSON?n.toJSON():n):typeof s=="object"&&s.toJSON?e[t]=s.toJSON():e[t]=s}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let t=this.toString(),s=this.source.start.column,n=this.source.start.line;for(let i=0;i<e;i++)t[i]===`
|
|
29
|
+
`?(s=1,n+=1):s+=1;return{line:n,column:s}}positionBy(e){let t=this.source.start;if(Object(e).index)t=this.positionInside(e.index);else if(Object(e).word){let s=this.toString().indexOf(e.word);s!==-1&&(t=this.positionInside(s))}return t}}});var A=d((mw,wi)=>{"use strict";var Xl=I(),oe=class extends Xl{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach,s,n;if(this.indexes[t]=0,!!this.nodes){for(;this.indexes[t]<this.nodes.length&&(s=this.indexes[t],n=e(this.nodes[s],s),n!==!1);)this.indexes[t]+=1;return delete this.indexes[t],n}}walk(e){return this.each((t,s)=>{let n=e(t,s);return n!==!1&&t.walk&&(n=t.walk(e)),n})}walkType(e,t){if(!e||!t)throw new Error("Parameters {type} and {callback} are required.");let s=typeof e=="function";return this.walk((n,i)=>{if(s&&n instanceof e||!s&&n.type===e)return t.call(this,n,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertAfter(e,t){let s=this.index(e),n;this.nodes.splice(s+1,0,t);for(let i in this.indexes)n=this.indexes[i],s<=n&&(this.indexes[i]=n+this.nodes.length);return this}insertBefore(e,t){let s=this.index(e),n;this.nodes.splice(s,0,t);for(let i in this.indexes)n=this.indexes[i],s<=n&&(this.indexes[i]=n+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let t;for(let s in this.indexes)t=this.indexes[s],t>=e&&(this.indexes[s]=t-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};oe.registerWalker=r=>{let e="walk"+r.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!oe.prototype[e]&&(oe.prototype[e]=function(t){return this.walkType(r,t)})};wi.exports=oe});var gi=d((yw,yi)=>{"use strict";var Zl=A();yi.exports=class extends Zl{constructor(e){super(e),this.type="root"}}});var vi=d((xw,xi)=>{"use strict";var ec=A();xi.exports=class extends ec{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var _i=d((vw,ki)=>{"use strict";var bi=A(),ot=class extends bi{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};bi.registerWalker(ot);ki.exports=ot});var Si=d((bw,Ti)=>{"use strict";var tc=A(),rc=I(),at=class extends rc{constructor(e){super(e),this.type="colon"}};tc.registerWalker(at);Ti.exports=at});var Ei=d((kw,Oi)=>{"use strict";var sc=A(),nc=I(),ut=class extends nc{constructor(e){super(e),this.type="comma"}};sc.registerWalker(ut);Oi.exports=ut});var Ci=d((_w,Ai)=>{"use strict";var ic=A(),oc=I(),lt=class extends oc{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};ic.registerWalker(lt);Ai.exports=lt});var Pi=d((Tw,Ri)=>{"use strict";var qi=A(),ct=class extends qi{constructor(e){super(e),this.type="func",this.unbalanced=-1}};qi.registerWalker(ct);Ri.exports=ct});var Ni=d((Sw,Ii)=>{"use strict";var ac=A(),uc=I(),ft=class extends uc{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};ac.registerWalker(ft);Ii.exports=ft});var Li=d((Ow,Mi)=>{"use strict";var lc=A(),cc=I(),ht=class extends cc{constructor(e){super(e),this.type="operator"}};lc.registerWalker(ht);Mi.exports=ht});var $i=d((Ew,Di)=>{"use strict";var fc=A(),hc=I(),pt=class extends hc{constructor(e){super(e),this.type="paren",this.parenType=""}};fc.registerWalker(pt);Di.exports=pt});var Bi=d((Aw,zi)=>{"use strict";var pc=A(),dc=I(),dt=class extends dc{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};pc.registerWalker(dt);zi.exports=dt});var Ui=d((Cw,Wi)=>{"use strict";var mc=A(),wc=I(),mt=class extends wc{constructor(e){super(e),this.type="word"}};mc.registerWalker(mt);Wi.exports=mt});var ji=d((qw,Fi)=>{"use strict";var yc=A(),gc=I(),wt=class extends gc{constructor(e){super(e),this.type="unicode-range"}};yc.registerWalker(wt);Fi.exports=wt});var Gi=d((Rw,Vi)=>{"use strict";var Or=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Vi.exports=Or});var Zi=d((Pw,Xi)=>{"use strict";var xc="{".charCodeAt(0),vc="}".charCodeAt(0),bc="(".charCodeAt(0),kc=")".charCodeAt(0),Qi="'".charCodeAt(0),_c='"'.charCodeAt(0),Hi="\\".charCodeAt(0),yt="/".charCodeAt(0),Tc=".".charCodeAt(0),Sc=",".charCodeAt(0),Oc=":".charCodeAt(0),Er="*".charCodeAt(0),gt="-".charCodeAt(0),Ar="+".charCodeAt(0),Ec="#".charCodeAt(0),Oe=`
|
|
30
|
+
`.charCodeAt(0),Cr=" ".charCodeAt(0),qr="\f".charCodeAt(0),Rr=" ".charCodeAt(0),Pr="\r".charCodeAt(0),Ac="@".charCodeAt(0),Cc="e".charCodeAt(0),qc="E".charCodeAt(0),Ji="0".charCodeAt(0),Yi="9".charCodeAt(0),Rc="u".charCodeAt(0),Pc="U".charCodeAt(0),xt=/[ \n\t\r\{\(\)'"\\;,/]/g,Ic=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,ae=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,Nc=/^[a-z0-9]/i,Mc=/^[a-f0-9?\-]/i,Ki=Gi();Xi.exports=function(e,t){t=t||{};let s=[],n=e.valueOf(),i=n.length,o=-1,a=1,u=0,l=0,f=null,h,c,y,g,p,m,w,b,q,S,P,F;function K(k){let _=`Unclosed ${k} at line: ${a}, column: ${u-o}, token: ${u}`;throw new Ki(_)}function L(){let k=`Syntax error at line: ${a}, column: ${u-o}, token: ${u}`;throw new Ki(k)}for(;u<i;){switch(h=n.charCodeAt(u),h===Oe&&(o=u,a+=1),h){case Oe:case Cr:case Rr:case Pr:case qr:c=u;do c+=1,h=n.charCodeAt(c),h===Oe&&(o=c,a+=1);while(h===Cr||h===Oe||h===Rr||h===Pr||h===qr);s.push(["space",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1;break;case Oc:c=u+1,s.push(["colon",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1;break;case Sc:c=u+1,s.push(["comma",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1;break;case xc:s.push(["{","{",a,u-o,a,c-o,u]);break;case vc:s.push(["}","}",a,u-o,a,c-o,u]);break;case bc:l++,f=!f&&l===1&&s.length>0&&s[s.length-1][0]==="word"&&s[s.length-1][1]==="url",s.push(["(","(",a,u-o,a,c-o,u]);break;case kc:l--,f=f&&l>0,s.push([")",")",a,u-o,a,c-o,u]);break;case Qi:case _c:y=h===Qi?"'":'"',c=u;do for(S=!1,c=n.indexOf(y,c+1),c===-1&&K("quote",y),P=c;n.charCodeAt(P-1)===Hi;)P-=1,S=!S;while(S);s.push(["string",n.slice(u,c+1),a,u-o,a,c-o,u]),u=c;break;case Ac:xt.lastIndex=u+1,xt.test(n),xt.lastIndex===0?c=n.length-1:c=xt.lastIndex-2,s.push(["atword",n.slice(u,c+1),a,u-o,a,c-o,u]),u=c;break;case Hi:c=u,h=n.charCodeAt(c+1),w&&h!==yt&&h!==Cr&&h!==Oe&&h!==Rr&&h!==Pr&&h!==qr&&(c+=1),s.push(["word",n.slice(u,c+1),a,u-o,a,c-o,u]),u=c;break;case Ar:case gt:case Er:c=u+1,F=n.slice(u+1,c+1);let k=n.slice(u-1,u);if(h===gt&&F.charCodeAt(0)===gt){c++,s.push(["word",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1;break}s.push(["operator",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1;break;default:if(h===yt&&(n.charCodeAt(u+1)===Er||t.loose&&!f&&n.charCodeAt(u+1)===yt)){if(n.charCodeAt(u+1)===Er)c=n.indexOf("*/",u+2)+1,c===0&&K("comment","*/");else{let O=n.indexOf(`
|
|
31
|
+
`,u+2);c=O!==-1?O-1:i}m=n.slice(u,c+1),g=m.split(`
|
|
32
|
+
`),p=g.length-1,p>0?(b=a+p,q=c-g[p].length):(b=a,q=o),s.push(["comment",m,a,u-o,b,c-q,u]),o=q,a=b,u=c}else if(h===Ec&&!Nc.test(n.slice(u+1,u+2)))c=u+1,s.push(["#",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1;else if((h===Rc||h===Pc)&&n.charCodeAt(u+1)===Ar){c=u+2;do c+=1,h=n.charCodeAt(c);while(c<i&&Mc.test(n.slice(c,c+1)));s.push(["unicoderange",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1}else if(h===yt)c=u+1,s.push(["operator",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1;else{let _=Ic;if(h>=Ji&&h<=Yi&&(_=ae),_.lastIndex=u+1,_.test(n),_.lastIndex===0?c=n.length-1:c=_.lastIndex-2,_===ae||h===Tc){let O=n.charCodeAt(c),ts=n.charCodeAt(c+1),rs=n.charCodeAt(c+2);(O===Cc||O===qc)&&(ts===gt||ts===Ar)&&rs>=Ji&&rs<=Yi&&(ae.lastIndex=c+2,ae.test(n),ae.lastIndex===0?c=n.length-1:c=ae.lastIndex-2)}s.push(["word",n.slice(u,c+1),a,u-o,a,c-o,u]),u=c}break}u++}return s}});var Ir=d((Iw,eo)=>{eo.exports=function(e,t){if(t=typeof t=="number"?t:1/0,!t)return Array.isArray(e)?e.map(function(n){return n}):e;return s(e,1);function s(n,i){return n.reduce(function(o,a){return Array.isArray(a)&&i<t?o.concat(s(a,i+1)):o.concat(a)},[])}}});var Nr=d((Nw,to)=>{to.exports=function(r,e){for(var t=-1,s=[];(t=r.indexOf(e,t+1))!==-1;)s.push(t);return s}});var Mr=d((Mw,ro)=>{"use strict";function Lc(r,e){for(var t=1,s=r.length,n=r[0],i=r[0],o=1;o<s;++o)if(i=n,n=r[o],e(n,i)){if(o===t){t++;continue}r[t++]=n}return r.length=t,r}function Dc(r){for(var e=1,t=r.length,s=r[0],n=r[0],i=1;i<t;++i,n=s)if(n=s,s=r[i],s!==n){if(i===e){e++;continue}r[e++]=s}return r.length=e,r}function $c(r,e,t){return r.length===0?r:e?(t||r.sort(e),Lc(r,e)):(t||r.sort(),Dc(r))}ro.exports=$c});var no=d((Lw,so)=>{"use strict";var Lr=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};so.exports=Lr});var uo=d(($w,ao)=>{"use strict";var zc=gi(),Bc=vi(),Wc=_i(),Uc=Si(),Fc=Ei(),jc=Ci(),Vc=Pi(),Gc=Ni(),Qc=Li(),io=$i(),Hc=Bi(),oo=Ui(),Jc=ji(),Yc=Zi(),Kc=Ir(),Xc=Nr(),Zc=Mr(),ef=no();function tf(r){return r.sort((e,t)=>e-t)}ao.exports=class{constructor(e,t){let s={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},s,t),this.position=0,this.unbalanced=0,this.root=new zc;let n=new Bc;this.root.append(n),this.current=n,this.tokens=Yc(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new Uc({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new Fc({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,t=this.currToken[1].replace(/\/\*|\*\//g,""),s;this.options.loose&&t.startsWith("//")&&(t=t.substring(2),e=!0),s=new jc({value:t,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(s),this.position++}error(e,t){throw new ef(e+` at line: ${t[2]}, column ${t[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let e=this.currToken[1],t;if(e==="+"||e==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.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 t=new Qc({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(t)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,t=this.position+1,s=this.currToken,n;for(;t<this.tokens.length&&e;){let i=this.tokens[t];i[0]==="("&&e++,i[0]===")"&&e--,t++}if(e&&this.error("Expected closing parenthesis",s),n=this.current.last,n&&n.type==="func"&&n.unbalanced<0&&(n.unbalanced=0,this.current=n),this.current.unbalanced++,this.newNode(new io({value:s[1],source:{start:{line:s[2],column:s[3]},end:{line:s[4],column:s[5]}},sourceIndex:s[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 i=this.nextToken,o=this.currToken[1],a={line:this.currToken[2],column:this.currToken[3]};for(;i&&i[0]!==")"&&this.current.unbalanced;)this.position++,o+=this.currToken[1],i=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new oo({value:o,source:{start:a,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let e=this.currToken;this.newNode(new io({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new Jc({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,t=this.currToken[1],s=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,n=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,i,o;if(!n.test(t))for(;e&&e[0]==="word";){this.position++;let a=this.currToken[1];t+=a,e=this.nextToken}i=Xc(t,"@"),o=tf(Zc(Kc([[0],i]))),o.forEach((a,u)=>{let l=o[u+1]||t.length,f=t.slice(a,l),h;if(~i.indexOf(a))h=new Wc({value:f.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(l-1)}},sourceIndex:this.currToken[6]+o[u]});else if(s.test(this.currToken[1])){let c=f.replace(s,"");h=new Gc({value:f.replace(c,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(l-1)}},sourceIndex:this.currToken[6]+o[u],unit:c})}else h=new(e&&e[0]==="("?Vc:oo)({value:f,source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(l-1)}},sourceIndex:this.currToken[6]+o[u]}),h.type==="word"?(h.isHex=/^#(.+)/.test(f),h.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(f)):this.cache.push(this.current);this.newNode(h)}),this.position++}string(){let e=this.currToken,t=this.currToken[1],s=/^(\"|\')/,n=s.test(t),i="",o;n&&(i=t.match(s)[0],t=t.slice(1,t.length-1)),o=new Hc({value:t,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:n}),o.raws.quote=i,this.newNode(o),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var Y=d((vt,mo)=>{"use strict";vt.__esModule=!0;var po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};function of(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var af=function r(e,t){if((typeof e>"u"?"undefined":po(e))!=="object")return e;var s=new e.constructor;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],o=typeof i>"u"?"undefined":po(i);n==="parent"&&o==="object"?t&&(s[n]=t):i instanceof Array?s[n]=i.map(function(a){return r(a,s)}):s[n]=r(i,s)}return s},uf=function(){function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};of(this,r);for(var t in e)this[t]=e[t];var s=e.spaces;s=s===void 0?{}:s;var n=s.before,i=n===void 0?"":n,o=s.after,a=o===void 0?"":o;this.spaces={before:i,after:a}}return r.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},r.prototype.replaceWith=function(){if(this.parent){for(var t in arguments)this.parent.insertBefore(this,arguments[t]);this.remove()}return this},r.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},r.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},r.prototype.clone=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=af(this);for(var n in t)s[n]=t[n];return s},r.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},r}();vt.default=uf;mo.exports=vt.default});var E=d(C=>{"use strict";C.__esModule=!0;var jw=C.TAG="tag",Vw=C.STRING="string",Gw=C.SELECTOR="selector",Qw=C.ROOT="root",Hw=C.PSEUDO="pseudo",Jw=C.NESTING="nesting",Yw=C.ID="id",Kw=C.COMMENT="comment",Xw=C.COMBINATOR="combinator",Zw=C.CLASS="class",ey=C.ATTRIBUTE="attribute",ty=C.UNIVERSAL="universal"});var kt=d((bt,wo)=>{"use strict";bt.__esModule=!0;var lf=function(){function r(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,s){return t&&r(e.prototype,t),s&&r(e,s),e}}(),cf=Y(),ff=df(cf),hf=E(),D=pf(hf);function pf(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e.default=r,e}function df(r){return r&&r.__esModule?r:{default:r}}function mf(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function wf(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function yf(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var gf=function(r){yf(e,r);function e(t){mf(this,e);var s=wf(this,r.call(this,t));return s.nodes||(s.nodes=[]),s}return e.prototype.append=function(s){return s.parent=this,this.nodes.push(s),this},e.prototype.prepend=function(s){return s.parent=this,this.nodes.unshift(s),this},e.prototype.at=function(s){return this.nodes[s]},e.prototype.index=function(s){return typeof s=="number"?s:this.nodes.indexOf(s)},e.prototype.removeChild=function(s){s=this.index(s),this.at(s).parent=void 0,this.nodes.splice(s,1);var n=void 0;for(var i in this.indexes)n=this.indexes[i],n>=s&&(this.indexes[i]=n-1);return this},e.prototype.removeAll=function(){for(var i=this.nodes,s=Array.isArray(i),n=0,i=s?i:i[Symbol.iterator]();;){var o;if(s){if(n>=i.length)break;o=i[n++]}else{if(n=i.next(),n.done)break;o=n.value}var a=o;a.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(s,n){var i=this.index(s);this.nodes.splice(i+1,0,n);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.insertBefore=function(s,n){var i=this.index(s);this.nodes.splice(i,0,n);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.each=function(s){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var n=this.lastEach;if(this.indexes[n]=0,!!this.length){for(var i=void 0,o=void 0;this.indexes[n]<this.length&&(i=this.indexes[n],o=s(this.at(i),i),o!==!1);)this.indexes[n]+=1;if(delete this.indexes[n],o===!1)return!1}},e.prototype.walk=function(s){return this.each(function(n,i){var o=s(n,i);if(o!==!1&&n.length&&(o=n.walk(s)),o===!1)return!1})},e.prototype.walkAttributes=function(s){var n=this;return this.walk(function(i){if(i.type===D.ATTRIBUTE)return s.call(n,i)})},e.prototype.walkClasses=function(s){var n=this;return this.walk(function(i){if(i.type===D.CLASS)return s.call(n,i)})},e.prototype.walkCombinators=function(s){var n=this;return this.walk(function(i){if(i.type===D.COMBINATOR)return s.call(n,i)})},e.prototype.walkComments=function(s){var n=this;return this.walk(function(i){if(i.type===D.COMMENT)return s.call(n,i)})},e.prototype.walkIds=function(s){var n=this;return this.walk(function(i){if(i.type===D.ID)return s.call(n,i)})},e.prototype.walkNesting=function(s){var n=this;return this.walk(function(i){if(i.type===D.NESTING)return s.call(n,i)})},e.prototype.walkPseudos=function(s){var n=this;return this.walk(function(i){if(i.type===D.PSEUDO)return s.call(n,i)})},e.prototype.walkTags=function(s){var n=this;return this.walk(function(i){if(i.type===D.TAG)return s.call(n,i)})},e.prototype.walkUniversals=function(s){var n=this;return this.walk(function(i){if(i.type===D.UNIVERSAL)return s.call(n,i)})},e.prototype.split=function(s){var n=this,i=[];return this.reduce(function(o,a,u){var l=s.call(n,a);return i.push(a),l?(o.push(i),i=[]):u===n.length-1&&o.push(i),o},[])},e.prototype.map=function(s){return this.nodes.map(s)},e.prototype.reduce=function(s,n){return this.nodes.reduce(s,n)},e.prototype.every=function(s){return this.nodes.every(s)},e.prototype.some=function(s){return this.nodes.some(s)},e.prototype.filter=function(s){return this.nodes.filter(s)},e.prototype.sort=function(s){return this.nodes.sort(s)},e.prototype.toString=function(){return this.map(String).join("")},lf(e,[{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}}]),e}(ff.default);bt.default=gf;wo.exports=bt.default});var go=d((_t,yo)=>{"use strict";_t.__esModule=!0;var xf=kt(),vf=kf(xf),bf=E();function kf(r){return r&&r.__esModule?r:{default:r}}function _f(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Tf(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Sf(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Of=function(r){Sf(e,r);function e(t){_f(this,e);var s=Tf(this,r.call(this,t));return s.type=bf.ROOT,s}return e.prototype.toString=function(){var s=this.reduce(function(n,i){var o=String(i);return o?n+o+",":""},"").slice(0,-1);return this.trailingComma?s+",":s},e}(vf.default);_t.default=Of;yo.exports=_t.default});var vo=d((Tt,xo)=>{"use strict";Tt.__esModule=!0;var Ef=kt(),Af=qf(Ef),Cf=E();function qf(r){return r&&r.__esModule?r:{default:r}}function Rf(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Pf(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function If(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Nf=function(r){If(e,r);function e(t){Rf(this,e);var s=Pf(this,r.call(this,t));return s.type=Cf.SELECTOR,s}return e}(Af.default);Tt.default=Nf;xo.exports=Tt.default});var ue=d((St,bo)=>{"use strict";St.__esModule=!0;var Mf=function(){function r(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,s){return t&&r(e.prototype,t),s&&r(e,s),e}}(),Lf=Y(),Df=$f(Lf);function $f(r){return r&&r.__esModule?r:{default:r}}function zf(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Bf(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Wf(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Uf=function(r){Wf(e,r);function e(){return zf(this,e),Bf(this,r.apply(this,arguments))}return e.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},Mf(e,[{key:"ns",get:function(){var s=this.namespace;return s?(typeof s=="string"?s:"")+"|":""}}]),e}(Df.default);St.default=Uf;bo.exports=St.default});var _o=d((Ot,ko)=>{"use strict";Ot.__esModule=!0;var Ff=ue(),jf=Gf(Ff),Vf=E();function Gf(r){return r&&r.__esModule?r:{default:r}}function Qf(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Hf(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Jf(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Yf=function(r){Jf(e,r);function e(t){Qf(this,e);var s=Hf(this,r.call(this,t));return s.type=Vf.CLASS,s}return e.prototype.toString=function(){return[this.spaces.before,this.ns,String("."+this.value),this.spaces.after].join("")},e}(jf.default);Ot.default=Yf;ko.exports=Ot.default});var So=d((Et,To)=>{"use strict";Et.__esModule=!0;var Kf=Y(),Xf=eh(Kf),Zf=E();function eh(r){return r&&r.__esModule?r:{default:r}}function th(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function rh(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function sh(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var nh=function(r){sh(e,r);function e(t){th(this,e);var s=rh(this,r.call(this,t));return s.type=Zf.COMMENT,s}return e}(Xf.default);Et.default=nh;To.exports=Et.default});var Eo=d((At,Oo)=>{"use strict";At.__esModule=!0;var ih=ue(),oh=uh(ih),ah=E();function uh(r){return r&&r.__esModule?r:{default:r}}function lh(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function ch(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function fh(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var hh=function(r){fh(e,r);function e(t){lh(this,e);var s=ch(this,r.call(this,t));return s.type=ah.ID,s}return e.prototype.toString=function(){return[this.spaces.before,this.ns,String("#"+this.value),this.spaces.after].join("")},e}(oh.default);At.default=hh;Oo.exports=At.default});var Co=d((Ct,Ao)=>{"use strict";Ct.__esModule=!0;var ph=ue(),dh=wh(ph),mh=E();function wh(r){return r&&r.__esModule?r:{default:r}}function yh(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function gh(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function xh(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var vh=function(r){xh(e,r);function e(t){yh(this,e);var s=gh(this,r.call(this,t));return s.type=mh.TAG,s}return e}(dh.default);Ct.default=vh;Ao.exports=Ct.default});var Ro=d((qt,qo)=>{"use strict";qt.__esModule=!0;var bh=Y(),kh=Th(bh),_h=E();function Th(r){return r&&r.__esModule?r:{default:r}}function Sh(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Oh(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Eh(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Ah=function(r){Eh(e,r);function e(t){Sh(this,e);var s=Oh(this,r.call(this,t));return s.type=_h.STRING,s}return e}(kh.default);qt.default=Ah;qo.exports=qt.default});var Io=d((Rt,Po)=>{"use strict";Rt.__esModule=!0;var Ch=kt(),qh=Ph(Ch),Rh=E();function Ph(r){return r&&r.__esModule?r:{default:r}}function Ih(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Nh(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Mh(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Lh=function(r){Mh(e,r);function e(t){Ih(this,e);var s=Nh(this,r.call(this,t));return s.type=Rh.PSEUDO,s}return e.prototype.toString=function(){var s=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),s,this.spaces.after].join("")},e}(qh.default);Rt.default=Lh;Po.exports=Rt.default});var Mo=d((Pt,No)=>{"use strict";Pt.__esModule=!0;var Dh=ue(),$h=Bh(Dh),zh=E();function Bh(r){return r&&r.__esModule?r:{default:r}}function Wh(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Uh(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Fh(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var jh=function(r){Fh(e,r);function e(t){Wh(this,e);var s=Uh(this,r.call(this,t));return s.type=zh.ATTRIBUTE,s.raws={},s}return e.prototype.toString=function(){var s=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&s.push(this.operator),this.value&&s.push(this.value),this.raws.insensitive?s.push(this.raws.insensitive):this.insensitive&&s.push(" i"),s.push("]"),s.concat(this.spaces.after).join("")},e}($h.default);Pt.default=jh;No.exports=Pt.default});var Do=d((It,Lo)=>{"use strict";It.__esModule=!0;var Vh=ue(),Gh=Hh(Vh),Qh=E();function Hh(r){return r&&r.__esModule?r:{default:r}}function Jh(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Yh(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Kh(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Xh=function(r){Kh(e,r);function e(t){Jh(this,e);var s=Yh(this,r.call(this,t));return s.type=Qh.UNIVERSAL,s.value="*",s}return e}(Gh.default);It.default=Xh;Lo.exports=It.default});var zo=d((Nt,$o)=>{"use strict";Nt.__esModule=!0;var Zh=Y(),ep=rp(Zh),tp=E();function rp(r){return r&&r.__esModule?r:{default:r}}function sp(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function np(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function ip(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var op=function(r){ip(e,r);function e(t){sp(this,e);var s=np(this,r.call(this,t));return s.type=tp.COMBINATOR,s}return e}(ep.default);Nt.default=op;$o.exports=Nt.default});var Wo=d((Mt,Bo)=>{"use strict";Mt.__esModule=!0;var ap=Y(),up=cp(ap),lp=E();function cp(r){return r&&r.__esModule?r:{default:r}}function fp(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function hp(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function pp(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var dp=function(r){pp(e,r);function e(t){fp(this,e);var s=hp(this,r.call(this,t));return s.type=lp.NESTING,s.value="&",s}return e}(up.default);Mt.default=dp;Bo.exports=Mt.default});var Fo=d((Lt,Uo)=>{"use strict";Lt.__esModule=!0;Lt.default=mp;function mp(r){return r.sort(function(e,t){return e-t})}Uo.exports=Lt.default});var Xo=d((zt,Ko)=>{"use strict";zt.__esModule=!0;zt.default=Op;var jo=39,wp=34,$r=92,Vo=47,Ee=10,zr=32,Br=12,Wr=9,Ur=13,Go=43,Qo=62,Ho=126,Jo=124,yp=44,gp=40,xp=41,vp=91,bp=93,kp=59,Yo=42,_p=58,Tp=38,Sp=64,Dt=/[ \n\t\r\{\(\)'"\\;/]/g,$t=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function Op(r){for(var e=[],t=r.css.valueOf(),s=void 0,n=void 0,i=void 0,o=void 0,a=void 0,u=void 0,l=void 0,f=void 0,h=void 0,c=void 0,y=void 0,g=t.length,p=-1,m=1,w=0,b=function(S,P){if(r.safe)t+=P,n=t.length-1;else throw r.error("Unclosed "+S,m,w-p,w)};w<g;){switch(s=t.charCodeAt(w),s===Ee&&(p=w,m+=1),s){case Ee:case zr:case Wr:case Ur:case Br:n=w;do n+=1,s=t.charCodeAt(n),s===Ee&&(p=n,m+=1);while(s===zr||s===Ee||s===Wr||s===Ur||s===Br);e.push(["space",t.slice(w,n),m,w-p,w]),w=n-1;break;case Go:case Qo:case Ho:case Jo:n=w;do n+=1,s=t.charCodeAt(n);while(s===Go||s===Qo||s===Ho||s===Jo);e.push(["combinator",t.slice(w,n),m,w-p,w]),w=n-1;break;case Yo:e.push(["*","*",m,w-p,w]);break;case Tp:e.push(["&","&",m,w-p,w]);break;case yp:e.push([",",",",m,w-p,w]);break;case vp:e.push(["[","[",m,w-p,w]);break;case bp:e.push(["]","]",m,w-p,w]);break;case _p:e.push([":",":",m,w-p,w]);break;case kp:e.push([";",";",m,w-p,w]);break;case gp:e.push(["(","(",m,w-p,w]);break;case xp:e.push([")",")",m,w-p,w]);break;case jo:case wp:i=s===jo?"'":'"',n=w;do for(c=!1,n=t.indexOf(i,n+1),n===-1&&b("quote",i),y=n;t.charCodeAt(y-1)===$r;)y-=1,c=!c;while(c);e.push(["string",t.slice(w,n+1),m,w-p,m,n-p,w]),w=n;break;case Sp:Dt.lastIndex=w+1,Dt.test(t),Dt.lastIndex===0?n=t.length-1:n=Dt.lastIndex-2,e.push(["at-word",t.slice(w,n+1),m,w-p,m,n-p,w]),w=n;break;case $r:for(n=w,l=!0;t.charCodeAt(n+1)===$r;)n+=1,l=!l;s=t.charCodeAt(n+1),l&&s!==Vo&&s!==zr&&s!==Ee&&s!==Wr&&s!==Ur&&s!==Br&&(n+=1),e.push(["word",t.slice(w,n+1),m,w-p,m,n-p,w]),w=n;break;default:s===Vo&&t.charCodeAt(w+1)===Yo?(n=t.indexOf("*/",w+2)+1,n===0&&b("comment","*/"),u=t.slice(w,n+1),o=u.split(`
|
|
33
|
+
`),a=o.length-1,a>0?(f=m+a,h=n-o[a].length):(f=m,h=p),e.push(["comment",u,m,w-p,f,n-h,w]),p=h,m=f,w=n):($t.lastIndex=w+1,$t.test(t),$t.lastIndex===0?n=t.length-1:n=$t.lastIndex-2,e.push(["word",t.slice(w,n+1),m,w-p,m,n-p,w]),w=n);break}w++}return e}Ko.exports=zt.default});var ta=d((Bt,ea)=>{"use strict";Bt.__esModule=!0;var Ep=function(){function r(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,s){return t&&r(e.prototype,t),s&&r(e,s),e}}(),Ap=Ir(),Cp=T(Ap),qp=Nr(),Fr=T(qp),Rp=Mr(),Pp=T(Rp),Ip=go(),Np=T(Ip),Mp=vo(),jr=T(Mp),Lp=_o(),Dp=T(Lp),$p=So(),zp=T($p),Bp=Eo(),Wp=T(Bp),Up=Co(),Fp=T(Up),jp=Ro(),Vp=T(jp),Gp=Io(),Qp=T(Gp),Hp=Mo(),Jp=T(Hp),Yp=Do(),Kp=T(Yp),Xp=zo(),Zp=T(Xp),ed=Wo(),td=T(ed),rd=Fo(),sd=T(rd),nd=Xo(),Zo=T(nd),id=E(),od=ad(id);function ad(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e.default=r,e}function T(r){return r&&r.__esModule?r:{default:r}}function ud(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var ld=function(){function r(e){ud(this,r),this.input=e,this.lossy=e.options.lossless===!1,this.position=0,this.root=new Np.default;var t=new jr.default;return this.root.append(t),this.current=t,this.lossy?this.tokens=(0,Zo.default)({safe:e.safe,css:e.css.trim()}):this.tokens=(0,Zo.default)(e),this.loop()}return r.prototype.attribute=function(){var t="",s=void 0,n=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)t+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~t.indexOf("]")&&this.error("Expected a closing square bracket.");var i=t.split(/((?:[*~^$|]?=))([^]*)/),o=i[0].split(/(\|)/g),a={operator:i[1],value:i[2],source:{start:{line:n[2],column:n[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:n[4]};if(o.length>1?(o[0]===""&&(o[0]=!0),a.attribute=this.parseValue(o[2]),a.namespace=this.parseNamespace(o[0])):a.attribute=this.parseValue(i[0]),s=new Jp.default(a),i[2]){var u=i[2].split(/(\s+i\s*?)$/),l=u[0].trim();s.value=this.lossy?l:u[0],u[1]&&(s.insensitive=!0,this.lossy||(s.raws.insensitive=u[1])),s.quoted=l[0]==="'"||l[0]==='"',s.raws.unquoted=s.quoted?l.slice(1,-1):l}this.newNode(s),this.position++},r.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var t=new Zp.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"?(t.spaces.before=this.parseSpace(this.currToken[1]),t.source.start.line=this.nextToken[2],t.source.start.column=this.nextToken[3],t.source.end.column=this.nextToken[3],t.source.end.line=this.nextToken[2],t.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?t.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?t.value=this.currToken[1]:this.currToken[0]==="space"&&(t.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(t)},r.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var t=new jr.default;this.current.parent.append(t),this.current=t,this.position++},r.prototype.comment=function(){var t=new zp.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(t),this.position++},r.prototype.error=function(t){throw new this.input.error(t)},r.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},r.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},r.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},r.prototype.namespace=function(){var t=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(t);if(this.nextToken[0]==="*")return this.position++,this.universal(t)},r.prototype.nesting=function(){this.newNode(new td.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++},r.prototype.parentheses=function(){var t=this.current.last;if(t&&t.type===od.PSEUDO){var s=new jr.default,n=this.current;t.append(s),this.current=s;var i=1;for(this.position++;this.position<this.tokens.length&&i;)this.currToken[0]==="("&&i++,this.currToken[0]===")"&&i--,i?this.parse():(s.parent.source.end.line=this.currToken[2],s.parent.source.end.column=this.currToken[3],this.position++);i&&this.error("Expected closing parenthesis."),this.current=n}else{var o=1;for(this.position++,t.value+="(";this.position<this.tokens.length&&o;)this.currToken[0]==="("&&o++,this.currToken[0]===")"&&o--,t.value+=this.parseParenthesisToken(this.currToken),this.position++;o&&this.error("Expected closing parenthesis.")}},r.prototype.pseudo=function(){for(var t=this,s="",n=this.currToken;this.currToken&&this.currToken[0]===":";)s+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var i=void 0;this.splitWord(!1,function(o,a){s+=o,i=new Qp.default({value:s,source:{start:{line:n[2],column:n[3]},end:{line:t.currToken[4],column:t.currToken[5]}},sourceIndex:n[4]}),t.newNode(i),a>1&&t.nextToken&&t.nextToken[0]==="("&&t.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},r.prototype.space=function(){var t=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(t[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(t[1]),this.position++):this.combinator()},r.prototype.string=function(){var t=this.currToken;this.newNode(new Vp.default({value:this.currToken[1],source:{start:{line:t[2],column:t[3]},end:{line:t[4],column:t[5]}},sourceIndex:t[6]})),this.position++},r.prototype.universal=function(t){var s=this.nextToken;if(s&&s[1]==="|")return this.position++,this.namespace();this.newNode(new Kp.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]}),t),this.position++},r.prototype.splitWord=function(t,s){for(var n=this,i=this.nextToken,o=this.currToken[1];i&&i[0]==="word";){this.position++;var a=this.currToken[1];if(o+=a,a.lastIndexOf("\\")===a.length-1){var u=this.nextToken;u&&u[0]==="space"&&(o+=this.parseSpace(u[1]," "),this.position++)}i=this.nextToken}var l=(0,Fr.default)(o,"."),f=(0,Fr.default)(o,"#"),h=(0,Fr.default)(o,"#{");h.length&&(f=f.filter(function(y){return!~h.indexOf(y)}));var c=(0,sd.default)((0,Pp.default)((0,Cp.default)([[0],l,f])));c.forEach(function(y,g){var p=c[g+1]||o.length,m=o.slice(y,p);if(g===0&&s)return s.call(n,m,c.length);var w=void 0;~l.indexOf(y)?w=new Dp.default({value:m.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+y},end:{line:n.currToken[4],column:n.currToken[3]+(p-1)}},sourceIndex:n.currToken[6]+c[g]}):~f.indexOf(y)?w=new Wp.default({value:m.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+y},end:{line:n.currToken[4],column:n.currToken[3]+(p-1)}},sourceIndex:n.currToken[6]+c[g]}):w=new Fp.default({value:m,source:{start:{line:n.currToken[2],column:n.currToken[3]+y},end:{line:n.currToken[4],column:n.currToken[3]+(p-1)}},sourceIndex:n.currToken[6]+c[g]}),n.newNode(w,t)}),this.position++},r.prototype.word=function(t){var s=this.nextToken;return s&&s[1]==="|"?(this.position++,this.namespace()):this.splitWord(t)},r.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},r.prototype.parse=function(t){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":t&&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}},r.prototype.parseNamespace=function(t){if(this.lossy&&typeof t=="string"){var s=t.trim();return s.length?s:!0}return t},r.prototype.parseSpace=function(t,s){return this.lossy?s||"":t},r.prototype.parseValue=function(t){return this.lossy&&t&&typeof t=="string"?t.trim():t},r.prototype.parseParenthesisToken=function(t){return this.lossy?t[0]==="space"?this.parseSpace(t[1]," "):this.parseValue(t[1]):t[1]},r.prototype.newNode=function(t,s){return s&&(t.namespace=this.parseNamespace(s)),this.spaces&&(t.spaces.before=this.spaces,this.spaces=""),this.current.append(t)},Ep(r,[{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]}}]),r}();Bt.default=ld;ea.exports=Bt.default});var sa=d((Wt,ra)=>{"use strict";Wt.__esModule=!0;var cd=function(){function r(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,s){return t&&r(e.prototype,t),s&&r(e,s),e}}(),fd=ta(),hd=pd(fd);function pd(r){return r&&r.__esModule?r:{default:r}}function dd(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var md=function(){function r(e){return dd(this,r),this.func=e||function(){},this}return r.prototype.process=function(t){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new hd.default({css:t,error:function(o){throw new Error(o)},options:s});return this.res=n,this.func(n),this},cd(r,[{key:"result",get:function(){return String(this.res)}}]),r}();Wt.default=md;ra.exports=Wt.default});var Qr=d(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});function vd(r){this.after=r.after,this.before=r.before,this.type=r.type,this.value=r.value,this.sourceIndex=r.sourceIndex}Gr.default=vd});var Jr=d(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});var bd=Qr(),aa=kd(bd);function kd(r){return r&&r.__esModule?r:{default:r}}function Ae(r){var e=this;this.constructor(r),this.nodes=r.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(t){t.parent=e})}Ae.prototype=Object.create(aa.default.prototype);Ae.constructor=aa.default;Ae.prototype.walk=function(e,t){for(var s=typeof e=="string"||e instanceof RegExp,n=s?t:e,i=typeof e=="string"?new RegExp(e):e,o=0;o<this.nodes.length;o++){var a=this.nodes[o],u=s?i.test(a.type):!0;if(u&&n&&n(a,o,this.nodes)===!1||a.nodes&&a.walk(e,t)===!1)return!1}return!0};Ae.prototype.each=function(){for(var e=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],t=0;t<this.nodes.length;t++){var s=this.nodes[t];if(e(s,t,this.nodes)===!1)return!1}return!0};Hr.default=Ae});var fa=d(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.parseMediaFeature=ca;Ce.parseMediaQuery=Kr;Ce.parseMediaList=Sd;var _d=Qr(),ua=la(_d),Td=Jr(),Yr=la(Td);function la(r){return r&&r.__esModule?r:{default:r}}function ca(r){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[{mode:"normal",character:null}],s=[],n=0,i="",o=null,a=null,u=e,l=r;r[0]==="("&&r[r.length-1]===")"&&(l=r.substring(1,r.length-1),u++);for(var f=0;f<l.length;f++){var h=l[f];if((h==="'"||h==='"')&&(t[n].isCalculationEnabled===!0?(t.push({mode:"string",isCalculationEnabled:!1,character:h}),n++):t[n].mode==="string"&&t[n].character===h&&l[f-1]!=="\\"&&(t.pop(),n--)),h==="{"?(t.push({mode:"interpolation",isCalculationEnabled:!0}),n++):h==="}"&&(t.pop(),n--),t[n].mode==="normal"&&h===":"){var c=l.substring(f+1);a={type:"value",before:/^(\s*)/.exec(c)[1],after:/(\s*)$/.exec(c)[1],value:c.trim()},a.sourceIndex=a.before.length+f+1+u,o={type:"colon",sourceIndex:f+u,after:a.before,value:":"};break}i+=h}return i={type:"media-feature",before:/^(\s*)/.exec(i)[1],after:/(\s*)$/.exec(i)[1],value:i.trim()},i.sourceIndex=i.before.length+u,s.push(i),o!==null&&(o.before=i.after,s.push(o)),a!==null&&s.push(a),s}function Kr(r){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[],s=0,n=!1,i=void 0;function o(){return{before:"",after:"",value:""}}i=o();for(var a=0;a<r.length;a++){var u=r[a];n?(i.value+=u,(u==="{"||u==="(")&&s++,(u===")"||u==="}")&&s--):u.search(/\s/)!==-1?i.before+=u:(u==="("&&(i.type="media-feature-expression",s++),i.value=u,i.sourceIndex=e+a,n=!0),n&&s===0&&(u===")"||a===r.length-1||r[a+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(i.value)!==-1&&(i.type="keyword"),i.type==="media-feature-expression"&&(i.nodes=ca(i.value,i.sourceIndex)),t.push(Array.isArray(i.nodes)?new Yr.default(i):new ua.default(i)),i=o(),n=!1)}for(var l=0;l<t.length;l++)if(i=t[l],l>0&&(t[l-1].after=i.before),i.type===void 0){if(l>0){if(t[l-1].type==="media-feature-expression"){i.type="keyword";continue}if(t[l-1].value==="not"||t[l-1].value==="only"){i.type="media-type";continue}if(t[l-1].value==="and"){i.type="media-feature-expression";continue}t[l-1].type==="media-type"&&(t[l+1]?i.type=t[l+1].type==="media-feature-expression"?"keyword":"media-feature-expression":i.type="media-feature-expression")}if(l===0){if(!t[l+1]){i.type="media-type";continue}if(t[l+1]&&(t[l+1].type==="media-feature-expression"||t[l+1].type==="keyword")){i.type="media-type";continue}if(t[l+2]){if(t[l+2].type==="media-feature-expression"){i.type="media-type",t[l+1].type="keyword";continue}if(t[l+2].type==="keyword"){i.type="keyword",t[l+1].type="media-type";continue}}if(t[l+3]&&t[l+3].type==="media-feature-expression"){i.type="keyword",t[l+1].type="media-type",t[l+2].type="keyword";continue}}}return t}function Sd(r){var e=[],t=0,s=0,n=/^(\s*)url\s*\(/.exec(r);if(n!==null){for(var i=n[0].length,o=1;o>0;){var a=r[i];a==="("&&o++,a===")"&&o--,i++}e.unshift(new ua.default({type:"url",value:r.substring(0,i).trim(),sourceIndex:n[1].length,before:n[1],after:/^(\s*)/.exec(r.substring(i))[1]})),t=i}for(var u=t;u<r.length;u++){var l=r[u];if(l==="("&&s++,l===")"&&s--,s===0&&l===","){var f=r.substring(t,u),h=/^(\s*)/.exec(f)[1];e.push(new Yr.default({type:"media-query",value:f.trim(),sourceIndex:t+h.length,nodes:Kr(f,t),before:h,after:/(\s*)$/.exec(f)[1]})),t=u+1}}var c=r.substring(t),y=/^(\s*)/.exec(c)[1];return e.push(new Yr.default({type:"media-query",value:c.trim(),sourceIndex:t+y.length,nodes:Kr(c,t),before:y,after:/(\s*)$/.exec(c)[1]})),e}});var ha=d(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.default=qd;var Od=Jr(),Ed=Cd(Od),Ad=fa();function Cd(r){return r&&r.__esModule?r:{default:r}}function qd(r){return new Ed.default({nodes:(0,Ad.parseMediaList)(r),type:"media-query-list",value:r.trim()})}});var Dd={};Ea(Dd,{default:()=>Ld});var Ca=(r,e,t,s)=>{if(!(r&&e==null))return e.replaceAll?e.replaceAll(t,s):t.global?e.replace(t,s):e.split(t).join(s)},V=Ca;var ma=j(ge(),1),wa=j(hn(),1),ya=j(Jn(),1);function Rl(r,e){let t=new SyntaxError(r+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(t,e)}var Yn=Rl;var Pl=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function Il(r){let e=r.match(Pl);if(!e)return{content:r};let{startDelimiter:t,language:s,value:n="",endDelimiter:i}=e.groups,o=s.trim()||"yaml";if(t==="+++"&&(o="toml"),o!=="yaml"&&t!==i)return{content:r};let[a]=e;return{frontMatter:{type:"front-matter",lang:o,value:n,startDelimiter:t,endDelimiter:i,raw:a.replace(/\n$/,"")},content:V(!1,a,/[^\n]/g," ")+r.slice(a.length)}}var st=Il;var ie=j(si(),1);function Fl(r){if(!r.startsWith("#!"))return"";let e=r.indexOf(`
|
|
34
|
+
`);return e===-1?r:r.slice(0,e)}var ni=Fl;function jl(r){let e=ni(r);e&&(r=r.slice(e.length+1));let t=(0,ie.extract)(r),{pragmas:s,comments:n}=(0,ie.parseWithComments)(t);return{shebang:e,text:r,pragmas:s,comments:n}}function ii(r){let{pragmas:e}=jl(r);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function oi(r){return ii(st(r).content)}var Vl=(r,e,t)=>{if(!(r&&e==null))return e.at?e.at(t):e[t<0?e.length+t:t]},Se=Vl;function nt(r){return(e,t,s)=>{let n=Boolean(s==null?void 0:s.backwards);if(t===!1)return!1;let{length:i}=e,o=t;for(;o>=0&&o<i;){let a=e.charAt(o);if(r instanceof RegExp){if(!r.test(a))return o}else if(!r.includes(a))return o;n?o--:o++}return o===-1||o===i?o:!1}}var Zm=nt(/\s/),ew=nt(" "),tw=nt(",; "),ai=nt(/[^\n\r]/);function Gl(r){return Array.isArray(r)&&r.length>0}var it=Gl;function Ql(r,e){let t=0;for(let s=0;s<r.line-1;++s)t=e.indexOf(`
|
|
35
|
+
`,t)+1;return t+r.column}var kr=Ql;function ui(r,e){var t,s,n;if(typeof((s=(t=r.source)==null?void 0:t.start)==null?void 0:s.offset)=="number")return r.source.start.offset;if(typeof r.sourceIndex=="number")return r.sourceIndex;if((n=r.source)!=null&&n.start)return kr(r.source.start,e);throw Object.assign(new Error("Can not locate node."),{node:r})}function _r(r,e){var t,s;if(r.type==="css-comment"&&r.inline)return ai(e,r.source.startOffset);if(typeof((s=(t=r.source)==null?void 0:t.end)==null?void 0:s.offset)=="number")return r.source.end.offset+1;if(r.source){if(r.source.end)return kr(r.source.end,e);if(it(r.nodes))return _r(Se(!1,r.nodes,-1),e)}return null}function Tr(r,e){r.source&&(r.source.startOffset=ui(r,e),r.source.endOffset=_r(r,e));for(let t in r){let s=r[t];t==="source"||!s||typeof s!="object"||(s.type==="value-root"||s.type==="value-unknown"?li(s,Hl(r),s.text||s.value):Tr(s,e))}}function li(r,e,t){r.source&&(r.source.startOffset=ui(r,t)+e,r.source.endOffset=_r(r,t)+e);for(let s in r){let n=r[s];s==="source"||!n||typeof n!="object"||li(n,e,t)}}function Hl(r){var t;let e=r.source.startOffset;return typeof r.prop=="string"&&(e+=r.prop.length),r.type==="css-atrule"&&typeof r.name=="string"&&(e+=1+r.name.length+r.raws.afterName.match(/^\s*:?\s*/)[0].length),r.type!=="css-atrule"&&typeof((t=r.raws)==null?void 0:t.between)=="string"&&(e+=r.raws.between.length),e}function ci(r){let e="initial",t="initial",s,n=!1,i=[];for(let o=0;o<r.length;o++){let a=r[o];switch(e){case"initial":if(a==="'"){e="single-quotes";continue}if(a==='"'){e="double-quotes";continue}if((a==="u"||a==="U")&&r.slice(o,o+4).toLowerCase()==="url("){e="url",o+=3;continue}if(a==="*"&&r[o-1]==="/"){e="comment-block";continue}if(a==="/"&&r[o-1]==="/"){e="comment-inline",s=o-1;continue}continue;case"single-quotes":if(a==="'"&&r[o-1]!=="\\"&&(e=t,t="initial"),a===`
|
|
36
|
+
`||a==="\r")return r;continue;case"double-quotes":if(a==='"'&&r[o-1]!=="\\"&&(e=t,t="initial"),a===`
|
|
37
|
+
`||a==="\r")return r;continue;case"url":if(a===")"&&(e="initial"),a===`
|
|
38
|
+
`||a==="\r")return r;if(a==="'"){e="single-quotes",t="url";continue}if(a==='"'){e="double-quotes",t="url";continue}continue;case"comment-block":a==="/"&&r[o-1]==="*"&&(e="initial");continue;case"comment-inline":(a==='"'||a==="'"||a==="*")&&(n=!0),(a===`
|
|
39
|
+
`||a==="\r")&&(n&&i.push([s,o]),e="initial",n=!1);continue}}for(let[o,a]of i)r=r.slice(0,o)+V(!1,r.slice(o,a),/["'*]/g," ")+r.slice(a);return r}function fi(r){return r.source.startOffset}function hi(r){return r.source.endOffset}function Jl(r,e){return e.parser!=="scss"||!r.selector?!1:r.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*\n/,"").trim().endsWith(":")}var pi=Jl;var Yl=new Set(["import","use","forward"]);function Kl(r){return Yl.has(r)}var di=Kl;var ia=j(uo(),1);function rf(r){if(it(r)){for(let e=r.length-1;e>0;e--)if(r[e].type==="word"&&r[e].value==="{"&&r[e-1].type==="word"&&r[e-1].value.endsWith("#"))return!0}return!1}var lo=rf;function sf(r){return r.some(e=>e.type==="string"||e.type==="func")}var co=sf;function nf(r,e){return Boolean(e.parser==="scss"&&(r==null?void 0:r.type)==="word"&&r.value.startsWith("$"))}var fo=nf;function Dr(r){var u,l,f,h,c,y;if(r.groups){let g=((u=r.open)==null?void 0:u.value)||"",p=r.groups.map(w=>Dr(w)).join(((l=r.groups[0])==null?void 0:l.type)==="comma_group"?",":""),m=((f=r.close)==null?void 0:f.value)||"";return g+p+m}let e=((h=r.raws)==null?void 0:h.before)||"",t=((c=r.raws)==null?void 0:c.quote)||"",s=r.type==="atword"?"@":"",n=r.value||"",i=r.unit||"",o=r.group?Dr(r.group):"",a=((y=r.raws)==null?void 0:y.after)||"";return e+t+s+n+t+i+o+a}var ho=Dr;var na=j(sa(),1);function $(r,e,t){if(r&&typeof r=="object"){delete r.parent;for(let s in r)$(r[s],e,t),s==="type"&&typeof r[s]=="string"&&!r[s].startsWith(e)&&(!t||!t.test(r[s]))&&(r[s]=e+r[s])}return r}function Vr(r){if(r&&typeof r=="object"){delete r.parent;for(let e in r)Vr(r[e]);!Array.isArray(r)&&r.value&&!r.type&&(r.type="unknown")}return r}function wd(r){if(/\/\/|\/\*/.test(r))return{type:"selector-unknown",value:r.trim()};let e;try{new na.default(t=>{e=t}).process(r)}catch{return{type:"selector-unknown",value:r}}return $(e,"selector-")}var z=wd;var yd=r=>{for(;r.parent;)r=r.parent;return r};function gd(r,e){var u;let{nodes:t}=r,s={open:null,close:null,groups:[],type:"paren_group"},n=[s],i=s,o={groups:[],type:"comma_group"},a=[o];for(let l=0;l<t.length;++l){let f=t[l];if(e.parser==="scss"&&f.type==="number"&&f.unit===".."&&f.value.endsWith(".")&&(f.value=f.value.slice(0,-1),f.unit="..."),f.type==="func"&&f.value==="selector"&&(f.group.groups=[z(yd(r).text.slice(f.group.open.sourceIndex+1,f.group.close.sourceIndex))]),f.type==="func"&&f.value==="url"){let h=((u=f.group)==null?void 0:u.groups)??[],c=[];for(let y=0;y<h.length;y++){let g=h[y];g.type==="comma_group"?c=[...c,...g.groups]:c.push(g)}if(lo(c)||!co(c)&&!fo(c[0],e)){let y=ho({groups:f.group.groups});f.group.groups=[y.trim()]}}if(f.type==="paren"&&f.value==="(")s={open:f,close:null,groups:[],type:"paren_group"},n.push(s),o={groups:[],type:"comma_group"},a.push(o);else if(f.type==="paren"&&f.value===")"){if(o.groups.length>0&&s.groups.push(o),s.close=f,a.length===1)throw new Error("Unbalanced parenthesis");a.pop(),o=Se(!1,a,-1),o.groups.push(s),n.pop(),s=Se(!1,n,-1)}else f.type==="comma"?(s.groups.push(o),o={groups:[],type:"comma_group"},a[a.length-1]=o):o.groups.push(f)}return o.groups.length>0&&s.groups.push(o),i}function Ut(r){return r.type==="paren_group"&&!r.open&&!r.close&&r.groups.length===1||r.type==="comma_group"&&r.groups.length===1?Ut(r.groups[0]):r.type==="paren_group"||r.type==="comma_group"?{...r,groups:r.groups.map(Ut)}:r}function oa(r,e){if(r&&typeof r=="object"){for(let t in r)t!=="parent"&&(oa(r[t],e),t==="nodes"&&(r.group=Ut(gd(r,e)),delete r[t]));delete r.parent}return r}function xd(r,e){if(e.parser==="less"&&r.startsWith("~`"))return{type:"value-unknown",value:r};let t=null;try{t=new ia.default(r,{loose:!0}).parse()}catch{return{type:"value-unknown",value:r}}t.text=r;let s=oa(t,e);return $(s,"value-",/^selector-/)}var U=xd;var pa=j(ha(),1);var Rd=pa.default.default;function Pd(r){let e;try{e=Rd(r)}catch{return{type:"selector-unknown",value:r}}return $(Vr(e),"media-")}var da=Pd;var Id=/(\s*)(!default).*$/,Nd=/(\s*)(!global).*$/;function ga(r,e){var t,s;if(r&&typeof r=="object"){delete r.parent;for(let a in r)ga(r[a],e);if(!r.type)return r;if(r.raws??(r.raws={}),r.type==="css-decl"&&typeof r.prop=="string"&&r.prop.startsWith("--")&&typeof r.value=="string"&&r.value.startsWith("{")){let a;if(r.value.trimEnd().endsWith("}")){let u=e.originalText.slice(0,r.source.start.offset),l="a".repeat(r.prop.length)+e.originalText.slice(r.source.start.offset+r.prop.length,r.source.end.offset+1),f=V(!1,u,/[^\n]/g," ")+l,h;e.parser==="scss"?h=ba:e.parser==="less"?h=va:h=xa;let c;try{c=h(f,{...e})}catch{}((t=c==null?void 0:c.nodes)==null?void 0:t.length)===1&&c.nodes[0].type==="css-rule"&&(a=c.nodes[0].nodes)}return a?r.value={type:"css-rule",nodes:a}:r.value={type:"value-unknown",value:r.raws.value.raw},r}let n="";typeof r.selector=="string"&&(n=r.raws.selector?r.raws.selector.scss??r.raws.selector.raw:r.selector,r.raws.between&&r.raws.between.trim().length>0&&(n+=r.raws.between),r.raws.selector=n);let i="";typeof r.value=="string"&&(i=r.raws.value?r.raws.value.scss??r.raws.value.raw:r.value,i=i.trim(),r.raws.value=i);let o="";if(typeof r.params=="string"&&(o=r.raws.params?r.raws.params.scss??r.raws.params.raw:r.params,r.raws.afterName&&r.raws.afterName.trim().length>0&&(o=r.raws.afterName+o),r.raws.between&&r.raws.between.trim().length>0&&(o=o+r.raws.between),o=o.trim(),r.raws.params=o),n.trim().length>0)return n.startsWith("@")&&n.endsWith(":")?r:r.mixin?(r.selector=U(n,e),r):(pi(r,e)&&(r.isSCSSNesterProperty=!0),r.selector=z(n),r);if(i.length>0){let a=i.match(Id);a&&(i=i.slice(0,a.index),r.scssDefault=!0,a[0].trim()!=="!default"&&(r.raws.scssDefault=a[0]));let u=i.match(Nd);if(u&&(i=i.slice(0,u.index),r.scssGlobal=!0,u[0].trim()!=="!global"&&(r.raws.scssGlobal=u[0])),i.startsWith("progid:"))return{type:"value-unknown",value:i};r.value=U(i,e)}if(e.parser==="less"&&r.type==="css-decl"&&i.startsWith("extend(")&&(r.extend||(r.extend=r.raws.between===":"),r.extend&&!r.selector&&(delete r.value,r.selector=z(i.slice(7,-1)))),r.type==="css-atrule"){if(e.parser==="less"){if(r.mixin){let a=r.raws.identifier+r.name+r.raws.afterName+r.raws.params;return r.selector=z(a),delete r.params,r}if(r.function)return r}if(e.parser==="css"&&r.name==="custom-selector"){let a=r.params.match(/:--\S+\s+/)[0].trim();return r.customSelector=a,r.selector=z(r.params.slice(a.length).trim()),delete r.params,r}if(e.parser==="less"){if(r.name.includes(":")&&!r.params){r.variable=!0;let a=r.name.split(":");r.name=a[0],r.value=U(a.slice(1).join(":"),e)}if(!["page","nest","keyframes"].includes(r.name)&&((s=r.params)==null?void 0:s[0])===":"){r.variable=!0;let a=r.params.slice(1);a&&(r.value=U(a,e)),r.raws.afterName+=":"}if(r.variable)return delete r.params,r.value||delete r.value,r}}if(r.type==="css-atrule"&&o.length>0){let{name:a}=r,u=r.name.toLowerCase();return a==="warn"||a==="error"?(r.params={type:"media-unknown",value:o},r):a==="extend"||a==="nest"?(r.selector=z(o),delete r.params,r):a==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/s.test(o)?r.params=U(o,e):(r.selector=z(o),delete r.params),r):di(u)?(r.import=!0,delete r.filename,r.params=U(o,e),r):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(a)?(o=o.replace(/(\$\S+?)(\s+)?\.{3}/,"$1...$2"),o=o.replace(/^(?!if)(\S+)(\s+)\(/,"$1($2"),r.value=U(o,e),delete r.params,r):["media","custom-media"].includes(u)?o.includes("#{")?{type:"media-unknown",value:o}:(r.params=da(o),r):(r.params=o,r)}}return r}function es(r,e,t){let s=st(e),{frontMatter:n}=s;e=s.content;let i;try{i=r(e,{map:!1})}catch(o){let{name:a,reason:u,line:l,column:f}=o;throw typeof l!="number"?o:Yn(`${a}: ${u}`,{loc:{start:{line:l,column:f}},cause:o})}return t.originalText=e,i=ga($(i,"css-"),t),Tr(i,e),n&&(n.source={startOffset:0,endOffset:n.raw.length},i.frontMatter=n),i}function xa(r,e={}){return es(ma.default.default,r,e)}function va(r,e={}){return es(t=>wa.default.parse(ci(t)),r,e)}function ba(r,e={}){return es(ya.default,r,e)}var Zr={astFormat:"postcss",hasPragma:oi,locStart:fi,locEnd:hi},Md={parsers:{css:{...Zr,parse:xa},less:{...Zr,parse:va},scss:{...Zr,parse:ba}}},Ld=Md;return Aa(Dd);});
|