You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
20 KiB
2 lines
20 KiB
2 years ago
|
"use strict";var s=require("autoprefixer"),e=require("cssdb"),t=require("@csstools/postcss-progressive-custom-properties"),o=require("fs"),i=require("path"),r=require("browserslist"),a=require("postcss-initial"),n=require("postcss-pseudo-class-any-link"),c=require("css-blank-pseudo"),p=require("postcss-page-break"),u=require("@csstools/postcss-cascade-layers"),l=require("postcss-attribute-case-insensitive"),m=require("postcss-clamp"),d=require("@csstools/postcss-color-function"),f=require("postcss-color-functional-notation"),g=require("postcss-custom-media"),b=require("postcss-custom-properties"),h=require("postcss-custom-selectors"),y=require("postcss-dir-pseudo-class"),k=require("@csstools/postcss-normalize-display-values"),N=require("postcss-double-position-gradients"),v=require("postcss-env-function"),w=require("postcss-focus-visible"),q=require("postcss-focus-within"),$=require("@csstools/postcss-font-format-keywords"),O=require("postcss-font-variant"),S=require("postcss-gap-properties"),x=require("css-has-pseudo"),j=require("postcss-color-hex-alpha"),P=require("@csstools/postcss-hwb-function"),F=require("@csstools/postcss-ic-unit"),E=require("postcss-image-set-function"),M=require("@csstools/postcss-is-pseudo-class"),C=require("postcss-lab-function"),_=require("postcss-logical"),A=require("postcss-media-minmax"),R=require("postcss-nesting"),U=require("postcss-selector-not"),B=require("@csstools/postcss-oklab-function"),T=require("postcss-opacity-percentage"),I=require("postcss-overflow-shorthand"),V=require("postcss-replace-overflow-wrap"),W=require("postcss-place"),L=require("css-prefers-color-scheme"),D=require("postcss-color-rebeccapurple"),H=require("@csstools/postcss-stepped-value-functions"),J=require("@csstools/postcss-trigonometric-functions"),z=require("@csstools/postcss-unset-value");function G(s){return s&&"object"==typeof s&&"default"in s?s:{default:s}}var K=G(s),Q=G(e),X=G(t),Y=G(o),Z=G(i),ss=G(r),es=G(a),ts=G(n),os=G(c),is=G(p),rs=G(u),as=G(l),ns=G(m),cs=G(d),ps=G(f),us=G(g),ls=G(b),ms=G(h),ds=G(y),fs=G(k),gs=G(N),bs=G(v),hs=G(w),ys=G(q),ks=G($),Ns=G(O),vs=G(S),ws=G(x),qs=G(j),$s=G(P),Os=G(F),Ss=G(E),xs=G(M),js=G(C),Ps=G(_),Fs=G(A),Es=G(R),Ms=G(U),Cs=G(B),_s=G(T),As=G(I),Rs=G(V),Us=G(W),Bs=G(L),Ts=G(D),Is=G(H),Vs=G(J),Ws=G(z);const Ls={"blank-pseudo-class":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-blank-pseudo/README-BROWSER.md","focus-visible-pseudo-class":"https://github.com/WICG/focus-visible","focus-within-pseudo-class":"https://github.com/jsxtools/focus-within/blob/master/README-BROWSER.md","has-pseudo-class":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-has-pseudo/README-BROWSER.md","prefers-color-scheme-query":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-prefers-color-scheme/README-BROWSER.md"},Ds=["blank-pseudo-class","focus-visible-pseudo-class","focus-within-pseudo-class","has-pseudo-class","prefers-color-scheme-query"];async function Hs(s,e,t,o){const i=function(s){return`:root {\n${Object.keys(s).reduce(((e,t)=>(e.push(`\t${t}: ${s[t]};`),e)),[]).join("\n")}\n}\n`}(t),r=function(s){return`${Object.keys(s).reduce(((e,t)=>(e.push(`@custom-media ${t} ${s[t]};`),e)),[]).join("\n")}\n`}(e),a=function(s){return`${Object.keys(s).reduce(((e,t)=>(e.push(`@custom-selector ${t} ${s[t]};`),e)),[]).join("\n")}\n`}(o),n=`${r}\n${a}\n${i}`;await Qs(s,n)}function Js(s,e){return`\n\t${s}: {\n${Object.keys(e).reduce(((s,t)=>(s.push(`\t\t'${Xs(t)}': '${Xs(e[t])}'`),s)),[]).join(",\n")}\n\t}`}function zs(s,e){return`export const ${s} = {\n${Object.keys(e).reduce(((s,t)=>(s.push(`\t'${Xs(t)}': '${Xs(e[t])}'`),s)),[]).join(",\n")}\n};\n`}function Gs(s,e){return Promise.all([].concat(e).map((async e=>{if(e instanceof Function)await e({customMedia:Ks(s.customMedia),customProperties:Ks(s.customProperties),customSelectors:Ks(s.customSelectors)});else{const t=e===Object(e)?e:{to:String(e)},o=t.toJSON||Ks;if("customMedia"in t||"customProperties"in t||"customSelectors"in t)t.customMedia=o(s.customMedia),t.customProperties=o(s.customProperties),t.cust
|