import R from "./css-syntax-error.js";
import y from "./declaration.js";
import h from "./lazy-result.js";
import N from "./container.js";
import A from "./processor.js";
import C from "./stringify.js";
import P from "./fromJSON.js";
import S from "./document.js";
import _ from "./warning.js";
import v from "./comment.js";
import x from "./at-rule.js";
import D from "./result.js";
import O from "./input.js";
import E from "./parse.js";
import J from "./list.js";
import L from "./rule.js";
import W from "./root.js";
import z from "./node.js";
let G = R, c = y, I = h, b = N, l = A, j = C, M = P, p = S, V = _, a = v, f = x, k = D, q = O, B = E, F = J, u = L, w = W, H = z;
function t(...r) {
  return r.length === 1 && Array.isArray(r[0]) && (r = r[0]), new l(r);
}
t.plugin = function(n, g) {
  let m = !1;
  function o(...i) {
    console && console.warn && !m && (m = !0, console.warn(
      n + `: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`
    ), process.env.LANG && process.env.LANG.startsWith("cn") && console.warn(
      n + `: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
https://www.w3ctech.com/topic/2226`
    ));
    let e = g(...i);
    return e.postcssPlugin = n, e.postcssVersion = new l().version, e;
  }
  let s;
  return Object.defineProperty(o, "postcss", {
    get() {
      return s || (s = o()), s;
    }
  }), o.process = function(i, e, d) {
    return t([o(d)]).process(i, e);
  }, o;
};
t.stringify = j;
t.parse = B;
t.fromJSON = M;
t.list = F;
t.comment = (r) => new a(r);
t.atRule = (r) => new f(r);
t.decl = (r) => new c(r);
t.rule = (r) => new u(r);
t.root = (r) => new w(r);
t.document = (r) => new p(r);
t.CssSyntaxError = G;
t.Declaration = c;
t.Container = b;
t.Processor = l;
t.Document = p;
t.Comment = a;
t.Warning = V;
t.AtRule = f;
t.Result = k;
t.Input = q;
t.Rule = u;
t.Root = w;
t.Node = H;
I.registerPostcss(t);
var pt = t;
t.default = t;
export {
  pt as default
};
//# sourceMappingURL=postcss.js.map
