{"version":3,"file":"_baseFlatten-BsWIfkJF.js","sources":["../../../node_modules/lodash-es/_isFlattenable.js","../../../node_modules/lodash-es/_baseFlatten.js"],"sourcesContent":["import Symbol from './_Symbol.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n  return isArray(value) || isArguments(value) ||\n    !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nexport default isFlattenable;\n","import arrayPush from './_arrayPush.js';\nimport isFlattenable from './_isFlattenable.js';\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n  var index = -1,\n      length = array.length;\n\n  predicate || (predicate = isFlattenable);\n  result || (result = []);\n\n  while (++index < length) {\n    var value = array[index];\n    if (depth > 0 && predicate(value)) {\n      if (depth > 1) {\n        // Recursively flatten arrays (susceptible to call stack limits).\n        baseFlatten(value, depth - 1, predicate, isStrict, result);\n      } else {\n        arrayPush(result, value);\n      }\n    } else if (!isStrict) {\n      result[result.length] = value;\n    }\n  }\n  return result;\n}\n\nexport default baseFlatten;\n"],"names":["spreadableSymbol","Symbol","isFlattenable","value","isArray","isArguments","baseFlatten","array","depth","predicate","isStrict","result","index","length","arrayPush"],"mappings":"uGAKA,IAAIA,EAAmBC,EAASA,EAAO,mBAAqB,OAS5D,SAASC,EAAcC,EAAO,CAC5B,OAAOC,EAAQD,CAAK,GAAKE,EAAYF,CAAK,GACxC,CAAC,EAAEH,GAAoBG,GAASA,EAAMH,CAAgB,EAC1D,CCHA,SAASM,EAAYC,EAAOC,EAAOC,EAAWC,EAAUC,EAAQ,CAC9D,IAAIC,EAAQ,GACRC,EAASN,EAAM,OAKnB,IAHAE,IAAcA,EAAYP,GAC1BS,IAAWA,EAAS,IAEb,EAAEC,EAAQC,GAAQ,CACvB,IAAIV,EAAQI,EAAMK,CAAK,EACNH,EAAUN,CAAK,EAK5BW,EAAUH,EAAQR,CAAK,EAEfO,IACVC,EAAOA,EAAO,MAAM,EAAIR,EAE9B,CACE,OAAOQ,CACT","x_google_ignoreList":[0,1]}