{"version":3,"sources":["node_modules\\prop-types\\checkPropTypes.js"],"names":["process","env","NODE_ENV","invariant","require","warning","ReactPropTypesSecret","loggedTypeFailures","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","hasOwnProperty","error","ex","Error","message","stack","module","exports"],"mappings":";;;;;;;;;AASA;;AAEA,GAAIA,QAAQC,GAAR,CAAYC,QAAZ,GAAyB,YAA7B,CAA2C;AACzC,GAAIC,WAAYC,QAAQ,oBAAR,CAAhB;AACA,GAAIC,SAAUD,QAAQ,kBAAR,CAAd;AACA,GAAIE,sBAAuBF,QAAQ,4BAAR,CAA3B;AACA,GAAIG,oBAAqB,EAAzB;AACD;;;;;;;;;;;;;AAaD,QAASC,eAAT,CAAwBC,SAAxB,CAAmCC,MAAnC,CAA2CC,QAA3C,CAAqDC,aAArD,CAAoEC,QAApE,CAA8E;AAC5E,GAAIb,QAAQC,GAAR,CAAYC,QAAZ,GAAyB,YAA7B,CAA2C;AACzC,IAAK,GAAIY,aAAT,GAAyBL,UAAzB,CAAoC;AAClC,GAAIA,UAAUM,cAAV,CAAyBD,YAAzB,CAAJ,CAA4C;AAC1C,GAAIE,MAAJ;;;;AAIA,GAAI;;;AAGFb,UAAU,MAAOM,WAAUK,YAAV,CAAP,GAAmC,UAA7C,CAAyD,oEAAsE,kBAA/H,CAAmJF,eAAiB,aAApK,CAAmLD,QAAnL,CAA6LG,YAA7L;AACAE,MAAQP,UAAUK,YAAV,EAAwBJ,MAAxB,CAAgCI,YAAhC,CAA8CF,aAA9C,CAA6DD,QAA7D,CAAuE,IAAvE,CAA6EL,oBAA7E,CAAR;AACD,CAAC,MAAOW,EAAP,CAAW;AACXD,MAAQC,EAAR;AACD;AACDZ,QAAQ,CAACW,KAAD,EAAUA,gBAAiBE,MAAnC,CAA0C,kEAAoE,+DAApE,CAAsI,iEAAtI,CAA0M,gEAA1M,CAA6Q,iCAAvT,CAA0VN,eAAiB,aAA3W,CAA0XD,QAA1X,CAAoYG,YAApY,CAAkZ,MAAOE,MAAzZ;AACA,GAAIA,gBAAiBE,MAAjB,EAA0B,EAAEF,MAAMG,OAAN,GAAiBZ,mBAAnB,CAA9B,CAAsE;;;AAGpEA,mBAAmBS,MAAMG,OAAzB,EAAoC,IAApC;;AAEA,GAAIC,OAAQP,SAAWA,UAAX,CAAwB,EAApC;;AAEAR,QAAQ,KAAR,CAAe,sBAAf,CAAuCM,QAAvC,CAAiDK,MAAMG,OAAvD,CAAgEC,OAAS,IAAT,CAAgBA,KAAhB,CAAwB,EAAxF;AACD;AACF;AACF;AACF;AACF;;AAEDC,OAAOC,OAAP,CAAiBd,cAAjB","file":"checkPropTypes.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'use strict';\n\nif (process.env.NODE_ENV !== 'production') {\n  var invariant = require('fbjs/lib/invariant');\n  var warning = require('fbjs/lib/warning');\n  var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n  var loggedTypeFailures = {};\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n  if (process.env.NODE_ENV !== 'production') {\n    for (var typeSpecName in typeSpecs) {\n      if (typeSpecs.hasOwnProperty(typeSpecName)) {\n        var error;\n        // Prop type validation may throw. In case they do, we don't want to\n        // fail the render phase where it didn't fail before. So we log it.\n        // After these have been cleaned up, we'll let them throw.\n        try {\n          // This is intentionally an invariant that gets caught. It's the same\n          // behavior as without this statement except with a better message.\n          invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName);\n          error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n        } catch (ex) {\n          error = ex;\n        }\n        warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);\n        if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n          // Only monitor this failure once because there tends to be a lot of the\n          // same error.\n          loggedTypeFailures[error.message] = true;\n\n          var stack = getStack ? getStack() : '';\n\n          warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');\n        }\n      }\n    }\n  }\n}\n\nmodule.exports = checkPropTypes;\n"]}