@shopify/create-hydrogen 5.0.28 → 5.0.30
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/acorn-CAM24XUM.js +17 -0
- package/dist/angular-DNP7YRKH.js +5 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +47 -0
- package/dist/assets/hydrogen/starter/app/components/Aside.tsx +4 -2
- package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +6 -3
- package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +117 -23
- package/dist/assets/hydrogen/starter/app/components/Header.tsx +3 -3
- package/dist/assets/hydrogen/starter/app/components/MockShopNotice.tsx +20 -0
- package/dist/assets/hydrogen/starter/app/entry.client.tsx +2 -3
- package/dist/assets/hydrogen/starter/app/routes/[robots.txt].tsx +14 -53
- package/dist/assets/hydrogen/starter/app/routes/_index.tsx +15 -9
- package/dist/assets/hydrogen/starter/app/routes/account.$.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +13 -13
- package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.tsx +4 -7
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +2 -9
- package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +1 -4
- package/dist/assets/hydrogen/starter/app/routes/cart.tsx +1 -5
- package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +1 -3
- package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +2 -8
- package/dist/assets/hydrogen/starter/app/routes/policies.$handle.tsx +1 -4
- package/dist/assets/hydrogen/starter/app/routes/policies._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +2 -9
- package/dist/assets/hydrogen/starter/app/routes/search.tsx +18 -12
- package/dist/assets/hydrogen/starter/app/styles/app.css +51 -0
- package/dist/assets/hydrogen/starter/guides/predictiveSearch/predictiveSearch.md +3 -3
- package/dist/assets/hydrogen/starter/guides/search/search.md +1 -1
- package/dist/assets/hydrogen/starter/package.json +10 -10
- package/dist/assets/hydrogen/starter/vite.config.ts +1 -1
- package/dist/assets/hydrogen/vite/vite.config.js +1 -1
- package/dist/babel-Q7WGFTYC.js +16 -0
- package/dist/chunk-6JMCCVMB.js +1178 -0
- package/dist/chunk-AMAQOLRU.js +51 -0
- package/dist/{chunk-RUCJI22O.js → chunk-FOFKID43.js} +1 -1
- package/dist/{chunk-6YUUFKYO.js → chunk-KP5HTXEK.js} +1 -1
- package/dist/{chunk-Y5VZE2FH.js → chunk-MLIZM3D3.js} +1 -1
- package/dist/{chunk-VXJIQGAB.js → chunk-SOYTF5NM.js} +1 -1
- package/dist/chunk-SSCFXJTG.js +2 -0
- package/dist/chunk-TDF32DPQ.js +5 -0
- package/dist/create-app.js +185 -934
- package/dist/{del-VDYQZFAQ.js → del-SDQ4S47S.js} +1 -1
- package/dist/devtools-RYOXA5H7.js +8 -0
- package/dist/error-handler-SA6VDSNI.js +2 -0
- package/dist/estree-V6MYQTSR.js +45 -0
- package/dist/flow-6QBD7VFZ.js +21 -0
- package/dist/glimmer-F25SYUSG.js +38 -0
- package/dist/graphql-DIAYZHIY.js +29 -0
- package/dist/html-AE7KHAJ7.js +26 -0
- package/dist/{is-wsl-52AELLDM.js → is-wsl-7NORHMI2.js} +1 -1
- package/dist/markdown-W7E2MOQ2.js +63 -0
- package/dist/meriyah-37WUJX22.js +6 -0
- package/dist/{morph-S2LU6PQ4.js → morph-IIMCOPW3.js} +114 -114
- package/dist/{multipart-parser-MX4R5XJM.js → multipart-parser-JT5WYXDW.js} +1 -1
- package/dist/open-VLBBYVPL.js +2 -0
- package/dist/{out-U7AI7XUQ.js → out-YA75DDJD.js} +1 -1
- package/dist/postcss-7X2D3S46.js +62 -0
- package/dist/typescript-AXPPFPUX.js +22 -0
- package/dist/yaml-U74YVCK4.js +160 -0
- package/package.json +10 -9
- package/dist/chunk-AUULK6IN.js +0 -5
- package/dist/chunk-CJKPLQJ7.js +0 -51
- package/dist/chunk-YKN6SEJT.js +0 -1189
- package/dist/chunk-ZLNTSIDN.js +0 -2
- package/dist/devtools-3BYEW2L2.js +0 -8
- package/dist/error-handler-2JZDGPAN.js +0 -2
- package/dist/open-PMJ32HTM.js +0 -2
- /package/dist/{chunk-LBUW5UHX.js → chunk-Y52UPHAG.js} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
|
|
2
|
-
import{b as U,c as w}from"./chunk-
|
|
2
|
+
import{b as U,c as w}from"./chunk-MLIZM3D3.js";import{i as F}from"./chunk-Y52UPHAG.js";F();var f=0,t={START_BOUNDARY:f++,HEADER_FIELD_START:f++,HEADER_FIELD:f++,HEADER_VALUE_START:f++,HEADER_VALUE:f++,HEADER_VALUE_ALMOST_DONE:f++,HEADERS_ALMOST_DONE:f++,PART_DATA_START:f++,PART_DATA:f++,END:f++},B=1,_={PART_BOUNDARY:B,LAST_BOUNDARY:B*=2},O=10,g=13,V=32,m=45,Y=58,x=97,C=122,I=u=>u|32,R=()=>{},y=class{constructor(o){this.index=0,this.flags=0,this.onHeaderEnd=R,this.onHeaderField=R,this.onHeadersEnd=R,this.onHeaderValue=R,this.onPartBegin=R,this.onPartData=R,this.onPartEnd=R,this.boundaryChars={},o=`\r
|
|
3
3
|
--`+o;let n=new Uint8Array(o.length);for(let r=0;r<o.length;r++)n[r]=o.charCodeAt(r),this.boundaryChars[n[r]]=!0;this.boundary=n,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=t.START_BOUNDARY}write(o){let n=0,r=o.length,E=this.index,{lookbehind:l,boundary:d,boundaryChars:H,index:e,state:i,flags:A}=this,b=this.boundary.length,p=b-1,N=o.length,a,S,h=c=>{this[c+"Mark"]=n},s=c=>{delete this[c+"Mark"]},D=(c,P,T,k)=>{(P===void 0||P!==T)&&this[c](k&&k.subarray(P,T))},L=(c,P)=>{let T=c+"Mark";T in this&&(P?(D(c,this[T],n,o),delete this[T]):(D(c,this[T],o.length,o),this[T]=0))};for(n=0;n<r;n++)switch(a=o[n],i){case t.START_BOUNDARY:if(e===d.length-2){if(a===m)A|=_.LAST_BOUNDARY;else if(a!==g)return;e++;break}else if(e-1===d.length-2){if(A&_.LAST_BOUNDARY&&a===m)i=t.END,A=0;else if(!(A&_.LAST_BOUNDARY)&&a===O)e=0,D("onPartBegin"),i=t.HEADER_FIELD_START;else return;break}a!==d[e+2]&&(e=-2),a===d[e+2]&&e++;break;case t.HEADER_FIELD_START:i=t.HEADER_FIELD,h("onHeaderField"),e=0;case t.HEADER_FIELD:if(a===g){s("onHeaderField"),i=t.HEADERS_ALMOST_DONE;break}if(e++,a===m)break;if(a===Y){if(e===1)return;L("onHeaderField",!0),i=t.HEADER_VALUE_START;break}if(S=I(a),S<x||S>C)return;break;case t.HEADER_VALUE_START:if(a===V)break;h("onHeaderValue"),i=t.HEADER_VALUE;case t.HEADER_VALUE:a===g&&(L("onHeaderValue",!0),D("onHeaderEnd"),i=t.HEADER_VALUE_ALMOST_DONE);break;case t.HEADER_VALUE_ALMOST_DONE:if(a!==O)return;i=t.HEADER_FIELD_START;break;case t.HEADERS_ALMOST_DONE:if(a!==O)return;D("onHeadersEnd"),i=t.PART_DATA_START;break;case t.PART_DATA_START:i=t.PART_DATA,h("onPartData");case t.PART_DATA:if(E=e,e===0){for(n+=p;n<N&&!(o[n]in H);)n+=b;n-=p,a=o[n]}if(e<d.length)d[e]===a?(e===0&&L("onPartData",!0),e++):e=0;else if(e===d.length)e++,a===g?A|=_.PART_BOUNDARY:a===m?A|=_.LAST_BOUNDARY:e=0;else if(e-1===d.length)if(A&_.PART_BOUNDARY){if(e=0,a===O){A&=~_.PART_BOUNDARY,D("onPartEnd"),D("onPartBegin"),i=t.HEADER_FIELD_START;break}}else A&_.LAST_BOUNDARY&&a===m?(D("onPartEnd"),i=t.END,A=0):e=0;if(e>0)l[e-1]=a;else if(E>0){let c=new Uint8Array(l.buffer,l.byteOffset,l.byteLength);D("onPartData",0,E,c),E=0,h("onPartData"),n--}break;case t.END:break;default:throw new Error(`Unexpected state entered: ${i}`)}L("onHeaderField"),L("onHeaderValue"),L("onPartData"),this.index=e,this.state=i,this.flags=A}end(){if(this.state===t.HEADER_FIELD_START&&this.index===0||this.state===t.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==t.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}};function M(u){let o=u.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!o)return;let n=o[2]||o[3]||"",r=n.slice(n.lastIndexOf("\\")+1);return r=r.replace(/%22/g,'"'),r=r.replace(/&#(\d{4});/g,(E,l)=>String.fromCharCode(l)),r}async function Z(u,o){if(!/multipart/i.test(o))throw new TypeError("Failed to fetch");let n=o.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!n)throw new TypeError("no or bad content-type header, no multipart boundary");let r=new y(n[1]||n[2]),E,l,d,H,e,i,A=[],b=new w,p=s=>{d+=h.decode(s,{stream:!0})},N=s=>{A.push(s)},a=()=>{let s=new U(A,i,{type:e});b.append(H,s)},S=()=>{b.append(H,d)},h=new TextDecoder("utf-8");h.decode(),r.onPartBegin=function(){r.onPartData=p,r.onPartEnd=S,E="",l="",d="",H="",e="",i=null,A.length=0},r.onHeaderField=function(s){E+=h.decode(s,{stream:!0})},r.onHeaderValue=function(s){l+=h.decode(s,{stream:!0})},r.onHeaderEnd=function(){if(l+=h.decode(),E=E.toLowerCase(),E==="content-disposition"){let s=l.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);s&&(H=s[2]||s[3]||""),i=M(l),i&&(r.onPartData=N,r.onPartEnd=a)}else E==="content-type"&&(e=l);l="",E=""};for await(let s of u)r.write(s);return r.end(),b}export{Z as toFormData};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
|
|
2
|
+
import{a as M,b as W}from"./chunk-SSCFXJTG.js";import{a as h,c as A,g as __dirname,i as l}from"./chunk-Y52UPHAG.js";var F=A((L,E)=>{"use strict";l();E.exports=(e,r,t)=>{let o=n=>Object.defineProperty(e,r,{value:n,enumerable:!0,writable:!0});return Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get(){let n=t();return o(n),n},set(n){o(n)}}),e}});var G=A((j,$)=>{l();var q=h("path"),T=h("child_process"),{promises:g,constants:v}=h("fs"),p=W(),z=M(),x=F(),O=q.join(__dirname,"xdg-open"),{platform:c,arch:C}=process,B=()=>{try{return g.statSync("/run/.containerenv"),!0}catch{return!1}},w;function X(){return w===void 0&&(w=B()||z()),w}var k=(()=>{let e="/mnt/",r;return async function(){if(r)return r;let t="/etc/wsl.conf",o=!1;try{await g.access(t,v.F_OK),o=!0}catch{}if(!o)return e;let n=await g.readFile(t,{encoding:"utf8"}),a=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(n);return a?(r=a.groups.mountPoint.trim(),r=r.endsWith("/")?r:`${r}/`,r):e}})(),S=async(e,r)=>{let t;for(let o of e)try{return await r(o)}catch(n){t=n}throw t},d=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return S(e.app,i=>d({...e,app:i}));let{name:r,arguments:t=[]}=e.app||{};if(t=[...t],Array.isArray(r))return S(r,i=>d({...e,app:{name:i,arguments:t}}));let o,n=[],a={};if(c==="darwin")o="open",e.wait&&n.push("--wait-apps"),e.background&&n.push("--background"),e.newInstance&&n.push("--new"),r&&n.push("-a",r);else if(c==="win32"||p&&!X()&&!r){let i=await k();o=p?`${i}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,n.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),p||(a.windowsVerbatimArguments=!0);let s=["Start"];e.wait&&s.push("-Wait"),r?(s.push(`"\`"${r}\`""`,"-ArgumentList"),e.target&&t.unshift(e.target)):e.target&&s.push(`"${e.target}"`),t.length>0&&(t=t.map(f=>`"\`"${f}\`""`),s.push(t.join(","))),e.target=Buffer.from(s.join(" "),"utf16le").toString("base64")}else{if(r)o=r;else{let i=!__dirname||__dirname==="/",s=!1;try{await g.access(O,v.X_OK),s=!0}catch{}o=process.versions.electron||c==="android"||i||!s?"xdg-open":O}t.length>0&&n.push(...t),e.wait||(a.stdio="ignore",a.detached=!0)}e.target&&n.push(e.target),c==="darwin"&&t.length>0&&n.push("--args",...t);let u=T.spawn(o,n,a);return e.wait?new Promise((i,s)=>{u.once("error",s),u.once("close",f=>{if(!e.allowNonzeroExitCode&&f>0){s(new Error(`Exited with code ${f}`));return}i(u)})}):(u.unref(),u)},y=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `target`");return d({...r,target:e})},I=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `name`");let{arguments:t=[]}=r||{};if(t!=null&&!Array.isArray(t))throw new TypeError("Expected `appArguments` as Array type");return d({...r,app:{name:e,arguments:t}})};function b(e){if(typeof e=="string"||Array.isArray(e))return e;let{[C]:r}=e;if(!r)throw new Error(`${C} is not supported`);return r}function P({[c]:e},{wsl:r}){if(r&&p)return b(r);if(!e)throw new Error(`${c} is not supported`);return b(e)}var m={};x(m,"chrome",()=>P({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));x(m,"firefox",()=>P({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));x(m,"edge",()=>P({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));y.apps=m;y.openApp=I;$.exports=y});export default G();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
|
|
2
|
-
import{c as a}from"./chunk-
|
|
2
|
+
import{c as a}from"./chunk-AMAQOLRU.js";import"./chunk-Y52UPHAG.js";export default a();
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
|
|
2
|
+
import{i as Gt}from"./chunk-Y52UPHAG.js";Gt();var ns=Object.create,Tt=Object.defineProperty,os=Object.getOwnPropertyDescriptor,is=Object.getOwnPropertyNames,as=Object.getPrototypeOf,us=Object.prototype.hasOwnProperty,E=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports),tr=(e,s)=>{for(var i in s)Tt(e,i,{get:s[i],enumerable:!0})},ls=(e,s,i,r)=>{if(s&&typeof s=="object"||typeof s=="function")for(let a of is(s))!us.call(e,a)&&a!==i&&Tt(e,a,{get:()=>s[a],enumerable:!(r=os(s,a))||r.enumerable});return e},Te=(e,s,i)=>(i=e!=null?ns(as(e)):{},ls(s||!e||!e.__esModule?Tt(i,"default",{value:e,enumerable:!0}):i,e)),cs=E((e,s)=>{var i=String,r=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}};s.exports=r(),s.exports.createColors=r}),rr=E(()=>{}),Ot=E((e,s)=>{"use strict";var i=cs(),r=rr(),a=class sr extends Error{constructor(u,p,y,m,n,t){super(u),this.name="CssSyntaxError",this.reason=u,n&&(this.file=n),m&&(this.source=m),t&&(this.plugin=t),typeof p<"u"&&typeof y<"u"&&(typeof p=="number"?(this.line=p,this.column=y):(this.line=p.line,this.column=p.column,this.endLine=y.line,this.endColumn=y.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,sr)}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(u){if(!this.source)return"";let p=this.source;u==null&&(u=i.isColorSupported);let y=l=>l,m=l=>l,n=l=>l;if(u){let{bold:l,gray:g,red:v}=i.createColors(!0);m=f=>l(v(f)),y=f=>g(f),r&&(n=f=>r(f))}let t=p.split(/\r?\n/),h=Math.max(this.line-3,0),c=Math.min(this.line+2,t.length),d=String(c).length;return t.slice(h,c).map((l,g)=>{let v=h+1+g,f=" "+(" "+v).slice(-d)+" | ";if(v===this.line){if(l.length>160){let O=20,b=Math.max(0,this.column-O),T=Math.max(this.column+O,this.endColumn+O),k=l.slice(b,T),x=y(f.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,O-1)).replace(/[^\t]/g," ");return m(">")+y(f)+n(k)+`
|
|
3
|
+
`+x+m("^")}let w=y(f.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return m(">")+y(f)+n(l)+`
|
|
4
|
+
`+w+m("^")}return" "+y(f)+n(l)}).join(`
|
|
5
|
+
`)}toString(){let u=this.showSourceCode();return u&&(u=`
|
|
6
|
+
|
|
7
|
+
`+u+`
|
|
8
|
+
`),this.name+": "+this.message+u}};s.exports=a,a.default=a}),_t=E((e,s)=>{"use strict";var i={after:`
|
|
9
|
+
`,beforeClose:`
|
|
10
|
+
`,beforeComment:`
|
|
11
|
+
`,beforeDecl:`
|
|
12
|
+
`,beforeOpen:" ",beforeRule:`
|
|
13
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function r(o){return o[0].toUpperCase()+o.slice(1)}var a=class{constructor(o){this.builder=o}atrule(o,u){let p="@"+o.name,y=o.params?this.rawValue(o,"params"):"";if(typeof o.raws.afterName<"u"?p+=o.raws.afterName:y&&(p+=" "),o.nodes)this.block(o,p+y);else{let m=(o.raws.between||"")+(u?";":"");this.builder(p+y+m,o)}}beforeAfter(o,u){let p;o.type==="decl"?p=this.raw(o,null,"beforeDecl"):o.type==="comment"?p=this.raw(o,null,"beforeComment"):u==="before"?p=this.raw(o,null,"beforeRule"):p=this.raw(o,null,"beforeClose");let y=o.parent,m=0;for(;y&&y.type!=="root";)m+=1,y=y.parent;if(p.includes(`
|
|
14
|
+
`)){let n=this.raw(o,null,"indent");if(n.length)for(let t=0;t<m;t++)p+=n}return p}block(o,u){let p=this.raw(o,"between","beforeOpen");this.builder(u+p+"{",o,"start");let y;o.nodes&&o.nodes.length?(this.body(o),y=this.raw(o,"after")):y=this.raw(o,"after","emptyBody"),y&&this.builder(y),this.builder("}",o,"end")}body(o){let u=o.nodes.length-1;for(;u>0&&o.nodes[u].type==="comment";)u-=1;let p=this.raw(o,"semicolon");for(let y=0;y<o.nodes.length;y++){let m=o.nodes[y],n=this.raw(m,"before");n&&this.builder(n),this.stringify(m,u!==y||p)}}comment(o){let u=this.raw(o,"left","commentLeft"),p=this.raw(o,"right","commentRight");this.builder("/*"+u+o.text+p+"*/",o)}decl(o,u){let p=this.raw(o,"between","colon"),y=o.prop+p+this.rawValue(o,"value");o.important&&(y+=o.raws.important||" !important"),u&&(y+=";"),this.builder(y,o)}document(o){this.body(o)}raw(o,u,p){let y;if(p||(p=u),u&&(y=o.raws[u],typeof y<"u"))return y;let m=o.parent;if(p==="before"&&(!m||m.type==="root"&&m.first===o||m&&m.type==="document"))return"";if(!m)return i[p];let n=o.root();if(n.rawCache||(n.rawCache={}),typeof n.rawCache[p]<"u")return n.rawCache[p];if(p==="before"||p==="after")return this.beforeAfter(o,p);{let t="raw"+r(p);this[t]?y=this[t](n,o):n.walk(h=>{if(y=h.raws[u],typeof y<"u")return!1})}return typeof y>"u"&&(y=i[p]),n.rawCache[p]=y,y}rawBeforeClose(o){let u;return o.walk(p=>{if(p.nodes&&p.nodes.length>0&&typeof p.raws.after<"u")return u=p.raws.after,u.includes(`
|
|
15
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawBeforeComment(o,u){let p;return o.walkComments(y=>{if(typeof y.raws.before<"u")return p=y.raws.before,p.includes(`
|
|
16
|
+
`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(u,null,"beforeDecl"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeDecl(o,u){let p;return o.walkDecls(y=>{if(typeof y.raws.before<"u")return p=y.raws.before,p.includes(`
|
|
17
|
+
`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(u,null,"beforeRule"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeOpen(o){let u;return o.walk(p=>{if(p.type!=="decl"&&(u=p.raws.between,typeof u<"u"))return!1}),u}rawBeforeRule(o){let u;return o.walk(p=>{if(p.nodes&&(p.parent!==o||o.first!==p)&&typeof p.raws.before<"u")return u=p.raws.before,u.includes(`
|
|
18
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawColon(o){let u;return o.walkDecls(p=>{if(typeof p.raws.between<"u")return u=p.raws.between.replace(/[^\s:]/g,""),!1}),u}rawEmptyBody(o){let u;return o.walk(p=>{if(p.nodes&&p.nodes.length===0&&(u=p.raws.after,typeof u<"u"))return!1}),u}rawIndent(o){if(o.raws.indent)return o.raws.indent;let u;return o.walk(p=>{let y=p.parent;if(y&&y!==o&&y.parent&&y.parent===o&&typeof p.raws.before<"u"){let m=p.raws.before.split(`
|
|
19
|
+
`);return u=m[m.length-1],u=u.replace(/\S/g,""),!1}}),u}rawSemicolon(o){let u;return o.walk(p=>{if(p.nodes&&p.nodes.length&&p.last.type==="decl"&&(u=p.raws.semicolon,typeof u<"u"))return!1}),u}rawValue(o,u){let p=o[u],y=o.raws[u];return y&&y.value===p?y.raw:p}root(o){this.body(o),o.raws.after&&this.builder(o.raws.after)}rule(o){this.block(o,this.rawValue(o,"selector")),o.raws.ownSemicolon&&this.builder(o.raws.ownSemicolon,o,"end")}stringify(o,u){if(!this[o.type])throw new Error("Unknown AST node type "+o.type+". Maybe you need to change PostCSS stringifier.");this[o.type](o,u)}};s.exports=a,a.default=a}),Xe=E((e,s)=>{"use strict";var i=_t();function r(a,o){new i(o).stringify(a)}s.exports=r,r.default=r}),Ct=E((e,s)=>{"use strict";s.exports.isClean=Symbol("isClean"),s.exports.my=Symbol("my")}),et=E((e,s)=>{"use strict";var i=Ot(),r=_t(),a=Xe(),{isClean:o,my:u}=Ct();function p(n,t){let h=new n.constructor;for(let c in n){if(!Object.prototype.hasOwnProperty.call(n,c)||c==="proxyCache")continue;let d=n[c],l=typeof d;c==="parent"&&l==="object"?t&&(h[c]=t):c==="source"?h[c]=d:Array.isArray(d)?h[c]=d.map(g=>p(g,h)):(l==="object"&&d!==null&&(d=p(d)),h[c]=d)}return h}function y(n,t){if(t&&typeof t.offset<"u")return t.offset;let h=1,c=1,d=0;for(let l=0;l<n.length;l++){if(c===t.line&&h===t.column){d=l;break}n[l]===`
|
|
20
|
+
`?(h=1,c+=1):h+=1}return d}var m=class{get proxyOf(){return this}constructor(n={}){this.raws={},this[o]=!1,this[u]=!0;for(let t in n)if(t==="nodes"){this.nodes=[];for(let h of n[t])typeof h.clone=="function"?this.append(h.clone()):this.append(h)}else this[t]=n[t]}addToError(n){if(n.postcssNode=this,n.stack&&this.source&&/\n\s{4}at /.test(n.stack)){let t=this.source;n.stack=n.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return n}after(n){return this.parent.insertAfter(this,n),this}assign(n={}){for(let t in n)this[t]=n[t];return this}before(n){return this.parent.insertBefore(this,n),this}cleanRaws(n){delete this.raws.before,delete this.raws.after,n||delete this.raws.between}clone(n={}){let t=p(this);for(let h in n)t[h]=n[h];return t}cloneAfter(n={}){let t=this.clone(n);return this.parent.insertAfter(this,t),t}cloneBefore(n={}){let t=this.clone(n);return this.parent.insertBefore(this,t),t}error(n,t={}){if(this.source){let{end:h,start:c}=this.rangeBy(t);return this.source.input.error(n,{column:c.column,line:c.line},{column:h.column,line:h.line},t)}return new i(n)}getProxyProcessor(){return{get(n,t){return t==="proxyOf"?n:t==="root"?()=>n.root().toProxy():n[t]},set(n,t,h){return n[t]===h||(n[t]=h,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&n.markDirty()),!0}}}markClean(){this[o]=!0}markDirty(){if(this[o]){this[o]=!1;let n=this;for(;n=n.parent;)n[o]=!1}}next(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n+1]}positionBy(n={}){let t=this.source.start;if(n.index)t=this.positionInside(n.index);else if(n.word){let h="document"in this.source.input?this.source.input.document:this.source.input.css,c=h.slice(y(h,this.source.start),y(h,this.source.end)).indexOf(n.word);c!==-1&&(t=this.positionInside(c))}return t}positionInside(n){let t=this.source.start.column,h=this.source.start.line,c="document"in this.source.input?this.source.input.document:this.source.input.css,d=y(c,this.source.start),l=d+n;for(let g=d;g<l;g++)c[g]===`
|
|
21
|
+
`?(t=1,h+=1):t+=1;return{column:t,line:h,offset:l}}prev(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n-1]}rangeBy(n={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,h={column:this.source.start.column,line:this.source.start.line,offset:y(t,this.source.start)},c=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:y(t,this.source.end)+1}:{column:h.column+1,line:h.line,offset:h.offset+1};if(n.word){let d=t.slice(y(t,this.source.start),y(t,this.source.end)).indexOf(n.word);d!==-1&&(h=this.positionInside(d),c=this.positionInside(d+n.word.length))}else n.start?h={column:n.start.column,line:n.start.line,offset:y(t,n.start)}:n.index&&(h=this.positionInside(n.index)),n.end?c={column:n.end.column,line:n.end.line,offset:y(t,n.end)}:typeof n.endIndex=="number"?c=this.positionInside(n.endIndex):n.index&&(c=this.positionInside(n.index+1));return(c.line<h.line||c.line===h.line&&c.column<=h.column)&&(c={column:h.column+1,line:h.line,offset:h.offset+1}),{end:c,start:h}}raw(n,t){return new r().raw(this,n,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...n){if(this.parent){let t=this,h=!1;for(let c of n)c===this?h=!0:h?(this.parent.insertAfter(t,c),t=c):this.parent.insertBefore(t,c);h||this.remove()}return this}root(){let n=this;for(;n.parent&&n.parent.type!=="document";)n=n.parent;return n}toJSON(n,t){let h={},c=t==null;t=t||new Map;let d=0;for(let l in this){if(!Object.prototype.hasOwnProperty.call(this,l)||l==="parent"||l==="proxyCache")continue;let g=this[l];if(Array.isArray(g))h[l]=g.map(v=>typeof v=="object"&&v.toJSON?v.toJSON(null,t):v);else if(typeof g=="object"&&g.toJSON)h[l]=g.toJSON(null,t);else if(l==="source"){if(g==null)continue;let v=t.get(g.input);v==null&&(v=d,t.set(g.input,d),d++),h[l]={end:g.end,inputId:v,start:g.start}}else h[l]=g}return c&&(h.inputs=[...t.keys()].map(l=>l.toJSON())),h}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(n=a){n.stringify&&(n=n.stringify);let t="";return n(this,h=>{t+=h}),t}warn(n,t,h={}){let c={node:this};for(let d in h)c[d]=h[d];return n.warn(t,c)}};s.exports=m,m.default=m}),Le=E((e,s)=>{"use strict";var i=et(),r=class extends i{constructor(a){super(a),this.type="comment"}};s.exports=r,r.default=r}),tt=E((e,s)=>{"use strict";var i=et(),r=class extends i{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(a){a&&typeof a.value<"u"&&typeof a.value!="string"&&(a={...a,value:String(a.value)}),super(a),this.type="decl"}};s.exports=r,r.default=r}),me=E((e,s)=>{"use strict";var i=Le(),r=tt(),a=et(),{isClean:o,my:u}=Ct(),p,y,m,n;function t(d){return d.map(l=>(l.nodes&&(l.nodes=t(l.nodes)),delete l.source,l))}function h(d){if(d[o]=!1,d.proxyOf.nodes)for(let l of d.proxyOf.nodes)h(l)}var c=class nr extends a{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(...l){for(let g of l){let v=this.normalize(g,this.last);for(let f of v)this.proxyOf.nodes.push(f)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let g of this.nodes)g.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let g=this.getIterator(),v,f;for(;this.indexes[g]<this.proxyOf.nodes.length&&(v=this.indexes[g],f=l(this.proxyOf.nodes[v],v),f!==!1);)this.indexes[g]+=1;return delete this.indexes[g],f}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,g){return g==="proxyOf"?l:l[g]?g==="each"||typeof g=="string"&&g.startsWith("walk")?(...v)=>l[g](...v.map(f=>typeof f=="function"?(w,O)=>f(w.toProxy(),O):f)):g==="every"||g==="some"?v=>l[g]((f,...w)=>v(f.toProxy(),...w)):g==="root"?()=>l.root().toProxy():g==="nodes"?l.nodes.map(v=>v.toProxy()):g==="first"||g==="last"?l[g].toProxy():l[g]:l[g]},set(l,g,v){return l[g]===v||(l[g]=v,(g==="name"||g==="params"||g==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,g){let v=this.index(l),f=this.normalize(g,this.proxyOf.nodes[v]).reverse();v=this.index(l);for(let O of f)this.proxyOf.nodes.splice(v+1,0,O);let w;for(let O in this.indexes)w=this.indexes[O],v<w&&(this.indexes[O]=w+f.length);return this.markDirty(),this}insertBefore(l,g){let v=this.index(l),f=v===0?"prepend":!1,w=this.normalize(g,this.proxyOf.nodes[v],f).reverse();v=this.index(l);for(let b of w)this.proxyOf.nodes.splice(v,0,b);let O;for(let b in this.indexes)O=this.indexes[b],v<=O&&(this.indexes[b]=O+w.length);return this.markDirty(),this}normalize(l,g){if(typeof l=="string")l=t(y(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let v of l)v.parent&&v.parent.removeChild(v,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let v of l)v.parent&&v.parent.removeChild(v,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new r(l)]}else if(l.selector||l.selectors)l=[new n(l)];else if(l.name)l=[new p(l)];else if(l.text)l=[new i(l)];else throw new Error("Unknown node type in node creation");return l.map(v=>(v[u]||nr.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[o]&&h(v),v.raws||(v.raws={}),typeof v.raws.before>"u"&&g&&typeof g.raws.before<"u"&&(v.raws.before=g.raws.before.replace(/\S/g,"")),v.parent=this.proxyOf,v))}prepend(...l){l=l.reverse();for(let g of l){let v=this.normalize(g,this.first,"prepend").reverse();for(let f of v)this.proxyOf.nodes.unshift(f);for(let f in this.indexes)this.indexes[f]=this.indexes[f]+v.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let g;for(let v in this.indexes)g=this.indexes[v],g>=l&&(this.indexes[v]=g-1);return this.markDirty(),this}replaceValues(l,g,v){return v||(v=g,g={}),this.walkDecls(f=>{g.props&&!g.props.includes(f.prop)||g.fast&&!f.value.includes(g.fast)||(f.value=f.value.replace(l,v))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((g,v)=>{let f;try{f=l(g,v)}catch(w){throw g.addToError(w)}return f!==!1&&g.walk&&(f=g.walk(l)),f})}walkAtRules(l,g){return g?l instanceof RegExp?this.walk((v,f)=>{if(v.type==="atrule"&&l.test(v.name))return g(v,f)}):this.walk((v,f)=>{if(v.type==="atrule"&&v.name===l)return g(v,f)}):(g=l,this.walk((v,f)=>{if(v.type==="atrule")return g(v,f)}))}walkComments(l){return this.walk((g,v)=>{if(g.type==="comment")return l(g,v)})}walkDecls(l,g){return g?l instanceof RegExp?this.walk((v,f)=>{if(v.type==="decl"&&l.test(v.prop))return g(v,f)}):this.walk((v,f)=>{if(v.type==="decl"&&v.prop===l)return g(v,f)}):(g=l,this.walk((v,f)=>{if(v.type==="decl")return g(v,f)}))}walkRules(l,g){return g?l instanceof RegExp?this.walk((v,f)=>{if(v.type==="rule"&&l.test(v.selector))return g(v,f)}):this.walk((v,f)=>{if(v.type==="rule"&&v.selector===l)return g(v,f)}):(g=l,this.walk((v,f)=>{if(v.type==="rule")return g(v,f)}))}};c.registerParse=d=>{y=d},c.registerRule=d=>{n=d},c.registerAtRule=d=>{p=d},c.registerRoot=d=>{m=d},s.exports=c,c.default=c,c.rebuild=d=>{d.type==="atrule"?Object.setPrototypeOf(d,p.prototype):d.type==="rule"?Object.setPrototypeOf(d,n.prototype):d.type==="decl"?Object.setPrototypeOf(d,r.prototype):d.type==="comment"?Object.setPrototypeOf(d,i.prototype):d.type==="root"&&Object.setPrototypeOf(d,m.prototype),d[u]=!0,d.nodes&&d.nodes.forEach(l=>{c.rebuild(l)})}}),ps=E((e,s)=>{var i="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",r=(o,u=21)=>(p=u)=>{let y="",m=p|0;for(;m--;)y+=o[Math.random()*o.length|0];return y},a=(o=21)=>{let u="",p=o|0;for(;p--;)u+=i[Math.random()*64|0];return u};s.exports={nanoid:a,customAlphabet:r}}),hs=E(()=>{}),or=E((e,s)=>{s.exports=class{}}),We=E((e,s)=>{"use strict";var{nanoid:i}=ps(),{isAbsolute:r,resolve:a}={},{SourceMapConsumer:o,SourceMapGenerator:u}=hs(),{fileURLToPath:p,pathToFileURL:y}={},m=Ot(),n=or(),t=rr(),h=Symbol("lineToIndexCache"),c=!!(o&&u),d=!!(a&&r);function l(v){if(v[h])return v[h];let f=v.css.split(`
|
|
22
|
+
`),w=new Array(f.length),O=0;for(let b=0,T=f.length;b<T;b++)w[b]=O,O+=f[b].length+1;return v[h]=w,w}var g=class{get from(){return this.file||this.id}constructor(v,f={}){if(v===null||typeof v>"u"||typeof v=="object"&&!v.toString)throw new Error(`PostCSS received ${v} instead of CSS string`);if(this.css=v.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,f.document&&(this.document=f.document.toString()),f.from&&(!d||/^\w+:\/\//.test(f.from)||r(f.from)?this.file=f.from:this.file=a(f.from)),d&&c){let w=new n(this.css,f);if(w.text){this.map=w;let O=w.consumer().file;!this.file&&O&&(this.file=this.mapResolve(O))}}this.file||(this.id="<input css "+i(6)+">"),this.map&&(this.map.file=this.from)}error(v,f,w,O={}){let b,T,k,x,C;if(f&&typeof f=="object"){let I=f,R=w;if(typeof I.offset=="number"){x=I.offset;let M=this.fromOffset(x);f=M.line,w=M.col}else f=I.line,w=I.column,x=this.fromLineAndColumn(f,w);if(typeof R.offset=="number"){k=R.offset;let M=this.fromOffset(k);T=M.line,b=M.col}else T=R.line,b=R.column,k=this.fromLineAndColumn(R.line,R.column)}else if(w)x=this.fromLineAndColumn(f,w);else{x=f;let I=this.fromOffset(x);f=I.line,w=I.col}let A=this.origin(f,w,T,b);return A?C=new m(v,A.endLine===void 0?A.line:{column:A.column,line:A.line},A.endLine===void 0?A.column:{column:A.endColumn,line:A.endLine},A.source,A.file,O.plugin):C=new m(v,T===void 0?f:{column:w,line:f},T===void 0?w:{column:b,line:T},this.css,this.file,O.plugin),C.input={column:w,endColumn:b,endLine:T,endOffset:k,line:f,offset:x,source:this.css},this.file&&(y&&(C.input.url=y(this.file).toString()),C.input.file=this.file),C}fromLineAndColumn(v,f){return l(this)[v-1]+f-1}fromOffset(v){let f=l(this),w=f[f.length-1],O=0;if(v>=w)O=f.length-1;else{let b=f.length-2,T;for(;O<b;)if(T=O+(b-O>>1),v<f[T])b=T-1;else if(v>=f[T+1])O=T+1;else{O=T;break}}return{col:v-f[O]+1,line:O+1}}mapResolve(v){return/^\w+:\/\//.test(v)?v:a(this.map.consumer().sourceRoot||this.map.root||".",v)}origin(v,f,w,O){if(!this.map)return!1;let b=this.map.consumer(),T=b.originalPositionFor({column:f,line:v});if(!T.source)return!1;let k;typeof w=="number"&&(k=b.originalPositionFor({column:O,line:w}));let x;r(T.source)?x=y(T.source):x=new URL(T.source,this.map.consumer().sourceRoot||y(this.map.mapFile));let C={column:T.column,endColumn:k&&k.column,endLine:k&&k.line,line:T.line,url:x.toString()};if(x.protocol==="file:")if(p)C.file=p(x);else throw new Error("file: protocol is not available in this PostCSS build");let A=b.sourceContentFor(T.source);return A&&(C.source=A),C}toJSON(){let v={};for(let f of["hasBOM","css","file","id"])this[f]!=null&&(v[f]=this[f]);return this.map&&(v.map={...this.map},v.map.consumerCache&&(v.map.consumerCache=void 0)),v}};s.exports=g,g.default=g,t&&t.registerInput&&t.registerInput(g)}),St=E((e,s)=>{"use strict";var i=me(),r=class extends i{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}};s.exports=r,r.default=r,i.registerAtRule(r)}),ze=E((e,s)=>{"use strict";var i=me(),r,a,o=class extends i{constructor(u){super(u),this.type="root",this.nodes||(this.nodes=[])}normalize(u,p,y){let m=super.normalize(u);if(p){if(y==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let n of m)n.raws.before=p.raws.before}return m}removeChild(u,p){let y=this.index(u);return!p&&y===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[y].raws.before),super.removeChild(u)}toResult(u={}){return new r(new a,this,u).stringify()}};o.registerLazyResult=u=>{r=u},o.registerProcessor=u=>{a=u},s.exports=o,o.default=o,i.registerRoot(o)}),ir=E((e,s)=>{"use strict";var i={comma(r){return i.split(r,[","],!0)},space(r){let a=[" ",`
|
|
23
|
+
`," "];return i.split(r,a)},split(r,a,o){let u=[],p="",y=!1,m=0,n=!1,t="",h=!1;for(let c of r)h?h=!1:c==="\\"?h=!0:n?c===t&&(n=!1):c==='"'||c==="'"?(n=!0,t=c):c==="("?m+=1:c===")"?m>0&&(m-=1):m===0&&a.includes(c)&&(y=!0),y?(p!==""&&u.push(p.trim()),p="",y=!1):p+=c;return(o||p!=="")&&u.push(p.trim()),u}};s.exports=i,i.default=i}),At=E((e,s)=>{"use strict";var i=me(),r=ir(),a=class extends i{get selectors(){return r.comma(this.selector)}set selectors(o){let u=this.selector?this.selector.match(/,\s*/):null,p=u?u[0]:","+this.raw("between","beforeOpen");this.selector=o.join(p)}constructor(o){super(o),this.type="rule",this.nodes||(this.nodes=[])}};s.exports=a,a.default=a,i.registerRule(a)}),Et=E((e,s)=>{"use strict";var i=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,a=/.[\r\n"'(/\\]/,o=/[\da-f]/i;s.exports=function(u,p={}){let y=u.css.valueOf(),m=p.ignoreErrors,n,t,h,c,d,l,g,v,f,w,O=y.length,b=0,T=[],k=[];function x(){return b}function C(M){throw u.error("Unclosed "+M,b)}function A(){return k.length===0&&b>=O}function I(M){if(k.length)return k.pop();if(b>=O)return;let N=M?M.ignoreUnclosed:!1;switch(n=y.charCodeAt(b),n){case 10:case 32:case 9:case 13:case 12:{c=b;do c+=1,n=y.charCodeAt(c);while(n===32||n===10||n===9||n===13||n===12);l=["space",y.slice(b,c)],b=c-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let $=String.fromCharCode(n);l=[$,$,b];break}case 40:{if(w=T.length?T.pop()[1]:"",f=y.charCodeAt(b+1),w==="url"&&f!==39&&f!==34&&f!==32&&f!==10&&f!==9&&f!==12&&f!==13){c=b;do{if(g=!1,c=y.indexOf(")",c+1),c===-1)if(m||N){c=b;break}else C("bracket");for(v=c;y.charCodeAt(v-1)===92;)v-=1,g=!g}while(g);l=["brackets",y.slice(b,c+1),b,c],b=c}else c=y.indexOf(")",b+1),t=y.slice(b,c+1),c===-1||a.test(t)?l=["(","(",b]:(l=["brackets",t,b,c],b=c);break}case 39:case 34:{d=n===39?"'":'"',c=b;do{if(g=!1,c=y.indexOf(d,c+1),c===-1)if(m||N){c=b+1;break}else C("string");for(v=c;y.charCodeAt(v-1)===92;)v-=1,g=!g}while(g);l=["string",y.slice(b,c+1),b,c],b=c;break}case 64:{i.lastIndex=b+1,i.test(y),i.lastIndex===0?c=y.length-1:c=i.lastIndex-2,l=["at-word",y.slice(b,c+1),b,c],b=c;break}case 92:{for(c=b,h=!0;y.charCodeAt(c+1)===92;)c+=1,h=!h;if(n=y.charCodeAt(c+1),h&&n!==47&&n!==32&&n!==10&&n!==9&&n!==13&&n!==12&&(c+=1,o.test(y.charAt(c)))){for(;o.test(y.charAt(c+1));)c+=1;y.charCodeAt(c+1)===32&&(c+=1)}l=["word",y.slice(b,c+1),b,c],b=c;break}default:{n===47&&y.charCodeAt(b+1)===42?(c=y.indexOf("*/",b+2)+1,c===0&&(m||N?c=y.length:C("comment")),l=["comment",y.slice(b,c+1),b,c],b=c):(r.lastIndex=b+1,r.test(y),r.lastIndex===0?c=y.length-1:c=r.lastIndex-2,l=["word",y.slice(b,c+1),b,c],T.push(l),b=c);break}}return b++,l}function R(M){k.push(M)}return{back:R,endOfFile:A,nextToken:I,position:x}}}),jt=E((e,s)=>{"use strict";var i=St(),r=Le(),a=tt(),o=ze(),u=At(),p=Et(),y={empty:!0,space:!0};function m(t){for(let h=t.length-1;h>=0;h--){let c=t[h],d=c[3]||c[2];if(d)return d}}var n=class{constructor(t){this.input=t,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let h=new i;h.name=t[1].slice(1),h.name===""&&this.unnamedAtrule(h,t),this.init(h,t[2]);let c,d,l,g=!1,v=!1,f=[],w=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),c=t[0],c==="("||c==="["?w.push(c==="("?")":"]"):c==="{"&&w.length>0?w.push("}"):c===w[w.length-1]&&w.pop(),w.length===0)if(c===";"){h.source.end=this.getPosition(t[2]),h.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){v=!0;break}else if(c==="}"){if(f.length>0){for(l=f.length-1,d=f[l];d&&d[0]==="space";)d=f[--l];d&&(h.source.end=this.getPosition(d[3]||d[2]),h.source.end.offset++)}this.end(t);break}else f.push(t);else f.push(t);if(this.tokenizer.endOfFile()){g=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(h.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(h,"params",f),g&&(t=f[f.length-1],h.source.end=this.getPosition(t[3]||t[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),v&&(h.nodes=[],this.current=h)}checkMissedSemicolon(t){let h=this.colon(t);if(h===!1)return;let c=0,d;for(let l=h-1;l>=0&&(d=t[l],!(d[0]!=="space"&&(c+=1,c===2)));l--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(t){let h=0,c,d,l;for(let[g,v]of t.entries()){if(d=v,l=d[0],l==="("&&(h+=1),l===")"&&(h-=1),h===0&&l===":")if(!c)this.doubleColon(d);else{if(c[0]==="word"&&c[1]==="progid")continue;return g}c=d}return!1}comment(t){let h=new r;this.init(h,t[2]),h.source.end=this.getPosition(t[3]||t[2]),h.source.end.offset++;let c=t[1].slice(2,-2);if(/^\s*$/.test(c))h.text="",h.raws.left=c,h.raws.right="";else{let d=c.match(/^(\s*)([^]*\S)(\s*)$/);h.text=d[2],h.raws.left=d[1],h.raws.right=d[3]}}createTokenizer(){this.tokenizer=p(this.input)}decl(t,h){let c=new a;this.init(c,t[0][2]);let d=t[t.length-1];for(d[0]===";"&&(this.semicolon=!0,t.pop()),c.source.end=this.getPosition(d[3]||d[2]||m(t)),c.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),c.raws.before+=t.shift()[1];for(c.source.start=this.getPosition(t[0][2]),c.prop="";t.length;){let f=t[0][0];if(f===":"||f==="space"||f==="comment")break;c.prop+=t.shift()[1]}c.raws.between="";let l;for(;t.length;)if(l=t.shift(),l[0]===":"){c.raws.between+=l[1];break}else l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]),c.raws.between+=l[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let g=[],v;for(;t.length&&(v=t[0][0],!(v!=="space"&&v!=="comment"));)g.push(t.shift());this.precheckMissedSemicolon(t);for(let f=t.length-1;f>=0;f--){if(l=t[f],l[1].toLowerCase()==="!important"){c.important=!0;let w=this.stringFrom(t,f);w=this.spacesFromEnd(t)+w,w!==" !important"&&(c.raws.important=w);break}else if(l[1].toLowerCase()==="important"){let w=t.slice(0),O="";for(let b=f;b>0;b--){let T=w[b][0];if(O.trim().startsWith("!")&&T!=="space")break;O=w.pop()[1]+O}O.trim().startsWith("!")&&(c.important=!0,c.raws.important=O,t=w)}if(l[0]!=="space"&&l[0]!=="comment")break}t.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(c.raws.between+=g.map(f=>f[1]).join(""),g=[]),this.raw(c,"value",g.concat(t),h),c.value.includes(":")&&!h&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let h=new u;this.init(h,t[2]),h.selector="",h.raws.between="",this.current=h}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="",h.source.end=this.getPosition(t[2]),h.source.end.offset+=h.raws.ownSemicolon.length)}}getPosition(t){let h=this.input.fromOffset(t);return{column:h.col,line:h.line,offset:t}}init(t,h){this.current.push(t),t.source={input:this.input,start:this.getPosition(h)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let h=!1,c=null,d=!1,l=null,g=[],v=t[1].startsWith("--"),f=[],w=t;for(;w;){if(c=w[0],f.push(w),c==="("||c==="[")l||(l=w),g.push(c==="("?")":"]");else if(v&&d&&c==="{")l||(l=w),g.push("}");else if(g.length===0)if(c===";")if(d){this.decl(f,v);return}else break;else if(c==="{"){this.rule(f);return}else if(c==="}"){this.tokenizer.back(f.pop()),h=!0;break}else c===":"&&(d=!0);else c===g[g.length-1]&&(g.pop(),g.length===0&&(l=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),g.length>0&&this.unclosedBracket(l),h&&d){if(!v)for(;f.length&&(w=f[f.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,v)}else this.unknownWord(f)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,h,c,d){let l,g,v=c.length,f="",w=!0,O,b;for(let T=0;T<v;T+=1)l=c[T],g=l[0],g==="space"&&T===v-1&&!d?w=!1:g==="comment"?(b=c[T-1]?c[T-1][0]:"empty",O=c[T+1]?c[T+1][0]:"empty",!y[b]&&!y[O]?f.slice(-1)===","?w=!1:f+=l[1]:w=!1):f+=l[1];if(!w){let T=c.reduce((k,x)=>k+x[1],"");t.raws[h]={raw:T,value:f}}t[h]=f}rule(t){t.pop();let h=new u;this.init(h,t[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(h,"selector",t),this.current=h}spacesAndCommentsFromEnd(t){let h,c="";for(;t.length&&(h=t[t.length-1][0],!(h!=="space"&&h!=="comment"));)c=t.pop()[1]+c;return c}spacesAndCommentsFromStart(t){let h,c="";for(;t.length&&(h=t[0][0],!(h!=="space"&&h!=="comment"));)c+=t.shift()[1];return c}spacesFromEnd(t){let h,c="";for(;t.length&&(h=t[t.length-1][0],h==="space");)c=t.pop()[1]+c;return c}stringFrom(t,h){let c="";for(let d=h;d<t.length;d++)c+=t[d][1];return t.splice(h,t.length-h),c}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}};s.exports=n}),rt=E((e,s)=>{"use strict";var i=me(),r=We(),a=jt();function o(u,p){let y=new r(u,p),m=new a(y);try{m.parse()}catch(n){throw n}return m.root}s.exports=o,o.default=o,i.registerParse(o)}),fs=E((e,s)=>{var i=Et(),r=We();s.exports={isInlineComment(a){if(a[0]==="word"&&a[1].slice(0,2)==="//"){let o=a,u=[],p,y;for(;a;){if(/\r?\n/.test(a[1])){if(/['"].*\r?\n/.test(a[1])){u.push(a[1].substring(0,a[1].indexOf(`
|
|
24
|
+
`))),y=a[1].substring(a[1].indexOf(`
|
|
25
|
+
`));let n=this.input.css.valueOf().substring(this.tokenizer.position());y+=n,p=a[3]+n.length-y.length}else this.tokenizer.back(a);break}u.push(a[1]),p=a[2],a=this.tokenizer.nextToken({ignoreUnclosed:!0})}let m=["comment",u.join(""),o[2],p];return this.inlineComment(m),y&&(this.input=new r(y),this.tokenizer=i(this.input)),!0}else if(a[1]==="/"){let o=this.tokenizer.nextToken({ignoreUnclosed:!0});if(o[0]==="comment"&&/^\/\*/.test(o[1]))return o[0]="word",o[1]=o[1].slice(1),a[1]="//",this.tokenizer.back(o),s.exports.isInlineComment.bind(this)(a)}return!1}}}),ds=E((e,s)=>{s.exports={interpolation(i){let r=[i,this.tokenizer.nextToken()],a=["word","}"];if(r[0][1].length>1||r[1][0]!=="{")return this.tokenizer.back(r[1]),!1;for(i=this.tokenizer.nextToken();i&&a.includes(i[0]);)r.push(i),i=this.tokenizer.nextToken();let o=r.map(m=>m[1]),[u]=r,p=r.pop(),y=["word",o.join(""),u[2],p[2]];return this.tokenizer.back(i),this.tokenizer.back(y),!0}}}),ms=E((e,s)=>{var i=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,r=/\.[0-9]/,a=o=>{let[,u]=o,[p]=u;return(p==="."||p==="#")&&i.test(u)===!1&&r.test(u)===!1};s.exports={isMixinToken:a}}),ys=E((e,s)=>{var i=Et(),r=/^url\((.+)\)/;s.exports=a=>{let{name:o,params:u=""}=a;if(o==="import"&&u.length){a.import=!0;let p=i({css:u});for(a.filename=u.replace(r,"$1");!p.endOfFile();){let[y,m]=p.nextToken();if(y==="word"&&m==="url")return;if(y==="brackets"){a.options=m,a.filename=u.replace(m,"").trim();break}}}}}),vs=E((e,s)=>{var i=/:$/,r=/^:(\s+)?/;s.exports=a=>{let{name:o,params:u=""}=a;if(a.name.slice(-1)===":"){if(i.test(o)){let[p]=o.match(i);a.name=o.replace(p,""),a.raws.afterName=p+(a.raws.afterName||""),a.variable=!0,a.value=a.params}if(r.test(u)){let[p]=u.match(r);a.value=u.replace(p,""),a.raws.afterName=(a.raws.afterName||"")+p,a.variable=!0}}}}),gs=E((e,s)=>{var i=Le(),r=jt(),{isInlineComment:a}=fs(),{interpolation:o}=ds(),{isMixinToken:u}=ms(),p=ys(),y=vs(),m=/(!\s*important)$/i;s.exports=class extends r{constructor(...n){super(...n),this.lastNode=null}atrule(n){o.bind(this)(n)||(super.atrule(n),p(this.lastNode),y(this.lastNode))}decl(...n){super.decl(...n),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(n){n[0][1]=` ${n[0][1]}`;let t=n.findIndex(l=>l[0]==="("),h=n.reverse().find(l=>l[0]===")"),c=n.reverse().indexOf(h),d=n.splice(t,c).map(l=>l[1]).join("");for(let l of n.reverse())this.tokenizer.back(l);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=d}init(n,t,h){super.init(n,t,h),this.lastNode=n}inlineComment(n){let t=new i,h=n[1].slice(2);if(this.init(t,n[2]),t.source.end=this.getPosition(n[3]||n[2]),t.inline=!0,t.raws.begin="//",/^\s*$/.test(h))t.text="",t.raws.left=h,t.raws.right="";else{let c=h.match(/^(\s*)([^]*[^\s])(\s*)$/);[,t.raws.left,t.text,t.raws.right]=c}}mixin(n){let[t]=n,h=t[1].slice(0,1),c=n.findIndex(f=>f[0]==="brackets"),d=n.findIndex(f=>f[0]==="("),l="";if((c<0||c>3)&&d>0){let f=n.reduce((I,R,M)=>R[0]===")"?M:I),w=n.slice(d,f+d).map(I=>I[1]).join(""),[O]=n.slice(d),b=[O[2],O[3]],[T]=n.slice(f,f+1),k=[T[2],T[3]],x=["brackets",w].concat(b,k),C=n.slice(0,d),A=n.slice(f+1);n=C,n.push(x),n=n.concat(A)}let g=[];for(let f of n)if((f[1]==="!"||g.length)&&g.push(f),f[1]==="important")break;if(g.length){let[f]=g,w=n.indexOf(f),O=g[g.length-1],b=[f[2],f[3]],T=[O[4],O[5]],k=["word",g.map(x=>x[1]).join("")].concat(b,T);n.splice(w,g.length,k)}let v=n.findIndex(f=>m.test(f[1]));v>0&&([,l]=n[v],n.splice(v,1));for(let f of n.reverse())this.tokenizer.back(f);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=h,l&&(this.lastNode.important=!0,this.lastNode.raws.important=l)}other(n){a.bind(this)(n)||super.other(n)}rule(n){let t=n[n.length-1],h=n[n.length-2];if(h[0]==="at-word"&&t[0]==="{"&&(this.tokenizer.back(t),o.bind(this)(h))){let c=this.tokenizer.nextToken();n=n.slice(0,n.length-2).concat([c]);for(let d of n.reverse())this.tokenizer.back(d);return}super.rule(n),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(n){let[t]=n;if(n[0][1]==="each"&&n[1][0]==="("){this.each(n);return}if(u(t)){this.mixin(n);return}super.unknownWord(n)}}}),ws=E((e,s)=>{var i=_t();s.exports=class extends i{atrule(r,a){if(!r.mixin&&!r.variable&&!r.function){super.atrule(r,a);return}let o=`${r.function?"":r.raws.identifier||"@"}${r.name}`,u=r.params?this.rawValue(r,"params"):"",p=r.raws.important||"";if(r.variable&&(u=r.value),typeof r.raws.afterName<"u"?o+=r.raws.afterName:u&&(o+=" "),r.nodes)this.block(r,o+u+p);else{let y=(r.raws.between||"")+p+(a?";":"");this.builder(o+u+y,r)}}comment(r){if(r.inline){let a=this.raw(r,"left","commentLeft"),o=this.raw(r,"right","commentRight");this.builder(`//${a}${r.text}${o}`,r)}else super.comment(r)}}}),bs=E((e,s)=>{var i=We(),r=gs(),a=ws();s.exports={parse(o,u){let p=new i(o,u),y=new r(p);return y.parse(),y.root.walk(m=>{let n=p.css.lastIndexOf(m.source.input.css);if(n===0)return;if(n+m.source.input.css.length!==p.css.length)throw new Error("Invalid state detected in postcss-less");let t=n+m.source.start.offset,h=p.fromOffset(n+m.source.start.offset);if(m.source.start={offset:t,line:h.line,column:h.col},m.source.end){let c=n+m.source.end.offset,d=p.fromOffset(n+m.source.end.offset);m.source.end={offset:c,line:d.line,column:d.col}}}),y.root},stringify(o,u){new a(u).stringify(o)},nodeToString(o){let u="";return s.exports.stringify(o,p=>{u+=p}),u}}}),It=E((e,s)=>{"use strict";var i=me(),r,a,o=class extends i{constructor(u){super({type:"document",...u}),this.nodes||(this.nodes=[])}toResult(u={}){return new r(new a,this,u).stringify()}};o.registerLazyResult=u=>{r=u},o.registerProcessor=u=>{a=u},s.exports=o,o.default=o}),xs=E((e,s)=>{"use strict";var i=St(),r=Le(),a=tt(),o=We(),u=or(),p=ze(),y=At();function m(n,t){if(Array.isArray(n))return n.map(d=>m(d));let{inputs:h,...c}=n;if(h){t=[];for(let d of h){let l={...d,__proto__:o.prototype};l.map&&(l.map={...l.map,__proto__:u.prototype}),t.push(l)}}if(c.nodes&&(c.nodes=n.nodes.map(d=>m(d,t))),c.source){let{inputId:d,...l}=c.source;c.source=l,d!=null&&(c.source.input=t[d])}if(c.type==="root")return new p(c);if(c.type==="decl")return new a(c);if(c.type==="rule")return new y(c);if(c.type==="comment")return new r(c);if(c.type==="atrule")return new i(c);throw new Error("Unknown node type: "+n.type)}s.exports=m,m.default=m}),ar=E((e,s)=>{s.exports=class{generate(){}}}),ur=E((e,s)=>{"use strict";var i=class{constructor(r,a={}){if(this.type="warning",this.text=r,a.node&&a.node.source){let o=a.node.rangeBy(a);this.line=o.start.line,this.column=o.start.column,this.endLine=o.end.line,this.endColumn=o.end.column}for(let o in a)this[o]=a[o]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};s.exports=i,i.default=i}),Pt=E((e,s)=>{"use strict";var i=ur(),r=class{get content(){return this.css}constructor(a,o,u){this.processor=a,this.messages=[],this.root=o,this.opts=u,this.css="",this.map=void 0}toString(){return this.css}warn(a,o={}){o.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(o.plugin=this.lastPlugin.postcssPlugin);let u=new i(a,o);return this.messages.push(u),u}warnings(){return this.messages.filter(a=>a.type==="warning")}};s.exports=r,r.default=r}),lr=E((e,s)=>{"use strict";var i={};s.exports=function(r){i[r]||(i[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))}}),cr=E((e,s)=>{"use strict";var i=me(),r=It(),a=ar(),o=rt(),u=Pt(),p=ze(),y=Xe(),{isClean:m,my:n}=Ct(),t=lr(),h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},c={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},d={Once:!0,postcssPlugin:!0,prepare:!0},l=0;function g(T){return typeof T=="object"&&typeof T.then=="function"}function v(T){let k=!1,x=h[T.type];return T.type==="decl"?k=T.prop.toLowerCase():T.type==="atrule"&&(k=T.name.toLowerCase()),k&&T.append?[x,x+"-"+k,l,x+"Exit",x+"Exit-"+k]:k?[x,x+"-"+k,x+"Exit",x+"Exit-"+k]:T.append?[x,l,x+"Exit"]:[x,x+"Exit"]}function f(T){let k;return T.type==="document"?k=["Document",l,"DocumentExit"]:T.type==="root"?k=["Root",l,"RootExit"]:k=v(T),{eventIndex:0,events:k,iterator:0,node:T,visitorIndex:0,visitors:[]}}function w(T){return T[m]=!1,T.nodes&&T.nodes.forEach(k=>w(k)),T}var O={},b=class pr{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(k,x,C){this.stringified=!1,this.processed=!1;let A;if(typeof x=="object"&&x!==null&&(x.type==="root"||x.type==="document"))A=w(x);else if(x instanceof pr||x instanceof u)A=w(x.root),x.map&&(typeof C.map>"u"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=x.map);else{let I=o;C.syntax&&(I=C.syntax.parse),C.parser&&(I=C.parser),I.parse&&(I=I.parse);try{A=I(x,C)}catch(R){this.processed=!0,this.error=R}A&&!A[n]&&i.rebuild(A)}this.result=new u(k,A,C),this.helpers={...O,postcss:O,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(k){return this.async().catch(k)}finally(k){return this.async().then(k,k)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(k,x){let C=this.result.lastPlugin;try{x&&x.addToError(k),this.error=k,k.name==="CssSyntaxError"&&!k.plugin?(k.plugin=C.postcssPlugin,k.setMessage()):C.postcssVersion}catch(A){console&&console.error&&console.error(A)}return k}prepareVisitors(){this.listeners={};let k=(x,C,A)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([x,A])};for(let x of this.plugins)if(typeof x=="object")for(let C in x){if(!c[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${x.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[C])if(typeof x[C]=="object")for(let A in x[C])A==="*"?k(x,C,x[C][A]):k(x,C+"-"+A.toLowerCase(),x[C][A]);else typeof x[C]=="function"&&k(x,C,x[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let k=0;k<this.plugins.length;k++){let x=this.plugins[k],C=this.runOnRoot(x);if(g(C))try{await C}catch(A){throw this.handleError(A)}}if(this.prepareVisitors(),this.hasListener){let k=this.result.root;for(;!k[m];){k[m]=!0;let x=[f(k)];for(;x.length>0;){let C=this.visitTick(x);if(g(C))try{await C}catch(A){let I=x[x.length-1].node;throw this.handleError(A,I)}}}if(this.listeners.OnceExit)for(let[x,C]of this.listeners.OnceExit){this.result.lastPlugin=x;try{if(k.type==="document"){let A=k.nodes.map(I=>C(I,this.helpers));await Promise.all(A)}else await C(k,this.helpers)}catch(A){throw this.handleError(A)}}}return this.processed=!0,this.stringify()}runOnRoot(k){this.result.lastPlugin=k;try{if(typeof k=="object"&&k.Once){if(this.result.root.type==="document"){let x=this.result.root.nodes.map(C=>k.Once(C,this.helpers));return g(x[0])?Promise.all(x):x}return k.Once(this.result.root,this.helpers)}else if(typeof k=="function")return k(this.result.root,this.result)}catch(x){throw this.handleError(x)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let k=this.result.opts,x=y;k.syntax&&(x=k.syntax.stringify),k.stringifier&&(x=k.stringifier),x.stringify&&(x=x.stringify);let C=new a(x,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let k of this.plugins){let x=this.runOnRoot(k);if(g(x))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let k=this.result.root;for(;!k[m];)k[m]=!0,this.walkSync(k);if(this.listeners.OnceExit)if(k.type==="document")for(let x of k.nodes)this.visitSync(this.listeners.OnceExit,x);else this.visitSync(this.listeners.OnceExit,k)}return this.result}then(k,x){return this.async().then(k,x)}toString(){return this.css}visitSync(k,x){for(let[C,A]of k){this.result.lastPlugin=C;let I;try{I=A(x,this.helpers)}catch(R){throw this.handleError(R,x.proxyOf)}if(x.type!=="root"&&x.type!=="document"&&!x.parent)return!0;if(g(I))throw this.getAsyncError()}}visitTick(k){let x=k[k.length-1],{node:C,visitors:A}=x;if(C.type!=="root"&&C.type!=="document"&&!C.parent){k.pop();return}if(A.length>0&&x.visitorIndex<A.length){let[R,M]=A[x.visitorIndex];x.visitorIndex+=1,x.visitorIndex===A.length&&(x.visitors=[],x.visitorIndex=0),this.result.lastPlugin=R;try{return M(C.toProxy(),this.helpers)}catch(N){throw this.handleError(N,C)}}if(x.iterator!==0){let R=x.iterator,M;for(;M=C.nodes[C.indexes[R]];)if(C.indexes[R]+=1,!M[m]){M[m]=!0,k.push(f(M));return}x.iterator=0,delete C.indexes[R]}let I=x.events;for(;x.eventIndex<I.length;){let R=I[x.eventIndex];if(x.eventIndex+=1,R===l){C.nodes&&C.nodes.length&&(C[m]=!0,x.iterator=C.getIterator());return}else if(this.listeners[R]){x.visitors=this.listeners[R];return}}k.pop()}walkSync(k){k[m]=!0;let x=v(k);for(let C of x)if(C===l)k.nodes&&k.each(A=>{A[m]||this.walkSync(A)});else{let A=this.listeners[C];if(A&&this.visitSync(A,k.toProxy()))return}}warnings(){return this.sync().warnings()}};b.registerPostcss=T=>{O=T},s.exports=b,b.default=b,p.registerLazyResult(b),r.registerLazyResult(b)}),ks=E((e,s)=>{"use strict";var i=ar(),r=rt(),a=Pt(),o=Xe(),u=lr(),p=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 y,m=r;try{y=m(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=y,y}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(y,m,n){m=m.toString(),this.stringified=!1,this._processor=y,this._css=m,this._opts=n,this._map=void 0;let t,h=o;this.result=new a(this._processor,t,this._opts),this.result.css=m;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let d=new i(h,t,this._opts,m);if(d.isMap()){let[l,g]=d.generate();l&&(this.result.css=l),g&&(this.result.map=g)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}sync(){if(this.error)throw this.error;return this.result}then(y,m){return this.async().then(y,m)}toString(){return this._css}warnings(){return[]}};s.exports=p,p.default=p}),Ts=E((e,s)=>{"use strict";var i=It(),r=cr(),a=ks(),o=ze(),u=class{constructor(p=[]){this.version="8.5.6",this.plugins=this.normalize(p)}normalize(p){let y=[];for(let m of p)if(m.postcss===!0?m=m():m.postcss&&(m=m.postcss),typeof m=="object"&&Array.isArray(m.plugins))y=y.concat(m.plugins);else if(typeof m=="object"&&m.postcssPlugin)y.push(m);else if(typeof m=="function")y.push(m);else if(!(typeof m=="object"&&(m.parse||m.stringify)))throw new Error(m+" is not a PostCSS plugin");return y}process(p,y={}){return!this.plugins.length&&!y.parser&&!y.stringifier&&!y.syntax?new a(this,p,y):new r(this,p,y)}use(p){return this.plugins=this.plugins.concat(this.normalize([p])),this}};s.exports=u,u.default=u,o.registerProcessor(u),i.registerProcessor(u)}),Mt=E((e,s)=>{"use strict";var i=St(),r=Le(),a=me(),o=Ot(),u=tt(),p=It(),y=xs(),m=We(),n=cr(),t=ir(),h=et(),c=rt(),d=Ts(),l=Pt(),g=ze(),v=At(),f=Xe(),w=ur();function O(...b){return b.length===1&&Array.isArray(b[0])&&(b=b[0]),new d(b)}O.plugin=function(b,T){let k=!1;function x(...A){console&&console.warn&&!k&&(k=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
|
|
26
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let I=T(...A);return I.postcssPlugin=b,I.postcssVersion=new d().version,I}let C;return Object.defineProperty(x,"postcss",{get(){return C||(C=x()),C}}),x.process=function(A,I,R){return O([x(R)]).process(A,I)},x},O.stringify=f,O.parse=c,O.fromJSON=y,O.list=t,O.comment=b=>new r(b),O.atRule=b=>new i(b),O.decl=b=>new u(b),O.rule=b=>new v(b),O.root=b=>new g(b),O.document=b=>new p(b),O.CssSyntaxError=o,O.Declaration=u,O.Container=a,O.Processor=d,O.Document=p,O.Comment=r,O.Warning=w,O.AtRule=i,O.Result=l,O.Input=m,O.Rule=v,O.Root=g,O.Node=h,n.registerPostcss(O),s.exports=O,O.default=O}),Os=E((e,s)=>{var{Container:i}=Mt(),r=class extends i{constructor(a){super(a),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};s.exports=r}),_s=E((e,s)=>{"use strict";var i=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,a=/.[\r\n"'(/\\]/,o=/[\da-f]/i,u=/[\n\f\r]/g;s.exports=function(p,y={}){let m=p.css.valueOf(),n=y.ignoreErrors,t,h,c,d,l,g,v,f,w,O=m.length,b=0,T=[],k=[],x;function C(){return b}function A($){throw p.error("Unclosed "+$,b)}function I(){return k.length===0&&b>=O}function R(){let $=1,P=!1,B=!1;for(;$>0;)h+=1,m.length<=h&&A("interpolation"),t=m.charCodeAt(h),f=m.charCodeAt(h+1),P?!B&&t===P?(P=!1,B=!1):t===92?B=!B:B&&(B=!1):t===39||t===34?P=t:t===125?$-=1:t===35&&f===123&&($+=1)}function M($){if(k.length)return k.pop();if(b>=O)return;let P=$?$.ignoreUnclosed:!1;switch(t=m.charCodeAt(b),t){case 10:case 32:case 9:case 13:case 12:{h=b;do h+=1,t=m.charCodeAt(h);while(t===32||t===10||t===9||t===13||t===12);w=["space",m.slice(b,h)],b=h-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let B=String.fromCharCode(t);w=[B,B,b];break}case 44:{w=["word",",",b,b+1];break}case 40:{if(v=T.length?T.pop()[1]:"",f=m.charCodeAt(b+1),v==="url"&&f!==39&&f!==34){for(x=1,g=!1,h=b+1;h<=m.length-1;){if(f=m.charCodeAt(h),f===92)g=!g;else if(f===40)x+=1;else if(f===41&&(x-=1,x===0))break;h+=1}d=m.slice(b,h+1),w=["brackets",d,b,h],b=h}else h=m.indexOf(")",b+1),d=m.slice(b,h+1),h===-1||a.test(d)?w=["(","(",b]:(w=["brackets",d,b,h],b=h);break}case 39:case 34:{for(c=t,h=b,g=!1;h<O&&(h++,h===O&&A("string"),t=m.charCodeAt(h),f=m.charCodeAt(h+1),!(!g&&t===c));)t===92?g=!g:g?g=!1:t===35&&f===123&&R();w=["string",m.slice(b,h+1),b,h],b=h;break}case 64:{i.lastIndex=b+1,i.test(m),i.lastIndex===0?h=m.length-1:h=i.lastIndex-2,w=["at-word",m.slice(b,h+1),b,h],b=h;break}case 92:{for(h=b,l=!0;m.charCodeAt(h+1)===92;)h+=1,l=!l;if(t=m.charCodeAt(h+1),l&&t!==47&&t!==32&&t!==10&&t!==9&&t!==13&&t!==12&&(h+=1,o.test(m.charAt(h)))){for(;o.test(m.charAt(h+1));)h+=1;m.charCodeAt(h+1)===32&&(h+=1)}w=["word",m.slice(b,h+1),b,h],b=h;break}default:f=m.charCodeAt(b+1),t===35&&f===123?(h=b,R(),d=m.slice(b,h+1),w=["word",d,b,h],b=h):t===47&&f===42?(h=m.indexOf("*/",b+2)+1,h===0&&(n||P?h=m.length:A("comment")),w=["comment",m.slice(b,h+1),b,h],b=h):t===47&&f===47?(u.lastIndex=b+1,u.test(m),u.lastIndex===0?h=m.length-1:h=u.lastIndex-2,d=m.slice(b,h+1),w=["comment",d,b,h,"inline"],b=h):(r.lastIndex=b+1,r.test(m),r.lastIndex===0?h=m.length-1:h=r.lastIndex-2,w=["word",m.slice(b,h+1),b,h],T.push(w),b=h);break}return b++,w}function N($){k.push($)}return{back:N,endOfFile:I,nextToken:M,position:C}}}),Cs=E((e,s)=>{var{Comment:i}=Mt(),r=jt(),a=Os(),o=_s(),u=class extends r{atrule(p){let y=p[1],m=p;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===m[3]+1)y+=n[1],m=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",y,p[2],m[3]])}comment(p){if(p[4]==="inline"){let y=new i;this.init(y,p[2]),y.raws.inline=!0;let m=this.input.fromOffset(p[3]);y.source.end={column:m.col,line:m.line,offset:p[3]+1};let n=p[1].slice(2);if(/^\s*$/.test(n))y.text="",y.raws.left=n,y.raws.right="";else{let t=n.match(/^(\s*)([^]*\S)(\s*)$/),h=t[2].replace(/(\*\/|\/\*)/g,"*//*");y.text=h,y.raws.left=t[1],y.raws.right=t[3],y.raws.text=t[2]}}else super.comment(p)}createTokenizer(){this.tokenizer=o(this.input)}raw(p,y,m,n){if(super.raw(p,y,m,n),p.raws[y]){let t=p.raws[y].raw;p.raws[y].raw=m.reduce((h,c)=>{if(c[0]==="comment"&&c[4]==="inline"){let d=c[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return h+"/*"+d+"*/"}else return h+c[1]},""),t!==p.raws[y].raw&&(p.raws[y].scss=t)}}rule(p){let y=!1,m=0,n="";for(let t of p)if(y)t[0]!=="comment"&&t[0]!=="{"&&(n+=t[1]);else{if(t[0]==="space"&&t[1].includes(`
|
|
27
|
+
`))break;t[0]==="("?m+=1:t[0]===")"?m-=1:m===0&&t[0]===":"&&(y=!0)}if(!y||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(p);else{p.pop();let t=new a;this.init(t,p[0][2]);let h;for(let d=p.length-1;d>=0;d--)if(p[d][0]!=="space"){h=p[d];break}if(h[3]){let d=this.input.fromOffset(h[3]);t.source.end={column:d.col,line:d.line,offset:h[3]+1}}else{let d=this.input.fromOffset(h[2]);t.source.end={column:d.col,line:d.line,offset:h[2]+1}}for(;p[0][0]!=="word";)t.raws.before+=p.shift()[1];if(p[0][2]){let d=this.input.fromOffset(p[0][2]);t.source.start={column:d.col,line:d.line,offset:p[0][2]}}for(t.prop="";p.length;){let d=p[0][0];if(d===":"||d==="space"||d==="comment")break;t.prop+=p.shift()[1]}t.raws.between="";let c;for(;p.length;)if(c=p.shift(),c[0]===":"){t.raws.between+=c[1];break}else t.raws.between+=c[1];(t.prop[0]==="_"||t.prop[0]==="*")&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(p),this.precheckMissedSemicolon(p);for(let d=p.length-1;d>0;d--){if(c=p[d],c[1]==="!important"){t.important=!0;let l=this.stringFrom(p,d);l=this.spacesFromEnd(p)+l,l!==" !important"&&(t.raws.important=l);break}else if(c[1]==="important"){let l=p.slice(0),g="";for(let v=d;v>0;v--){let f=l[v][0];if(g.trim().indexOf("!")===0&&f!=="space")break;g=l.pop()[1]+g}g.trim().indexOf("!")===0&&(t.important=!0,t.raws.important=g,p=l)}if(c[0]!=="space"&&c[0]!=="comment")break}this.raw(t,"value",p),t.value.includes(":")&&this.checkMissedSemicolon(p),this.current=t}}};s.exports=u}),Ss=E((e,s)=>{var{Input:i}=Mt(),r=Cs();s.exports=function(a,o){let u=new i(a,o),p=new r(u);return p.parse(),p.root}}),hr=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});function s(i){this.after=i.after,this.before=i.before,this.type=i.type,this.value=i.value,this.sourceIndex=i.sourceIndex}e.default=s}),fr=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=hr(),i=r(s);function r(o){return o&&o.__esModule?o:{default:o}}function a(o){var u=this;this.constructor(o),this.nodes=o.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(p){p.parent=u})}a.prototype=Object.create(i.default.prototype),a.constructor=i.default,a.prototype.walk=function(o,u){for(var p=typeof o=="string"||o instanceof RegExp,y=p?u:o,m=typeof o=="string"?new RegExp(o):o,n=0;n<this.nodes.length;n++){var t=this.nodes[n],h=p?m.test(t.type):!0;if(h&&y&&y(t,n,this.nodes)===!1||t.nodes&&t.walk(o,u)===!1)return!1}return!0},a.prototype.each=function(){for(var o=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],u=0;u<this.nodes.length;u++){var p=this.nodes[u];if(o(p,u,this.nodes)===!1)return!1}return!0},e.default=a}),As=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseMediaFeature=u,e.parseMediaQuery=p,e.parseMediaList=y;var s=hr(),i=o(s),r=fr(),a=o(r);function o(m){return m&&m.__esModule?m:{default:m}}function u(m){var n=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[{mode:"normal",character:null}],h=[],c=0,d="",l=null,g=null,v=n,f=m;m[0]==="("&&m[m.length-1]===")"&&(f=m.substring(1,m.length-1),v++);for(var w=0;w<f.length;w++){var O=f[w];if((O==="'"||O==='"')&&(t[c].isCalculationEnabled===!0?(t.push({mode:"string",isCalculationEnabled:!1,character:O}),c++):t[c].mode==="string"&&t[c].character===O&&f[w-1]!=="\\"&&(t.pop(),c--)),O==="{"?(t.push({mode:"interpolation",isCalculationEnabled:!0}),c++):O==="}"&&(t.pop(),c--),t[c].mode==="normal"&&O===":"){var b=f.substring(w+1);g={type:"value",before:/^(\s*)/.exec(b)[1],after:/(\s*)$/.exec(b)[1],value:b.trim()},g.sourceIndex=g.before.length+w+1+v,l={type:"colon",sourceIndex:w+v,after:g.before,value:":"};break}d+=O}return d={type:"media-feature",before:/^(\s*)/.exec(d)[1],after:/(\s*)$/.exec(d)[1],value:d.trim()},d.sourceIndex=d.before.length+v,h.push(d),l!==null&&(l.before=d.after,h.push(l)),g!==null&&h.push(g),h}function p(m){var n=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[],h=0,c=!1,d=void 0;function l(){return{before:"",after:"",value:""}}d=l();for(var g=0;g<m.length;g++){var v=m[g];c?(d.value+=v,(v==="{"||v==="(")&&h++,(v===")"||v==="}")&&h--):v.search(/\s/)!==-1?d.before+=v:(v==="("&&(d.type="media-feature-expression",h++),d.value=v,d.sourceIndex=n+g,c=!0),c&&h===0&&(v===")"||g===m.length-1||m[g+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(d.value)!==-1&&(d.type="keyword"),d.type==="media-feature-expression"&&(d.nodes=u(d.value,d.sourceIndex)),t.push(Array.isArray(d.nodes)?new a.default(d):new i.default(d)),d=l(),c=!1)}for(var f=0;f<t.length;f++)if(d=t[f],f>0&&(t[f-1].after=d.before),d.type===void 0){if(f>0){if(t[f-1].type==="media-feature-expression"){d.type="keyword";continue}if(t[f-1].value==="not"||t[f-1].value==="only"){d.type="media-type";continue}if(t[f-1].value==="and"){d.type="media-feature-expression";continue}t[f-1].type==="media-type"&&(t[f+1]?d.type=t[f+1].type==="media-feature-expression"?"keyword":"media-feature-expression":d.type="media-feature-expression")}if(f===0){if(!t[f+1]){d.type="media-type";continue}if(t[f+1]&&(t[f+1].type==="media-feature-expression"||t[f+1].type==="keyword")){d.type="media-type";continue}if(t[f+2]){if(t[f+2].type==="media-feature-expression"){d.type="media-type",t[f+1].type="keyword";continue}if(t[f+2].type==="keyword"){d.type="keyword",t[f+1].type="media-type";continue}}if(t[f+3]&&t[f+3].type==="media-feature-expression"){d.type="keyword",t[f+1].type="media-type",t[f+2].type="keyword";continue}}}return t}function y(m){var n=[],t=0,h=0,c=/^(\s*)url\s*\(/.exec(m);if(c!==null){for(var d=c[0].length,l=1;l>0;){var g=m[d];g==="("&&l++,g===")"&&l--,d++}n.unshift(new i.default({type:"url",value:m.substring(0,d).trim(),sourceIndex:c[1].length,before:c[1],after:/^(\s*)/.exec(m.substring(d))[1]})),t=d}for(var v=t;v<m.length;v++){var f=m[v];if(f==="("&&h++,f===")"&&h--,h===0&&f===","){var w=m.substring(t,v),O=/^(\s*)/.exec(w)[1];n.push(new a.default({type:"media-query",value:w.trim(),sourceIndex:t+O.length,nodes:p(w,t),before:O,after:/(\s*)$/.exec(w)[1]})),t=v+1}}var b=m.substring(t),T=/^(\s*)/.exec(b)[1];return n.push(new a.default({type:"media-query",value:b.trim(),sourceIndex:t+T.length,nodes:p(b,t),before:T,after:/(\s*)$/.exec(b)[1]})),n}}),Es=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var s=fr(),i=a(s),r=As();function a(u){return u&&u.__esModule?u:{default:u}}function o(u){return new i.default({nodes:(0,r.parseMediaList)(u),type:"media-query-list",value:u.trim()})}}),dr=E((e,s)=>{s.exports=function(i,r){if(r=typeof r=="number"?r:1/0,!r)return Array.isArray(i)?i.map(function(o){return o}):i;return a(i,1);function a(o,u){return o.reduce(function(p,y){return Array.isArray(y)&&u<r?p.concat(a(y,u+1)):p.concat(y)},[])}}}),mr=E((e,s)=>{s.exports=function(i,r){for(var a=-1,o=[];(a=i.indexOf(r,a+1))!==-1;)o.push(a);return o}}),yr=E((e,s)=>{"use strict";function i(o,u){for(var p=1,y=o.length,m=o[0],n=o[0],t=1;t<y;++t)if(n=m,m=o[t],u(m,n)){if(t===p){p++;continue}o[p++]=m}return o.length=p,o}function r(o){for(var u=1,p=o.length,y=o[0],m=o[0],n=1;n<p;++n,m=y)if(m=y,y=o[n],y!==m){if(n===u){u++;continue}o[u++]=y}return o.length=u,o}function a(o,u,p){return o.length===0?o:u?(p||o.sort(u),i(o,u)):(p||o.sort(),r(o))}s.exports=a}),Oe=E((e,s)=>{"use strict";e.__esModule=!0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u};function r(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")}var a=function u(p,y){if((typeof p>"u"?"undefined":i(p))!=="object")return p;var m=new p.constructor;for(var n in p)if(p.hasOwnProperty(n)){var t=p[n],h=typeof t>"u"?"undefined":i(t);n==="parent"&&h==="object"?y&&(m[n]=y):t instanceof Array?m[n]=t.map(function(c){return u(c,m)}):m[n]=u(t,m)}return m},o=(function(){function u(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r(this,u);for(var y in p)this[y]=p[y];var m=p.spaces;m=m===void 0?{}:m;var n=m.before,t=n===void 0?"":n,h=m.after,c=h===void 0?"":h;this.spaces={before:t,after:c}}return u.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},u.prototype.replaceWith=function(){if(this.parent){for(var p in arguments)this.parent.insertBefore(this,arguments[p]);this.remove()}return this},u.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},u.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},u.prototype.clone=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=a(this);for(var m in p)y[m]=p[m];return y},u.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},u})();e.default=o,s.exports=e.default}),J=E(e=>{"use strict";e.__esModule=!0;var s=e.TAG="tag",i=e.STRING="string",r=e.SELECTOR="selector",a=e.ROOT="root",o=e.PSEUDO="pseudo",u=e.NESTING="nesting",p=e.ID="id",y=e.COMMENT="comment",m=e.COMBINATOR="combinator",n=e.CLASS="class",t=e.ATTRIBUTE="attribute",h=e.UNIVERSAL="universal"}),$t=E((e,s)=>{"use strict";e.__esModule=!0;var i=(function(){function c(d,l){for(var g=0;g<l.length;g++){var v=l[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(d,v.key,v)}}return function(d,l,g){return l&&c(d.prototype,l),g&&c(d,g),d}})(),r=Oe(),a=y(r),o=J(),u=p(o);function p(c){if(c&&c.__esModule)return c;var d={};if(c!=null)for(var l in c)Object.prototype.hasOwnProperty.call(c,l)&&(d[l]=c[l]);return d.default=c,d}function y(c){return c&&c.__esModule?c:{default:c}}function m(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}function n(c,d){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:c}function t(c,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);c.prototype=Object.create(d&&d.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(c,d):c.__proto__=d)}var h=(function(c){t(d,c);function d(l){m(this,d);var g=n(this,c.call(this,l));return g.nodes||(g.nodes=[]),g}return d.prototype.append=function(l){return l.parent=this,this.nodes.push(l),this},d.prototype.prepend=function(l){return l.parent=this,this.nodes.unshift(l),this},d.prototype.at=function(l){return this.nodes[l]},d.prototype.index=function(l){return typeof l=="number"?l:this.nodes.indexOf(l)},d.prototype.removeChild=function(l){l=this.index(l),this.at(l).parent=void 0,this.nodes.splice(l,1);var g=void 0;for(var v in this.indexes)g=this.indexes[v],g>=l&&(this.indexes[v]=g-1);return this},d.prototype.removeAll=function(){for(var v=this.nodes,l=Array.isArray(v),g=0,v=l?v:v[Symbol.iterator]();;){var f;if(l){if(g>=v.length)break;f=v[g++]}else{if(g=v.next(),g.done)break;f=g.value}var w=f;w.parent=void 0}return this.nodes=[],this},d.prototype.empty=function(){return this.removeAll()},d.prototype.insertAfter=function(l,g){var v=this.index(l);this.nodes.splice(v+1,0,g);var f=void 0;for(var w in this.indexes)f=this.indexes[w],v<=f&&(this.indexes[w]=f+this.nodes.length);return this},d.prototype.insertBefore=function(l,g){var v=this.index(l);this.nodes.splice(v,0,g);var f=void 0;for(var w in this.indexes)f=this.indexes[w],v<=f&&(this.indexes[w]=f+this.nodes.length);return this},d.prototype.each=function(l){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var g=this.lastEach;if(this.indexes[g]=0,!!this.length){for(var v=void 0,f=void 0;this.indexes[g]<this.length&&(v=this.indexes[g],f=l(this.at(v),v),f!==!1);)this.indexes[g]+=1;if(delete this.indexes[g],f===!1)return!1}},d.prototype.walk=function(l){return this.each(function(g,v){var f=l(g,v);if(f!==!1&&g.length&&(f=g.walk(l)),f===!1)return!1})},d.prototype.walkAttributes=function(l){var g=this;return this.walk(function(v){if(v.type===u.ATTRIBUTE)return l.call(g,v)})},d.prototype.walkClasses=function(l){var g=this;return this.walk(function(v){if(v.type===u.CLASS)return l.call(g,v)})},d.prototype.walkCombinators=function(l){var g=this;return this.walk(function(v){if(v.type===u.COMBINATOR)return l.call(g,v)})},d.prototype.walkComments=function(l){var g=this;return this.walk(function(v){if(v.type===u.COMMENT)return l.call(g,v)})},d.prototype.walkIds=function(l){var g=this;return this.walk(function(v){if(v.type===u.ID)return l.call(g,v)})},d.prototype.walkNesting=function(l){var g=this;return this.walk(function(v){if(v.type===u.NESTING)return l.call(g,v)})},d.prototype.walkPseudos=function(l){var g=this;return this.walk(function(v){if(v.type===u.PSEUDO)return l.call(g,v)})},d.prototype.walkTags=function(l){var g=this;return this.walk(function(v){if(v.type===u.TAG)return l.call(g,v)})},d.prototype.walkUniversals=function(l){var g=this;return this.walk(function(v){if(v.type===u.UNIVERSAL)return l.call(g,v)})},d.prototype.split=function(l){var g=this,v=[];return this.reduce(function(f,w,O){var b=l.call(g,w);return v.push(w),b?(f.push(v),v=[]):O===g.length-1&&f.push(v),f},[])},d.prototype.map=function(l){return this.nodes.map(l)},d.prototype.reduce=function(l,g){return this.nodes.reduce(l,g)},d.prototype.every=function(l){return this.nodes.every(l)},d.prototype.some=function(l){return this.nodes.some(l)},d.prototype.filter=function(l){return this.nodes.filter(l)},d.prototype.sort=function(l){return this.nodes.sort(l)},d.prototype.toString=function(){return this.map(String).join("")},i(d,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),d})(a.default);e.default=h,s.exports=e.default}),js=E((e,s)=>{"use strict";e.__esModule=!0;var i=$t(),r=o(i),a=J();function o(n){return n&&n.__esModule?n:{default:n}}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var m=(function(n){y(t,n);function t(h){u(this,t);var c=p(this,n.call(this,h));return c.type=a.ROOT,c}return t.prototype.toString=function(){var h=this.reduce(function(c,d){var l=String(d);return l?c+l+",":""},"").slice(0,-1);return this.trailingComma?h+",":h},t})(r.default);e.default=m,s.exports=e.default}),Is=E((e,s)=>{"use strict";e.__esModule=!0;var i=$t(),r=o(i),a=J();function o(n){return n&&n.__esModule?n:{default:n}}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var m=(function(n){y(t,n);function t(h){u(this,t);var c=p(this,n.call(this,h));return c.type=a.SELECTOR,c}return t})(r.default);e.default=m,s.exports=e.default}),Be=E((e,s)=>{"use strict";e.__esModule=!0;var i=(function(){function n(t,h){for(var c=0;c<h.length;c++){var d=h[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(t,d.key,d)}}return function(t,h,c){return h&&n(t.prototype,h),c&&n(t,c),t}})(),r=Oe(),a=o(r);function o(n){return n&&n.__esModule?n:{default:n}}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var m=(function(n){y(t,n);function t(){return u(this,t),p(this,n.apply(this,arguments))}return t.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},i(t,[{key:"ns",get:function(){var h=this.namespace;return h?(typeof h=="string"?h:"")+"|":""}}]),t})(a.default);e.default=m,s.exports=e.default}),Ps=E((e,s)=>{"use strict";e.__esModule=!0;var i=Be(),r=o(i),a=J();function o(n){return n&&n.__esModule?n:{default:n}}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var m=(function(n){y(t,n);function t(h){u(this,t);var c=p(this,n.call(this,h));return c.type=a.CLASS,c}return t.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},t})(r.default);e.default=m,s.exports=e.default}),Ms=E((e,s)=>{"use strict";e.__esModule=!0;var i=Oe(),r=o(i),a=J();function o(n){return n&&n.__esModule?n:{default:n}}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var m=(function(n){y(t,n);function t(h){u(this,t);var c=p(this,n.call(this,h));return c.type=a.COMMENT,c}return t})(r.default);e.default=m,s.exports=e.default}),$s=E((e,s)=>{"use strict";e.__esModule=!0;var i=Be(),r=o(i),a=J();function o(n){return n&&n.__esModule?n:{default:n}}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var m=(function(n){y(t,n);function t(h){u(this,t);var c=p(this,n.call(this,h));return c.type=a.ID,c}return t.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},t})(r.default);e.default=m,s.exports=e.default}),Rs=E((e,s)=>{"use strict";e.__esModule=!0;var i=Be(),r=o(i),a=J();function o(n){return n&&n.__esModule?n:{default:n}}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var m=(function(n){y(t,n);function t(h){u(this,t);var c=p(this,n.call(this,h));return c.type=a.TAG,c}return t})(r.default);e.default=m,s.exports=e.default}),Ns=E((e,s)=>{"use strict";e.__esModule=!0;var i=Oe(),r=o(i),a=J();function o(n){return n&&n.__esModule?n:{default:n}}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var m=(function(n){y(t,n);function t(h){u(this,t);var c=p(this,n.call(this,h));return c.type=a.STRING,c}return t})(r.default);e.default=m,s.exports=e.default}),Ls=E((e,s)=>{"use strict";e.__esModule=!0;var i=$t(),r=o(i),a=J();function o(n){return n&&n.__esModule?n:{default:n}}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var m=(function(n){y(t,n);function t(h){u(this,t);var c=p(this,n.call(this,h));return c.type=a.PSEUDO,c}return t.prototype.toString=function(){var h=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),h,this.spaces.after].join("")},t})(r.default);e.default=m,s.exports=e.default}),Ws=E((e,s)=>{"use strict";e.__esModule=!0;var i=Be(),r=o(i),a=J();function o(n){return n&&n.__esModule?n:{default:n}}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var m=(function(n){y(t,n);function t(h){u(this,t);var c=p(this,n.call(this,h));return c.type=a.ATTRIBUTE,c.raws={},c}return t.prototype.toString=function(){var h=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&h.push(this.operator),this.value&&h.push(this.value),this.raws.insensitive?h.push(this.raws.insensitive):this.insensitive&&h.push(" i"),h.push("]"),h.concat(this.spaces.after).join("")},t})(r.default);e.default=m,s.exports=e.default}),zs=E((e,s)=>{"use strict";e.__esModule=!0;var i=Be(),r=o(i),a=J();function o(n){return n&&n.__esModule?n:{default:n}}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var m=(function(n){y(t,n);function t(h){u(this,t);var c=p(this,n.call(this,h));return c.type=a.UNIVERSAL,c.value="*",c}return t})(r.default);e.default=m,s.exports=e.default}),Bs=E((e,s)=>{"use strict";e.__esModule=!0;var i=Oe(),r=o(i),a=J();function o(n){return n&&n.__esModule?n:{default:n}}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var m=(function(n){y(t,n);function t(h){u(this,t);var c=p(this,n.call(this,h));return c.type=a.COMBINATOR,c}return t})(r.default);e.default=m,s.exports=e.default}),qs=E((e,s)=>{"use strict";e.__esModule=!0;var i=Oe(),r=o(i),a=J();function o(n){return n&&n.__esModule?n:{default:n}}function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var m=(function(n){y(t,n);function t(h){u(this,t);var c=p(this,n.call(this,h));return c.type=a.NESTING,c.value="&",c}return t})(r.default);e.default=m,s.exports=e.default}),Ds=E((e,s)=>{"use strict";e.__esModule=!0,e.default=i;function i(r){return r.sort(function(a,o){return a-o})}s.exports=e.default}),Fs=E((e,s)=>{"use strict";e.__esModule=!0,e.default=I;var i=39,r=34,a=92,o=47,u=10,p=32,y=12,m=9,n=13,t=43,h=62,c=126,d=124,l=44,g=40,v=41,f=91,w=93,O=59,b=42,T=58,k=38,x=64,C=/[ \n\t\r\{\(\)'"\\;/]/g,A=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function I(R){for(var M=[],N=R.css.valueOf(),$=void 0,P=void 0,B=void 0,ne=void 0,re=void 0,se=void 0,ye=void 0,ve=void 0,ge=void 0,q=void 0,Ce=void 0,pt=N.length,j=-1,_=1,S=0,W=function(z,D){if(R.safe)N+=D,P=N.length-1;else throw R.error("Unclosed "+z,_,S-j,S)};S<pt;){switch($=N.charCodeAt(S),$===u&&(j=S,_+=1),$){case u:case p:case m:case n:case y:P=S;do P+=1,$=N.charCodeAt(P),$===u&&(j=P,_+=1);while($===p||$===u||$===m||$===n||$===y);M.push(["space",N.slice(S,P),_,S-j,S]),S=P-1;break;case t:case h:case c:case d:P=S;do P+=1,$=N.charCodeAt(P);while($===t||$===h||$===c||$===d);M.push(["combinator",N.slice(S,P),_,S-j,S]),S=P-1;break;case b:M.push(["*","*",_,S-j,S]);break;case k:M.push(["&","&",_,S-j,S]);break;case l:M.push([",",",",_,S-j,S]);break;case f:M.push(["[","[",_,S-j,S]);break;case w:M.push(["]","]",_,S-j,S]);break;case T:M.push([":",":",_,S-j,S]);break;case O:M.push([";",";",_,S-j,S]);break;case g:M.push(["(","(",_,S-j,S]);break;case v:M.push([")",")",_,S-j,S]);break;case i:case r:B=$===i?"'":'"',P=S;do for(q=!1,P=N.indexOf(B,P+1),P===-1&&W("quote",B),Ce=P;N.charCodeAt(Ce-1)===a;)Ce-=1,q=!q;while(q);M.push(["string",N.slice(S,P+1),_,S-j,_,P-j,S]),S=P;break;case x:C.lastIndex=S+1,C.test(N),C.lastIndex===0?P=N.length-1:P=C.lastIndex-2,M.push(["at-word",N.slice(S,P+1),_,S-j,_,P-j,S]),S=P;break;case a:for(P=S,ye=!0;N.charCodeAt(P+1)===a;)P+=1,ye=!ye;$=N.charCodeAt(P+1),ye&&$!==o&&$!==p&&$!==u&&$!==m&&$!==n&&$!==y&&(P+=1),M.push(["word",N.slice(S,P+1),_,S-j,_,P-j,S]),S=P;break;default:$===o&&N.charCodeAt(S+1)===b?(P=N.indexOf("*/",S+2)+1,P===0&&W("comment","*/"),se=N.slice(S,P+1),ne=se.split(`
|
|
28
|
+
`),re=ne.length-1,re>0?(ve=_+re,ge=P-ne[re].length):(ve=_,ge=j),M.push(["comment",se,_,S-j,ve,P-ge,S]),j=ge,_=ve,S=P):(A.lastIndex=S+1,A.test(N),A.lastIndex===0?P=N.length-1:P=A.lastIndex-2,M.push(["word",N.slice(S,P+1),_,S-j,_,P-j,S]),S=P);break}S++}return M}s.exports=e.default}),Us=E((e,s)=>{"use strict";e.__esModule=!0;var i=(function(){function j(_,S){for(var W=0;W<S.length;W++){var z=S[W];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(_,z.key,z)}}return function(_,S,W){return S&&j(_.prototype,S),W&&j(_,W),_}})(),r=dr(),a=q(r),o=mr(),u=q(o),p=yr(),y=q(p),m=js(),n=q(m),t=Is(),h=q(t),c=Ps(),d=q(c),l=Ms(),g=q(l),v=$s(),f=q(v),w=Rs(),O=q(w),b=Ns(),T=q(b),k=Ls(),x=q(k),C=Ws(),A=q(C),I=zs(),R=q(I),M=Bs(),N=q(M),$=qs(),P=q($),B=Ds(),ne=q(B),re=Fs(),se=q(re),ye=J(),ve=ge(ye);function ge(j){if(j&&j.__esModule)return j;var _={};if(j!=null)for(var S in j)Object.prototype.hasOwnProperty.call(j,S)&&(_[S]=j[S]);return _.default=j,_}function q(j){return j&&j.__esModule?j:{default:j}}function Ce(j,_){if(!(j instanceof _))throw new TypeError("Cannot call a class as a function")}var pt=(function(){function j(_){Ce(this,j),this.input=_,this.lossy=_.options.lossless===!1,this.position=0,this.root=new n.default;var S=new h.default;return this.root.append(S),this.current=S,this.lossy?this.tokens=(0,se.default)({safe:_.safe,css:_.css.trim()}):this.tokens=(0,se.default)(_),this.loop()}return j.prototype.attribute=function(){var _="",S=void 0,W=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)_+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~_.indexOf("]")&&this.error("Expected a closing square bracket.");var z=_.split(/((?:[*~^$|]?=))([^]*)/),D=z[0].split(/(\|)/g),X={operator:z[1],value:z[2],source:{start:{line:W[2],column:W[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:W[4]};if(D.length>1?(D[0]===""&&(D[0]=!0),X.attribute=this.parseValue(D[2]),X.namespace=this.parseNamespace(D[0])):X.attribute=this.parseValue(z[0]),S=new A.default(X),z[2]){var oe=z[2].split(/(\s+i\s*?)$/),ie=oe[0].trim();S.value=this.lossy?ie:oe[0],oe[1]&&(S.insensitive=!0,this.lossy||(S.raws.insensitive=oe[1])),S.quoted=ie[0]==="'"||ie[0]==='"',S.raws.unquoted=S.quoted?ie.slice(1,-1):ie}this.newNode(S),this.position++},j.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var _=new N.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(_.spaces.before=this.parseSpace(this.currToken[1]),_.source.start.line=this.nextToken[2],_.source.start.column=this.nextToken[3],_.source.end.column=this.nextToken[3],_.source.end.line=this.nextToken[2],_.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?_.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?_.value=this.currToken[1]:this.currToken[0]==="space"&&(_.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(_)},j.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var _=new h.default;this.current.parent.append(_),this.current=_,this.position++},j.prototype.comment=function(){var _=new g.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(_),this.position++},j.prototype.error=function(_){throw new this.input.error(_)},j.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},j.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},j.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},j.prototype.namespace=function(){var _=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(_);if(this.nextToken[0]==="*")return this.position++,this.universal(_)},j.prototype.nesting=function(){this.newNode(new P.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},j.prototype.parentheses=function(){var _=this.current.last;if(_&&_.type===ve.PSEUDO){var S=new h.default,W=this.current;_.append(S),this.current=S;var z=1;for(this.position++;this.position<this.tokens.length&&z;)this.currToken[0]==="("&&z++,this.currToken[0]===")"&&z--,z?this.parse():(S.parent.source.end.line=this.currToken[2],S.parent.source.end.column=this.currToken[3],this.position++);z&&this.error("Expected closing parenthesis."),this.current=W}else{var D=1;for(this.position++,_.value+="(";this.position<this.tokens.length&&D;)this.currToken[0]==="("&&D++,this.currToken[0]===")"&&D--,_.value+=this.parseParenthesisToken(this.currToken),this.position++;D&&this.error("Expected closing parenthesis.")}},j.prototype.pseudo=function(){for(var _=this,S="",W=this.currToken;this.currToken&&this.currToken[0]===":";)S+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var z=void 0;this.splitWord(!1,function(D,X){S+=D,z=new x.default({value:S,source:{start:{line:W[2],column:W[3]},end:{line:_.currToken[4],column:_.currToken[5]}},sourceIndex:W[4]}),_.newNode(z),X>1&&_.nextToken&&_.nextToken[0]==="("&&_.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},j.prototype.space=function(){var _=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(_[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(_[1]),this.position++):this.combinator()},j.prototype.string=function(){var _=this.currToken;this.newNode(new T.default({value:this.currToken[1],source:{start:{line:_[2],column:_[3]},end:{line:_[4],column:_[5]}},sourceIndex:_[6]})),this.position++},j.prototype.universal=function(_){var S=this.nextToken;if(S&&S[1]==="|")return this.position++,this.namespace();this.newNode(new R.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),_),this.position++},j.prototype.splitWord=function(_,S){for(var W=this,z=this.nextToken,D=this.currToken[1];z&&z[0]==="word";){this.position++;var X=this.currToken[1];if(D+=X,X.lastIndexOf("\\")===X.length-1){var oe=this.nextToken;oe&&oe[0]==="space"&&(D+=this.parseSpace(oe[1]," "),this.position++)}z=this.nextToken}var ie=(0,u.default)(D,"."),Fe=(0,u.default)(D,"#"),Vt=(0,u.default)(D,"#{");Vt.length&&(Fe=Fe.filter(function(ae){return!~Vt.indexOf(ae)}));var we=(0,ne.default)((0,y.default)((0,a.default)([[0],ie,Fe])));we.forEach(function(ae,Se){var Ue=we[Se+1]||D.length,Ve=D.slice(ae,Ue);if(Se===0&&S)return S.call(W,Ve,we.length);var Ge=void 0;~ie.indexOf(ae)?Ge=new d.default({value:Ve.slice(1),source:{start:{line:W.currToken[2],column:W.currToken[3]+ae},end:{line:W.currToken[4],column:W.currToken[3]+(Ue-1)}},sourceIndex:W.currToken[6]+we[Se]}):~Fe.indexOf(ae)?Ge=new f.default({value:Ve.slice(1),source:{start:{line:W.currToken[2],column:W.currToken[3]+ae},end:{line:W.currToken[4],column:W.currToken[3]+(Ue-1)}},sourceIndex:W.currToken[6]+we[Se]}):Ge=new O.default({value:Ve,source:{start:{line:W.currToken[2],column:W.currToken[3]+ae},end:{line:W.currToken[4],column:W.currToken[3]+(Ue-1)}},sourceIndex:W.currToken[6]+we[Se]}),W.newNode(Ge,_)}),this.position++},j.prototype.word=function(_){var S=this.nextToken;return S&&S[1]==="|"?(this.position++,this.namespace()):this.splitWord(_)},j.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},j.prototype.parse=function(_){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":_&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string();break}},j.prototype.parseNamespace=function(_){if(this.lossy&&typeof _=="string"){var S=_.trim();return S.length?S:!0}return _},j.prototype.parseSpace=function(_,S){return this.lossy?S||"":_},j.prototype.parseValue=function(_){return this.lossy&&_&&typeof _=="string"?_.trim():_},j.prototype.parseParenthesisToken=function(_){return this.lossy?_[0]==="space"?this.parseSpace(_[1]," "):this.parseValue(_[1]):_[1]},j.prototype.newNode=function(_,S){return S&&(_.namespace=this.parseNamespace(S)),this.spaces&&(_.spaces.before=this.spaces,this.spaces=""),this.current.append(_)},i(j,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),j})();e.default=pt,s.exports=e.default}),Vs=E((e,s)=>{"use strict";e.__esModule=!0;var i=(function(){function y(m,n){for(var t=0;t<n.length;t++){var h=n[t];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(m,h.key,h)}}return function(m,n,t){return n&&y(m.prototype,n),t&&y(m,t),m}})(),r=Us(),a=o(r);function o(y){return y&&y.__esModule?y:{default:y}}function u(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}var p=(function(){function y(m){return u(this,y),this.func=m||function(){},this}return y.prototype.process=function(m){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=new a.default({css:m,error:function(h){throw new Error(h)},options:n});return this.res=t,this.func(t),this},i(y,[{key:"result",get:function(){return String(this.res)}}]),y})();e.default=p,s.exports=e.default}),te=E((e,s)=>{"use strict";var i=function(r,a){let o=new r.constructor;for(let u in r){if(!r.hasOwnProperty(u))continue;let p=r[u],y=typeof p;u==="parent"&&y==="object"?a&&(o[u]=a):u==="source"?o[u]=p:p instanceof Array?o[u]=p.map(m=>i(m,o)):u!=="before"&&u!=="after"&&u!=="between"&&u!=="semicolon"&&(y==="object"&&p!==null&&(p=i(p)),o[u]=p)}return o};s.exports=class{constructor(r){r=r||{},this.raws={before:"",after:""};for(let a in r)this[a]=r[a]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(r){r=r||{};let a=i(this);for(let o in r)a[o]=r[o];return a}cloneBefore(r){r=r||{};let a=this.clone(r);return this.parent.insertBefore(this,a),a}cloneAfter(r){r=r||{};let a=this.clone(r);return this.parent.insertAfter(this,a),a}replaceWith(){let r=Array.prototype.slice.call(arguments);if(this.parent){for(let a of r)this.parent.insertBefore(this,a);this.remove()}return this}moveTo(r){return this.cleanRaws(this.root()===r.root()),this.remove(),r.append(this),this}moveBefore(r){return this.cleanRaws(this.root()===r.root()),this.remove(),r.parent.insertBefore(r,this),this}moveAfter(r){return this.cleanRaws(this.root()===r.root()),this.remove(),r.parent.insertAfter(r,this),this}next(){let r=this.parent.index(this);return this.parent.nodes[r+1]}prev(){let r=this.parent.index(this);return this.parent.nodes[r-1]}toJSON(){let r={};for(let a in this){if(!this.hasOwnProperty(a)||a==="parent")continue;let o=this[a];o instanceof Array?r[a]=o.map(u=>typeof u=="object"&&u.toJSON?u.toJSON():u):typeof o=="object"&&o.toJSON?r[a]=o.toJSON():r[a]=o}return r}root(){let r=this;for(;r.parent;)r=r.parent;return r}cleanRaws(r){delete this.raws.before,delete this.raws.after,r||delete this.raws.between}positionInside(r){let a=this.toString(),o=this.source.start.column,u=this.source.start.line;for(let p=0;p<r;p++)a[p]===`
|
|
29
|
+
`?(o=1,u+=1):o+=1;return{line:u,column:o}}positionBy(r){let a=this.source.start;if(Object(r).index)a=this.positionInside(r.index);else if(Object(r).word){let o=this.toString().indexOf(r.word);o!==-1&&(a=this.positionInside(o))}return a}}}),Z=E((e,s)=>{"use strict";var i=te(),r=class extends i{constructor(a){super(a),this.nodes||(this.nodes=[])}push(a){return a.parent=this,this.nodes.push(a),this}each(a){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let o=this.lastEach,u,p;if(this.indexes[o]=0,!!this.nodes){for(;this.indexes[o]<this.nodes.length&&(u=this.indexes[o],p=a(this.nodes[u],u),p!==!1);)this.indexes[o]+=1;return delete this.indexes[o],p}}walk(a){return this.each((o,u)=>{let p=a(o,u);return p!==!1&&o.walk&&(p=o.walk(a)),p})}walkType(a,o){if(!a||!o)throw new Error("Parameters {type} and {callback} are required.");let u=typeof a=="function";return this.walk((p,y)=>{if(u&&p instanceof a||!u&&p.type===a)return o.call(this,p,y)})}append(a){return a.parent=this,this.nodes.push(a),this}prepend(a){return a.parent=this,this.nodes.unshift(a),this}cleanRaws(a){if(super.cleanRaws(a),this.nodes)for(let o of this.nodes)o.cleanRaws(a)}insertAfter(a,o){let u=this.index(a),p;this.nodes.splice(u+1,0,o);for(let y in this.indexes)p=this.indexes[y],u<=p&&(this.indexes[y]=p+this.nodes.length);return this}insertBefore(a,o){let u=this.index(a),p;this.nodes.splice(u,0,o);for(let y in this.indexes)p=this.indexes[y],u<=p&&(this.indexes[y]=p+this.nodes.length);return this}removeChild(a){a=this.index(a),this.nodes[a].parent=void 0,this.nodes.splice(a,1);let o;for(let u in this.indexes)o=this.indexes[u],o>=a&&(this.indexes[u]=o-1);return this}removeAll(){for(let a of this.nodes)a.parent=void 0;return this.nodes=[],this}every(a){return this.nodes.every(a)}some(a){return this.nodes.some(a)}index(a){return typeof a=="number"?a:this.nodes.indexOf(a)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let a=this.nodes.map(String).join("");return this.value&&(a=this.value+a),this.raws.before&&(a=this.raws.before+a),this.raws.after&&(a+=this.raws.after),a}};r.registerWalker=a=>{let o="walk"+a.name;o.lastIndexOf("s")!==o.length-1&&(o+="s"),!r.prototype[o]&&(r.prototype[o]=function(u){return this.walkType(a,u)})},s.exports=r}),Gs=E((e,s)=>{"use strict";var i=Z();s.exports=class extends i{constructor(r){super(r),this.type="root"}}}),Hs=E((e,s)=>{"use strict";var i=Z();s.exports=class extends i{constructor(r){super(r),this.type="value",this.unbalanced=0}}}),Js=E((e,s)=>{"use strict";var i=Z(),r=class extends i{constructor(a){super(a),this.type="atword"}toString(){let a=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};i.registerWalker(r),s.exports=r}),Qs=E((e,s)=>{"use strict";var i=Z(),r=te(),a=class extends r{constructor(o){super(o),this.type="colon"}};i.registerWalker(a),s.exports=a}),Zs=E((e,s)=>{"use strict";var i=Z(),r=te(),a=class extends r{constructor(o){super(o),this.type="comma"}};i.registerWalker(a),s.exports=a}),Ks=E((e,s)=>{"use strict";var i=Z(),r=te(),a=class extends r{constructor(o){super(o),this.type="comment",this.inline=Object(o).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};i.registerWalker(a),s.exports=a}),Ys=E((e,s)=>{"use strict";var i=Z(),r=class extends i{constructor(a){super(a),this.type="func",this.unbalanced=-1}};i.registerWalker(r),s.exports=r}),Xs=E((e,s)=>{"use strict";var i=Z(),r=te(),a=class extends r{constructor(o){super(o),this.type="number",this.unit=Object(o).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};i.registerWalker(a),s.exports=a}),en=E((e,s)=>{"use strict";var i=Z(),r=te(),a=class extends r{constructor(o){super(o),this.type="operator"}};i.registerWalker(a),s.exports=a}),tn=E((e,s)=>{"use strict";var i=Z(),r=te(),a=class extends r{constructor(o){super(o),this.type="paren",this.parenType=""}};i.registerWalker(a),s.exports=a}),rn=E((e,s)=>{"use strict";var i=Z(),r=te(),a=class extends r{constructor(o){super(o),this.type="string"}toString(){let o=this.quoted?this.raws.quote:"";return[this.raws.before,o,this.value+"",o,this.raws.after].join("")}};i.registerWalker(a),s.exports=a}),sn=E((e,s)=>{"use strict";var i=Z(),r=te(),a=class extends r{constructor(o){super(o),this.type="word"}};i.registerWalker(a),s.exports=a}),nn=E((e,s)=>{"use strict";var i=Z(),r=te(),a=class extends r{constructor(o){super(o),this.type="unicode-range"}};i.registerWalker(a),s.exports=a}),on=E((e,s)=>{"use strict";var i=class extends Error{constructor(r){super(r),this.name=this.constructor.name,this.message=r||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(r).stack}};s.exports=i}),an=E((e,s)=>{"use strict";var i=/[ \n\t\r\{\(\)'"\\;,/]/g,r=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,a=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,o=/^[a-z0-9]/i,u=/^[a-f0-9?\-]/i,p=on();s.exports=function(y,m){m=m||{};let n=[],t=y.valueOf(),h=t.length,c=-1,d=1,l=0,g=0,v=null,f,w,O,b,T,k,x,C,A,I,R,M;function N(P){let B=`Unclosed ${P} at line: ${d}, column: ${l-c}, token: ${l}`;throw new p(B)}function $(){let P=`Syntax error at line: ${d}, column: ${l-c}, token: ${l}`;throw new p(P)}for(;l<h;){switch(f=t.charCodeAt(l),f===10&&(c=l,d+=1),f){case 10:case 32:case 9:case 13:case 12:w=l;do w+=1,f=t.charCodeAt(w),f===10&&(c=w,d+=1);while(f===32||f===10||f===9||f===13||f===12);n.push(["space",t.slice(l,w),d,l-c,d,w-c,l]),l=w-1;break;case 58:w=l+1,n.push(["colon",t.slice(l,w),d,l-c,d,w-c,l]),l=w-1;break;case 44:w=l+1,n.push(["comma",t.slice(l,w),d,l-c,d,w-c,l]),l=w-1;break;case 123:n.push(["{","{",d,l-c,d,w-c,l]);break;case 125:n.push(["}","}",d,l-c,d,w-c,l]);break;case 40:g++,v=!v&&g===1&&n.length>0&&n[n.length-1][0]==="word"&&n[n.length-1][1]==="url",n.push(["(","(",d,l-c,d,w-c,l]);break;case 41:g--,v=v&&g>0,n.push([")",")",d,l-c,d,w-c,l]);break;case 39:case 34:O=f===39?"'":'"',w=l;do for(I=!1,w=t.indexOf(O,w+1),w===-1&&N("quote",O),R=w;t.charCodeAt(R-1)===92;)R-=1,I=!I;while(I);n.push(["string",t.slice(l,w+1),d,l-c,d,w-c,l]),l=w;break;case 64:i.lastIndex=l+1,i.test(t),i.lastIndex===0?w=t.length-1:w=i.lastIndex-2,n.push(["atword",t.slice(l,w+1),d,l-c,d,w-c,l]),l=w;break;case 92:w=l,f=t.charCodeAt(w+1),x&&f!==47&&f!==32&&f!==10&&f!==9&&f!==13&&f!==12&&(w+=1),n.push(["word",t.slice(l,w+1),d,l-c,d,w-c,l]),l=w;break;case 43:case 45:case 42:w=l+1,M=t.slice(l+1,w+1);let P=t.slice(l-1,l);if(f===45&&M.charCodeAt(0)===45){w++,n.push(["word",t.slice(l,w),d,l-c,d,w-c,l]),l=w-1;break}n.push(["operator",t.slice(l,w),d,l-c,d,w-c,l]),l=w-1;break;default:if(f===47&&(t.charCodeAt(l+1)===42||m.loose&&!v&&t.charCodeAt(l+1)===47)){if(t.charCodeAt(l+1)===42)w=t.indexOf("*/",l+2)+1,w===0&&N("comment","*/");else{let B=t.indexOf(`
|
|
30
|
+
`,l+2);w=B!==-1?B-1:h}k=t.slice(l,w+1),b=k.split(`
|
|
31
|
+
`),T=b.length-1,T>0?(C=d+T,A=w-b[T].length):(C=d,A=c),n.push(["comment",k,d,l-c,C,w-A,l]),c=A,d=C,l=w}else if(f===35&&!o.test(t.slice(l+1,l+2)))w=l+1,n.push(["#",t.slice(l,w),d,l-c,d,w-c,l]),l=w-1;else if((f===117||f===85)&&t.charCodeAt(l+1)===43){w=l+2;do w+=1,f=t.charCodeAt(w);while(w<h&&u.test(t.slice(w,w+1)));n.push(["unicoderange",t.slice(l,w),d,l-c,d,w-c,l]),l=w-1}else if(f===47)w=l+1,n.push(["operator",t.slice(l,w),d,l-c,d,w-c,l]),l=w-1;else{let B=r;if(f>=48&&f<=57&&(B=a),B.lastIndex=l+1,B.test(t),B.lastIndex===0?w=t.length-1:w=B.lastIndex-2,B===a||f===46){let ne=t.charCodeAt(w),re=t.charCodeAt(w+1),se=t.charCodeAt(w+2);(ne===101||ne===69)&&(re===45||re===43)&&se>=48&&se<=57&&(a.lastIndex=w+2,a.test(t),a.lastIndex===0?w=t.length-1:w=a.lastIndex-2)}n.push(["word",t.slice(l,w+1),d,l-c,d,w-c,l]),l=w}break}l++}return n}}),un=E((e,s)=>{"use strict";var i=class extends Error{constructor(r){super(r),this.name=this.constructor.name,this.message=r||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(r).stack}};s.exports=i}),ln=E((e,s)=>{"use strict";var i=Gs(),r=Hs(),a=Js(),o=Qs(),u=Zs(),p=Ks(),y=Ys(),m=Xs(),n=en(),t=tn(),h=rn(),c=sn(),d=nn(),l=an(),g=dr(),v=mr(),f=yr(),w=un();function O(b){return b.sort((T,k)=>T-k)}s.exports=class{constructor(b,T){let k={loose:!1};this.cache=[],this.input=b,this.options=Object.assign({},k,T),this.position=0,this.unbalanced=0,this.root=new i;let x=new r;this.root.append(x),this.current=x,this.tokens=l(b,this.options)}parse(){return this.loop()}colon(){let b=this.currToken;this.newNode(new o({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++}comma(){let b=this.currToken;this.newNode(new u({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++}comment(){let b=!1,T=this.currToken[1].replace(/\/\*|\*\//g,""),k;this.options.loose&&T.startsWith("//")&&(T=T.substring(2),b=!0),k=new p({value:T,inline:b,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(k),this.position++}error(b,T){throw new w(b+` at line: ${T[2]}, column ${T[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let b=this.currToken[1],T;if(b==="+"||b==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return T=new n({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(T)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let b=1,T=this.position+1,k=this.currToken,x;for(;T<this.tokens.length&&b;){let C=this.tokens[T];C[0]==="("&&b++,C[0]===")"&&b--,T++}if(b&&this.error("Expected closing parenthesis",k),x=this.current.last,x&&x.type==="func"&&x.unbalanced<0&&(x.unbalanced=0,this.current=x),this.current.unbalanced++,this.newNode(new t({value:k[1],source:{start:{line:k[2],column:k[3]},end:{line:k[4],column:k[5]}},sourceIndex:k[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let C=this.nextToken,A=this.currToken[1],I={line:this.currToken[2],column:this.currToken[3]};for(;C&&C[0]!==")"&&this.current.unbalanced;)this.position++,A+=this.currToken[1],C=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new c({value:A,source:{start:I,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let b=this.currToken;this.newNode(new t({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",b),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let b=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=b[1],this.position++):(this.spaces=b[1],this.position++)}unicodeRange(){let b=this.currToken;this.newNode(new d({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++}splitWord(){let b=this.nextToken,T=this.currToken[1],k=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,x=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,C,A;if(!x.test(T))for(;b&&b[0]==="word";){this.position++;let I=this.currToken[1];T+=I,b=this.nextToken}C=v(T,"@"),A=O(f(g([[0],C]))),A.forEach((I,R)=>{let M=A[R+1]||T.length,N=T.slice(I,M),$;if(~C.indexOf(I))$=new a({value:N.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+(M-1)}},sourceIndex:this.currToken[6]+A[R]});else if(k.test(this.currToken[1])){let P=N.replace(k,"");$=new m({value:N.replace(P,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+(M-1)}},sourceIndex:this.currToken[6]+A[R],unit:P})}else $=new(b&&b[0]==="("?y:c)({value:N,source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+(M-1)}},sourceIndex:this.currToken[6]+A[R]}),$.type==="word"?($.isHex=/^#(.+)/.test(N),$.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(N)):this.cache.push(this.current);this.newNode($)}),this.position++}string(){let b=this.currToken,T=this.currToken[1],k=/^(\"|\')/,x=k.test(T),C="",A;x&&(C=T.match(k)[0],T=T.slice(1,T.length-1)),A=new h({value:T,source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6],quoted:x}),A.raws.quote=C,this.newNode(A),this.position++}word(){return this.splitWord()}newNode(b){return this.spaces&&(b.raws.before+=this.spaces,this.spaces=""),this.current.append(b)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),cn={};tr(cn,{languages:()=>xi,options:()=>Oi,parsers:()=>Zr,printers:()=>oa});var vr=(e,s)=>(i,r,...a)=>i|1&&r==null?void 0:(s.call(r)??r[e]).apply(r,a),pn=String.prototype.replaceAll??function(e,s){return e.global?this.replace(e,s):this.split(e).join(s)},hn=vr("replaceAll",function(){if(typeof this=="string")return pn}),F=hn;function fn(e){return this[e<0?this.length+e:e]}var dn=vr("at",function(){if(Array.isArray(this)||typeof this=="string")return fn}),fe=dn,mn=()=>{},qe=mn,gr="string",wr="array",br="cursor",st="indent",Rt="align",xr="trim",nt="group",ot="fill",it="if-break",kr="indent-if-break",Nt="line-suffix",Tr="line-suffix-boundary",_e="line",Or="label",Lt="break-parent",_r=new Set([br,st,Rt,xr,nt,ot,it,kr,Nt,Tr,_e,Or,Lt]);function yn(e){if(typeof e=="string")return gr;if(Array.isArray(e))return wr;if(!e)return;let{type:s}=e;if(_r.has(s))return s}var Me=yn,vn=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function gn(e){let s=e===null?"null":typeof e;if(s!=="string"&&s!=="object")return`Unexpected doc '${s}',
|
|
32
|
+
Expected it to be 'string' or 'object'.`;if(Me(e))throw new Error("doc is valid.");let i=Object.prototype.toString.call(e);if(i!=="[object Object]")return`Unexpected doc '${i}'.`;let r=vn([..._r].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'.
|
|
33
|
+
Expected it to be ${r}.`}var wn=class extends Error{name="InvalidDocError";constructor(e){super(gn(e)),this.doc=e}},bn=wn;function xn(e,s){if(typeof e=="string")return s(e);let i=new Map;return r(e);function r(o){if(i.has(o))return i.get(o);let u=a(o);return i.set(o,u),u}function a(o){switch(Me(o)){case wr:return s(o.map(r));case ot:return s({...o,parts:o.parts.map(r)});case it:return s({...o,breakContents:r(o.breakContents),flatContents:r(o.flatContents)});case nt:{let{expandedStates:u,contents:p}=o;return u?(u=u.map(r),p=u[0]):p=r(p),s({...o,contents:p,expandedStates:u})}case Rt:case st:case kr:case Or:case Nt:return s({...o,contents:r(o.contents)});case gr:case br:case xr:case Tr:case _e:case Lt:return s(o);default:throw new bn(o)}}}function kn(e){return e.type===_e&&!e.hard?e.soft?"":" ":e.type===it?e.flatContents:e}function Tn(e){return xn(e,kn)}var de=qe,Wt=qe,On=qe,_n=qe;function Q(e){return de(e),{type:st,contents:e}}function Cn(e,s){return _n(e),de(s),{type:Rt,contents:s,n:e}}function Ne(e){return Cn(-1,e)}var zt={type:Lt};function Ke(e){return On(e),{type:ot,parts:e}}function Y(e,s={}){return de(e),Wt(s.expandedStates,!0),{type:nt,id:s.id,contents:e,break:!!s.shouldBreak,expandedStates:s.expandedStates}}function Cr(e,s="",i={}){return de(e),s!==""&&de(s),{type:it,breakContents:e,flatContents:s,groupId:i.groupId}}function ce(e,s){de(e),Wt(s);let i=[];for(let r=0;r<s.length;r++)r!==0&&i.push(e),i.push(s[r]);return i}var V={type:_e},K={type:_e,soft:!0},Sn={type:_e,hard:!0},U=[Sn,zt];function An(e){return de(e),{type:Nt,contents:e}}function En(e){return Array.isArray(e)&&e.length>0}var at=En,Sr=Object.freeze({character:"'",codePoint:39}),Ar=Object.freeze({character:'"',codePoint:34}),jn=Object.freeze({preferred:Sr,alternate:Ar}),In=Object.freeze({preferred:Ar,alternate:Sr});function Pn(e,s){let{preferred:i,alternate:r}=s===!0||s==="'"?jn:In,{length:a}=e,o=0,u=0;for(let p=0;p<a;p++){let y=e.charCodeAt(p);y===i.codePoint?o++:y===r.codePoint&&u++}return(o>u?r:i).character}var Mn=Pn,$n=/\\(["'\\])|(["'])/gu;function Rn(e,s){let i=s==='"'?"'":'"',r=F(0,e,$n,(a,o,u)=>o?o===i?i:a:u===s?"\\"+u:u);return s+r+s}var Nn=Rn;function Ln(e,s){qe(/^(?<quote>["']).*\k<quote>$/su.test(e));let i=e.slice(1,-1),r=s.parser==="json"||s.parser==="jsonc"||s.parser==="json5"&&s.quoteProps==="preserve"&&!s.singleQuote?'"':s.__isInHtmlAttribute?"'":Mn(i,s.singleQuote);return e.charAt(0)===r?e:Nn(i,r)}var Er=Ln,Wn=class extends Error{name="UnexpectedNodeError";constructor(e,s,i="type"){super(`Unexpected ${s} node ${i}: ${JSON.stringify(e[i])}.`),this.node=e}},zn=Wn,jr=Symbol.for("PRETTIER_IS_FRONT_MATTER");function Bn(e){return!!e?.[jr]}var vt=Bn,Ae=3;function qn(e){let s=e.slice(0,Ae);if(s!=="---"&&s!=="+++")return;let i=e.indexOf(`
|
|
34
|
+
`,Ae);if(i===-1)return;let r=e.slice(Ae,i).trim(),a=e.indexOf(`
|
|
35
|
+
${s}`,i),o=r;if(o||(o=s==="+++"?"toml":"yaml"),a===-1&&s==="---"&&o==="yaml"&&(a=e.indexOf(`
|
|
36
|
+
...`,i)),a===-1)return;let u=a+1+Ae,p=e.charAt(u+1);if(!/\s?/u.test(p))return;let y=e.slice(0,u),m;return{language:o,explicitLanguage:r||null,value:e.slice(i+1,a),startDelimiter:s,endDelimiter:y.slice(-Ae),raw:y,start:{line:1,column:0,index:0},end:{index:y.length,get line(){return m??(m=y.split(`
|
|
37
|
+
`)),m.length},get column(){return m??(m=y.split(`
|
|
38
|
+
`)),fe(0,m,-1).length}},[jr]:!0}}function Dn(e){let s=qn(e);return s?{frontMatter:s,get content(){let{raw:i}=s;return F(0,i,/[^\n]/gu," ")+e.slice(i.length)}}:{content:e}}var ut=Dn,Fn=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function Ir(e,s,i){if(e.type==="css-comment"&&i.type==="css-root"&&i.nodes.length>0&&((i.nodes[0]===e||vt(i.nodes[0])&&i.nodes[1]===e)&&(delete s.text,/^\*\s*@(?:format|prettier)\s*$/u.test(e.text))||i.type==="css-root"&&fe(0,i.nodes,-1)===e))return null;if(e.type==="value-root"&&delete s.text,(e.type==="media-query"||e.type==="media-query-list"||e.type==="media-feature-expression")&&delete s.value,e.type==="css-rule"&&delete s.params,(e.type==="media-feature"||e.type==="media-keyword"||e.type==="media-type"||e.type==="media-unknown"||e.type==="media-url"||e.type==="media-value"||e.type==="selector-attribute"||e.type==="selector-string"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="value-string")&&e.value&&(s.value=Un(e.value)),e.type==="selector-combinator"&&(s.value=F(0,s.value,/\s+/gu," ")),e.type==="media-feature"&&(s.value=F(0,s.value," ","")),(e.type==="value-word"&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||e.type==="media-feature"||e.type==="selector-root-invalid"||e.type==="selector-pseudo")&&(s.value=s.value.toLowerCase()),e.type==="css-decl"&&(s.prop=e.prop.toLowerCase()),(e.type==="css-atrule"||e.type==="css-import")&&(s.name=e.name.toLowerCase()),e.type==="value-number"&&(s.unit=e.unit.toLowerCase()),e.type==="value-unknown"&&(s.value=F(0,s.value,/;$/gu,"")),e.type==="selector-attribute"&&(s.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(s.namespace=e.namespace.trim()||!0),e.value)){let{value:r}=s;/\s[a-zA-Z]$/u.test(r)&&(s.__prettier_attribute_selector_flag=fe(0,r,-1),r=r.slice(0,-1)),r=r.trim(),r=r.replace(/^(?<quote>["'])(?<value>.*?)\k<quote>$/u,"$<value>"),s.value=r,delete s.quoted}if((e.type==="media-value"||e.type==="media-type"||e.type==="value-number"||e.type==="selector-root-invalid"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="selector-tag")&&e.value&&(s.value=F(0,s.value,/([\d+.e-]+)([a-z]*)/giu,(r,a,o)=>{let u=Number(a);return Number.isNaN(u)?r:u+o.toLowerCase()})),e.type==="selector-tag"){let r=s.value.toLowerCase();["from","to"].includes(r)&&(s.value=r)}if(e.type==="css-atrule"&&e.name.toLowerCase()==="supports"&&delete s.value,e.type==="selector-unknown"&&delete s.value,e.type==="value-comma_group"){let r=e.groups.findIndex(a=>a.type==="value-number"&&a.unit==="...");r!==-1&&(s.groups[r].unit="",s.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(e.type==="value-comma_group"&&e.groups.some(r=>r.type==="value-atword"&&(r.value.endsWith("[")||r.value.endsWith("]"))||r.type==="value-word"&&(r.value.startsWith("]")||r.value.startsWith("["))))return{type:"value-atword",value:e.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}Ir.ignoredProperties=Fn;function Un(e){return F(0,F(0,e,"'",'"'),/\\([^\da-f])/giu,"$1")}var Vn=Ir;function Pr(){}Pr.getVisitorKeys=e=>e.type==="css-root"?["frontMatter"]:[];var Gn=Pr,Ee=null;function $e(e){if(Ee!==null&&typeof Ee.property){let s=Ee;return Ee=$e.prototype=null,s}return Ee=$e.prototype=e??Object.create(null),new $e}var Hn=10;for(let e=0;e<=Hn;e++)$e();function Jn(e){return $e(e)}function Qn(e,s="type"){Jn(e);function i(r){let a=r[s],o=e[a];if(!Array.isArray(o))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:r});return o}return i}var Zn=Qn,L=[[],["nodes"],["group"]],Kn={"css-root":["frontMatter","nodes"],"css-comment":L[0],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":L[1],"media-query":L[1],"media-type":L[0],"media-feature-expression":L[1],"media-feature":L[0],"media-colon":L[0],"media-value":L[0],"media-keyword":L[0],"media-url":L[0],"media-unknown":L[0],"selector-root":L[1],"selector-selector":L[1],"selector-comment":L[0],"selector-string":L[0],"selector-tag":L[0],"selector-id":L[0],"selector-class":L[0],"selector-attribute":L[0],"selector-combinator":L[1],"selector-universal":L[0],"selector-pseudo":L[1],"selector-nesting":L[0],"selector-unknown":L[0],"value-value":L[2],"value-root":L[2],"value-comment":L[0],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":L[2],"value-paren":L[0],"value-number":L[0],"value-operator":L[0],"value-word":L[0],"value-colon":L[0],"value-comma":L[0],"value-string":L[0],"value-atword":L[0],"value-unicode-range":L[0],"value-unknown":L[0]},Yn=Zn(Kn),Xn=Yn;function eo(e,s){let i=0;for(let r=0;r<e.line-1;++r)i=s.indexOf(`
|
|
39
|
+
`,i)+1;return i+e.column}var Mr=eo;function lt(e){return(s,i,r)=>{let a=!!r?.backwards;if(i===!1)return!1;let{length:o}=s,u=i;for(;u>=0&&u<o;){let p=s.charAt(u);if(e instanceof RegExp){if(!e.test(p))return u}else if(!e.includes(p))return u;a?u--:u++}return u===-1||u===o?u:!1}}var ia=lt(/\s/u),$r=lt(" "),to=lt(",; "),Rr=lt(/[^\n\r]/u);function Nr(e,s){let{value:i}=e;return i==="-"||i==="--"||i.charAt(0)!=="-"?s:s-(i.charAt(1)==="-"?2:1)}function Lr(e,s){if(typeof e.source?.start?.offset=="number")return e.source.start.offset;if(typeof e.sourceIndex=="number")return e.type==="value-word"?Nr(e,e.sourceIndex):e.sourceIndex;if(e.source?.start)return Mr(e.source.start,s);throw Object.assign(new Error("Can not locate node."),{node:e})}function Bt(e,s){if(e.type==="css-comment"&&e.inline)return Rr(s,e.source.startOffset);if(typeof e.source?.end?.offset=="number")return e.source.end.offset;if(e.source){if(e.source.end){let i=Mr(e.source.end,s);return e.type==="value-word"?Nr(e,i):i}if(at(e.nodes))return Bt(fe(0,e.nodes,-1),s)}return null}function Wr(e,s){e.source&&(e.source.startOffset=Lr(e,s),e.source.endOffset=Bt(e,s));for(let i in e){let r=e[i];i==="source"||!r||typeof r!="object"||(r.type==="value-root"||r.type==="value-unknown"?zr(r,ro(e),r.text||r.value):Wr(r,s))}}function zr(e,s,i){e.source&&(e.source.startOffset=Lr(e,i)+s,e.source.endOffset=Bt(e,i)+s);for(let r in e){let a=e[r];r==="source"||!a||typeof a!="object"||zr(a,s,i)}}function ro(e){let s=e.source.startOffset;return typeof e.prop=="string"&&(s+=e.prop.length),e.type==="css-atrule"&&typeof e.name=="string"&&(s+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/u)[0].length),e.type!=="css-atrule"&&typeof e.raws?.between=="string"&&(s+=e.raws.between.length),s}function so(e){let s="initial",i="initial",r,a=!1,o=[];for(let u=0;u<e.length;u++){let p=e[u];switch(s){case"initial":if(p==="'"){s="single-quotes";continue}if(p==='"'){s="double-quotes";continue}if((p==="u"||p==="U")&&e.slice(u,u+4).toLowerCase()==="url("){s="url",u+=3;continue}if(p==="*"&&e[u-1]==="/"){s="comment-block";continue}if(p==="/"&&e[u-1]==="/"){s="comment-inline",r=u-1;continue}continue;case"single-quotes":if(p==="'"&&e[u-1]!=="\\"&&(s=i,i="initial"),p===`
|
|
40
|
+
`||p==="\r")return e;continue;case"double-quotes":if(p==='"'&&e[u-1]!=="\\"&&(s=i,i="initial"),p===`
|
|
41
|
+
`||p==="\r")return e;continue;case"url":if(p===")"&&(s="initial"),p===`
|
|
42
|
+
`||p==="\r")return e;if(p==="'"){s="single-quotes",i="url";continue}if(p==='"'){s="double-quotes",i="url";continue}continue;case"comment-block":p==="/"&&e[u-1]==="*"&&(s="initial");continue;case"comment-inline":(p==='"'||p==="'"||p==="*")&&(a=!0),(p===`
|
|
43
|
+
`||p==="\r")&&(a&&o.push([r,u]),s="initial",a=!1);continue}}for(let[u,p]of o)e=e.slice(0,u)+F(0,e.slice(u,p),/["'*]/gu," ")+e.slice(p);return e}var G=e=>e.source?.startOffset,H=e=>e.source?.endOffset,no=/\*\/$/,oo=/^\/\*\*?/,Br=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,io=/(^|\s+)\/\/([^\n\r]*)/g,Ht=/^(\r?\n)+/,ao=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Jt=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,uo=/(\r?\n|^) *\* ?/g,qr=[];function lo(e){let s=e.match(Br);return s?s[0].trimStart():""}function co(e){let s=e.match(Br)?.[0];return s==null?e:e.slice(s.length)}function po(e){e=F(0,e.replace(oo,"").replace(no,""),uo,"$1");let s="";for(;s!==e;)s=e,e=F(0,e,ao,`
|
|
44
|
+
$1 $2
|
|
45
|
+
`);e=e.replace(Ht,"").trimEnd();let i=Object.create(null),r=F(0,e,Jt,"").replace(Ht,"").trimEnd(),a;for(;a=Jt.exec(e);){let o=F(0,a[2],io,"");if(typeof i[a[1]]=="string"||Array.isArray(i[a[1]])){let u=i[a[1]];i[a[1]]=[...qr,...Array.isArray(u)?u:[u],o]}else i[a[1]]=o}return{comments:r,pragmas:i}}function ho({comments:e="",pragmas:s={}}){let i=Object.keys(s),r=i.flatMap(o=>Qt(o,s[o])).map(o=>` * ${o}
|
|
46
|
+
`).join("");if(!e){if(i.length===0)return"";if(i.length===1&&!Array.isArray(s[i[0]])){let o=s[i[0]];return`/** ${Qt(i[0],o)[0]} */`}}let a=e.split(`
|
|
47
|
+
`).map(o=>` * ${o}`).join(`
|
|
48
|
+
`)+`
|
|
49
|
+
`;return`/**
|
|
50
|
+
`+(e?a:"")+(e&&i.length>0?` *
|
|
51
|
+
`:"")+r+" */"}function Qt(e,s){return[...qr,...Array.isArray(s)?s:[s]].map(i=>`@${e} ${i}`.trim())}var fo=["noformat","noprettier"],mo=["format","prettier"],yo="format";function vo(e){if(!e.startsWith("#!"))return"";let s=e.indexOf(`
|
|
52
|
+
`);return s===-1?e:e.slice(0,s)}var go=vo;function qt(e){let s=go(e);s&&(e=e.slice(s.length+1));let i=lo(e),{pragmas:r,comments:a}=po(i);return{shebang:s,text:e,pragmas:r,comments:a}}function wo(e){let{pragmas:s}=qt(e);return mo.some(i=>Object.prototype.hasOwnProperty.call(s,i))}function bo(e){let{pragmas:s}=qt(e);return fo.some(i=>Object.prototype.hasOwnProperty.call(s,i))}function xo(e){let{shebang:s,text:i,pragmas:r,comments:a}=qt(e),o=co(i),u=ho({pragmas:{[yo]:"",...r},comments:a.trimStart()});return(s?`${s}
|
|
53
|
+
`:"")+u+(o.startsWith(`
|
|
54
|
+
`)?`
|
|
55
|
+
`:`
|
|
56
|
+
|
|
57
|
+
`)+o}var ko=e=>wo(ut(e).content),To=e=>bo(ut(e).content),Oo=e=>{let{frontMatter:s,content:i}=ut(e);return(s?s.raw+`
|
|
58
|
+
|
|
59
|
+
`:"")+xo(i)},_o=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Co(e){return e.findAncestor(s=>s.type==="css-decl")?.prop?.toLowerCase()}var So=new Set(["initial","inherit","unset","revert"]);function Ao(e){return So.has(e.toLowerCase())}function Eo(e,s){return e.findAncestor(i=>i.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(s.toLowerCase())}function je(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function Ye(e,s){return e.findAncestor(i=>i.type==="value-func")?.value?.toLowerCase()===s}function jo(e){return e.hasAncestor(s=>{if(s.type!=="css-rule")return!1;let i=s.raws?.selector;return i&&(i.startsWith(":import")||i.startsWith(":export"))})}function Re(e,s){let i=Array.isArray(s)?s:[s],r=e.findAncestor(a=>a.type==="css-atrule");return r&&i.includes(r.name.toLowerCase())}function Io(e){let{node:s}=e;return s.groups[0]?.value==="url"&&s.groups.length===2&&e.findAncestor(i=>i.type==="css-atrule")?.name==="import"}function Po(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function Mo(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function $o(e){let{selector:s}=e;return s?typeof s=="string"&&/^@.+:.*$/u.test(s)||s.value&&/^@.+:.*$/u.test(s.value):!1}function Ro(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function No(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function Lo(e){return e.type==="value-word"&&e.value==="in"}function gt(e){return e.type==="value-operator"&&e.value==="*"}function xe(e){return e?.type==="value-operator"&&e.value==="/"}function le(e){return e.type==="value-operator"&&e.value==="+"}function ke(e){return e.type==="value-operator"&&e.value==="-"}function Wo(e){return e.type==="value-operator"&&e.value==="%"}function ht(e){return gt(e)||xe(e)||le(e)||ke(e)||Wo(e)}function zo(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function Bo(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function wt(e,s){return s.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function Zt(e){return e.raws?.params&&/^\(\s*\)$/u.test(e.raws.params)}function ft(e){return e.name.startsWith("prettier-placeholder")}function qo(e){return e.prop.startsWith("@prettier-placeholder")}function Do(e,s){return e.value==="$$"&&e.type==="value-func"&&s?.type==="value-word"&&!s.raws.before}function Fo(e){return e.value?.type==="value-root"&&e.value.group?.type==="value-value"&&e.prop.toLowerCase()==="composes"}function Uo(e){return e.value?.group?.group?.type==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function ue(e){return e?.raws?.before===""}function Dt(e){return e.type==="value-comma_group"&&e.groups?.[1]?.type==="value-colon"}function dt(e){return e.type==="value-paren_group"&&e.groups?.[0]&&Dt(e.groups[0])}function Dr(e,s){if(s.parser!=="scss")return!1;let{node:i}=e;if(i.groups.length===0)return!1;let r=e.grandparent;return!dt(i)&&!(r&&dt(r))?!1:!!(e.findAncestor(a=>a.type==="css-decl")?.prop?.startsWith("$")||dt(r)||r.type==="value-func")}function He(e){return e.type==="value-comment"&&e.inline}function mt(e){return e.type==="value-word"&&e.value==="#"}function Kt(e){return e.type==="value-word"&&e.value==="{"}function yt(e){return e.type==="value-word"&&e.value==="}"}function Je(e){return["value-word","value-atword"].includes(e.type)}function bt(e){return e?.type==="value-colon"}function Vo(e,s){if(!Dt(s))return!1;let{groups:i}=s,r=i.indexOf(e);return r===-1?!1:bt(i[r+1])}function Go(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function Ho(e){return e.type!=="value-func"?!1:_o.has(e.value.toLowerCase())}function Ie(e){return/\/\//u.test(e.split(/[\n\r]/u).pop())}function Qe(e){return e?.type==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function Jo(e,s){if(e.open?.value!=="("||e.close?.value!==")"||e.groups.some(i=>i.type!=="value-comma_group"))return!1;if(s.type==="value-comma_group"){let i=s.groups.indexOf(e)-1,r=s.groups[i];if(r?.type==="value-word"&&r.value==="with")return!0}return!1}function Ze(e){return e.type==="value-paren_group"&&e.open?.value==="("&&e.close?.value===")"}function Qo(e,s,i){let{node:r}=e,a=e.parent,o=e.grandparent,u=Co(e),p=u&&a.type==="value-value"&&(u==="grid"||u.startsWith("grid-template")),y=e.findAncestor(g=>g.type==="css-atrule"),m=y&&wt(y,s),n=r.groups.some(g=>He(g)),t=e.map(i,"groups"),h=[""],c=Ye(e,"url"),d=!1,l=!1;for(let g=0;g<r.groups.length;++g){let v=r.groups[g-1],f=r.groups[g],w=r.groups[g+1],O=r.groups[g+2];if(He(f)&&!w){h.push([h.pop(),An([" ",t[g]])]);continue}if(h.push([h.pop(),t[g]]),c){(w&&le(w)||le(f))&&h.push([h.pop()," "]);continue}if(Re(e,"forward")&&f.type==="value-word"&&f.value&&v!==void 0&&v.type==="value-word"&&v.value==="as"&&w.type==="value-operator"&&w.value==="*"||Re(e,"utility")&&f.type==="value-word"&&w&&w.type==="value-operator"&&w.value==="*"||!w||f.type==="value-word"&&Qe(w)&&H(f)===G(w))continue;if(f.type==="value-string"&&f.quoted){let A=f.value.lastIndexOf("#{"),I=f.value.lastIndexOf("}");A!==-1&&I!==-1?d=A>I:A!==-1?d=!0:I!==-1&&(d=!1)}if(d||bt(f)||bt(w)||f.type==="value-atword"&&(f.value===""||f.value.endsWith("["))||w.type==="value-word"&&w.value.startsWith("]")||f.value==="~"||s.parser==="less"&&(w?.type==="value-word"&&w.value==="["||f.type==="value-word"&&f.value==="["&&(w?.type==="value-atword"||w?.type==="value-word")||f.type==="value-word"&&f.value==="]["&&w?.type==="value-word")||f.type!=="value-string"&&f.value&&f.value.includes("\\")&&w&&w.type!=="value-comment"||v?.value&&v.value.indexOf("\\")===v.value.length-1&&f.type==="value-operator"&&f.value==="/"||f.value==="\\"||Do(f,w)||mt(f)||Kt(f)||yt(w)||Kt(w)&&ue(w)||yt(f)&&ue(w)||f.value==="--"&&mt(w))continue;let b=ht(f),T=ht(w);if((b&&mt(w)||T&&yt(f))&&ue(w)||!v&&xe(f)||Ye(e,"calc")&&(le(f)||le(w)||ke(f)||ke(w))&&ue(w))continue;let k=(le(f)||ke(f))&&g===0&&(w.type==="value-number"||w.isHex)&&o&&Ho(o)&&!ue(w);if(s.parser==="scss"&&b&&f.value==="-"&&w.type==="value-func"&&H(f)!==G(w)){h.push([h.pop()," "]);continue}let x=O?.type==="value-func"||O&&Je(O)||f.type==="value-func"||Je(f),C=w.type==="value-func"||Je(w)||v?.type==="value-func"||v&&Je(v);if(!(!(gt(w)||gt(f))&&!Ye(e,"calc")&&!k&&(xe(w)&&!x||xe(f)&&!C||le(w)&&!x||le(f)&&!C||ke(w)||ke(f))&&(ue(w)||b&&(!v||v&&ht(v))))&&!((s.parser==="scss"||s.parser==="less")&&b&&f.value==="-"&&Ze(w)&&H(f)===G(w.open)&&w.open.value==="(")){if(He(f)){if(a.type==="value-paren_group"){h.push(Ne(U),"");continue}h.push(U,"");continue}if(m&&(zo(w)||Bo(w)||No(w)||Lo(f)||Ro(f))){h.push([h.pop()," "]);continue}if(y&&y.name.toLowerCase()==="namespace"){h.push([h.pop()," "]);continue}if(p){f.source&&w.source&&f.source.start.line!==w.source.start.line?(h.push(U,""),l=!0):h.push([h.pop()," "]);continue}if(!(u&&(u==="font"||u.startsWith("--"))&&(xe(w)&&ue(w)&&Yt(f)||xe(f)&&ue(f)&&Yt(v)))){if(T){h.push([h.pop()," "]);continue}if(w?.value!=="..."&&!(Qe(f)&&Qe(w)&&H(f)===G(w))){if(Qe(f)&&Ze(w)&&H(f)===G(w.open)){h.push(K,"");continue}if(f.value==="with"&&Ze(w)){h=[[Ke(h)," "]];continue}if(!(f.value?.endsWith("#")&&w.value==="{"&&Ze(w.group))&&!(He(w)&&!O)){if(!y&&f.type==="value-comment"&&!f.inline&&r.groups.slice(0,g).every(A=>A.type==="value-comment")){h.push(Ne(V),"");continue}h.push(V,"")}}}}}return n&&h.push([h.pop(),zt]),l&&h.unshift("",U),m?Y(Q(h)):Io(e)?Y(Ke(h)):Y(Q(Ke(h)))}function Yt(e){if(e?.type==="value-number")return!0;if(e?.type!=="value-func")return!1;let s=e.value.toLowerCase();return s==="var"||s==="calc"||s==="min"||s==="max"||s==="clamp"||s.startsWith("--")}var Zo=Qo;function Ko(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var Yo=Ko,xt=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function Fr(e){let s=e.toLowerCase();return xt.has(s)?xt.get(s):e}var Ur=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,Xo=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,ei=/[a-z]+/giu,ti=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,ri=new RegExp(Ur.source+`|(${ti.source})?(${Xo.source})(${ei.source})?`,"giu");function ee(e,s){return F(0,e,Ur,i=>Er(i,s))}function si(e,s){let i=s.singleQuote?"'":'"',r="",a=e.match(/^(?<value>.+?)\s+(?<flag>[a-zA-Z])$/u);return a&&({value:e,flag:r}=a.groups),(e.includes('"')||e.includes("'")?e:i+e+i)+(r?` ${r}`:"")}function be(e){return F(0,e,ri,(s,i,r,a,o)=>!r&&a&&(o??(o=""),o=o.toLowerCase(),!o||o==="n"||xt.has(o))?Vr(a)+(o?Fr(o):""):s)}function Vr(e){return Yo(e).replace(/\.0(?=$|e)/u,"")}function ni(e){return e.trailingComma==="es5"||e.trailingComma==="all"}var Xt=e=>e===`
|
|
60
|
+
`||e==="\r"||e==="\u2028"||e==="\u2029";function oi(e,s,i){let r=!!i?.backwards;if(s===!1)return!1;let a=e.charAt(s);if(r){if(e.charAt(s-1)==="\r"&&a===`
|
|
61
|
+
`)return s-2;if(Xt(a))return s-1}else{if(a==="\r"&&e.charAt(s+1)===`
|
|
62
|
+
`)return s+2;if(Xt(a))return s+1}return s}var Gr=oi;function ii(e,s,i={}){let r=$r(e,i.backwards?s-1:s,i),a=Gr(e,r,i);return r!==a}var Hr=ii;function ai(e,s){if(s===!1)return!1;if(e.charAt(s)==="/"&&e.charAt(s+1)==="*"){for(let i=s+2;i<e.length;++i)if(e.charAt(i)==="*"&&e.charAt(i+1)==="/")return i+2}return s}var ui=ai;function li(e,s){return s===!1?!1:e.charAt(s)==="/"&&e.charAt(s+1)==="/"?Rr(e,s):s}var ci=li;function pi(e,s){let i=null,r=s;for(;r!==i;)i=r,r=to(e,r),r=ui(e,r),r=$r(e,r);return r=ci(e,r),r=Gr(e,r),r!==!1&&Hr(e,r)}var Jr=pi;function hi({node:e,parent:s},i){return!!(e.source&&i.originalText.slice(G(e),G(s.close)).trimEnd().endsWith(","))}function fi(e,s){return Mo(e.grandparent)&&hi(e,s)?",":e.node.type!=="value-comment"&&!(e.node.type==="value-comma_group"&&e.node.groups.every(i=>i.type==="value-comment"))&&ni(s)&&e.callParent(()=>Dr(e,s))?Cr(","):""}function di(e,s,i){let{node:r,parent:a}=e,o=e.map(({node:c})=>typeof c=="string"?c:i(),"groups");if(a&&Po(a)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?i("open"):"",ce(",",o),r.close?i("close"):""];if(!r.open){let c=Qr(e);Wt(o);let d=yi(ce(",",o),2),l=ce(c?U:V,d);return Q(c?[U,l]:Y([mi(e)?K:"",Ke(l)]))}let u=e.map(({node:c,isLast:d,index:l})=>{let g=o[l];Dt(c)&&c.type==="value-comma_group"&&c.groups&&c.groups[0].type!=="value-paren_group"&&c.groups[2]?.type==="value-paren_group"&&Me(g)===nt&&Me(g.contents)===st&&Me(g.contents.contents)===ot&&(g=Y(Ne(g)));let v=[g,d?fi(e,s):","];if(!d&&c.type==="value-comma_group"&&at(c.groups)){let f=fe(0,c.groups,-1);!f.source&&f.close&&(f=f.close),f.source&&Jr(s.originalText,H(f))&&v.push(U)}return v},"groups"),p=Vo(r,a),y=Jo(r,a),m=Dr(e,s),n=y||m&&!p,t=y||p,h=Y([r.open?i("open"):"",Q([K,ce(V,u)]),K,r.close?i("close"):""],{shouldBreak:n});return t?Ne(h):h}function Qr(e){return e.match(s=>s.type==="value-paren_group"&&!s.open&&s.groups.some(i=>i.type==="value-comma_group"),(s,i)=>i==="group"&&s.type==="value-value",(s,i)=>i==="group"&&s.type==="value-root",(s,i)=>i==="value"&&(s.type==="css-decl"&&!s.prop.startsWith("--")||s.type==="css-atrule"&&s.variable))}function mi(e){return e.match(s=>s.type==="value-paren_group"&&!s.open,(s,i)=>i==="group"&&s.type==="value-value",(s,i)=>i==="group"&&s.type==="value-root",(s,i)=>i==="value"&&s.type==="css-decl")}function yi(e,s){let i=[];for(let r=0;r<e.length;r+=s)i.push(e.slice(r,r+s));return i}function vi(e,s,i){let r=[];return e.each(()=>{let{node:a,previous:o}=e;if(o?.type==="css-comment"&&o.text.trim()==="prettier-ignore"?r.push(s.originalText.slice(G(a),H(a))):r.push(i()),e.isLast)return;let{next:u}=e;u.type==="css-comment"&&!Hr(s.originalText,G(u),{backwards:!0})&&!vt(a)||u.type==="css-atrule"&&u.name==="else"&&a.type!=="css-comment"?r.push(" "):(r.push(s.__isHTMLStyleAttribute?V:U),Jr(s.originalText,H(a))&&!vt(a)&&r.push(U))},"nodes"),r}var Pe=vi;function gi(e,s,i){let{node:r}=e;switch(r.type){case"css-root":{let a=Pe(e,s,i),o=r.raws.after.trim();return o.startsWith(";")&&(o=o.slice(1).trim()),[r.frontMatter?[i("frontMatter"),U,r.nodes.length>0?U:""]:"",a,o?` ${o}`:"",r.nodes.length>0?U:""]}case"css-comment":{let a=r.inline||r.raws.inline,o=s.originalText.slice(G(r),H(r));return a?o.trimEnd():o}case"css-rule":return[i("selector"),r.important?" !important":"",r.nodes?[r.selector?.type==="selector-unknown"&&Ie(r.selector.value)?V:r.selector?" ":"","{",r.nodes.length>0?Q([U,Pe(e,s,i)]):"",U,"}",$o(r)?";":""]:";"];case"css-decl":{let a=e.parent,{between:o}=r.raws,u=o.trim(),p=u===":",y=typeof r.value=="string"&&/^ *$/u.test(r.value),m=typeof r.value=="string"?r.value:i("value");return m=Fo(r)?Tn(m):m,!p&&Ie(u)&&!e.call(()=>Qr(e),"value","group","group")&&(m=Q([U,Ne(m)])),[F(0,r.raws.before,/[\s;]/gu,""),a.type==="css-atrule"&&a.variable||jo(e)?r.prop:je(r.prop),u.startsWith("//")?" ":"",u,r.extend||y?"":" ",s.parser==="less"&&r.extend&&r.selector?["extend(",i("selector"),")"]:"",m,r.raws.important?r.raws.important.replace(/\s*!\s*important/iu," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/iu," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/iu," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",Q([K,Pe(e,s,i)]),K,"}"]:qo(r)&&!a.raws.semicolon&&s.originalText[H(r)-1]!==";"?"":s.__isHTMLStyleAttribute&&e.isLast?Cr(";"):";"]}case"css-atrule":{let a=e.parent,o=ft(r)&&!a.raws.semicolon&&s.originalText[H(r)-1]!==";";if(s.parser==="less"){if(r.mixin)return[i("selector"),r.important?" !important":"",o?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:i("params"),o?"":";"];if(r.variable)return["@",r.name,": ",r.value?i("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",Q([r.nodes.length>0?K:"",Pe(e,s,i)]),K,"}"]:"",o?"":";"]}let u=r.name==="import"&&r.params?.type==="value-unknown"&&r.params.value.endsWith(";");return["@",Zt(r)||r.name.endsWith(":")||ft(r)?r.name:je(r.name),r.params?[Zt(r)?"":ft(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(r.raws.afterName)?[U,U]:/^\s*\n/u.test(r.raws.afterName)?U:" ":" ",typeof r.params=="string"?r.params:i("params")]:"",r.selector?Q([" ",i("selector")]):"",r.value?Y([" ",i("value"),wt(r,s)?Uo(r)?" ":V:""]):r.name==="else"?" ":"",r.nodes?[wt(r,s)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Ie(r.selector.value)||!r.selector&&typeof r.params=="string"&&Ie(r.params)?V:" ","{",Q([r.nodes.length>0?K:"",Pe(e,s,i)]),K,"}"]:o||u?"":";"]}case"media-query-list":{let a=[];return e.each(({node:o})=>{o.type==="media-query"&&o.value===""||a.push(i())},"nodes"),Y(Q(ce(V,a)))}case"media-query":return[ce(" ",e.map(i,"nodes")),e.isLast?"":","];case"media-type":return be(ee(r.value,s));case"media-feature-expression":return r.nodes?["(",...e.map(i,"nodes"),")"]:r.value;case"media-feature":return je(ee(F(0,r.value,/ +/gu," "),s));case"media-colon":return[r.value," "];case"media-value":return be(ee(r.value,s));case"media-keyword":return ee(r.value,s);case"media-url":return ee(F(0,F(0,r.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),s);case"media-unknown":return r.value;case"selector-root":return Y([Re(e,"custom-selector")?[e.findAncestor(a=>a.type==="css-atrule").customSelector,V]:"",ce([",",Re(e,["extend","custom-selector","nest"])?V:U],e.map(i,"nodes"))]);case"selector-selector":{let a=r.nodes.length>2;return Y((a?Q:o=>o)(e.map(i,"nodes")))}case"selector-comment":return r.value;case"selector-string":return ee(r.value,s);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",e.previous?.type==="selector-nesting"?r.value:be(Eo(e,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",be(ee(r.value,s))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?si(ee(r.value.trim(),s),s):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let u=e.parent;return[u.type==="selector-selector"&&u.nodes[0]===r?"":V,r.value,e.isLast?"":" "]}let a=r.value.trim().startsWith("(")?V:"",o=be(ee(r.value.trim(),s))||V;return[a,o]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[je(r.value),at(r.nodes)?Y(["(",Q([K,ce([",",V],e.map(i,"nodes"))]),K,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{if(e.findAncestor(u=>u.type==="css-rule")?.isSCSSNesterProperty)return be(ee(je(r.value),s));let a=e.parent;if(a.raws?.selector){let u=G(a),p=u+a.raws.selector.length;return s.originalText.slice(u,p).trim()}let o=e.grandparent;if(a.type==="value-paren_group"&&o?.type==="value-func"&&o.value==="selector"){let u=H(a.open)+1,p=G(a.close),y=s.originalText.slice(u,p).trim();return Ie(y)?[zt,y]:y}return r.value}case"value-value":case"value-root":return i("group");case"value-comment":return s.originalText.slice(G(r),H(r));case"value-comma_group":return Zo(e,s,i);case"value-paren_group":return di(e,s,i);case"value-func":return[r.value,Re(e,"supports")&&Go(r)?" ":"",i("group")];case"value-paren":return r.value;case"value-number":return[Vr(r.value),Fr(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||Ao(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:a}=e;return Y([r.value,typeof a?.value=="string"&&a.value.endsWith("\\")||Ye(e,"url")?"":V])}case"value-string":return Er(r.raws.quote+r.value+r.raws.quote,s);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;default:throw new zn(r,"PostCSS")}}var wi={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:gi,embed:Gn,insertPragma:Oo,massageAstNode:Vn,getVisitorKeys:Xn},bi=wi,xi=[{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}],ki={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Ti={singleQuote:ki.singleQuote},Oi=Ti,Zr={};tr(Zr,{css:()=>ra,less:()=>sa,scss:()=>na});var _i=Te(rt(),1),Ci=Te(bs(),1),Si=Te(Ss(),1);function Ai(e,s){let i=new SyntaxError(e+" ("+s.loc.start.line+":"+s.loc.start.column+")");return Object.assign(i,s)}var Ei=Ai;function ji(e){return e!==null&&typeof e=="object"}var ct=ji,Ii=Te(Es(),1);function De(e,s,i){if(ct(e)){delete e.parent;for(let r in e)De(e[r],s,i),r==="type"&&typeof e[r]=="string"&&!e[r].startsWith(s)&&(!i||!i.test(e[r]))&&(e[r]=s+e[r])}return e}function Kr(e){if(ct(e)){delete e.parent;for(let s in e)Kr(e[s]);!Array.isArray(e)&&e.value&&!e.type&&(e.type="unknown")}return e}var Pi=Ii.default.default;function Mi(e){let s;try{s=Pi(e)}catch{return{type:"selector-unknown",value:e}}return De(Kr(s),"media-")}var $i=Mi,Ri=Te(Vs(),1);function Ni(e){if(/\/[/*]/u.test(F(0,e,/"[^"]+"|'[^']+'/gu,"")))return{type:"selector-unknown",value:e.trim()};let s;try{new Ri.default(i=>{s=i}).process(e)}catch{return{type:"selector-unknown",value:e}}return De(s,"selector-")}var he=Ni,Li=Te(ln(),1),Wi=e=>{for(;e.parent;)e=e.parent;return e},Yr=Wi;function zi(e){return Yr(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()}var Bi=zi;function qi(e){if(at(e)){for(let s=e.length-1;s>0;s--)if(e[s].type==="word"&&e[s].value==="{"&&e[s-1].type==="word"&&e[s-1].value.endsWith("#"))return!0}return!1}var Di=qi;function Fi(e){return e.some(s=>s.type==="string"||s.type==="func"&&!s.value.endsWith("\\"))}var Ui=Fi;function Vi(e,s){return!!(s.parser==="scss"&&e?.type==="word"&&e.value.startsWith("$"))}var Gi=Vi,er=e=>e.type==="paren"&&e.value===")";function Hi(e,s){let{nodes:i}=e,r={open:null,close:null,groups:[],type:"paren_group"},a=[r],o=r,u={groups:[],type:"comma_group"},p=[u];for(let y=0;y<i.length;++y){let m=i[y];if(s.parser==="scss"&&m.type==="number"&&m.unit===".."&&m.value.endsWith(".")&&(m.value=m.value.slice(0,-1),m.unit="..."),m.type==="func"&&m.value==="selector"&&(m.group.groups=[he(Yr(e).text.slice(m.group.open.sourceIndex+1,m.group.close.sourceIndex))]),m.type==="func"&&m.value==="url"){let n=m.group?.groups??[],t=[];for(let h=0;h<n.length;h++){let c=n[h];c.type==="comma_group"?t=[...t,...c.groups]:t.push(c)}(Di(t)||!Ui(t)&&!Gi(t[0],s))&&(m.group.groups=[Bi(m)])}if(m.type==="paren"&&m.value==="(")r={open:m,close:null,groups:[],type:"paren_group"},a.push(r),u={groups:[],type:"comma_group"},p.push(u);else if(er(m)){if(u.groups.length>0&&r.groups.push(u),r.close=m,p.length===1)throw new Error("Unbalanced parenthesis");p.pop(),u=fe(0,p,-1),u.groups.push(r),a.pop(),r=fe(0,a,-1)}else if(m.type==="comma"){if(y===i.length-3&&i[y+1].type==="comment"&&er(i[y+2]))continue;r.groups.push(u),u={groups:[],type:"comma_group"},p[p.length-1]=u}else u.groups.push(m)}return u.groups.length>0&&r.groups.push(u),o}function kt(e){return e.type==="paren_group"&&!e.open&&!e.close&&e.groups.length===1||e.type==="comma_group"&&e.groups.length===1?kt(e.groups[0]):e.type==="paren_group"||e.type==="comma_group"?{...e,groups:e.groups.map(kt)}:e}function Xr(e,s){if(ct(e))for(let i in e)i!=="parent"&&(Xr(e[i],s),i==="nodes"&&(e.group=kt(Hi(e,s)),delete e[i]));return e}function Ji(e,s){if(s.parser==="less"&&e.startsWith("~`"))return{type:"value-unknown",value:e};let i=null;try{i=new Li.default(e,{loose:!0}).parse()}catch{return{type:"value-unknown",value:e}}i.text=e;let r=Xr(i,s);return De(r,"value-",/^selector-/u)}var pe=Ji,Qi=new Set(["import","use","forward"]);function Zi(e){return Qi.has(e)}var Ki=Zi;function Yi(e,s){return s.parser!=="scss"||!e.selector?!1:e.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var Xi=Yi,ea=/(\s*)(!default).*$/u,ta=/(\s*)(!global).*$/u;function es(e,s){if(ct(e)){delete e.parent;for(let o in e)es(e[o],s);if(!e.type)return e;if(e.raws??(e.raws={}),e.type==="css-decl"&&typeof e.prop=="string"&&e.prop.startsWith("--")&&typeof e.value=="string"&&e.value.startsWith("{")){let o;if(e.value.trimEnd().endsWith("}")){let u=s.originalText.slice(0,e.source.start.offset),p="a".repeat(e.prop.length)+s.originalText.slice(e.source.start.offset+e.prop.length,e.source.end.offset),y=F(0,u,/[^\n]/gu," ")+p,m;s.parser==="scss"?m=ss:s.parser==="less"?m=rs:m=ts;let n;try{n=m(y,{...s})}catch{}n?.nodes?.length===1&&n.nodes[0].type==="css-rule"&&(o=n.nodes[0].nodes)}return o?e.value={type:"css-rule",nodes:o}: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 r="";typeof e.value=="string"&&(r=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,e.raws.value=r.trim());let a="";if(typeof e.params=="string"&&(a=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(a=e.raws.afterName+a),e.raws.between&&e.raws.between.trim().length>0&&(a=a+e.raws.between),a=a.trim(),e.raws.params=a),i.trim().length>0)return i.startsWith("@")&&i.endsWith(":")?e:e.mixin?(e.selector=pe(i,s),e):(Xi(e,s)&&(e.isSCSSNesterProperty=!0),e.selector=he(i),e);if(r.trim().length>0){let o=r.match(ea);o&&(r=r.slice(0,o.index),e.scssDefault=!0,o[0].trim()!=="!default"&&(e.raws.scssDefault=o[0]));let u=r.match(ta);if(u&&(r=r.slice(0,u.index),e.scssGlobal=!0,u[0].trim()!=="!global"&&(e.raws.scssGlobal=u[0])),r.startsWith("progid:"))return{type:"value-unknown",value:r};e.value=pe(r,s)}if(s.parser==="less"&&e.type==="css-decl"&&r.startsWith("extend(")&&(e.extend||(e.extend=e.raws.between===":"),e.extend&&!e.selector&&(delete e.value,e.selector=he(r.slice(7,-1)))),e.type==="css-atrule"){if(s.parser==="less"){if(e.mixin){let o=e.raws.identifier+e.name+e.raws.afterName+e.raws.params;return e.selector=he(o),delete e.params,e}if(e.function)return e}if(s.parser==="css"&&e.name==="custom-selector"){let o=e.params.match(/:--\S+\s+/u)[0].trim();return e.customSelector=o,e.selector=he(e.params.slice(o.length).trim()),delete e.params,e}if(s.parser==="less"){if(e.name.includes(":")){e.variable=!0;let o=e.name.split(":");e.name=o[0];let u=o.slice(1).join(":");e.params&&(u+=e.params),e.value=pe(u,s)}if(!["page","nest","keyframes"].includes(e.name)&&e.params?.[0]===":"){e.variable=!0;let o=e.params.slice(1);o&&(e.value=pe(o,s)),e.raws.afterName+=":"}if(e.variable)return delete e.params,e.value||delete e.value,e}}if(e.type==="css-atrule"&&a.length>0){let{name:o}=e,u=e.name.toLowerCase();return o==="warn"||o==="error"?(e.params={type:"media-unknown",value:a},e):o==="extend"||o==="nest"?(e.selector=he(a),delete e.params,e):o==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(a)?e.params=pe(a,s):(e.selector=he(a),delete e.params),e):Ki(u)?(e.import=!0,delete e.filename,e.params=pe(a,s),e):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(o)?(a=a.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),a=a.replace(/^(?!if)([^"'\s(]+)(\s+)\(/u,"$1($2"),e.value=pe(a,s),delete e.params,e):["media","custom-media"].includes(u)?a.includes("#{")?{type:"media-unknown",value:a}:(e.params=$i(a),e):(e.params=a,e)}}return e}function Ft(e,s,i){let{frontMatter:r,content:a}=ut(s),o;try{o=e(a,{map:!1})}catch(u){let{name:p,reason:y,line:m,column:n}=u;throw typeof m!="number"?u:Ei(`${p}: ${y}`,{loc:{start:{line:m,column:n}},cause:u})}return i.originalText=s,o=es(De(o,"css-"),i),Wr(o,s),r&&(o.frontMatter={...r,type:"front-matter",source:{startOffset:r.start.index,endOffset:r.end.index}}),o}function ts(e,s={}){return Ft(_i.default.default,e,s)}function rs(e,s={}){return Ft(i=>Ci.default.parse(so(i)),e,s)}function ss(e,s={}){return Ft(Si.default,e,s)}var Ut={astFormat:"postcss",hasPragma:ko,hasIgnorePragma:To,locStart:G,locEnd:H},ra={...Ut,parse:ts},sa={...Ut,parse:rs},na={...Ut,parse:ss},oa={postcss:bi};export{cn as default,xi as languages,Oi as options,Zr as parsers,oa as printers};
|