{"version":3,"file":"lodash.sum-DAZ9CG5J.cjs","names":[],"sources":["../node_modules/lodash.sum/index.js"],"sourcesContent":["/**\n * lodash 4.0.2 (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\n\n/**\n * The base implementation of `_.sum` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\nfunction baseSum(array, iteratee) {\n  var result,\n      index = -1,\n      length = array.length;\n\n  while (++index < length) {\n    var current = iteratee(array[index]);\n    if (current !== undefined) {\n      result = result === undefined ? current : (result + current);\n    }\n  }\n  return result;\n}\n\n/**\n * This method returns the first argument provided to it.\n *\n * @static\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'user': 'fred' };\n *\n * _.identity(object) === object;\n * // => true\n */\nfunction identity(value) {\n  return value;\n}\n\n/**\n * Computes the sum of the values in `array`.\n *\n * @static\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {number} Returns the sum.\n * @example\n *\n * _.sum([4, 2, 8, 6]);\n * // => 20\n */\nfunction sum(array) {\n  return (array && array.length)\n    ? baseSum(array, identity)\n    : 0;\n}\n\nmodule.exports = sum;\n"],"x_google_ignoreList":[0],"mappings":"iDAiBA,SAAS,EAAQ,EAAO,EAAU,CAKhC,IAJA,IAAI,EACA,EAAQ,GACR,EAAS,EAAM,OAEZ,EAAE,EAAQ,GAAQ,CACvB,IAAI,EAAU,EAAS,EAAM,EAAM,EAC/B,IAAY,IAAA,KACd,EAAS,IAAW,IAAA,GAAY,EAAW,EAAS,EAExD,CACA,OAAO,CACT,CAiBA,SAAS,EAAS,EAAO,CACvB,OAAO,CACT,CAeA,SAAS,EAAI,EAAO,CAClB,OAAQ,GAAS,EAAM,OACnB,EAAQ,EAAO,CAAQ,EACvB,CACN,CAEA,EAAO,QAAU"}