"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const merge = require("./lib-icon-merge.cjs");
const tree = require("./lib-icon-set-tree.cjs");
function internalGetIconData(data, name, tree2) {
  const icons = data.icons;
  const aliases = data.aliases || /* @__PURE__ */ Object.create(null);
  let currentProps = {};
  function parse(name$1) {
    currentProps = merge.mergeIconData(icons[name$1] || aliases[name$1], currentProps);
  }
  parse(name);
  tree2.forEach(parse);
  return merge.mergeIconData(data, currentProps);
}
function getIconData(data, name) {
  if (data.icons[name]) return internalGetIconData(data, name, []);
  const tree$1 = tree.getIconsTree(data, [name])[name];
  return tree$1 ? internalGetIconData(data, name, tree$1) : null;
}
exports.getIconData = getIconData;
exports.internalGetIconData = internalGetIconData;
//# sourceMappingURL=lib-icon-set-get-icon.cjs.map
