{"version":3,"sources":["node_modules\\react-dom\\lib\\accumulate.js"],"names":["_prodInvariant","require","invariant","accumulate","current","next","process","env","NODE_ENV","Array","isArray","concat","module","exports"],"mappings":";;;;;;;;;;;AAWA;;AAEA,GAAIA,gBAAiBC,QAAQ,sBAAR,CAArB;;AAEA,GAAIC,WAAYD,QAAQ,oBAAR,CAAhB;;;;;;;;;AASA,QAASE,WAAT,CAAoBC,OAApB,CAA6BC,IAA7B,CAAmC;AACjC,EAAEA,MAAQ,IAAV,EAAkBC,QAAQC,GAAR,CAAYC,QAAZ,GAAyB,YAAzB,CAAwCN,UAAU,KAAV,CAAiB,sEAAjB,CAAxC,CAAmIF,eAAe,IAAf,CAArJ,CAA4K,IAAK,EAAjL;;AAEA,GAAII,SAAW,IAAf,CAAqB;AACnB,MAAOC,KAAP;AACD;;;;AAID,GAAII,MAAMC,OAAN,CAAcN,OAAd,CAAJ,CAA4B;AAC1B,MAAOA,SAAQO,MAAR,CAAeN,IAAf,CAAP;AACD;;AAED,GAAII,MAAMC,OAAN,CAAcL,IAAd,CAAJ,CAAyB;AACvB,MAAO,CAACD,OAAD,EAAUO,MAAV,CAAiBN,IAAjB,CAAP;AACD;;AAED,MAAO,CAACD,OAAD,CAAUC,IAAV,CAAP;AACD;;AAEDO,OAAOC,OAAP,CAAiBV,UAAjB","file":"accumulate.js","sourceRoot":"D:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar _prodInvariant = require('./reactProdInvariant');\n\nvar invariant = require('fbjs/lib/invariant');\n\n/**\n * Accumulates items that must not be null or undefined.\n *\n * This is used to conserve memory by avoiding array allocations.\n *\n * @return {*|array<*>} An accumulation of items.\n */\nfunction accumulate(current, next) {\n  !(next != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'accumulate(...): Accumulated items must be not be null or undefined.') : _prodInvariant('29') : void 0;\n\n  if (current == null) {\n    return next;\n  }\n\n  // Both are not empty. Warning: Never call x.concat(y) when you are not\n  // certain that x is an Array (x could be a string with concat method).\n  if (Array.isArray(current)) {\n    return current.concat(next);\n  }\n\n  if (Array.isArray(next)) {\n    return [current].concat(next);\n  }\n\n  return [current, next];\n}\n\nmodule.exports = accumulate;"]}