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