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