import p from "../../../camelcase-css@2.0.1/node_modules/camelcase-css/index-es5.js";
let n = p, i = {
  boxFlex: !0,
  boxFlexGroup: !0,
  columnCount: !0,
  flex: !0,
  flexGrow: !0,
  flexPositive: !0,
  flexShrink: !0,
  flexNegative: !0,
  fontWeight: !0,
  lineClamp: !0,
  lineHeight: !0,
  opacity: !0,
  order: !0,
  orphans: !0,
  tabSize: !0,
  widows: !0,
  zIndex: !0,
  zoom: !0,
  fillOpacity: !0,
  strokeDashoffset: !0,
  strokeOpacity: !0,
  strokeWidth: !0
};
function a(o) {
  return typeof o.nodes > "u" ? !0 : s(o);
}
function s(o) {
  let t, r = {};
  return o.each((e) => {
    if (e.type === "atrule")
      t = "@" + e.name, e.params && (t += " " + e.params), typeof r[t] > "u" ? r[t] = a(e) : Array.isArray(r[t]) ? r[t].push(a(e)) : r[t] = [r[t], a(e)];
    else if (e.type === "rule") {
      let u = s(e);
      if (r[e.selector])
        for (let f in u)
          r[e.selector][f] = u[f];
      else
        r[e.selector] = u;
    } else if (e.type === "decl") {
      e.prop[0] === "-" && e.prop[1] === "-" ? t = e.prop : t = n(e.prop);
      let u = e.value;
      !isNaN(e.value) && i[t] && (u = parseFloat(e.value)), e.important && (u += " !important"), typeof r[t] > "u" ? r[t] = u : Array.isArray(r[t]) ? r[t].push(u) : r[t] = [r[t], u];
    }
  }), r;
}
var y = s;
export {
  y as default
};
//# sourceMappingURL=objectifier.js.map
