source: imaps-frontend/node_modules/prop-types/prop-types.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 47.2 KB
Line 
1(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.PropTypes = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2/**
3 * Copyright (c) 2013-present, Facebook, Inc.
4 *
5 * This source code is licensed under the MIT license found in the
6 * LICENSE file in the root directory of this source tree.
7 */
8
9'use strict';
10
11var printWarning = function() {};
12
13if ("development" !== 'production') {
14 var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');
15 var loggedTypeFailures = {};
16 var has = require('./lib/has');
17
18 printWarning = function(text) {
19 var message = 'Warning: ' + text;
20 if (typeof console !== 'undefined') {
21 console.error(message);
22 }
23 try {
24 // --- Welcome to debugging React ---
25 // This error was thrown as a convenience so that you can use this stack
26 // to find the callsite that caused this warning to fire.
27 throw new Error(message);
28 } catch (x) { /**/ }
29 };
30}
31
32/**
33 * Assert that the values match with the type specs.
34 * Error messages are memorized and will only be shown once.
35 *
36 * @param {object} typeSpecs Map of name to a ReactPropType
37 * @param {object} values Runtime values that need to be type-checked
38 * @param {string} location e.g. "prop", "context", "child context"
39 * @param {string} componentName Name of the component for error messages.
40 * @param {?Function} getStack Returns the component stack.
41 * @private
42 */
43function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
44 if ("development" !== 'production') {
45 for (var typeSpecName in typeSpecs) {
46 if (has(typeSpecs, typeSpecName)) {
47 var error;
48 // Prop type validation may throw. In case they do, we don't want to
49 // fail the render phase where it didn't fail before. So we log it.
50 // After these have been cleaned up, we'll let them throw.
51 try {
52 // This is intentionally an invariant that gets caught. It's the same
53 // behavior as without this statement except with a better message.
54 if (typeof typeSpecs[typeSpecName] !== 'function') {
55 var err = Error(
56 (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
57 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
58 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
59 );
60 err.name = 'Invariant Violation';
61 throw err;
62 }
63 error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
64 } catch (ex) {
65 error = ex;
66 }
67 if (error && !(error instanceof Error)) {
68 printWarning(
69 (componentName || 'React class') + ': type specification of ' +
70 location + ' `' + typeSpecName + '` is invalid; the type checker ' +
71 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
72 'You may have forgotten to pass an argument to the type checker ' +
73 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
74 'shape all require an argument).'
75 );
76 }
77 if (error instanceof Error && !(error.message in loggedTypeFailures)) {
78 // Only monitor this failure once because there tends to be a lot of the
79 // same error.
80 loggedTypeFailures[error.message] = true;
81
82 var stack = getStack ? getStack() : '';
83
84 printWarning(
85 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
86 );
87 }
88 }
89 }
90 }
91}
92
93/**
94 * Resets warning cache when testing.
95 *
96 * @private
97 */
98checkPropTypes.resetWarningCache = function() {
99 if ("development" !== 'production') {
100 loggedTypeFailures = {};
101 }
102}
103
104module.exports = checkPropTypes;
105
106},{"./lib/ReactPropTypesSecret":5,"./lib/has":6}],2:[function(require,module,exports){
107/**
108 * Copyright (c) 2013-present, Facebook, Inc.
109 *
110 * This source code is licensed under the MIT license found in the
111 * LICENSE file in the root directory of this source tree.
112 */
113
114'use strict';
115
116var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');
117
118function emptyFunction() {}
119function emptyFunctionWithReset() {}
120emptyFunctionWithReset.resetWarningCache = emptyFunction;
121
122module.exports = function() {
123 function shim(props, propName, componentName, location, propFullName, secret) {
124 if (secret === ReactPropTypesSecret) {
125 // It is still safe when called from React.
126 return;
127 }
128 var err = new Error(
129 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
130 'Use PropTypes.checkPropTypes() to call them. ' +
131 'Read more at http://fb.me/use-check-prop-types'
132 );
133 err.name = 'Invariant Violation';
134 throw err;
135 };
136 shim.isRequired = shim;
137 function getShim() {
138 return shim;
139 };
140 // Important!
141 // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
142 var ReactPropTypes = {
143 array: shim,
144 bigint: shim,
145 bool: shim,
146 func: shim,
147 number: shim,
148 object: shim,
149 string: shim,
150 symbol: shim,
151
152 any: shim,
153 arrayOf: getShim,
154 element: shim,
155 elementType: shim,
156 instanceOf: getShim,
157 node: shim,
158 objectOf: getShim,
159 oneOf: getShim,
160 oneOfType: getShim,
161 shape: getShim,
162 exact: getShim,
163
164 checkPropTypes: emptyFunctionWithReset,
165 resetWarningCache: emptyFunction
166 };
167
168 ReactPropTypes.PropTypes = ReactPropTypes;
169
170 return ReactPropTypes;
171};
172
173},{"./lib/ReactPropTypesSecret":5}],3:[function(require,module,exports){
174/**
175 * Copyright (c) 2013-present, Facebook, Inc.
176 *
177 * This source code is licensed under the MIT license found in the
178 * LICENSE file in the root directory of this source tree.
179 */
180
181'use strict';
182
183var ReactIs = require('react-is');
184var assign = require('object-assign');
185
186var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');
187var has = require('./lib/has');
188var checkPropTypes = require('./checkPropTypes');
189
190var printWarning = function() {};
191
192if ("development" !== 'production') {
193 printWarning = function(text) {
194 var message = 'Warning: ' + text;
195 if (typeof console !== 'undefined') {
196 console.error(message);
197 }
198 try {
199 // --- Welcome to debugging React ---
200 // This error was thrown as a convenience so that you can use this stack
201 // to find the callsite that caused this warning to fire.
202 throw new Error(message);
203 } catch (x) {}
204 };
205}
206
207function emptyFunctionThatReturnsNull() {
208 return null;
209}
210
211module.exports = function(isValidElement, throwOnDirectAccess) {
212 /* global Symbol */
213 var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
214 var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
215
216 /**
217 * Returns the iterator method function contained on the iterable object.
218 *
219 * Be sure to invoke the function with the iterable as context:
220 *
221 * var iteratorFn = getIteratorFn(myIterable);
222 * if (iteratorFn) {
223 * var iterator = iteratorFn.call(myIterable);
224 * ...
225 * }
226 *
227 * @param {?object} maybeIterable
228 * @return {?function}
229 */
230 function getIteratorFn(maybeIterable) {
231 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
232 if (typeof iteratorFn === 'function') {
233 return iteratorFn;
234 }
235 }
236
237 /**
238 * Collection of methods that allow declaration and validation of props that are
239 * supplied to React components. Example usage:
240 *
241 * var Props = require('ReactPropTypes');
242 * var MyArticle = React.createClass({
243 * propTypes: {
244 * // An optional string prop named "description".
245 * description: Props.string,
246 *
247 * // A required enum prop named "category".
248 * category: Props.oneOf(['News','Photos']).isRequired,
249 *
250 * // A prop named "dialog" that requires an instance of Dialog.
251 * dialog: Props.instanceOf(Dialog).isRequired
252 * },
253 * render: function() { ... }
254 * });
255 *
256 * A more formal specification of how these methods are used:
257 *
258 * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
259 * decl := ReactPropTypes.{type}(.isRequired)?
260 *
261 * Each and every declaration produces a function with the same signature. This
262 * allows the creation of custom validation functions. For example:
263 *
264 * var MyLink = React.createClass({
265 * propTypes: {
266 * // An optional string or URI prop named "href".
267 * href: function(props, propName, componentName) {
268 * var propValue = props[propName];
269 * if (propValue != null && typeof propValue !== 'string' &&
270 * !(propValue instanceof URI)) {
271 * return new Error(
272 * 'Expected a string or an URI for ' + propName + ' in ' +
273 * componentName
274 * );
275 * }
276 * }
277 * },
278 * render: function() {...}
279 * });
280 *
281 * @internal
282 */
283
284 var ANONYMOUS = '<<anonymous>>';
285
286 // Important!
287 // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
288 var ReactPropTypes = {
289 array: createPrimitiveTypeChecker('array'),
290 bigint: createPrimitiveTypeChecker('bigint'),
291 bool: createPrimitiveTypeChecker('boolean'),
292 func: createPrimitiveTypeChecker('function'),
293 number: createPrimitiveTypeChecker('number'),
294 object: createPrimitiveTypeChecker('object'),
295 string: createPrimitiveTypeChecker('string'),
296 symbol: createPrimitiveTypeChecker('symbol'),
297
298 any: createAnyTypeChecker(),
299 arrayOf: createArrayOfTypeChecker,
300 element: createElementTypeChecker(),
301 elementType: createElementTypeTypeChecker(),
302 instanceOf: createInstanceTypeChecker,
303 node: createNodeChecker(),
304 objectOf: createObjectOfTypeChecker,
305 oneOf: createEnumTypeChecker,
306 oneOfType: createUnionTypeChecker,
307 shape: createShapeTypeChecker,
308 exact: createStrictShapeTypeChecker,
309 };
310
311 /**
312 * inlined Object.is polyfill to avoid requiring consumers ship their own
313 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
314 */
315 /*eslint-disable no-self-compare*/
316 function is(x, y) {
317 // SameValue algorithm
318 if (x === y) {
319 // Steps 1-5, 7-10
320 // Steps 6.b-6.e: +0 != -0
321 return x !== 0 || 1 / x === 1 / y;
322 } else {
323 // Step 6.a: NaN == NaN
324 return x !== x && y !== y;
325 }
326 }
327 /*eslint-enable no-self-compare*/
328
329 /**
330 * We use an Error-like object for backward compatibility as people may call
331 * PropTypes directly and inspect their output. However, we don't use real
332 * Errors anymore. We don't inspect their stack anyway, and creating them
333 * is prohibitively expensive if they are created too often, such as what
334 * happens in oneOfType() for any type before the one that matched.
335 */
336 function PropTypeError(message, data) {
337 this.message = message;
338 this.data = data && typeof data === 'object' ? data: {};
339 this.stack = '';
340 }
341 // Make `instanceof Error` still work for returned errors.
342 PropTypeError.prototype = Error.prototype;
343
344 function createChainableTypeChecker(validate) {
345 if ("development" !== 'production') {
346 var manualPropTypeCallCache = {};
347 var manualPropTypeWarningCount = 0;
348 }
349 function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
350 componentName = componentName || ANONYMOUS;
351 propFullName = propFullName || propName;
352
353 if (secret !== ReactPropTypesSecret) {
354 if (throwOnDirectAccess) {
355 // New behavior only for users of `prop-types` package
356 var err = new Error(
357 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
358 'Use `PropTypes.checkPropTypes()` to call them. ' +
359 'Read more at http://fb.me/use-check-prop-types'
360 );
361 err.name = 'Invariant Violation';
362 throw err;
363 } else if ("development" !== 'production' && typeof console !== 'undefined') {
364 // Old behavior for people using React.PropTypes
365 var cacheKey = componentName + ':' + propName;
366 if (
367 !manualPropTypeCallCache[cacheKey] &&
368 // Avoid spamming the console because they are often not actionable except for lib authors
369 manualPropTypeWarningCount < 3
370 ) {
371 printWarning(
372 'You are manually calling a React.PropTypes validation ' +
373 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
374 'and will throw in the standalone `prop-types` package. ' +
375 'You may be seeing this warning due to a third-party PropTypes ' +
376 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
377 );
378 manualPropTypeCallCache[cacheKey] = true;
379 manualPropTypeWarningCount++;
380 }
381 }
382 }
383 if (props[propName] == null) {
384 if (isRequired) {
385 if (props[propName] === null) {
386 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
387 }
388 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
389 }
390 return null;
391 } else {
392 return validate(props, propName, componentName, location, propFullName);
393 }
394 }
395
396 var chainedCheckType = checkType.bind(null, false);
397 chainedCheckType.isRequired = checkType.bind(null, true);
398
399 return chainedCheckType;
400 }
401
402 function createPrimitiveTypeChecker(expectedType) {
403 function validate(props, propName, componentName, location, propFullName, secret) {
404 var propValue = props[propName];
405 var propType = getPropType(propValue);
406 if (propType !== expectedType) {
407 // `propValue` being instance of, say, date/regexp, pass the 'object'
408 // check, but we can offer a more precise error message here rather than
409 // 'of type `object`'.
410 var preciseType = getPreciseType(propValue);
411
412 return new PropTypeError(
413 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
414 {expectedType: expectedType}
415 );
416 }
417 return null;
418 }
419 return createChainableTypeChecker(validate);
420 }
421
422 function createAnyTypeChecker() {
423 return createChainableTypeChecker(emptyFunctionThatReturnsNull);
424 }
425
426 function createArrayOfTypeChecker(typeChecker) {
427 function validate(props, propName, componentName, location, propFullName) {
428 if (typeof typeChecker !== 'function') {
429 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
430 }
431 var propValue = props[propName];
432 if (!Array.isArray(propValue)) {
433 var propType = getPropType(propValue);
434 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
435 }
436 for (var i = 0; i < propValue.length; i++) {
437 var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
438 if (error instanceof Error) {
439 return error;
440 }
441 }
442 return null;
443 }
444 return createChainableTypeChecker(validate);
445 }
446
447 function createElementTypeChecker() {
448 function validate(props, propName, componentName, location, propFullName) {
449 var propValue = props[propName];
450 if (!isValidElement(propValue)) {
451 var propType = getPropType(propValue);
452 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
453 }
454 return null;
455 }
456 return createChainableTypeChecker(validate);
457 }
458
459 function createElementTypeTypeChecker() {
460 function validate(props, propName, componentName, location, propFullName) {
461 var propValue = props[propName];
462 if (!ReactIs.isValidElementType(propValue)) {
463 var propType = getPropType(propValue);
464 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
465 }
466 return null;
467 }
468 return createChainableTypeChecker(validate);
469 }
470
471 function createInstanceTypeChecker(expectedClass) {
472 function validate(props, propName, componentName, location, propFullName) {
473 if (!(props[propName] instanceof expectedClass)) {
474 var expectedClassName = expectedClass.name || ANONYMOUS;
475 var actualClassName = getClassName(props[propName]);
476 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
477 }
478 return null;
479 }
480 return createChainableTypeChecker(validate);
481 }
482
483 function createEnumTypeChecker(expectedValues) {
484 if (!Array.isArray(expectedValues)) {
485 if ("development" !== 'production') {
486 if (arguments.length > 1) {
487 printWarning(
488 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
489 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
490 );
491 } else {
492 printWarning('Invalid argument supplied to oneOf, expected an array.');
493 }
494 }
495 return emptyFunctionThatReturnsNull;
496 }
497
498 function validate(props, propName, componentName, location, propFullName) {
499 var propValue = props[propName];
500 for (var i = 0; i < expectedValues.length; i++) {
501 if (is(propValue, expectedValues[i])) {
502 return null;
503 }
504 }
505
506 var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
507 var type = getPreciseType(value);
508 if (type === 'symbol') {
509 return String(value);
510 }
511 return value;
512 });
513 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
514 }
515 return createChainableTypeChecker(validate);
516 }
517
518 function createObjectOfTypeChecker(typeChecker) {
519 function validate(props, propName, componentName, location, propFullName) {
520 if (typeof typeChecker !== 'function') {
521 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
522 }
523 var propValue = props[propName];
524 var propType = getPropType(propValue);
525 if (propType !== 'object') {
526 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
527 }
528 for (var key in propValue) {
529 if (has(propValue, key)) {
530 var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
531 if (error instanceof Error) {
532 return error;
533 }
534 }
535 }
536 return null;
537 }
538 return createChainableTypeChecker(validate);
539 }
540
541 function createUnionTypeChecker(arrayOfTypeCheckers) {
542 if (!Array.isArray(arrayOfTypeCheckers)) {
543 "development" !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
544 return emptyFunctionThatReturnsNull;
545 }
546
547 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
548 var checker = arrayOfTypeCheckers[i];
549 if (typeof checker !== 'function') {
550 printWarning(
551 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
552 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
553 );
554 return emptyFunctionThatReturnsNull;
555 }
556 }
557
558 function validate(props, propName, componentName, location, propFullName) {
559 var expectedTypes = [];
560 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
561 var checker = arrayOfTypeCheckers[i];
562 var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
563 if (checkerResult == null) {
564 return null;
565 }
566 if (checkerResult.data.hasOwnProperty('expectedType')) {
567 expectedTypes.push(checkerResult.data.expectedType);
568 }
569 }
570 var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
571 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
572 }
573 return createChainableTypeChecker(validate);
574 }
575
576 function createNodeChecker() {
577 function validate(props, propName, componentName, location, propFullName) {
578 if (!isNode(props[propName])) {
579 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
580 }
581 return null;
582 }
583 return createChainableTypeChecker(validate);
584 }
585
586 function invalidValidatorError(componentName, location, propFullName, key, type) {
587 return new PropTypeError(
588 (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
589 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
590 );
591 }
592
593 function createShapeTypeChecker(shapeTypes) {
594 function validate(props, propName, componentName, location, propFullName) {
595 var propValue = props[propName];
596 var propType = getPropType(propValue);
597 if (propType !== 'object') {
598 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
599 }
600 for (var key in shapeTypes) {
601 var checker = shapeTypes[key];
602 if (typeof checker !== 'function') {
603 return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
604 }
605 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
606 if (error) {
607 return error;
608 }
609 }
610 return null;
611 }
612 return createChainableTypeChecker(validate);
613 }
614
615 function createStrictShapeTypeChecker(shapeTypes) {
616 function validate(props, propName, componentName, location, propFullName) {
617 var propValue = props[propName];
618 var propType = getPropType(propValue);
619 if (propType !== 'object') {
620 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
621 }
622 // We need to check all keys in case some are required but missing from props.
623 var allKeys = assign({}, props[propName], shapeTypes);
624 for (var key in allKeys) {
625 var checker = shapeTypes[key];
626 if (has(shapeTypes, key) && typeof checker !== 'function') {
627 return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
628 }
629 if (!checker) {
630 return new PropTypeError(
631 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
632 '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
633 '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
634 );
635 }
636 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
637 if (error) {
638 return error;
639 }
640 }
641 return null;
642 }
643
644 return createChainableTypeChecker(validate);
645 }
646
647 function isNode(propValue) {
648 switch (typeof propValue) {
649 case 'number':
650 case 'string':
651 case 'undefined':
652 return true;
653 case 'boolean':
654 return !propValue;
655 case 'object':
656 if (Array.isArray(propValue)) {
657 return propValue.every(isNode);
658 }
659 if (propValue === null || isValidElement(propValue)) {
660 return true;
661 }
662
663 var iteratorFn = getIteratorFn(propValue);
664 if (iteratorFn) {
665 var iterator = iteratorFn.call(propValue);
666 var step;
667 if (iteratorFn !== propValue.entries) {
668 while (!(step = iterator.next()).done) {
669 if (!isNode(step.value)) {
670 return false;
671 }
672 }
673 } else {
674 // Iterator will provide entry [k,v] tuples rather than values.
675 while (!(step = iterator.next()).done) {
676 var entry = step.value;
677 if (entry) {
678 if (!isNode(entry[1])) {
679 return false;
680 }
681 }
682 }
683 }
684 } else {
685 return false;
686 }
687
688 return true;
689 default:
690 return false;
691 }
692 }
693
694 function isSymbol(propType, propValue) {
695 // Native Symbol.
696 if (propType === 'symbol') {
697 return true;
698 }
699
700 // falsy value can't be a Symbol
701 if (!propValue) {
702 return false;
703 }
704
705 // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
706 if (propValue['@@toStringTag'] === 'Symbol') {
707 return true;
708 }
709
710 // Fallback for non-spec compliant Symbols which are polyfilled.
711 if (typeof Symbol === 'function' && propValue instanceof Symbol) {
712 return true;
713 }
714
715 return false;
716 }
717
718 // Equivalent of `typeof` but with special handling for array and regexp.
719 function getPropType(propValue) {
720 var propType = typeof propValue;
721 if (Array.isArray(propValue)) {
722 return 'array';
723 }
724 if (propValue instanceof RegExp) {
725 // Old webkits (at least until Android 4.0) return 'function' rather than
726 // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
727 // passes PropTypes.object.
728 return 'object';
729 }
730 if (isSymbol(propType, propValue)) {
731 return 'symbol';
732 }
733 return propType;
734 }
735
736 // This handles more types than `getPropType`. Only used for error messages.
737 // See `createPrimitiveTypeChecker`.
738 function getPreciseType(propValue) {
739 if (typeof propValue === 'undefined' || propValue === null) {
740 return '' + propValue;
741 }
742 var propType = getPropType(propValue);
743 if (propType === 'object') {
744 if (propValue instanceof Date) {
745 return 'date';
746 } else if (propValue instanceof RegExp) {
747 return 'regexp';
748 }
749 }
750 return propType;
751 }
752
753 // Returns a string that is postfixed to a warning about an invalid type.
754 // For example, "undefined" or "of type array"
755 function getPostfixForTypeWarning(value) {
756 var type = getPreciseType(value);
757 switch (type) {
758 case 'array':
759 case 'object':
760 return 'an ' + type;
761 case 'boolean':
762 case 'date':
763 case 'regexp':
764 return 'a ' + type;
765 default:
766 return type;
767 }
768 }
769
770 // Returns class name of the object, if any.
771 function getClassName(propValue) {
772 if (!propValue.constructor || !propValue.constructor.name) {
773 return ANONYMOUS;
774 }
775 return propValue.constructor.name;
776 }
777
778 ReactPropTypes.checkPropTypes = checkPropTypes;
779 ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
780 ReactPropTypes.PropTypes = ReactPropTypes;
781
782 return ReactPropTypes;
783};
784
785},{"./checkPropTypes":1,"./lib/ReactPropTypesSecret":5,"./lib/has":6,"object-assign":7,"react-is":11}],4:[function(require,module,exports){
786/**
787 * Copyright (c) 2013-present, Facebook, Inc.
788 *
789 * This source code is licensed under the MIT license found in the
790 * LICENSE file in the root directory of this source tree.
791 */
792
793if ("development" !== 'production') {
794 var ReactIs = require('react-is');
795
796 // By explicitly using `prop-types` you are opting into new development behavior.
797 // http://fb.me/prop-types-in-prod
798 var throwOnDirectAccess = true;
799 module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);
800} else {
801 // By explicitly using `prop-types` you are opting into new production behavior.
802 // http://fb.me/prop-types-in-prod
803 module.exports = require('./factoryWithThrowingShims')();
804}
805
806},{"./factoryWithThrowingShims":2,"./factoryWithTypeCheckers":3,"react-is":11}],5:[function(require,module,exports){
807/**
808 * Copyright (c) 2013-present, Facebook, Inc.
809 *
810 * This source code is licensed under the MIT license found in the
811 * LICENSE file in the root directory of this source tree.
812 */
813
814'use strict';
815
816var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
817
818module.exports = ReactPropTypesSecret;
819
820},{}],6:[function(require,module,exports){
821module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
822
823},{}],7:[function(require,module,exports){
824/*
825object-assign
826(c) Sindre Sorhus
827@license MIT
828*/
829
830'use strict';
831/* eslint-disable no-unused-vars */
832var getOwnPropertySymbols = Object.getOwnPropertySymbols;
833var hasOwnProperty = Object.prototype.hasOwnProperty;
834var propIsEnumerable = Object.prototype.propertyIsEnumerable;
835
836function toObject(val) {
837 if (val === null || val === undefined) {
838 throw new TypeError('Object.assign cannot be called with null or undefined');
839 }
840
841 return Object(val);
842}
843
844function shouldUseNative() {
845 try {
846 if (!Object.assign) {
847 return false;
848 }
849
850 // Detect buggy property enumeration order in older V8 versions.
851
852 // https://bugs.chromium.org/p/v8/issues/detail?id=4118
853 var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
854 test1[5] = 'de';
855 if (Object.getOwnPropertyNames(test1)[0] === '5') {
856 return false;
857 }
858
859 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
860 var test2 = {};
861 for (var i = 0; i < 10; i++) {
862 test2['_' + String.fromCharCode(i)] = i;
863 }
864 var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
865 return test2[n];
866 });
867 if (order2.join('') !== '0123456789') {
868 return false;
869 }
870
871 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
872 var test3 = {};
873 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
874 test3[letter] = letter;
875 });
876 if (Object.keys(Object.assign({}, test3)).join('') !==
877 'abcdefghijklmnopqrst') {
878 return false;
879 }
880
881 return true;
882 } catch (err) {
883 // We don't expect any of the above to throw, but better to be safe.
884 return false;
885 }
886}
887
888module.exports = shouldUseNative() ? Object.assign : function (target, source) {
889 var from;
890 var to = toObject(target);
891 var symbols;
892
893 for (var s = 1; s < arguments.length; s++) {
894 from = Object(arguments[s]);
895
896 for (var key in from) {
897 if (hasOwnProperty.call(from, key)) {
898 to[key] = from[key];
899 }
900 }
901
902 if (getOwnPropertySymbols) {
903 symbols = getOwnPropertySymbols(from);
904 for (var i = 0; i < symbols.length; i++) {
905 if (propIsEnumerable.call(from, symbols[i])) {
906 to[symbols[i]] = from[symbols[i]];
907 }
908 }
909 }
910 }
911
912 return to;
913};
914
915},{}],8:[function(require,module,exports){
916// shim for using process in browser
917var process = module.exports = {};
918
919// cached from whatever global is present so that test runners that stub it
920// don't break things. But we need to wrap it in a try catch in case it is
921// wrapped in strict mode code which doesn't define any globals. It's inside a
922// function because try/catches deoptimize in certain engines.
923
924var cachedSetTimeout;
925var cachedClearTimeout;
926
927function defaultSetTimout() {
928 throw new Error('setTimeout has not been defined');
929}
930function defaultClearTimeout () {
931 throw new Error('clearTimeout has not been defined');
932}
933(function () {
934 try {
935 if (typeof setTimeout === 'function') {
936 cachedSetTimeout = setTimeout;
937 } else {
938 cachedSetTimeout = defaultSetTimout;
939 }
940 } catch (e) {
941 cachedSetTimeout = defaultSetTimout;
942 }
943 try {
944 if (typeof clearTimeout === 'function') {
945 cachedClearTimeout = clearTimeout;
946 } else {
947 cachedClearTimeout = defaultClearTimeout;
948 }
949 } catch (e) {
950 cachedClearTimeout = defaultClearTimeout;
951 }
952} ())
953function runTimeout(fun) {
954 if (cachedSetTimeout === setTimeout) {
955 //normal enviroments in sane situations
956 return setTimeout(fun, 0);
957 }
958 // if setTimeout wasn't available but was latter defined
959 if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
960 cachedSetTimeout = setTimeout;
961 return setTimeout(fun, 0);
962 }
963 try {
964 // when when somebody has screwed with setTimeout but no I.E. maddness
965 return cachedSetTimeout(fun, 0);
966 } catch(e){
967 try {
968 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
969 return cachedSetTimeout.call(null, fun, 0);
970 } catch(e){
971 // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
972 return cachedSetTimeout.call(this, fun, 0);
973 }
974 }
975
976
977}
978function runClearTimeout(marker) {
979 if (cachedClearTimeout === clearTimeout) {
980 //normal enviroments in sane situations
981 return clearTimeout(marker);
982 }
983 // if clearTimeout wasn't available but was latter defined
984 if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
985 cachedClearTimeout = clearTimeout;
986 return clearTimeout(marker);
987 }
988 try {
989 // when when somebody has screwed with setTimeout but no I.E. maddness
990 return cachedClearTimeout(marker);
991 } catch (e){
992 try {
993 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
994 return cachedClearTimeout.call(null, marker);
995 } catch (e){
996 // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
997 // Some versions of I.E. have different rules for clearTimeout vs setTimeout
998 return cachedClearTimeout.call(this, marker);
999 }
1000 }
1001
1002
1003
1004}
1005var queue = [];
1006var draining = false;
1007var currentQueue;
1008var queueIndex = -1;
1009
1010function cleanUpNextTick() {
1011 if (!draining || !currentQueue) {
1012 return;
1013 }
1014 draining = false;
1015 if (currentQueue.length) {
1016 queue = currentQueue.concat(queue);
1017 } else {
1018 queueIndex = -1;
1019 }
1020 if (queue.length) {
1021 drainQueue();
1022 }
1023}
1024
1025function drainQueue() {
1026 if (draining) {
1027 return;
1028 }
1029 var timeout = runTimeout(cleanUpNextTick);
1030 draining = true;
1031
1032 var len = queue.length;
1033 while(len) {
1034 currentQueue = queue;
1035 queue = [];
1036 while (++queueIndex < len) {
1037 if (currentQueue) {
1038 currentQueue[queueIndex].run();
1039 }
1040 }
1041 queueIndex = -1;
1042 len = queue.length;
1043 }
1044 currentQueue = null;
1045 draining = false;
1046 runClearTimeout(timeout);
1047}
1048
1049process.nextTick = function (fun) {
1050 var args = new Array(arguments.length - 1);
1051 if (arguments.length > 1) {
1052 for (var i = 1; i < arguments.length; i++) {
1053 args[i - 1] = arguments[i];
1054 }
1055 }
1056 queue.push(new Item(fun, args));
1057 if (queue.length === 1 && !draining) {
1058 runTimeout(drainQueue);
1059 }
1060};
1061
1062// v8 likes predictible objects
1063function Item(fun, array) {
1064 this.fun = fun;
1065 this.array = array;
1066}
1067Item.prototype.run = function () {
1068 this.fun.apply(null, this.array);
1069};
1070process.title = 'browser';
1071process.browser = true;
1072process.env = {};
1073process.argv = [];
1074process.version = ''; // empty string to avoid regexp issues
1075process.versions = {};
1076
1077function noop() {}
1078
1079process.on = noop;
1080process.addListener = noop;
1081process.once = noop;
1082process.off = noop;
1083process.removeListener = noop;
1084process.removeAllListeners = noop;
1085process.emit = noop;
1086process.prependListener = noop;
1087process.prependOnceListener = noop;
1088
1089process.listeners = function (name) { return [] }
1090
1091process.binding = function (name) {
1092 throw new Error('process.binding is not supported');
1093};
1094
1095process.cwd = function () { return '/' };
1096process.chdir = function (dir) {
1097 throw new Error('process.chdir is not supported');
1098};
1099process.umask = function() { return 0; };
1100
1101},{}],9:[function(require,module,exports){
1102(function (process){(function (){
1103/** @license React v16.13.1
1104 * react-is.development.js
1105 *
1106 * Copyright (c) Facebook, Inc. and its affiliates.
1107 *
1108 * This source code is licensed under the MIT license found in the
1109 * LICENSE file in the root directory of this source tree.
1110 */
1111
1112'use strict';
1113
1114
1115
1116if (process.env.NODE_ENV !== "production") {
1117 (function() {
1118'use strict';
1119
1120// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1121// nor polyfill, then a plain number is used for performance.
1122var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1123var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1124var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1125var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1126var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1127var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1128var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1129var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1130// (unstable) APIs that have been removed. Can we remove the symbols?
1131
1132var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1133var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1134var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1135var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1136var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1137var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1138var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1139var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1140var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1141var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1142var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1143
1144function isValidElementType(type) {
1145 return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1146 type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1147}
1148
1149function typeOf(object) {
1150 if (typeof object === 'object' && object !== null) {
1151 var $$typeof = object.$$typeof;
1152
1153 switch ($$typeof) {
1154 case REACT_ELEMENT_TYPE:
1155 var type = object.type;
1156
1157 switch (type) {
1158 case REACT_ASYNC_MODE_TYPE:
1159 case REACT_CONCURRENT_MODE_TYPE:
1160 case REACT_FRAGMENT_TYPE:
1161 case REACT_PROFILER_TYPE:
1162 case REACT_STRICT_MODE_TYPE:
1163 case REACT_SUSPENSE_TYPE:
1164 return type;
1165
1166 default:
1167 var $$typeofType = type && type.$$typeof;
1168
1169 switch ($$typeofType) {
1170 case REACT_CONTEXT_TYPE:
1171 case REACT_FORWARD_REF_TYPE:
1172 case REACT_LAZY_TYPE:
1173 case REACT_MEMO_TYPE:
1174 case REACT_PROVIDER_TYPE:
1175 return $$typeofType;
1176
1177 default:
1178 return $$typeof;
1179 }
1180
1181 }
1182
1183 case REACT_PORTAL_TYPE:
1184 return $$typeof;
1185 }
1186 }
1187
1188 return undefined;
1189} // AsyncMode is deprecated along with isAsyncMode
1190
1191var AsyncMode = REACT_ASYNC_MODE_TYPE;
1192var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1193var ContextConsumer = REACT_CONTEXT_TYPE;
1194var ContextProvider = REACT_PROVIDER_TYPE;
1195var Element = REACT_ELEMENT_TYPE;
1196var ForwardRef = REACT_FORWARD_REF_TYPE;
1197var Fragment = REACT_FRAGMENT_TYPE;
1198var Lazy = REACT_LAZY_TYPE;
1199var Memo = REACT_MEMO_TYPE;
1200var Portal = REACT_PORTAL_TYPE;
1201var Profiler = REACT_PROFILER_TYPE;
1202var StrictMode = REACT_STRICT_MODE_TYPE;
1203var Suspense = REACT_SUSPENSE_TYPE;
1204var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1205
1206function isAsyncMode(object) {
1207 {
1208 if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1209 hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1210
1211 console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
1212 }
1213 }
1214
1215 return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1216}
1217function isConcurrentMode(object) {
1218 return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1219}
1220function isContextConsumer(object) {
1221 return typeOf(object) === REACT_CONTEXT_TYPE;
1222}
1223function isContextProvider(object) {
1224 return typeOf(object) === REACT_PROVIDER_TYPE;
1225}
1226function isElement(object) {
1227 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1228}
1229function isForwardRef(object) {
1230 return typeOf(object) === REACT_FORWARD_REF_TYPE;
1231}
1232function isFragment(object) {
1233 return typeOf(object) === REACT_FRAGMENT_TYPE;
1234}
1235function isLazy(object) {
1236 return typeOf(object) === REACT_LAZY_TYPE;
1237}
1238function isMemo(object) {
1239 return typeOf(object) === REACT_MEMO_TYPE;
1240}
1241function isPortal(object) {
1242 return typeOf(object) === REACT_PORTAL_TYPE;
1243}
1244function isProfiler(object) {
1245 return typeOf(object) === REACT_PROFILER_TYPE;
1246}
1247function isStrictMode(object) {
1248 return typeOf(object) === REACT_STRICT_MODE_TYPE;
1249}
1250function isSuspense(object) {
1251 return typeOf(object) === REACT_SUSPENSE_TYPE;
1252}
1253
1254exports.AsyncMode = AsyncMode;
1255exports.ConcurrentMode = ConcurrentMode;
1256exports.ContextConsumer = ContextConsumer;
1257exports.ContextProvider = ContextProvider;
1258exports.Element = Element;
1259exports.ForwardRef = ForwardRef;
1260exports.Fragment = Fragment;
1261exports.Lazy = Lazy;
1262exports.Memo = Memo;
1263exports.Portal = Portal;
1264exports.Profiler = Profiler;
1265exports.StrictMode = StrictMode;
1266exports.Suspense = Suspense;
1267exports.isAsyncMode = isAsyncMode;
1268exports.isConcurrentMode = isConcurrentMode;
1269exports.isContextConsumer = isContextConsumer;
1270exports.isContextProvider = isContextProvider;
1271exports.isElement = isElement;
1272exports.isForwardRef = isForwardRef;
1273exports.isFragment = isFragment;
1274exports.isLazy = isLazy;
1275exports.isMemo = isMemo;
1276exports.isPortal = isPortal;
1277exports.isProfiler = isProfiler;
1278exports.isStrictMode = isStrictMode;
1279exports.isSuspense = isSuspense;
1280exports.isValidElementType = isValidElementType;
1281exports.typeOf = typeOf;
1282 })();
1283}
1284
1285}).call(this)}).call(this,require('_process'))
1286},{"_process":8}],10:[function(require,module,exports){
1287/** @license React v16.13.1
1288 * react-is.production.min.js
1289 *
1290 * Copyright (c) Facebook, Inc. and its affiliates.
1291 *
1292 * This source code is licensed under the MIT license found in the
1293 * LICENSE file in the root directory of this source tree.
1294 */
1295
1296'use strict';var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
1297Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
1298function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;
1299exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};
1300exports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};
1301exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;
1302
1303},{}],11:[function(require,module,exports){
1304(function (process){(function (){
1305'use strict';
1306
1307if (process.env.NODE_ENV === 'production') {
1308 module.exports = require('./cjs/react-is.production.min.js');
1309} else {
1310 module.exports = require('./cjs/react-is.development.js');
1311}
1312
1313}).call(this)}).call(this,require('_process'))
1314},{"./cjs/react-is.development.js":9,"./cjs/react-is.production.min.js":10,"_process":8}]},{},[4])(4)
1315});
Note: See TracBrowser for help on using the repository browser.