{"version":3,"sources":["node_modules\\react-dom\\lib\\accumulateInto.js"],"names":["_prodInvariant","require","invariant","accumulateInto","current","next","process","env","NODE_ENV","Array","isArray","push","apply","concat","module","exports"],"mappings":";;;;;;;;;;;AAWA;;AAEA,GAAIA,gBAAiBC,QAAQ,sBAAR,CAArB;;AAEA,GAAIC,WAAYD,QAAQ,oBAAR,CAAhB;;;;;;;;;;;;;;;AAeA,QAASE,eAAT,CAAwBC,OAAxB,CAAiCC,IAAjC,CAAuC;AACrC,EAAEA,MAAQ,IAAV,EAAkBC,QAAQC,GAAR,CAAYC,QAAZ,GAAyB,YAAzB,CAAwCN,UAAU,KAAV,CAAiB,uEAAjB,CAAxC,CAAoIF,eAAe,IAAf,CAAtJ,CAA6K,IAAK,EAAlL;;AAEA,GAAII,SAAW,IAAf,CAAqB;AACnB,MAAOC,KAAP;AACD;;;;AAID,GAAII,MAAMC,OAAN,CAAcN,OAAd,CAAJ,CAA4B;AAC1B,GAAIK,MAAMC,OAAN,CAAcL,IAAd,CAAJ,CAAyB;AACvBD,QAAQO,IAAR,CAAaC,KAAb,CAAmBR,OAAnB,CAA4BC,IAA5B;AACA,MAAOD,QAAP;AACD;AACDA,QAAQO,IAAR,CAAaN,IAAb;AACA,MAAOD,QAAP;AACD;;AAED,GAAIK,MAAMC,OAAN,CAAcL,IAAd,CAAJ,CAAyB;;AAEvB,MAAO,CAACD,OAAD,EAAUS,MAAV,CAAiBR,IAAjB,CAAP;AACD;;AAED,MAAO,CAACD,OAAD,CAAUC,IAAV,CAAP;AACD;;AAEDS,OAAOC,OAAP,CAAiBZ,cAAjB","file":"accumulateInto.js","sourceRoot":"D:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["/**\n * Copyright 2014-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 into the first one. This\n * is used to conserve memory by avoiding array allocations, and thus sacrifices\n * API cleanness. Since `current` can be null before being passed in and not\n * null after this function, make sure to assign it back to `current`:\n *\n * `a = accumulateInto(a, b);`\n *\n * This API should be sparingly used. Try `accumulate` for something cleaner.\n *\n * @return {*|array<*>} An accumulation of items.\n */\n\nfunction accumulateInto(current, next) {\n  !(next != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : _prodInvariant('30') : 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    if (Array.isArray(next)) {\n      current.push.apply(current, next);\n      return current;\n    }\n    current.push(next);\n    return current;\n  }\n\n  if (Array.isArray(next)) {\n    // A bit too dangerous to mutate `next`.\n    return [current].concat(next);\n  }\n\n  return [current, next];\n}\n\nmodule.exports = accumulateInto;"]}