Liferay.Loader.define("commerce-dashboard-web$d3-hierarchy@1.1.8/src/hierarchy/sum", ['module', 'exports', 'require'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    export default function (value) {
      return this.eachAfter(function (node) {
        var sum = +value(node.data) || 0,
            children = node.children,
            i = children && children.length;
        while (--i >= 0) sum += children[i].value;
        node.value = sum;
      });
    }
  }
});
//# sourceMappingURL=sum.js.map