@csstools/csstools-cli 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changes to CSSTools CLI
2
+
3
+ ### 1.0.0 (January 2, 2022)
4
+
5
+ - Initial version
package/LICENSE.md ADDED
@@ -0,0 +1,108 @@
1
+ # CC0 1.0 Universal
2
+
3
+ ## Statement of Purpose
4
+
5
+ The laws of most jurisdictions throughout the world automatically confer
6
+ exclusive Copyright and Related Rights (defined below) upon the creator and
7
+ subsequent owner(s) (each and all, an “owner”) of an original work of
8
+ authorship and/or a database (each, a “Work”).
9
+
10
+ Certain owners wish to permanently relinquish those rights to a Work for the
11
+ purpose of contributing to a commons of creative, cultural and scientific works
12
+ (“Commons”) that the public can reliably and without fear of later claims of
13
+ infringement build upon, modify, incorporate in other works, reuse and
14
+ redistribute as freely as possible in any form whatsoever and for any purposes,
15
+ including without limitation commercial purposes. These owners may contribute
16
+ to the Commons to promote the ideal of a free culture and the further
17
+ production of creative, cultural and scientific works, or to gain reputation or
18
+ greater distribution for their Work in part through the use and efforts of
19
+ others.
20
+
21
+ For these and/or other purposes and motivations, and without any expectation of
22
+ additional consideration or compensation, the person associating CC0 with a
23
+ Work (the “Affirmer”), to the extent that he or she is an owner of Copyright
24
+ and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and
25
+ publicly distribute the Work under its terms, with knowledge of his or her
26
+ Copyright and Related Rights in the Work and the meaning and intended legal
27
+ effect of CC0 on those rights.
28
+
29
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
30
+ protected by copyright and related or neighboring rights (“Copyright and
31
+ Related Rights”). Copyright and Related Rights include, but are not limited
32
+ to, the following:
33
+ 1. the right to reproduce, adapt, distribute, perform, display, communicate,
34
+ and translate a Work;
35
+ 2. moral rights retained by the original author(s) and/or performer(s);
36
+ 3. publicity and privacy rights pertaining to a person’s image or likeness
37
+ depicted in a Work;
38
+ 4. rights protecting against unfair competition in regards to a Work,
39
+ subject to the limitations in paragraph 4(i), below;
40
+ 5. rights protecting the extraction, dissemination, use and reuse of data in
41
+ a Work;
42
+ 6. database rights (such as those arising under Directive 96/9/EC of the
43
+ European Parliament and of the Council of 11 March 1996 on the legal
44
+ protection of databases, and under any national implementation thereof,
45
+ including any amended or successor version of such directive); and
46
+ 7. other similar, equivalent or corresponding rights throughout the world
47
+ based on applicable law or treaty, and any national implementations
48
+ thereof.
49
+
50
+ 2. Waiver. To the greatest extent permitted by, but not in contravention of,
51
+ applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
52
+ unconditionally waives, abandons, and surrenders all of Affirmer’s Copyright
53
+ and Related Rights and associated claims and causes of action, whether now
54
+ known or unknown (including existing as well as future claims and causes of
55
+ action), in the Work (i) in all territories worldwide, (ii) for the maximum
56
+ duration provided by applicable law or treaty (including future time
57
+ extensions), (iii) in any current or future medium and for any number of
58
+ copies, and (iv) for any purpose whatsoever, including without limitation
59
+ commercial, advertising or promotional purposes (the “Waiver”). Affirmer
60
+ makes the Waiver for the benefit of each member of the public at large and
61
+ to the detriment of Affirmer’s heirs and successors, fully intending that
62
+ such Waiver shall not be subject to revocation, rescission, cancellation,
63
+ termination, or any other legal or equitable action to disrupt the quiet
64
+ enjoyment of the Work by the public as contemplated by Affirmer’s express
65
+ Statement of Purpose.
66
+
67
+ 3. Public License Fallback. Should any part of the Waiver for any reason be
68
+ judged legally invalid or ineffective under applicable law, then the Waiver
69
+ shall be preserved to the maximum extent permitted taking into account
70
+ Affirmer’s express Statement of Purpose. In addition, to the extent the
71
+ Waiver is so judged Affirmer hereby grants to each affected person a
72
+ royalty-free, non transferable, non sublicensable, non exclusive,
73
+ irrevocable and unconditional license to exercise Affirmer’s Copyright and
74
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
75
+ maximum duration provided by applicable law or treaty (including future time
76
+ extensions), (iii) in any current or future medium and for any number of
77
+ copies, and (iv) for any purpose whatsoever, including without limitation
78
+ commercial, advertising or promotional purposes (the “License”). The License
79
+ shall be deemed effective as of the date CC0 was applied by Affirmer to the
80
+ Work. Should any part of the License for any reason be judged legally
81
+ invalid or ineffective under applicable law, such partial invalidity or
82
+ ineffectiveness shall not invalidate the remainder of the License, and in
83
+ such case Affirmer hereby affirms that he or she will not (i) exercise any
84
+ of his or her remaining Copyright and Related Rights in the Work or (ii)
85
+ assert any associated claims and causes of action with respect to the Work,
86
+ in either case contrary to Affirmer’s express Statement of Purpose.
87
+
88
+ 4. Limitations and Disclaimers.
89
+ 1. No trademark or patent rights held by Affirmer are waived, abandoned,
90
+ surrendered, licensed or otherwise affected by this document.
91
+ 2. Affirmer offers the Work as-is and makes no representations or warranties
92
+ of any kind concerning the Work, express, implied, statutory or
93
+ otherwise, including without limitation warranties of title,
94
+ merchantability, fitness for a particular purpose, non infringement, or
95
+ the absence of latent or other defects, accuracy, or the present or
96
+ absence of errors, whether or not discoverable, all to the greatest
97
+ extent permissible under applicable law.
98
+ 3. Affirmer disclaims responsibility for clearing rights of other persons
99
+ that may apply to the Work or any use thereof, including without
100
+ limitation any person’s Copyright and Related Rights in the Work.
101
+ Further, Affirmer disclaims responsibility for obtaining any necessary
102
+ consents, permissions or other rights required for any use of the Work.
103
+ 4. Affirmer understands and acknowledges that Creative Commons is not a
104
+ party to this document and has no duty or obligation with respect to this
105
+ CC0 or use of the Work.
106
+
107
+ For more information, please see
108
+ http://creativecommons.org/publicdomain/zero/1.0/.
package/README.md ADDED
@@ -0,0 +1,196 @@
1
+ # CSSTools CLI [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][postcss]
2
+
3
+ [<img alt="npm version" src="https://img.shields.io/npm/v/@csstools/csstools-cli.svg" height="20">][npm-url]
4
+ [<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/actions/workflows/test.yml/badge.svg" height="20">][cli-url]
5
+ [<img alt="Support Chat" src="https://img.shields.io/badge/support-chat-blue.svg" height="20">][git-url]
6
+
7
+ [CSSTools CLI] lets you run any plugin from [@csstools/postcss-plugins](https://github.com/csstools/postcss-plugins) from the command line.
8
+
9
+ ## Usage
10
+
11
+ We recommend using the [CSSTools CLI] as a prototyping and debugging tool.
12
+ ⚠️ If you are building/customizing a toolchain it is best **not** to use the CLI.
13
+
14
+ With `npx` you can use the CLI directly without installing it globally.
15
+
16
+ ### General Help :
17
+
18
+ ```bash
19
+ npx -y @csstools/csstools-cli
20
+ ```
21
+
22
+ ```
23
+ CSSTools CLI
24
+
25
+ Transform CSS with any plugin from https://github.com/csstools/postcss-plugins
26
+
27
+ Usage:
28
+ @csstools/csstools-cli postcss-preset-env [input.css] [OPTIONS] [-o|--output output.css]
29
+ @csstools/csstools-cli postcss-preset-env <input.css>... [OPTIONS] --dir <output-directory>
30
+ @csstools/csstools-cli postcss-preset-env <input.css>... [OPTIONS] --replace
31
+
32
+ Available Plugins:
33
+ css-blank-pseudo
34
+ css-has-pseudo
35
+ css-prefers-color-scheme
36
+ postcss-color-functional-notation
37
+ postcss-color-hex-alpha
38
+ postcss-color-rebeccapurple
39
+ postcss-custom-properties
40
+ postcss-dir-pseudo-class
41
+ postcss-double-position-gradients
42
+ postcss-env-function
43
+ postcss-focus-visible
44
+ postcss-focus-within
45
+ postcss-gap-properties
46
+ postcss-image-set-function
47
+ postcss-lab-function
48
+ postcss-logical
49
+ postcss-nesting
50
+ postcss-overflow-shorthand
51
+ postcss-place
52
+ postcss-pseudo-class-any-link
53
+
54
+ Plugin Help:
55
+ @csstools/csstools-cli <plugin-name>
56
+ @csstools/csstools-cli postcss-preset-env
57
+ ```
58
+
59
+ ### Plugin Help :
60
+
61
+ Each plugin can have specific options.
62
+ These can be found by running `npx -y @csstools/csstools-cli <plugin-name>`.
63
+ More details can always be found in the README of that plugin on github.
64
+
65
+ ```bash
66
+ npx -y @csstools/cli postcss-preset-env
67
+ ```
68
+
69
+ ```
70
+ PostCSS Preset Env
71
+
72
+ Lets you convert modern CSS into something most browsers can understand, determining the polyfills you need based on your targeted browsers or runtime environments.
73
+
74
+ Usage:
75
+ @csstools/cli postcss-preset-env [input.css] [OPTIONS] [-o|--output output.css]
76
+ @csstools/cli postcss-preset-env <input.css>... [OPTIONS] --dir <output-directory>
77
+ @csstools/cli postcss-preset-env <input.css>... [OPTIONS] --replace
78
+
79
+ Options:
80
+ -o, --output Output file
81
+ -d, --dir Output directory
82
+ -r, --replace Replace (overwrite) the input file
83
+ -m, --map Create an external sourcemap
84
+ --no-map Disable the default inline sourcemaps
85
+ -p, --plugin-options Stringified JSON object with plugin options
86
+
87
+ Plugin Options:
88
+ stage number
89
+ features object
90
+ browsers string
91
+ autoprefixer object
92
+ preserve boolean
93
+ importFrom string
94
+ exportTo string
95
+
96
+ {
97
+ "stage": 0,
98
+ "features": {
99
+ "blank-pseudo-class": {
100
+ "preserve": false
101
+ },
102
+ "color-functional-notation": {
103
+ "preserve": true
104
+ }
105
+ },
106
+ "browsers": "last 2 versions",
107
+ "autoprefixer": {
108
+ "grid": true
109
+ },
110
+ "preserve": false,
111
+ "importFrom": "path/to/file.css",
112
+ "exportTo": "path/to/file.css"
113
+ }
114
+ ```
115
+
116
+ ## Example
117
+
118
+ Copy this bit of CSS to have it in your clipboard.
119
+
120
+ ```pcss
121
+ a, b {
122
+ color: red;
123
+
124
+ & c, & d {
125
+ color: white;
126
+ }
127
+ }
128
+
129
+ ```
130
+
131
+ Run :
132
+
133
+ _`pbpaste | ...` pipes the clipboard contents to the next command._
134
+
135
+ ```bash
136
+ pbpaste | npx -y @csstools/csstools-cli postcss-nesting --no-map
137
+ ```
138
+
139
+ Output :
140
+
141
+ ```pcss
142
+ a, b {
143
+ color: red
144
+ }
145
+ a c, b c, a d, b d {
146
+ color: white;
147
+ }
148
+
149
+ ```
150
+
151
+
152
+ Copy this bit of CSS to have it in your clipboard.
153
+
154
+ ```pcss
155
+ .banner {
156
+ color: #222222;
157
+ inset: logical 0 5px 10px;
158
+ padding-inline: 20px 40px;
159
+ resize: block;
160
+ transition: color 200ms;
161
+ }
162
+
163
+ ```
164
+
165
+ Run :
166
+
167
+ ```bash
168
+ pbpaste | npx -y postcss-logical --no-map --plugin-options '{ "dir": "rtl" }'
169
+ ```
170
+
171
+ _note the single quotes around the JSON object with plugin options._
172
+
173
+ Output :
174
+
175
+ ```pcss
176
+ .banner {
177
+ color: #222222;
178
+ top: 0;
179
+ left: 5px;
180
+ bottom: 10px;
181
+ right: 5px;
182
+ padding-right: 20px;
183
+ padding-left: 40px;
184
+ resize: vertical;
185
+ transition: color 200ms;
186
+ }
187
+
188
+ ```
189
+
190
+
191
+ [cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
192
+ [git-url]: https://gitter.im/postcss/postcss
193
+ [npm-url]: https://www.npmjs.com/package/@csstools/csstools-cli
194
+
195
+ [postcss]: https://github.com/postcss/postcss
196
+ [CSSTools CLI]: https://github.com/csstools/postcss-plugins/tree/main/cli/csstools-cli
package/dist/cli.cjs ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ "use strict";var e=require("css-blank-pseudo"),t=require("tty"),r=require("path"),s=require("url"),n=require("fs"),o=require("css-has-pseudo"),i=require("css-prefers-color-scheme"),a=require("postcss-color-functional-notation"),l=require("postcss-color-hex-alpha"),u=require("postcss-color-rebeccapurple"),c=require("postcss-custom-properties"),p=require("postcss-dir-pseudo-class"),h=require("postcss-double-position-gradients"),f=require("postcss-env-function"),d=require("postcss-focus-visible"),m=require("postcss-focus-within"),g=require("postcss-gap-properties"),w=require("postcss-image-set-function"),y=require("postcss-lab-function"),v=require("postcss-logical"),S=require("postcss-nesting"),b=require("postcss-overflow-shorthand"),C=require("postcss-place"),O=require("autoprefixer"),x=require("browserslist"),_=require("cssdb"),A=require("postcss-attribute-case-insensitive"),k=require("postcss-custom-media"),P=require("postcss-custom-selectors"),M=require("postcss-font-variant"),L=require("postcss-initial"),E=require("postcss-media-minmax"),R=require("postcss-page-break"),j=require("postcss-pseudo-class-any-link"),I=require("postcss-replace-overflow-wrap"),$=require("postcss-selector-not"),F=require("caniuse-lite");function N(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var U,B=N(e),D=N(t),T=N(r),q=N(s),G=N(n),z=N(o),V=N(i),W=N(a),J=N(l),Y=N(u),Q=N(c),H=N(p),Z=N(h),K=N(f),X=N(d),ee=N(m),te=N(g),re=N(w),se=N(y),ne=N(v),oe=N(S),ie=N(b),ae=N(C),le=N(O),ue=N(x),ce=N(_),pe=N(A),he=N(k),fe=N(P),de=N(M),me=N(L),ge=N(E),we=N(R),ye=N(j),ve=N(I),Se=N($),be=N(F);!function(e){e.InvalidArguments="INVALID_ARGUMENTS"}(U||(U={}));var Ce={exports:{}};let Oe=D.default,xe=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||"win32"===process.platform||Oe.isatty(1)&&"dumb"!==process.env.TERM||"CI"in process.env),_e=(e,t,r=e)=>s=>{let n=""+s,o=n.indexOf(t,e.length);return~o?e+Ae(n,t,r,o)+t:e+n+t},Ae=(e,t,r,s)=>{let n=e.substring(0,s)+r,o=e.substring(s+t.length),i=o.indexOf(t);return~i?n+Ae(o,t,r,i):n+o},ke=(e=xe)=>({isColorSupported:e,reset:e?e=>`${e}`:String,bold:e?_e("","",""):String,dim:e?_e("","",""):String,italic:e?_e("",""):String,underline:e?_e("",""):String,inverse:e?_e("",""):String,hidden:e?_e("",""):String,strikethrough:e?_e("",""):String,black:e?_e("",""):String,red:e?_e("",""):String,green:e?_e("",""):String,yellow:e?_e("",""):String,blue:e?_e("",""):String,magenta:e?_e("",""):String,cyan:e?_e("",""):String,white:e?_e("",""):String,gray:e?_e("",""):String,bgBlack:e?_e("",""):String,bgRed:e?_e("",""):String,bgGreen:e?_e("",""):String,bgYellow:e?_e("",""):String,bgBlue:e?_e("",""):String,bgMagenta:e?_e("",""):String,bgCyan:e?_e("",""):String,bgWhite:e?_e("",""):String});Ce.exports=ke(),Ce.exports.createColors=ke;const Pe="'".charCodeAt(0),Me='"'.charCodeAt(0),Le="\\".charCodeAt(0),Ee="/".charCodeAt(0),Re="\n".charCodeAt(0),je=" ".charCodeAt(0),Ie="\f".charCodeAt(0),$e="\t".charCodeAt(0),Fe="\r".charCodeAt(0),Ne="[".charCodeAt(0),Ue="]".charCodeAt(0),Be="(".charCodeAt(0),De=")".charCodeAt(0),Te="{".charCodeAt(0),qe="}".charCodeAt(0),Ge=";".charCodeAt(0),ze="*".charCodeAt(0),Ve=":".charCodeAt(0),We="@".charCodeAt(0),Je=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ye=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Qe=/.[\n"'(/\\]/,He=/[\da-f]/i;var Ze=function(e,t={}){let r,s,n,o,i,a,l,u,c,p,h=e.css.valueOf(),f=t.ignoreErrors,d=h.length,m=0,g=[],w=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){w.push(e)},nextToken:function(e){if(w.length)return w.pop();if(m>=d)return;let t=!!e&&e.ignoreUnclosed;switch(r=h.charCodeAt(m),r){case Re:case je:case $e:case Fe:case Ie:s=m;do{s+=1,r=h.charCodeAt(s)}while(r===je||r===Re||r===$e||r===Fe||r===Ie);p=["space",h.slice(m,s)],m=s-1;break;case Ne:case Ue:case Te:case qe:case Ve:case Ge:case De:{let e=String.fromCharCode(r);p=[e,e,m];break}case Be:if(u=g.length?g.pop()[1]:"",c=h.charCodeAt(m+1),"url"===u&&c!==Pe&&c!==Me&&c!==je&&c!==Re&&c!==$e&&c!==Ie&&c!==Fe){s=m;do{if(a=!1,s=h.indexOf(")",s+1),-1===s){if(f||t){s=m;break}y("bracket")}for(l=s;h.charCodeAt(l-1)===Le;)l-=1,a=!a}while(a);p=["brackets",h.slice(m,s+1),m,s],m=s}else s=h.indexOf(")",m+1),o=h.slice(m,s+1),-1===s||Qe.test(o)?p=["(","(",m]:(p=["brackets",o,m,s],m=s);break;case Pe:case Me:n=r===Pe?"'":'"',s=m;do{if(a=!1,s=h.indexOf(n,s+1),-1===s){if(f||t){s=m+1;break}y("string")}for(l=s;h.charCodeAt(l-1)===Le;)l-=1,a=!a}while(a);p=["string",h.slice(m,s+1),m,s],m=s;break;case We:Je.lastIndex=m+1,Je.test(h),s=0===Je.lastIndex?h.length-1:Je.lastIndex-2,p=["at-word",h.slice(m,s+1),m,s],m=s;break;case Le:for(s=m,i=!0;h.charCodeAt(s+1)===Le;)s+=1,i=!i;if(r=h.charCodeAt(s+1),i&&r!==Ee&&r!==je&&r!==Re&&r!==$e&&r!==Fe&&r!==Ie&&(s+=1,He.test(h.charAt(s)))){for(;He.test(h.charAt(s+1));)s+=1;h.charCodeAt(s+1)===je&&(s+=1)}p=["word",h.slice(m,s+1),m,s],m=s;break;default:r===Ee&&h.charCodeAt(m+1)===ze?(s=h.indexOf("*/",m+2)+1,0===s&&(f||t?s=h.length:y("comment")),p=["comment",h.slice(m,s+1),m,s],m=s):(Ye.lastIndex=m+1,Ye.test(h),s=0===Ye.lastIndex?h.length-1:Ye.lastIndex-2,p=["word",h.slice(m,s+1),m,s],g.push(p),m=s)}return m++,p},endOfFile:function(){return 0===w.length&&m>=d},position:function(){return m}}};let Ke,Xe=Ce.exports,et=Ze;const tt={brackets:Xe.cyan,"at-word":Xe.cyan,comment:Xe.gray,string:Xe.green,class:Xe.yellow,hash:Xe.magenta,call:Xe.cyan,"(":Xe.cyan,")":Xe.cyan,"{":Xe.yellow,"}":Xe.yellow,"[":Xe.yellow,"]":Xe.yellow,":":Xe.yellow,";":Xe.yellow};function rt([e,t],r){if("word"===e){if("."===t[0])return"class";if("#"===t[0])return"hash"}if(!r.endOfFile()){let e=r.nextToken();if(r.back(e),"brackets"===e[0]||"("===e[0])return"call"}return e}function st(e){let t=et(new Ke(e),{ignoreErrors:!0}),r="";for(;!t.endOfFile();){let e=t.nextToken(),s=tt[rt(e,t)];r+=s?e[1].split(/\r?\n/).map((e=>s(e))).join("\n"):e[1]}return r}st.registerInput=function(e){Ke=e};var nt=st;let ot=Ce.exports,it=nt;class at extends Error{constructor(e,t,r,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,at)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=ot.isColorSupported),it&&e&&(t=it(t));let r,s,n=t.split(/\r?\n/),o=Math.max(this.line-3,0),i=Math.min(this.line+2,n.length),a=String(i).length;if(e){let{bold:e,red:t,gray:n}=ot.createColors(!0);r=r=>e(t(r)),s=e=>n(e)}else r=s=e=>e;return n.slice(o,i).map(((e,t)=>{let n=o+1+t,i=" "+(" "+n).slice(-a)+" | ";if(n===this.line){let t=s(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+s(i)+e+"\n "+t+r("^")}return" "+s(i)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}var lt=at;at.default=at;var ut={};ut.isClean=Symbol("isClean"),ut.my=Symbol("my");const ct={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class pt{constructor(e){this.builder=e}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+s+n,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let n=e.nodes[s],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==s||r)}}block(e,t){let r,s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}raw(e,t,r){let s;if(r||(r=t),t&&(s=e.raws[t],void 0!==s))return s;let n=e.parent;if("before"===r){if(!n||"root"===n.type&&n.first===e)return"";if(n&&"document"===n.type)return""}if(!n)return ct[r];let o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let n="raw"+((i=r)[0].toUpperCase()+i.slice(1));this[n]?s=this[n](o,e):o.walk((e=>{if(s=e.raws[t],void 0!==s)return!1}))}var i;return void 0===s&&(s=ct[r]),o.rawCache[r]=s,s}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawBeforeComment(e,t){let r;return e.walkComments((e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls((e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeRule(e){let t;return e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let s=e.parent,n=0;for(;s&&"root"!==s.type;)n+=1,s=s.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)r+=t}return r}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}}var ht=pt;pt.default=pt;let ft=ht;function dt(e,t){new ft(t).stringify(e)}var mt=dt;dt.default=dt;let{isClean:gt,my:wt}=ut,yt=lt,vt=ht,St=mt;function bt(e,t){let r=new e.constructor;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;if("proxyCache"===s)continue;let n=e[s],o=typeof n;"parent"===s&&"object"===o?t&&(r[s]=t):"source"===s?r[s]=n:Array.isArray(n)?r[s]=n.map((e=>bt(e,r))):("object"===o&&null!==n&&(n=bt(n)),r[s]=n)}return r}class Ct{constructor(e={}){this.raws={},this[gt]=!1,this[wt]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}error(e,t={}){if(this.source){let{start:r,end:s}=this.rangeBy(t);return this.source.input.error(e,{line:r.line,column:r.column},{line:s.line,column:s.column},t)}return new yt(e)}warn(e,t,r){let s={node:this};for(let e in r)s[e]=r[e];return e.warn(t,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=St){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}assign(e={}){for(let t in e)this[t]=e[t];return this}clone(e={}){let t=bt(this);for(let r in e)t[r]=e[r];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}raw(e,t){return(new vt).raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,t){let r={},s=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let s=this[e];if(Array.isArray(s))r[e]=s.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof s&&s.toJSON)r[e]=s.toJSON(null,t);else if("source"===e){let o=t.get(s.input);null==o&&(o=n,t.set(s.input,n),n++),r[e]={inputId:o,start:s.start,end:s.end}}else r[e]=s}return s&&(r.inputs=[...t.keys()].map((e=>e.toJSON()))),r}positionInside(e){let t=this.toString(),r=this.source.start.column,s=this.source.start.line;for(let n=0;n<e;n++)"\n"===t[n]?(r=1,s+=1):r+=1;return{line:s,column:r}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r=this.toString().indexOf(e.word);-1!==r&&(t=this.positionInside(r))}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column},r=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:t.line,column:t.column+1};if(e.word){let s=this.toString().indexOf(e.word);-1!==s&&(t=this.positionInside(s),r=this.positionInside(s+e.word.length))}else e.start?t={line:e.start.line,column:e.start.column}:e.index&&(t=this.positionInside(e.index)),e.end?r={line:e.end.line,column:e.end.column}:e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={line:t.line,column:t.column+1}),{start:t,end:r}}getProxyProcessor(){return{set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[gt]){this[gt]=!1;let e=this;for(;e=e.parent;)e[gt]=!1}}get proxyOf(){return this}}var Ot=Ct;Ct.default=Ct;let xt=Ot;class _t extends xt{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}var At=_t;_t.default=_t;var kt={},Pt={},Mt={},Lt={},Et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Lt.encode=function(e){if(0<=e&&e<Et.length)return Et[e];throw new TypeError("Must be between 0 and 63: "+e)},Lt.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1};var Rt=Lt;Mt.encode=function(e){var t,r="",s=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&s,(s>>>=5)>0&&(t|=32),r+=Rt.encode(t)}while(s>0);return r},Mt.decode=function(e,t,r){var s,n,o,i,a=e.length,l=0,u=0;do{if(t>=a)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(n=Rt.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));s=!!(32&n),l+=(n&=31)<<u,u+=5}while(s);r.value=(i=(o=l)>>1,1==(1&o)?-i:i),r.rest=t};var jt={};!function(e){e.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function s(e){var r=e.match(t);return r?{scheme:r[1],auth:r[2],host:r[3],port:r[4],path:r[5]}:null}function n(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}e.urlParse=s,e.urlGenerate=n;var o=function(e){var t=[];return function(r){for(var s=0;s<t.length;s++)if(t[s].input===r){var n=t[0];return t[0]=t[s],t[s]=n,t[0].result}var o=e(r);return t.unshift({input:r,result:o}),t.length>32&&t.pop(),o}}((function(t){var r=t,o=s(t);if(o){if(!o.path)return t;r=o.path}for(var i=e.isAbsolute(r),a=[],l=0,u=0;;){if(l=u,-1===(u=r.indexOf("/",l))){a.push(r.slice(l));break}for(a.push(r.slice(l,u));u<r.length&&"/"===r[u];)u++}var c,p=0;for(u=a.length-1;u>=0;u--)"."===(c=a[u])?a.splice(u,1):".."===c?p++:p>0&&(""===c?(a.splice(u+1,p),p=0):(a.splice(u,2),p--));return""===(r=a.join("/"))&&(r=i?"/":"."),o?(o.path=r,n(o)):r}));function i(e,t){""===e&&(e="."),""===t&&(t=".");var i=s(t),a=s(e);if(a&&(e=a.path||"/"),i&&!i.scheme)return a&&(i.scheme=a.scheme),n(i);if(i||t.match(r))return t;if(a&&!a.host&&!a.path)return a.host=t,n(a);var l="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=l,n(a)):l}e.normalize=o,e.join=i,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var s=e.lastIndexOf("/");if(s<0)return t;if((e=e.slice(0,s)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var a=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function c(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=a?l:function(e){return u(e)?"$"+e:e},e.fromSetString=a?l:function(e){return u(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,r){var s=c(e.source,t.source);return 0!==s||0!==(s=e.originalLine-t.originalLine)||0!==(s=e.originalColumn-t.originalColumn)||r||0!==(s=e.generatedColumn-t.generatedColumn)||0!==(s=e.generatedLine-t.generatedLine)?s:c(e.name,t.name)},e.compareByOriginalPositionsNoSource=function(e,t,r){var s;return 0!==(s=e.originalLine-t.originalLine)||0!==(s=e.originalColumn-t.originalColumn)||r||0!==(s=e.generatedColumn-t.generatedColumn)||0!==(s=e.generatedLine-t.generatedLine)?s:c(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,r){var s=e.generatedLine-t.generatedLine;return 0!==s||0!==(s=e.generatedColumn-t.generatedColumn)||r||0!==(s=c(e.source,t.source))||0!==(s=e.originalLine-t.originalLine)||0!==(s=e.originalColumn-t.originalColumn)?s:c(e.name,t.name)},e.compareByGeneratedPositionsDeflatedNoLine=function(e,t,r){var s=e.generatedColumn-t.generatedColumn;return 0!==s||r||0!==(s=c(e.source,t.source))||0!==(s=e.originalLine-t.originalLine)||0!==(s=e.originalColumn-t.originalColumn)?s:c(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=c(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:c(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var a=s(r);if(!a)throw new Error("sourceMapURL could not be parsed");if(a.path){var l=a.path.lastIndexOf("/");l>=0&&(a.path=a.path.substring(0,l+1))}t=i(n(a),t)}return o(t)}}(jt);var It={},$t=jt,Ft=Object.prototype.hasOwnProperty,Nt="undefined"!=typeof Map;function Ut(){this._array=[],this._set=Nt?new Map:Object.create(null)}Ut.fromArray=function(e,t){for(var r=new Ut,s=0,n=e.length;s<n;s++)r.add(e[s],t);return r},Ut.prototype.size=function(){return Nt?this._set.size:Object.getOwnPropertyNames(this._set).length},Ut.prototype.add=function(e,t){var r=Nt?e:$t.toSetString(e),s=Nt?this.has(e):Ft.call(this._set,r),n=this._array.length;s&&!t||this._array.push(e),s||(Nt?this._set.set(e,n):this._set[r]=n)},Ut.prototype.has=function(e){if(Nt)return this._set.has(e);var t=$t.toSetString(e);return Ft.call(this._set,t)},Ut.prototype.indexOf=function(e){if(Nt){var t=this._set.get(e);if(t>=0)return t}else{var r=$t.toSetString(e);if(Ft.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},Ut.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},Ut.prototype.toArray=function(){return this._array.slice()},It.ArraySet=Ut;var Bt={},Dt=jt;function Tt(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Tt.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},Tt.prototype.add=function(e){var t,r,s,n,o,i;t=this._last,r=e,s=t.generatedLine,n=r.generatedLine,o=t.generatedColumn,i=r.generatedColumn,n>s||n==s&&i>=o||Dt.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},Tt.prototype.toArray=function(){return this._sorted||(this._array.sort(Dt.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Bt.MappingList=Tt;var qt=Mt,Gt=jt,zt=It.ArraySet,Vt=Bt.MappingList;function Wt(e){e||(e={}),this._file=Gt.getArg(e,"file",null),this._sourceRoot=Gt.getArg(e,"sourceRoot",null),this._skipValidation=Gt.getArg(e,"skipValidation",!1),this._sources=new zt,this._names=new zt,this._mappings=new Vt,this._sourcesContents=null}Wt.prototype._version=3,Wt.fromSourceMap=function(e){var t=e.sourceRoot,r=new Wt({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var s={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(s.source=e.source,null!=t&&(s.source=Gt.relative(t,s.source)),s.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(s.name=e.name)),r.addMapping(s)})),e.sources.forEach((function(s){var n=s;null!==t&&(n=Gt.relative(t,s)),r._sources.has(n)||r._sources.add(n);var o=e.sourceContentFor(s);null!=o&&r.setSourceContent(s,o)})),r},Wt.prototype.addMapping=function(e){var t=Gt.getArg(e,"generated"),r=Gt.getArg(e,"original",null),s=Gt.getArg(e,"source",null),n=Gt.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,s,n),null!=s&&(s=String(s),this._sources.has(s)||this._sources.add(s)),null!=n&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:s,name:n})},Wt.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=Gt.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Gt.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[Gt.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},Wt.prototype.applySourceMap=function(e,t,r){var s=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');s=e.file}var n=this._sourceRoot;null!=n&&(s=Gt.relative(n,s));var o=new zt,i=new zt;this._mappings.unsortedForEach((function(t){if(t.source===s&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=Gt.join(r,t.source)),null!=n&&(t.source=Gt.relative(n,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var l=t.source;null==l||o.has(l)||o.add(l);var u=t.name;null==u||i.has(u)||i.add(u)}),this),this._sources=o,this._names=i,e.sources.forEach((function(t){var s=e.sourceContentFor(t);null!=s&&(null!=r&&(t=Gt.join(r,t)),null!=n&&(t=Gt.relative(n,t)),this.setSourceContent(t,s))}),this)},Wt.prototype._validateMapping=function(e,t,r,s){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||s)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:s}))},Wt.prototype._serializeMappings=function(){for(var e,t,r,s,n=0,o=1,i=0,a=0,l=0,u=0,c="",p=this._mappings.toArray(),h=0,f=p.length;h<f;h++){if(e="",(t=p[h]).generatedLine!==o)for(n=0;t.generatedLine!==o;)e+=";",o++;else if(h>0){if(!Gt.compareByGeneratedPositionsInflated(t,p[h-1]))continue;e+=","}e+=qt.encode(t.generatedColumn-n),n=t.generatedColumn,null!=t.source&&(s=this._sources.indexOf(t.source),e+=qt.encode(s-u),u=s,e+=qt.encode(t.originalLine-1-a),a=t.originalLine-1,e+=qt.encode(t.originalColumn-i),i=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=qt.encode(r-l),l=r)),c+=e}return c},Wt.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=Gt.relative(t,e));var r=Gt.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},Wt.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},Wt.prototype.toString=function(){return JSON.stringify(this.toJSON())},Pt.SourceMapGenerator=Wt;var Jt={},Yt={};!function(e){function t(r,s,n,o,i,a){var l=Math.floor((s-r)/2)+r,u=i(n,o[l],!0);return 0===u?l:u>0?s-l>1?t(l,s,n,o,i,a):a==e.LEAST_UPPER_BOUND?s<o.length?s:-1:l:l-r>1?t(r,l,n,o,i,a):a==e.LEAST_UPPER_BOUND?l:r<0?-1:r}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(r,s,n,o){if(0===s.length)return-1;var i=t(-1,s.length,r,s,n,o||e.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===n(s[i],s[i-1],!0);)--i;return i}}(Yt);var Qt={};function Ht(e){function t(e,t,r){var s=e[t];e[t]=e[r],e[r]=s}return function e(r,s,n,o){if(n<o){var i=n-1;t(r,(c=n,p=o,Math.round(c+Math.random()*(p-c))),o);for(var a=r[o],l=n;l<o;l++)s(r[l],a,!1)<=0&&t(r,i+=1,l);t(r,i+1,l);var u=i+1;e(r,s,n,u-1),e(r,s,u+1,o)}var c,p}}let Zt=new WeakMap;Qt.quickSort=function(e,t,r=0){let s=Zt.get(t);void 0===s&&(s=function(e){let t=Ht.toString();return new Function(`return ${t}`)()(e)}(t),Zt.set(t,s)),s(e,t,r,e.length-1)};var Kt=jt,Xt=Yt,er=It.ArraySet,tr=Mt,rr=Qt.quickSort;function sr(e,t){var r=e;return"string"==typeof e&&(r=Kt.parseSourceMapInput(e)),null!=r.sections?new lr(r,t):new nr(r,t)}function nr(e,t){var r=e;"string"==typeof e&&(r=Kt.parseSourceMapInput(e));var s=Kt.getArg(r,"version"),n=Kt.getArg(r,"sources"),o=Kt.getArg(r,"names",[]),i=Kt.getArg(r,"sourceRoot",null),a=Kt.getArg(r,"sourcesContent",null),l=Kt.getArg(r,"mappings"),u=Kt.getArg(r,"file",null);if(s!=this._version)throw new Error("Unsupported version: "+s);i&&(i=Kt.normalize(i)),n=n.map(String).map(Kt.normalize).map((function(e){return i&&Kt.isAbsolute(i)&&Kt.isAbsolute(e)?Kt.relative(i,e):e})),this._names=er.fromArray(o.map(String),!0),this._sources=er.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map((function(e){return Kt.computeSourceURL(i,e,t)})),this.sourceRoot=i,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=t,this.file=u}function or(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}sr.fromSourceMap=function(e,t){return nr.fromSourceMap(e,t)},sr.prototype._version=3,sr.prototype.__generatedMappings=null,Object.defineProperty(sr.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),sr.prototype.__originalMappings=null,Object.defineProperty(sr.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),sr.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},sr.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},sr.GENERATED_ORDER=1,sr.ORIGINAL_ORDER=2,sr.GREATEST_LOWER_BOUND=1,sr.LEAST_UPPER_BOUND=2,sr.prototype.eachMapping=function(e,t,r){var s,n=t||null;switch(r||sr.GENERATED_ORDER){case sr.GENERATED_ORDER:s=this._generatedMappings;break;case sr.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var o=this.sourceRoot,i=e.bind(n),a=this._names,l=this._sources,u=this._sourceMapURL,c=0,p=s.length;c<p;c++){var h=s[c],f=null===h.source?null:l.at(h.source);i({source:f=Kt.computeSourceURL(o,f,u),generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:null===h.name?null:a.at(h.name)})}},sr.prototype.allGeneratedPositionsFor=function(e){var t=Kt.getArg(e,"line"),r={source:Kt.getArg(e,"source"),originalLine:t,originalColumn:Kt.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var s=[],n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",Kt.compareByOriginalPositions,Xt.LEAST_UPPER_BOUND);if(n>=0){var o=this._originalMappings[n];if(void 0===e.column)for(var i=o.originalLine;o&&o.originalLine===i;)s.push({line:Kt.getArg(o,"generatedLine",null),column:Kt.getArg(o,"generatedColumn",null),lastColumn:Kt.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++n];else for(var a=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==a;)s.push({line:Kt.getArg(o,"generatedLine",null),column:Kt.getArg(o,"generatedColumn",null),lastColumn:Kt.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++n]}return s},Jt.SourceMapConsumer=sr,nr.prototype=Object.create(sr.prototype),nr.prototype.consumer=sr,nr.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=Kt.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},nr.fromSourceMap=function(e,t){var r=Object.create(nr.prototype),s=r._names=er.fromArray(e._names.toArray(),!0),n=r._sources=er.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=t,r._absoluteSources=r._sources.toArray().map((function(e){return Kt.computeSourceURL(r.sourceRoot,e,t)}));for(var o=e._mappings.toArray().slice(),i=r.__generatedMappings=[],a=r.__originalMappings=[],l=0,u=o.length;l<u;l++){var c=o[l],p=new or;p.generatedLine=c.generatedLine,p.generatedColumn=c.generatedColumn,c.source&&(p.source=n.indexOf(c.source),p.originalLine=c.originalLine,p.originalColumn=c.originalColumn,c.name&&(p.name=s.indexOf(c.name)),a.push(p)),i.push(p)}return rr(r.__originalMappings,Kt.compareByOriginalPositions),r},nr.prototype._version=3,Object.defineProperty(nr.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});const ir=Kt.compareByGeneratedPositionsDeflatedNoLine;function ar(e,t){let r=e.length,s=e.length-t;if(!(s<=1))if(2==s){let r=e[t],s=e[t+1];ir(r,s)>0&&(e[t]=s,e[t+1]=r)}else if(s<20)for(let s=t;s<r;s++)for(let r=s;r>t;r--){let t=e[r-1],s=e[r];if(ir(t,s)<=0)break;e[r-1]=s,e[r]=t}else rr(e,ir,t)}function lr(e,t){var r=e;"string"==typeof e&&(r=Kt.parseSourceMapInput(e));var s=Kt.getArg(r,"version"),n=Kt.getArg(r,"sections");if(s!=this._version)throw new Error("Unsupported version: "+s);this._sources=new er,this._names=new er;var o={line:-1,column:0};this._sections=n.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=Kt.getArg(e,"offset"),s=Kt.getArg(r,"line"),n=Kt.getArg(r,"column");if(s<o.line||s===o.line&&n<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=r,{generatedOffset:{generatedLine:s+1,generatedColumn:n+1},consumer:new sr(Kt.getArg(e,"map"),t)}}))}nr.prototype._parseMappings=function(e,t){var r,s,n,o,i=1,a=0,l=0,u=0,c=0,p=0,h=e.length,f=0,d={},m=[],g=[];let w=0;for(;f<h;)if(";"===e.charAt(f))i++,f++,a=0,ar(g,w),w=g.length;else if(","===e.charAt(f))f++;else{for((r=new or).generatedLine=i,n=f;n<h&&!this._charIsMappingSeparator(e,n);n++);for(e.slice(f,n),s=[];f<n;)tr.decode(e,f,d),o=d.value,f=d.rest,s.push(o);if(2===s.length)throw new Error("Found a source, but no line and column");if(3===s.length)throw new Error("Found a source and line, but no column");if(r.generatedColumn=a+s[0],a=r.generatedColumn,s.length>1&&(r.source=c+s[1],c+=s[1],r.originalLine=l+s[2],l=r.originalLine,r.originalLine+=1,r.originalColumn=u+s[3],u=r.originalColumn,s.length>4&&(r.name=p+s[4],p+=s[4])),g.push(r),"number"==typeof r.originalLine){let e=r.source;for(;m.length<=e;)m.push(null);null===m[e]&&(m[e]=[]),m[e].push(r)}}ar(g,w),this.__generatedMappings=g;for(var y=0;y<m.length;y++)null!=m[y]&&rr(m[y],Kt.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...m)},nr.prototype._findMapping=function(e,t,r,s,n,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[s]);return Xt.search(e,t,n,o)},nr.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},nr.prototype.originalPositionFor=function(e){var t={generatedLine:Kt.getArg(e,"line"),generatedColumn:Kt.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",Kt.compareByGeneratedPositionsDeflated,Kt.getArg(e,"bias",sr.GREATEST_LOWER_BOUND));if(r>=0){var s=this._generatedMappings[r];if(s.generatedLine===t.generatedLine){var n=Kt.getArg(s,"source",null);null!==n&&(n=this._sources.at(n),n=Kt.computeSourceURL(this.sourceRoot,n,this._sourceMapURL));var o=Kt.getArg(s,"name",null);return null!==o&&(o=this._names.at(o)),{source:n,line:Kt.getArg(s,"originalLine",null),column:Kt.getArg(s,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},nr.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},nr.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var s,n=e;if(null!=this.sourceRoot&&(n=Kt.relative(this.sourceRoot,n)),null!=this.sourceRoot&&(s=Kt.urlParse(this.sourceRoot))){var o=n.replace(/^file:\/\//,"");if("file"==s.scheme&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||"/"==s.path)&&this._sources.has("/"+n))return this.sourcesContent[this._sources.indexOf("/"+n)]}if(t)return null;throw new Error('"'+n+'" is not in the SourceMap.')},nr.prototype.generatedPositionFor=function(e){var t=Kt.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:Kt.getArg(e,"line"),originalColumn:Kt.getArg(e,"column")},s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",Kt.compareByOriginalPositions,Kt.getArg(e,"bias",sr.GREATEST_LOWER_BOUND));if(s>=0){var n=this._originalMappings[s];if(n.source===r.source)return{line:Kt.getArg(n,"generatedLine",null),column:Kt.getArg(n,"generatedColumn",null),lastColumn:Kt.getArg(n,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Jt.BasicSourceMapConsumer=nr,lr.prototype=Object.create(sr.prototype),lr.prototype.constructor=sr,lr.prototype._version=3,Object.defineProperty(lr.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),lr.prototype.originalPositionFor=function(e){var t={generatedLine:Kt.getArg(e,"line"),generatedColumn:Kt.getArg(e,"column")},r=Xt.search(t,this._sections,(function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;return r||e.generatedColumn-t.generatedOffset.generatedColumn})),s=this._sections[r];return s?s.consumer.originalPositionFor({line:t.generatedLine-(s.generatedOffset.generatedLine-1),column:t.generatedColumn-(s.generatedOffset.generatedLine===t.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},lr.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},lr.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var s=this._sections[r].consumer.sourceContentFor(e,!0);if(s)return s}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},lr.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer._findSourceIndex(Kt.getArg(e,"source"))){var s=r.consumer.generatedPositionFor(e);if(s)return{line:s.line+(r.generatedOffset.generatedLine-1),column:s.column+(r.generatedOffset.generatedLine===s.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},lr.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var s=this._sections[r],n=s.consumer._generatedMappings,o=0;o<n.length;o++){var i=n[o],a=s.consumer._sources.at(i.source);a=Kt.computeSourceURL(s.consumer.sourceRoot,a,this._sourceMapURL),this._sources.add(a),a=this._sources.indexOf(a);var l=null;i.name&&(l=s.consumer._names.at(i.name),this._names.add(l),l=this._names.indexOf(l));var u={source:a,generatedLine:i.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:i.generatedColumn+(s.generatedOffset.generatedLine===i.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:i.originalLine,originalColumn:i.originalColumn,name:l};this.__generatedMappings.push(u),"number"==typeof u.originalLine&&this.__originalMappings.push(u)}rr(this.__generatedMappings,Kt.compareByGeneratedPositionsDeflated),rr(this.__originalMappings,Kt.compareByOriginalPositions)},Jt.IndexedSourceMapConsumer=lr;var ur={},cr=Pt.SourceMapGenerator,pr=jt,hr=/(\r?\n)/,fr="$$$isSourceNode$$$";function dr(e,t,r,s,n){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==n?null:n,this[fr]=!0,null!=s&&this.add(s)}dr.fromStringWithSourceMap=function(e,t,r){var s=new dr,n=e.split(hr),o=0,i=function(){return e()+(e()||"");function e(){return o<n.length?n[o++]:void 0}},a=1,l=0,u=null;return t.eachMapping((function(e){if(null!==u){if(!(a<e.generatedLine)){var t=(r=n[o]||"").substr(0,e.generatedColumn-l);return n[o]=r.substr(e.generatedColumn-l),l=e.generatedColumn,c(u,t),void(u=e)}c(u,i()),a++,l=0}for(;a<e.generatedLine;)s.add(i()),a++;if(l<e.generatedColumn){var r=n[o]||"";s.add(r.substr(0,e.generatedColumn)),n[o]=r.substr(e.generatedColumn),l=e.generatedColumn}u=e}),this),o<n.length&&(u&&c(u,i()),s.add(n.splice(o).join(""))),t.sources.forEach((function(e){var n=t.sourceContentFor(e);null!=n&&(null!=r&&(e=pr.join(r,e)),s.setSourceContent(e,n))})),s;function c(e,t){if(null===e||void 0===e.source)s.add(t);else{var n=r?pr.join(r,e.source):e.source;s.add(new dr(e.originalLine,e.originalColumn,n,t,e.name))}}},dr.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[fr]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},dr.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[fr]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},dr.prototype.walk=function(e){for(var t,r=0,s=this.children.length;r<s;r++)(t=this.children[r])[fr]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},dr.prototype.join=function(e){var t,r,s=this.children.length;if(s>0){for(t=[],r=0;r<s-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},dr.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[fr]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},dr.prototype.setSourceContent=function(e,t){this.sourceContents[pr.toSetString(e)]=t},dr.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][fr]&&this.children[t].walkSourceContents(e);var s=Object.keys(this.sourceContents);for(t=0,r=s.length;t<r;t++)e(pr.fromSetString(s[t]),this.sourceContents[s[t]])},dr.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},dr.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new cr(e),s=!1,n=null,o=null,i=null,a=null;return this.walk((function(e,l){t.code+=e,null!==l.source&&null!==l.line&&null!==l.column?(n===l.source&&o===l.line&&i===l.column&&a===l.name||r.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:t.line,column:t.column},name:l.name}),n=l.source,o=l.line,i=l.column,a=l.name,s=!0):s&&(r.addMapping({generated:{line:t.line,column:t.column}}),n=null,s=!1);for(var u=0,c=e.length;u<c;u++)10===e.charCodeAt(u)?(t.line++,t.column=0,u+1===c?(n=null,s=!1):s&&r.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:t.line,column:t.column},name:l.name})):t.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:t.code,map:r}},ur.SourceNode=dr,kt.SourceMapGenerator=Pt.SourceMapGenerator,kt.SourceMapConsumer=Jt.SourceMapConsumer,kt.SourceNode=ur.SourceNode;var mr={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t)=>()=>{let r="",s=t;for(;s--;)r+=e[Math.random()*e.length|0];return r}};let{SourceMapConsumer:gr,SourceMapGenerator:wr}=kt,{existsSync:yr,readFileSync:vr}=G.default,{dirname:Sr,join:br}=T.default;class Cr{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Sr(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new gr(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}loadFile(e){if(this.root=Sr(e),yr(e))return this.mapFile=e,vr(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof gr)return wr.fromSourceMap(t).toString();if(t instanceof wr)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=br(Sr(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}var Or=Cr;Cr.default=Cr;let{SourceMapConsumer:xr,SourceMapGenerator:_r}=kt,{fileURLToPath:Ar,pathToFileURL:kr}=q.default,{resolve:Pr,isAbsolute:Mr}=T.default,{nanoid:Lr}=mr,Er=nt,Rr=lt,jr=Or,Ir=Symbol("fromOffsetCache"),$r=Boolean(xr&&_r),Fr=Boolean(Pr&&Mr);class Nr{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Fr||/^\w+:\/\//.test(t.from)||Mr(t.from)?this.file=t.from:this.file=Pr(t.from)),Fr&&$r){let e=new jr(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+Lr(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,r;if(this[Ir])r=this[Ir];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let s=0,n=e.length;s<n;s++)r[s]=t,t+=e[s].length+1;this[Ir]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let t,n=r.length-2;for(;s<n;)if(t=s+(n-s>>1),e<r[t])n=t-1;else{if(!(e>=r[t+1])){s=t;break}s=t+1}}return{line:s+1,col:e-r[s]+1}}error(e,t,r,s={}){let n,o,i;if(t&&"object"==typeof t){let e=t,s=r;if("number"==typeof t.offset){let s=this.fromOffset(e.offset);t=s.line,r=s.col}else t=e.line,r=e.column;if("number"==typeof s.offset){let e=this.fromOffset(s.offset);o=e.line,i=e.col}else o=s.line,i=s.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,o,i);return n=a?new Rr(e,void 0===a.endLine?a.line:{line:a.line,column:a.column},void 0===a.endLine?a.column:{line:a.endLine,column:a.endColumn},a.source,a.file,s.plugin):new Rr(e,void 0===o?t:{line:t,column:r},void 0===o?r:{line:o,column:i},this.css,this.file,s.plugin),n.input={line:t,column:r,endLine:o,endColumn:i,source:this.css},this.file&&(kr&&(n.input.url=kr(this.file).toString()),n.input.file=this.file),n}origin(e,t,r,s){if(!this.map)return!1;let n,o,i=this.map.consumer(),a=i.originalPositionFor({line:e,column:t});if(!a.source)return!1;"number"==typeof r&&(n=i.originalPositionFor({line:r,column:s})),o=Mr(a.source)?kr(a.source):new URL(a.source,this.map.consumer().sourceRoot||kr(this.map.mapFile));let l={url:o.toString(),line:a.line,column:a.column,endLine:n&&n.line,endColumn:n&&n.column};if("file:"===o.protocol){if(!Ar)throw new Error("file: protocol is not available in this PostCSS build");l.file=Ar(o)}let u=i.sourceContentFor(a.source);return u&&(l.source=u),l}mapResolve(e){return/^\w+:\/\//.test(e)?e:Pr(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}var Ur=Nr;Nr.default=Nr,Er&&Er.registerInput&&Er.registerInput(Nr);let{SourceMapConsumer:Br,SourceMapGenerator:Dr}=kt,{dirname:Tr,resolve:qr,relative:Gr,sep:zr}=T.default,{pathToFileURL:Vr}=q.default,Wr=Ur,Jr=Boolean(Br&&Dr),Yr=Boolean(Tr&&qr&&Gr&&zr);var Qr=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new Wr(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let r=t.source.input.from;r&&!e[r]&&(e[r]=!0,this.map.setSourceContent(this.toUrl(this.path(r)),t.source.input.css))}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),s=e.root||Tr(e.file);!1===this.mapOpts.sourcesContent?(t=new Br(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map((()=>null)))):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(s)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Dr.fromSourceMap(e)}else this.map=new Dr({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?Tr(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=Tr(qr(t,this.mapOpts.annotation))),e=Gr(t,e)}toUrl(e){return"\\"===zr&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(Vr)return Vr(e.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new Dr({file:this.outputFile()});let e,t,r=1,s=1,n="<no source>",o={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((i,a,l)=>{if(this.css+=i,a&&"end"!==l&&(o.generated.line=r,o.generated.column=s-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,this.map.addMapping(o))),e=i.match(/\n/g),e?(r+=e.length,t=i.lastIndexOf("\n"),s=i.length-t):s+=i.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"!==a.type||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=r,o.generated.column=s-2,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=r,o.generated.column=s-1,this.map.addMapping(o)))}}))}generate(){if(this.clearAnnotation(),Yr&&Jr&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}};let Hr=Ot;class Zr extends Hr{constructor(e){super(e),this.type="comment"}}var Kr=Zr;Zr.default=Zr;let Xr,es,ts,{isClean:rs,my:ss}=ut,ns=At,os=Kr,is=Ot;function as(e){return e.map((e=>(e.nodes&&(e.nodes=as(e.nodes)),delete e.source,e)))}function ls(e){if(e[rs]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)ls(t)}class us extends is{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,r,s=this.getIterator();for(;this.indexes[s]<this.proxyOf.nodes.length&&(t=this.indexes[s],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[s]+=1;return delete this.indexes[s],r}walk(e){return this.each(((t,r)=>{let s;try{s=e(t,r)}catch(e){throw t.addToError(e)}return!1!==s&&t.walk&&(s=t.walk(e)),s}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((r,s)=>{if("decl"===r.type&&e.test(r.prop))return t(r,s)})):this.walk(((r,s)=>{if("decl"===r.type&&r.prop===e)return t(r,s)})):(t=e,this.walk(((e,r)=>{if("decl"===e.type)return t(e,r)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((r,s)=>{if("rule"===r.type&&e.test(r.selector))return t(r,s)})):this.walk(((r,s)=>{if("rule"===r.type&&r.selector===e)return t(r,s)})):(t=e,this.walk(((e,r)=>{if("rule"===e.type)return t(e,r)})))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((r,s)=>{if("atrule"===r.type&&e.test(r.name))return t(r,s)})):this.walk(((r,s)=>{if("atrule"===r.type&&r.name===e)return t(r,s)})):(t=e,this.walk(((e,r)=>{if("atrule"===e.type)return t(e,r)})))}walkComments(e){return this.walk(((t,r)=>{if("comment"===t.type)return e(t,r)}))}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let r,s=0===(e=this.index(e))&&"prepend",n=this.normalize(t,this.proxyOf.nodes[e],s).reverse();for(let t of n)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)r=this.indexes[t],e<=r&&(this.indexes[t]=r+n.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let r,s=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of s)this.proxyOf.nodes.splice(e+1,0,t);for(let t in this.indexes)r=this.indexes[t],e<r&&(this.indexes[t]=r+s.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls((s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,r))})),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if("string"==typeof e)e=as(Xr(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new ns(e)]}else if(e.selector)e=[new es(e)];else if(e.name)e=[new ts(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new os(e)]}let r=e.map((e=>(e[ss]||us.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[rs]&&ls(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this,e)));return r}getProxyProcessor(){return{set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map((e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e))):"every"===t||"some"===t?r=>e[t](((e,...t)=>r(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}us.registerParse=e=>{Xr=e},us.registerRule=e=>{es=e},us.registerAtRule=e=>{ts=e};var cs=us;us.default=us,us.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,ts.prototype):"rule"===e.type?Object.setPrototypeOf(e,es.prototype):"decl"===e.type?Object.setPrototypeOf(e,ns.prototype):"comment"===e.type&&Object.setPrototypeOf(e,os.prototype),e[ss]=!0,e.nodes&&e.nodes.forEach((e=>{us.rebuild(e)}))};let ps,hs,fs=cs;class ds extends fs{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ps(new hs,this,e).stringify()}}ds.registerLazyResult=e=>{ps=e},ds.registerProcessor=e=>{hs=e};var ms=ds;ds.default=ds;let gs={};var ws=function(e){gs[e]||(gs[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};class ys{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}var vs=ys;ys.default=ys;let Ss=vs;class bs{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Ss(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}var Cs=bs;bs.default=bs;let Os=cs;class xs extends Os{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}var _s=xs;xs.default=xs,Os.registerAtRule(xs);let As,ks,Ps=cs;class Ms extends Ps{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}normalize(e,t,r){let s=super.normalize(e);if(t)if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of s)e.raws.before=t.raws.before;return s}toResult(e={}){return new As(new ks,this,e).stringify()}}Ms.registerLazyResult=e=>{As=e},Ms.registerProcessor=e=>{ks=e};var Ls=Ms;Ms.default=Ms;let Es={split(e,t,r){let s=[],n="",o=!1,i=0,a=!1,l=!1;for(let r of e)l?l=!1:"\\"===r?l=!0:a?r===a&&(a=!1):'"'===r||"'"===r?a=r:"("===r?i+=1:")"===r?i>0&&(i-=1):0===i&&t.includes(r)&&(o=!0),o?(""!==n&&s.push(n.trim()),n="",o=!1):n+=r;return(r||""!==n)&&s.push(n.trim()),s},space:e=>Es.split(e,[" ","\n","\t"]),comma:e=>Es.split(e,[","],!0)};var Rs=Es;Es.default=Es;let js=cs,Is=Rs;class $s extends js{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Is.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}var Fs=$s;$s.default=$s,js.registerRule($s);let Ns=At,Us=Ze,Bs=Kr,Ds=_s,Ts=Ls,qs=Fs;var Gs=class{constructor(e){this.input=e,this.root=new Ts,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=Us(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}comment(e){let t=new Bs;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new qs;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,r=null,s=!1,n=null,o=[],i=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)n||(n=l),o.push("("===r?")":"]");else if(i&&s&&"{"===r)n||(n=l),o.push("}");else if(0===o.length){if(";"===r){if(s)return void this.decl(a,i);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(s=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(n=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&s){for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,i)}else this.unknownWord(a)}rule(e){e.pop();let t=new qs;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let r=new Ns;this.init(r,e[0][2]);let s,n=e[e.length-1];for(";"===n[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]);"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(s=e.shift(),":"===s[0]){r.raws.between+=s[1];break}"word"===s[0]&&/\w/.test(s[1])&&this.unknownWord([s]),r.raws.between+=s[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(s=e[t],"!important"===s[1].toLowerCase()){r.important=!0;let s=this.stringFrom(e,t);s=this.spacesFromEnd(e)+s," !important"!==s&&(r.raws.important=s);break}if("important"===s[1].toLowerCase()){let s=e.slice(0),n="";for(let e=t;e>0;e--){let t=s[e][0];if(0===n.trim().indexOf("!")&&"space"!==t)break;n=s.pop()[1]+n}0===n.trim().indexOf("!")&&(r.important=!0,r.raws.important=n,e=s)}if("space"!==s[0]&&"comment"!==s[0])break}let i=e.some((e=>"space"!==e[0]&&"comment"!==e[0]));this.raw(r,"value",e),i?r.raws.between+=o:r.value=o+r.value,r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,r,s,n=new Ds;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let o=!1,i=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){n.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){i=!0;break}if("}"===t){if(a.length>0){for(s=a.length-1,r=a[s];r&&"space"===r[0];)r=a[--s];r&&(n.source.end=this.getPosition(r[3]||r[2]))}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(n.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(n,"params",a),o&&(e=a[a.length-1],n.source.end=this.getPosition(e[3]||e[2]),this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),i&&(n.nodes=[],this.current=n)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,r){let s,n,o,i,a=r.length,l="",u=!0,c=/^([#.|])?(\w)+/i;for(let t=0;t<a;t+=1)s=r[t],n=s[0],"comment"!==n||"rule"!==e.type?"comment"===n||"space"===n&&t===a-1?u=!1:l+=s[1]:(i=r[t-1],o=r[t+1],"space"!==i[0]&&"space"!==o[0]&&c.test(i[1])&&c.test(o[1])?l+=s[1]:u=!1);if(!u){let s=r.reduce(((e,t)=>e+t[1]),"");e.raws[t]={value:l,raw:s}}e[t]=l}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}colon(e){let t,r,s,n=0;for(let[o,i]of e.entries()){if(t=i,r=t[0],"("===r&&(n+=1),")"===r&&(n-=1),0===n&&":"===r){if(s){if("word"===s[0]&&"progid"===s[1])continue;return o}this.doubleColon(t)}s=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,s=0;for(let n=t-1;n>=0&&(r=e[n],"space"===r[0]||(s+=1,2!==s));n--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}};let zs=cs,Vs=Gs,Ws=Ur;function Js(e,t){let r=new Ws(e,t),s=new Vs(r);try{s.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return s.root}var Ys=Js;Js.default=Js,zs.registerParse(Js);let{isClean:Qs,my:Hs}=ut,Zs=Qr,Ks=mt,Xs=cs,en=ms,tn=ws,rn=Cs,sn=Ys,nn=Ls;const on={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},an={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},ln={postcssPlugin:!0,prepare:!0,Once:!0};function un(e){return"object"==typeof e&&"function"==typeof e.then}function cn(e){let t=!1,r=on[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function pn(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:cn(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function hn(e){return e[Qs]=!1,e.nodes&&e.nodes.forEach((e=>hn(e))),e}let fn={};class dn{constructor(e,t,r){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof dn||t instanceof rn)s=hn(t.root),t.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let e=sn;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{s=e(t,r)}catch(e){this.processed=!0,this.error=e}s&&!s[Hs]&&Xs.rebuild(s)}else s=hn(t);this.result=new rn(e,s,r),this.helpers={...fn,result:this.result,postcss:fn},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||tn("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(un(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Qs];)e[Qs]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Ks;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new Zs(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}walkSync(e){e[Qs]=!0;let t=cn(e);for(let r of t)if(0===r)e.nodes&&e.each((e=>{e[Qs]||this.walkSync(e)}));else{let t=this.listeners[r];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[r,s]of e){let e;this.result.lastPlugin=r;try{e=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(un(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return un(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let e=r.postcssPlugin,t=r.postcssVersion,s=this.result.processor.version,n=t.split("."),o=s.split(".");(n[0]!==o[0]||parseInt(n[1])>parseInt(o[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+s+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(un(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Qs];){e[Qs]=!0;let t=[pn(e)];for(;t.length>0;){let e=this.visitTick(t);if(un(e))try{await e}catch(e){let r=t[t.length-1].node;throw this.handleError(e,r)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>r(e,this.helpers)));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!an[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ln[r])if("object"==typeof t[r])for(let s in t[r])e(t,"*"===s?r:r+"-"+s.toLowerCase(),t[r][s]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(s.length>0&&t.visitorIndex<s.length){let[e,n]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let s,n=t.iterator;for(;s=r.nodes[r.indexes[n]];)if(r.indexes[n]+=1,!s[Qs])return s[Qs]=!0,void e.push(pn(s));t.iterator=0,delete r.indexes[n]}let n=t.events;for(;t.eventIndex<n.length;){let e=n[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[Qs]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}dn.registerPostcss=e=>{fn=e};var mn=dn;dn.default=dn,nn.registerLazyResult(dn),en.registerLazyResult(dn);let gn=Qr,wn=mt,yn=ws,vn=Ys;const Sn=Cs;class bn{constructor(e,t,r){let s;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let n=wn;this.result=new Sn(this._processor,s,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get:()=>o.root});let i=new gn(n,s,this._opts,t);if(i.isMap()){let[e,t]=i.generate();e&&(this.result.css=e),t&&(this.result.map=t)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,t=vn;try{e=t(this._css,this._opts)}catch(e){this.error=e}return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||yn("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}var Cn=bn;bn.default=bn;let On=Cn,xn=mn,_n=ms,An=Ls;class kn{constructor(e=[]){this.version="8.4.5",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0===this.plugins.length&&void 0===t.parser&&void 0===t.stringifier&&void 0===t.syntax?new On(this,e,t):new xn(this,e,t)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}}var Pn=kn;kn.default=kn,An.registerProcessor(kn),_n.registerProcessor(kn);let Mn=At,Ln=Or,En=Kr,Rn=_s,jn=Ur,In=Ls,$n=Fs;function Fn(e,t){if(Array.isArray(e))return e.map((e=>Fn(e)));let{inputs:r,...s}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:jn.prototype};r.map&&(r.map={...r.map,__proto__:Ln.prototype}),t.push(r)}}if(s.nodes&&(s.nodes=e.nodes.map((e=>Fn(e,t)))),s.source){let{inputId:e,...r}=s.source;s.source=r,null!=e&&(s.source.input=t[e])}if("root"===s.type)return new In(s);if("decl"===s.type)return new Mn(s);if("rule"===s.type)return new $n(s);if("comment"===s.type)return new En(s);if("atrule"===s.type)return new Rn(s);throw new Error("Unknown node type: "+e.type)}var Nn=Fn;Fn.default=Fn;let Un=lt,Bn=At,Dn=mn,Tn=cs,qn=Pn,Gn=mt,zn=Nn,Vn=ms,Wn=vs,Jn=Kr,Yn=_s,Qn=Cs,Hn=Ur,Zn=Ys,Kn=Rs,Xn=Fs,eo=Ls,to=Ot;function ro(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new qn(e)}ro.plugin=function(e,t){function r(...r){let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=(new qn).version,s}let s;return console&&console.warn&&(console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226")),Object.defineProperty(r,"postcss",{get:()=>(s||(s=r()),s)}),r.process=function(e,t,s){return ro([r(s)]).process(e,t)},r},ro.stringify=Gn,ro.parse=Zn,ro.fromJSON=zn,ro.list=Kn,ro.comment=e=>new Jn(e),ro.atRule=e=>new Yn(e),ro.decl=e=>new Bn(e),ro.rule=e=>new Xn(e),ro.root=e=>new eo(e),ro.document=e=>new Vn(e),ro.CssSyntaxError=Un,ro.Declaration=Bn,ro.Container=Tn,ro.Processor=qn,ro.Document=Vn,ro.Comment=Jn,ro.Warning=Wn,ro.AtRule=Yn,ro.Result=Qn,ro.Input=Hn,ro.Rule=Xn,ro.Root=eo,ro.Node=to,Dn.registerPostcss(ro);var so=ro;async function no(){return new Promise((e=>{let t="",r=!1;if(setTimeout((()=>{r=!0,e("")}),1e4),process.stdin.isTTY){if(r)return;e(t)}else process.stdin.setEncoding("utf8"),process.stdin.on("readable",(()=>{let e;for(;e=process.stdin.read();)t+=e})),process.stdin.on("end",(()=>{r||e(t)}))}))}function oo(e,t,r,s=null){let n=[];if(s){const e=Math.max(...Object.keys(s).map((e=>e.length))),t=new Array(e).fill(" ").join("");t.length&&(n=["\nPlugin Options:",...Object.keys(s).map((e=>` ${(e+t).slice(0,t.length)} ${typeof s[e]}`))],n.push(`\n ${JSON.stringify(s,null,2).split("\n").join("\n ")}`))}const o=[`${t}\n`,` ${r}\n`,"Usage:",` ${e} [input.css] [OPTIONS] [-o|--output output.css]`,` ${e} <input.css>... [OPTIONS] --dir <output-directory>`,` ${e} <input.css>... [OPTIONS] --replace`,"\nOptions:"," -o, --output Output file"," -d, --dir Output directory"," -r, --replace Replace (overwrite) the input file"," -m, --map Create an external sourcemap"," --no-map Disable the default inline sourcemaps"," -p, --plugin-options Stringified JSON object with plugin options"];return n.length>0&&o.push(...n),()=>{console.warn(o.join("\n"))}}async function io(e,t,r,s=!0){const o=function(e,t,r){const s=e.map((e=>e.trim())).filter((e=>!!e)),n={stdin:!1,stdout:!1,output:null,outputDir:null,inputs:[],inlineMap:!0,externalMap:!1,replace:!1,pluginOptions:{},debug:!1};let o=null,i=!1;for(let e=0;e<s.length;e++){const t=s[e];switch(t){case"-o":case"--output":n.output=s[e+1],e++,i=!0;break;case"-m":case"--map":n.externalMap=!0,n.inlineMap=!1,i=!0;break;case"--no-map":n.externalMap=!1,n.inlineMap=!1,i=!0;break;case"-r":case"--replace":n.replace=!0,i=!0;break;case"--debug":n.debug=!0,i=!0;break;case"-d":case"--dir":n.outputDir=s[e+1],e++,i=!0;break;case"-p":case"--plugin-options":o=s[e+1],e++,i=!0;break;default:if(0===t.indexOf("-"))return console.warn(`[error] unknown argument : ${t}\n`),r(),U.InvalidArguments;if(!i){n.inputs.push(t);break}return r(),U.InvalidArguments}}if(n.replace&&(n.output=null,n.outputDir=null),n.outputDir&&(n.output=null),n.inputs.length>1&&n.output)return console.warn('[error] omit "--output" when processing multiple inputs\n'),r(),U.InvalidArguments;0===n.inputs.length&&(n.stdin=!0),n.output||n.outputDir||n.replace||(n.stdout=!0),n.stdout&&(n.externalMap=!1);let a={};if(o)try{a=JSON.parse(o)}catch(e){return console.warn("[error] plugin options must be valid JSON\n"),r(),U.InvalidArguments}for(const e in a){const s=a[e];if(!t.includes(e))return console.warn(`[error] unknown plugin option: ${e}\n`),r(),U.InvalidArguments;n.pluginOptions[e]=s}return n}(process.argv.slice(s?2:3),t,r);o===U.InvalidArguments&&process.exit(1);const i=e(o.pluginOptions);o.stdin&&o.stdout?await async function(e,t,r){let s="";try{const n=await no();n||(r(),process.exit(1)),s=(await so([e]).process(n,{from:"stdin",to:"stdout",map:!!t.inlineMap&&{inline:!0}})).css}catch(e){console.error(t.debug?e:e.message),process.exit(1)}process.stdout.write(s+(t.inlineMap?"\n":"")),process.exit(0)}(i,o,r):o.stdin?await async function(e,t,r){let s=t.output;!s&&t.outputDir&&(s=T.default.join(t.outputDir,"output.css"));try{const o=await no();o||(r(),process.exit(1));const i=await so([e]).process(o,{from:"stdin",to:s,map:!(!t.inlineMap&&!t.externalMap)&&{inline:t.inlineMap}});t.externalMap&&i.map?await Promise.all([await n.promises.writeFile(s,i.css+(t.inlineMap?"\n":"")),await n.promises.writeFile(`${s}.map`,i.map.toString())]):await n.promises.writeFile(s,i.css+(t.inlineMap?"\n":""))}catch(e){console.error(t.debug?e:e.message),process.exit(1)}console.log(`CSS was written to "${T.default.normalize(s)}"`),process.exit(0)}(i,o,r):o.stdout?await async function(e,t){let r=[];try{r=await Promise.all(t.inputs.map((async t=>{const r=await n.promises.readFile(t);return(await so([e]).process(r,{from:t,to:"stdout",map:!1})).css})))}catch(e){console.error(t.debug?e:e.message),process.exit(1)}for(const e of r)process.stdout.write(e);process.exit(0)}(i,o):await async function(e,t){try{await Promise.all(t.inputs.map((async r=>{let s=t.output;t.outputDir&&(s=T.default.join(t.outputDir,T.default.basename(r))),t.replace&&(s=r);const o=await n.promises.readFile(r),i=await so([e]).process(o,{from:r,to:s,map:!(!t.inlineMap&&!t.externalMap)&&{inline:t.inlineMap}});t.externalMap&&i.map?await Promise.all([await n.promises.writeFile(s,i.css+(t.inlineMap?"\n":"")),await n.promises.writeFile(`${s}.map`,i.map.toString())]):await n.promises.writeFile(s,i.css+(t.inlineMap?"\n":"")),console.log(`CSS was written to "${T.default.normalize(s)}"`)})))}catch(e){console.error(t.debug?e:e.message),process.exit(1)}process.exit(0)}(i,o)}ro.default=ro;var ao={exports:{}},lo=le.default,uo=ue.default,co=ce.default,po=pe.default,ho=B.default,fo=W.default,mo=J.default,go=Y.default,wo=he.default,yo=Q.default,vo=fe.default,So=H.default,bo=Z.default,Co=K.default,Oo=X.default,xo=ee.default,_o=de.default,Ao=te.default,ko=z.default,Po=re.default,Mo=me.default,Lo=se.default,Eo=ne.default,Ro=ge.default,jo=oe.default,Io=ie.default,$o=we.default,Fo=ae.default,No=V.default,Uo=ye.default,Bo=ve.default,Do=Se.default,To=be.default,qo=G.default,Go=T.default;function zo(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var Vo=zo(lo),Wo=zo(uo),Jo=zo(co),Yo=zo(po),Qo=zo(ho),Ho=zo(fo),Zo=zo(mo),Ko=zo(go),Xo=zo(wo),ei=zo(yo),ti=zo(vo),ri=zo(So),si=zo(bo),ni=zo(Co),oi=zo(Oo),ii=zo(xo),ai=zo(_o),li=zo(Ao),ui=zo(ko),ci=zo(Po),pi=zo(Mo),hi=zo(Lo),fi=zo(Eo),di=zo(Ro),mi=zo(jo),gi=zo(Io),wi=zo($o),yi=zo(Fo),vi=zo(No),Si=zo(Uo),bi=zo(Bo),Ci=zo(Do),Oi=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}(To),xi=zo(qo),_i=zo(Go);function Ai(){return{postcssPlugin:"postcss-system-ui-font",Declaration(e){ki.test(e.prop)&&(e.value.includes(Mi.join(", "))||(e.value=e.value.replace(Li,Ei)))}}}Ai.postcss=!0;const ki=/(?:^(?:-|\\002d){2})|(?:^font(?:-family)?$)/i,Pi="[\\f\\n\\r\\x09\\x20]",Mi=["system-ui","-apple-system","Segoe UI","Roboto","Ubuntu","Cantarell","Noto Sans","sans-serif"],Li=new RegExp(`(^|,|${Pi}+)(?:system-ui${Pi}*)(?:,${Pi}*(?:${Mi.join("|")})${Pi}*)?(,|$)`,"i"),Ei=`$1${Mi.join(", ")}$2`,Ri={"css-blank-pseudo":"blank-pseudo-class","css-has-pseudo":"has-pseudo-class","css-prefers-color-scheme":"prefers-color-scheme-query","postcss-attribute-case-insensitive":"case-insensitive-attributes","postcss-color-functional-notation":"color-functional-notation","postcss-color-hex-alpha":"hexadecimal-alpha-notation","postcss-color-rebeccapurple":"rebeccapurple-color","postcss-custom-media":"custom-media-queries","postcss-custom-properties":"custom-properties","postcss-custom-selectors":"custom-selectors","postcss-dir-pseudo-class":"dir-pseudo-class","postcss-double-position-gradients":"double-position-gradients","postcss-env-function":"environment-variables","postcss-focus-visible":"focus-visible-pseudo-class","postcss-focus-within":"focus-within-pseudo-class","postcss-font-variant":"font-variant-property","postcss-gap-properties":"gap-properties","postcss-image-set-function":"image-set-function","postcss-initial":"all-property","postcss-lab-function":"lab-function","postcss-logical":"logical-properties-and-values","postcss-media-minmax":"media-query-ranges","postcss-nesting":"nesting-rules","postcss-overflow-shorthand":"overflow-property","postcss-page-break":"break-properties","postcss-place":"place-properties","postcss-pseudo-class-any-link":"any-link-pseudo-class","postcss-replace-overflow-wrap":"overflow-wrap-property","postcss-selector-not":"not-pseudo-class","postcss-system-ui-font-family":"system-ui-font-family"},ji=(()=>{const e={};for(const[t,r]of Object.entries(Ri))e[r]=t;return e})(),Ii={"all-property":pi.default,"any-link-pseudo-class":Si.default,"blank-pseudo-class":Qo.default,"break-properties":wi.default,"case-insensitive-attributes":Yo.default,"color-functional-notation":Ho.default,"custom-media-queries":Xo.default,"custom-properties":ei.default,"custom-selectors":ti.default,"dir-pseudo-class":ri.default,"double-position-gradients":si.default,"environment-variables":ni.default,"focus-visible-pseudo-class":oi.default,"focus-within-pseudo-class":ii.default,"font-variant-property":ai.default,"gap-properties":li.default,"has-pseudo-class":ui.default,"hexadecimal-alpha-notation":Zo.default,"image-set-function":ci.default,"lab-function":hi.default,"logical-properties-and-values":fi.default,"media-query-ranges":di.default,"nesting-rules":mi.default,"not-pseudo-class":Ci.default,"overflow-property":gi.default,"overflow-wrap-property":bi.default,"place-properties":yi.default,"prefers-color-scheme-query":vi.default,"rebeccapurple-color":Ko.default,"system-ui-font-family":Ai};function $i(e,t){return Object.keys(e).map((r=>[].concat(e[r]).map((e=>({[t]:!0,plugin:e,id:r}))))).reduce(((e,t)=>e.concat(t)),[])}function Fi(e){const t=Oi.features[e];if(t){const e=Oi.feature(t).stats;return Object.keys(e).reduce(((t,r)=>t.concat(Object.keys(e[r]).filter((t=>0!==e[r][t].indexOf("y"))).map((e=>`${r} ${e}`)))),[])}return["> 0%"]}var Ni=["custom-media-queries","custom-properties","environment-variables","image-set-function","media-query-ranges","prefers-color-scheme-query","nesting-rules","custom-selectors","any-link-pseudo-class","case-insensitive-attributes","focus-visible-pseudo-class","focus-within-pseudo-class","matches-pseudo-class","not-pseudo-class","logical-properties-and-values","dir-pseudo-class","all-property","color-functional-notation","double-position-gradients","hexadecimal-alpha-notation","lab-function","rebeccapurple-color","color-mod-function","blank-pseudo-class","break-properties","font-variant-property","has-pseudo-class","gap-properties","overflow-property","overflow-wrap-property","place-properties","system-ui-font-family"];function Ui(e,t){return`\n\t${e}: {\n${Object.keys(t).reduce(((e,r)=>(e.push(`\t\t'${Gi(r)}': '${Gi(t[r])}'`),e)),[]).join(",\n")}\n\t}`}function Bi(e,t){return`export const ${e} = {\n${Object.keys(t).reduce(((e,r)=>(e.push(`\t'${Gi(r)}': '${Gi(t[r])}'`),e)),[]).join(",\n")}\n};\n`}function Di(e,t){return Promise.all([].concat(t).map((async t=>{if(t instanceof Function)await t({customMedia:Ti(e.customMedia),customProperties:Ti(e.customProperties),customSelectors:Ti(e.customSelectors)});else{const r=t===Object(t)?t:{to:String(t)},s=r.toJSON||Ti;if("customMedia"in r||"customProperties"in r||"customSelectors"in r)r.customMedia=s(e.customMedia),r.customProperties=s(e.customProperties),r.customSelectors=s(e.customSelectors);else if("custom-media"in r||"custom-properties"in r||"custom-selectors"in r)r["custom-media"]=s(e.customMedia),r["custom-properties"]=s(e.customProperties),r["custom-selectors"]=s(e.customSelectors);else{const t=String(r.to||""),n=(r.type||_i.default.extname(r.to).slice(1)).toLowerCase(),o=s(e.customMedia),i=s(e.customProperties),a=s(e.customSelectors);"css"===n&&await async function(e,t,r,s){const n=function(e){return`:root {\n${Object.keys(e).reduce(((t,r)=>(t.push(`\t${r}: ${e[r]};`),t)),[]).join("\n")}\n}\n`}(r),o=function(e){return`${Object.keys(e).reduce(((t,r)=>(t.push(`@custom-media ${r} ${e[r]};`),t)),[]).join("\n")}\n`}(t),i=function(e){return`${Object.keys(e).reduce(((t,r)=>(t.push(`@custom-selector ${r} ${e[r]};`),t)),[]).join("\n")}\n`}(s),a=`${o}\n${i}\n${n}`;await qi(e,a)}(t,o,i,a),"js"===n&&await async function(e,t,r,s){const n=`module.exports = {${Ui("customMedia",t)},${Ui("customProperties",r)},${Ui("customSelectors",s)}\n};\n`;await qi(e,n)}(t,o,i,a),"json"===n&&await async function(e,t,r,s){const n=`${JSON.stringify({"custom-media":t,"custom-properties":r,"custom-selectors":s},null," ")}\n`;await qi(e,n)}(t,o,i,a),"mjs"===n&&await async function(e,t,r,s){const n=`${Bi("customMedia",t)}\n${Bi("customProperties",r)}\n${Bi("customSelectors",s)}`;await qi(e,n)}(t,o,i,a)}}})))}function Ti(e){return Object.keys(e).reduce(((t,r)=>(t[r]=String(e[r]),t)),{})}function qi(e,t){return new Promise(((r,s)=>{xi.default.writeFile(e,t,(e=>{e?s(e):r()}))}))}function Gi(e){return e.replace(/\\([\s\S])|(')/g,"\\$1$2").replace(/\n/g,"\\n").replace(/\r/g,"\\r")}function zi(e,t){let r="unknown",s=1/0;for(let n=0;n<t.length;n++){const o=Vi(e,t[n]);o<s&&(s=o,r=t[n])}return{mostSimilar:r,distance:s}}function Vi(e,t){if(!e.length)return t.length;if(!t.length)return e.length;const r=[];for(let s=0;s<=t.length;s++){r[s]=[s];for(let n=1;n<=e.length;n++)r[s][n]=0===s?n:Math.min(r[s-1][n]+1,r[s][n-1]+1,r[s-1][n-1]+(e[n-1]===t[s-1]?0:1))}return r[t.length][e.length]}const Wi=e=>{const t=Object(Object(e).features),r=Object.keys(t),s=Object(Object(e).insertBefore),n=Object(Object(e).insertAfter),o=Object(e).browsers,i="stage"in Object(e)?!1===e.stage?5:parseInt(e.stage)||0:2,a=Object(e).autoprefixer,l=Ji(Object(e)),u=!1===a?()=>{}:Vo.default(Object.assign({overrideBrowserslist:o},a)),c=Jo.default.concat($i(s,"insertBefore"),$i(n,"insertAfter")).filter((e=>e.insertBefore||e.id in Ii)).sort(((e,t)=>Ni.indexOf(e.id)-Ni.indexOf(t.id)||(e.insertBefore?-1:t.insertBefore?1:0)||(e.insertAfter?1:t.insertAfter?-1:0))).map((e=>{const t=Fi(e.caniuse);return e.insertBefore||e.insertAfter?{browsers:t,plugin:e.plugin,id:`${e.insertBefore?"before":"after"}-${e.id}`,stage:6}:{browsers:t,plugin:Ii[e.id],id:e.id,stage:e.stage}})).filter((e=>e.id in t?t[e.id]:e.stage>=i)).map((e=>{let r,s;return r=function(e,t){const r=Wo.default(e,{ignoreUnknownVersions:!0});return"nesting-rules"===t.id&&function(e,t){const r=Fi("css-matches-pseudo");return!!t.some((e=>Wo.default(r,{ignoreUnknownVersions:!0}).some((t=>t===e))))}(0,r)?{noIsPseudoSelector:!0}:{}}(o,e),r=!0===t[e.id]?l?Object.assign({},r,l):void 0:l?Object.assign({},r,l,t[e.id]):Object.assign({},r,t[e.id]),s=e.plugin.postcss?e.plugin(r):e.plugin,{browsers:e.browsers,plugin:s,id:e.id}})),p=Wo.default(o,{ignoreUnknownVersions:!0}),h=c.filter((e=>e.id in t?t[e.id]:p.some((t=>Wo.default(e.browsers,{ignoreUnknownVersions:!0}).some((e=>e===t)))))).map((e=>e.plugin));h.push(u);const f=()=>({postcssPlugin:"postcss-preset-env",OnceExit:function(t,{result:s}){!function(e,t,r){const s=Object.keys(ji),n=Object.keys(Ri);e.forEach((e=>{if(s.includes(e))return;const o=zi(e,s),i=zi(e,n);o.distance<i.distance?t.warn(r,`Unknown feature: "${e}" did you mean: "${o.mostSimilar}"`):t.warn(r,`Unknown feature: "${e}" did you mean: "${Ri[i.mostSimilar]}"`)}))}(r,t,s),Object(e).exportTo&&Di(l.exportTo,e.exportTo)}});return f.postcss=!0,{postcssPlugin:"postcss-preset-env",plugins:[...h,f()]}},Ji=e=>{if("importFrom"in e||"exportTo"in e||"preserve"in e){const t={};return"importFrom"in e&&(t.importFrom=e.importFrom),"exportTo"in e&&(t.exportTo={customMedia:{},customProperties:{},customSelectors:{}}),"preserve"in e&&(t.preserve=e.preserve),t}return!1};Wi.postcss=!0,ao.exports=Wi;var Yi=ao.exports;!function(){switch(process.argv[2]??!1){case"css-blank-pseudo":return void io(B.default,["preserve","replaceWith"],oo("@csstools/cli css-blank-pseudo","PostCSS Blank Pseudo","Lets you style form elements when they are empty, following the Selectors Level 4 specification.",{preserve:!0,replaceWith:".css-blank"}),!1);case"css-has-pseudo":return void io(z.default,["preserve"],oo("@csstools/cli css-has-pseudo","PostCSS Has Pseudo","Transforms CSS with :has {}",{preserve:!0}),!1);case"css-prefers-color-scheme":return void io(V.default,["preserve","mediaQuery"],oo("@csstools/cli css-prefers-color-scheme","Prefers Color Scheme","Lets you use light and dark color schemes in all browsers, following the [Media Queries] specification.",{preserve:!0,mediaQuery:"color|color-index"}),!1);case"postcss-color-functional-notation":return void io(W.default,["preserve"],oo("@csstools/cli postcss-color-functional-notation","PostCSS Color Functional Notation","Lets you use space and slash separated color notation in CSS, following the [CSS Color] specification.",{preserve:!0}),!1);case"postcss-color-hex-alpha":return void io(J.default,["preserve"],oo("@csstools/cli postcss-color-hex-alpha","PostCSS Color Hex Alpha","Lets you use 4 & 8 character hex color notation in CSS, following the CSS Color Module specification.",{preserve:!0}),!1);case"postcss-color-rebeccapurple":return void io(Y.default,["preserve"],oo("@csstools/cli postcss-color-rebeccapurple","PostCSS RebeccaPurple","Lets you use the rebeccapurple color keyword in CSS.",{preserve:!0}),!1);case"postcss-custom-properties":return void io(Q.default,["importFrom","exportTo","preserve"],oo("@csstools/cli postcss-custom-properties","PostCSS Custom Properties","Lets you use Custom Properties in CSS, following the CSS Custom Properties specification.",{importFrom:["import-variables.js"],exportTo:["export-variables.js"],preserve:!0}),!1);case"postcss-dir-pseudo-class":return void io(H.default,["dir","preserve","shadow"],oo("@csstools/cli postcss-dir-pseudo-class","PostCSS Dir Pseudo Class","Lets you style by directionality using the `:dir()` pseudo-class in CSS",{dir:"ltr",preserve:!0,shadow:!0}),!1);case"postcss-double-position-gradients":return void io(Z.default,["preserve"],oo("@csstools/cli postcss-double-position-gradients","PostCSS Double Position Gradients","Lets you use double-position gradients in CSS, following the [CSS Image Values and Replaced Content] specification",{dir:"ltr",preserve:!0,shadow:!0}),!1);case"postcss-env-function":return void io(K.default,["importFrom"],oo("@csstools/cli postcss-env-function","PostCSS Environment Variables","Lets you use `env()` variables in CSS, following the [CSS Environment Variables] specification.",{importFrom:["import-variables.js"]}),!1);case"postcss-focus-visible":return void io(X.default,["preserve","replaceWith"],oo("@csstools/cli postcss-focus-visible","PostCSS Focus Visible","Lets you use the `:focus-visible` pseudo-class in CSS, following the Selectors Level 4 specification.",{preserve:!0,replaceWith:".focus-visible"}),!1);case"postcss-focus-within":return void io(ee.default,["preserve","replaceWith"],oo("@csstools/cli postcss-focus-within","PostCSS Focus Within","Lets you use the `:focus-within` pseudo-class in CSS, following the Selectors Level 4 specification.",{preserve:!0,replaceWith:".focus-within"}),!1);case"postcss-gap-properties":return void io(te.default,["preserve"],oo("@csstools/cli postcss-gap-properties","PostCSS Gap Properties","Lets you use the gap, column-gap, and row-gap shorthand properties in CSS, following the CSS Grid Layout specification.",{preserve:!0}),!1);case"postcss-image-set-function":return void io(re.default,["oninvalid","preserve"],oo("@csstools/cli postcss-image-set-function","PostCSS Image Set Function","Lets you display resolution-dependent images using the image-set() function in CSS, following the CSS Images specification.",{preserve:!0,oninvalid:"ignore|warn|throw"}),!1);case"postcss-lab-function":return void io(se.default,["preserve"],oo("@csstools/cli postcss-lab-function","PostCSS Lab function","Convert lab() to rgb()",{preserve:!0}),!1);case"postcss-logical":return void io(ne.default,["dir","preserve"],oo("@csstools/cli postcss-logical","PostCSS Logical","Lets you use logical, rather than physical, direction and dimension mappings in CSS, following the CSS Logical Properties and Values specification.",{dir:"ltr|rtl",preserve:!0}),!1);case"postcss-nesting":return void io(oe.default,["noIsPseudoSelector"],oo("@csstools/cli postcss-nesting","PostCSS Nesting","Lets you nest style rules inside each other, following the CSS Nesting specification.",{noIsPseudoSelector:!0}),!1);case"postcss-overflow-shorthand":return void io(ie.default,["preserve"],oo("@csstools/cli postcss-overflow-shorthand","PostCSS Overflow Shorthand","Lets you use the `overflow` shorthand in CSS, following the CSS Overflow specification.",{preserve:!0}),!1);case"postcss-place":return void io(ae.default,["preserve"],oo("@csstools/cli postcss-place","PostCSS Place","Lets you use place-* properties as shorthands for align-* and justify-*, following the CSS Box Alignment specification.",{preserve:!0}),!1);case"postcss-preset-env":return void io(Yi,["stage","features","browsers","autoprefixer","importFrom","exportTo"],oo("@csstools/cli postcss-preset-env","PostCSS Preset Env","Lets you convert modern CSS into something most browsers can understand, determining the polyfills you need based on your targeted browsers or runtime environments.",{stage:0,features:{"blank-pseudo-class":{preserve:!1},"color-functional-notation":{preserve:!0}},browsers:"last 2 versions",autoprefixer:{grid:!0},preserve:!1,importFrom:"path/to/file.css",exportTo:"path/to/file.css"}),!1);case"postcss-pseudo-class-any-link":return void io(ye.default,["preserve"],oo("@csstools/cli postcss-pseudo-class-any-link","PostCSS Pseudo Class Any Link","Lets you :any-link pseudo-class in CSS, following the Selectors specification.",{preserve:!0}),!1);default:{const e=["CSSTools CLI\n"," Transform CSS with any plugin from https://github.com/csstools/postcss-plugins\n","Usage:"," @csstools/csstools-cli postcss-preset-env [input.css] [OPTIONS] [-o|--output output.css]"," @csstools/csstools-cli postcss-preset-env <input.css>... [OPTIONS] --dir <output-directory>"," @csstools/csstools-cli postcss-preset-env <input.css>... [OPTIONS] --replace","\nAvailable Plugins:"," css-blank-pseudo"," css-has-pseudo"," css-prefers-color-scheme"," postcss-color-functional-notation"," postcss-color-hex-alpha"," postcss-color-rebeccapurple"," postcss-custom-properties"," postcss-dir-pseudo-class"," postcss-double-position-gradients"," postcss-env-function"," postcss-focus-visible"," postcss-focus-within"," postcss-gap-properties"," postcss-image-set-function"," postcss-lab-function"," postcss-logical"," postcss-nesting"," postcss-overflow-shorthand"," postcss-place"," postcss-pseudo-class-any-link","\nPlugin Help:"," @csstools/csstools-cli <plugin-name>"," @csstools/csstools-cli postcss-preset-env"];console.warn(e.join("\n"))}}}();
package/dist/cli.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export default function cssBlankPseudo(): void;
@@ -0,0 +1 @@
1
+ export default function cssHasPseudo(): void;
@@ -0,0 +1 @@
1
+ export default function cssPrefersColorScheme(): void;
@@ -0,0 +1 @@
1
+ export default function postcssColorFunctionalNotation(): void;
@@ -0,0 +1 @@
1
+ export default function postcssColorHexAlpha(): void;
@@ -0,0 +1 @@
1
+ export default function postcssColorRebeccaPurple(): void;
@@ -0,0 +1 @@
1
+ export default function postcssCustomProperties(): void;
@@ -0,0 +1 @@
1
+ export default function postcssDirPseudoClass(): void;
@@ -0,0 +1 @@
1
+ export default function postcssDoublePositionGradients(): void;
@@ -0,0 +1 @@
1
+ export default function postcssEnvFunction(): void;
@@ -0,0 +1 @@
1
+ export default function postcssFocusVisible(): void;
@@ -0,0 +1 @@
1
+ export default function postcssFocusWithin(): void;
@@ -0,0 +1 @@
1
+ export default function postcssGapProperties(): void;
@@ -0,0 +1 @@
1
+ export default function postcssImageSetFunction(): void;
@@ -0,0 +1 @@
1
+ export default function postcssLabFunction(): void;
@@ -0,0 +1 @@
1
+ export default function postcssLogical(): void;
@@ -0,0 +1 @@
1
+ export default function postcssNesting(): void;
@@ -0,0 +1 @@
1
+ export default function postcssOverflowShorthand(): void;
@@ -0,0 +1 @@
1
+ export default function postcssPlace(): void;
@@ -0,0 +1 @@
1
+ export default function postcssPresetEnv(): void;
@@ -0,0 +1 @@
1
+ export default function postcssPseudoClassAnyLink(): void;
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@csstools/csstools-cli",
3
+ "version": "1.0.0",
4
+ "description": "Transform CSS with any plugin from csstools/postcss-plugins",
5
+ "author": "Jonathan Neal <jonathantneal@hotmail.com>",
6
+ "license": "CC0-1.0",
7
+ "engines": {
8
+ "node": "^12 || ^14 || >=16"
9
+ },
10
+ "types": "dist/cli.d.ts",
11
+ "files": [
12
+ "CHANGELOG.md",
13
+ "LICENSE.md",
14
+ "README.md",
15
+ "dist"
16
+ ],
17
+ "bin": {
18
+ "csstools-cli": "dist/cli.cjs"
19
+ },
20
+ "scripts": {
21
+ "build": "rollup -c ../../rollup/default.js",
22
+ "clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"",
23
+ "lint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern",
24
+ "prepublishOnly": "npm run clean && npm run build && npm run test",
25
+ "stryker": "stryker run --logLevel error",
26
+ "test": "exit 0",
27
+ "test:cli": "bash ./test/cli/test.sh",
28
+ "csstools-cli": "csstools-cli"
29
+ },
30
+ "dependencies": {
31
+ "css-blank-pseudo": "^3.0.0",
32
+ "css-has-pseudo": "^3.0.0",
33
+ "css-prefers-color-scheme": "^6.0.0",
34
+ "postcss-color-functional-notation": "^4.1.0",
35
+ "postcss-color-hex-alpha": "^8.0.1",
36
+ "postcss-color-rebeccapurple": "^7.0.1",
37
+ "postcss-custom-properties": "^12.0.1",
38
+ "postcss-dir-pseudo-class": "^6.0.1",
39
+ "postcss-double-position-gradients": "^3.0.3",
40
+ "postcss-env-function": "^4.0.3",
41
+ "postcss-focus-visible": "^6.0.2",
42
+ "postcss-focus-within": "^5.0.2",
43
+ "postcss-gap-properties": "^3.0.1",
44
+ "postcss-image-set-function": "^4.0.3",
45
+ "postcss-lab-function": "^4.0.2",
46
+ "postcss-logical": "^5.0.1",
47
+ "postcss-nesting": "^10.0.3",
48
+ "postcss-overflow-shorthand": "^3.0.1",
49
+ "postcss-place": "^7.0.2",
50
+ "postcss-preset-env": "^7.1.0",
51
+ "postcss-pseudo-class-any-link": "^7.0.1"
52
+ },
53
+ "devDependencies": {
54
+ "postcss": "^8.4.5"
55
+ },
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "https://github.com/csstools/postcss-plugins.git",
59
+ "directory": "cli/csstools-cli"
60
+ },
61
+ "volta": {
62
+ "extends": "../../package.json"
63
+ }
64
+ }