import { cssPropertyAlias as r, cssPropertyPrefixFlags as a, cssValuePrefixFlags as t } from "../../../../style-vendorizer@2.2.3/node_modules/style-vendorizer/dist/esm/bundle.min.js";
let CSSPrefixFlags = [
  [
    "-webkit-",
    1
  ],
  // 0b001
  [
    "-moz-",
    2
  ],
  // 0b010
  [
    "-ms-",
    4
  ]
];
function presetAutoprefix() {
  return ({ stringify }) => ({
    stringify(property, value, context) {
      let cssText = "", propertyAlias = r(property);
      propertyAlias && (cssText += stringify(propertyAlias, value, context) + ";");
      let propertyFlags = a(property), valueFlags = t(property, value);
      for (let prefix of CSSPrefixFlags) {
        propertyFlags & prefix[1] && (cssText += stringify(prefix[0] + property, value, context) + ";");
        valueFlags & prefix[1] && (cssText += stringify(property, prefix[0] + value, context) + ";");
      }
      return cssText + stringify(property, value, context);
    }
  });
}
export {
  presetAutoprefix as default
};
//# sourceMappingURL=preset-autoprefix.js.map
