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 e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | 'use strict';
|
10 |
|
11 | var printWarning = function() {};
|
12 |
|
13 | if ("development" !== 'production') {
|
14 | var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');
|
15 | var loggedTypeFailures = {};
|
16 | var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
17 |
|
18 | printWarning = function(text) {
|
19 | var message = 'Warning: ' + text;
|
20 | if (typeof console !== 'undefined') {
|
21 | console.error(message);
|
22 | }
|
23 | try {
|
24 |
|
25 |
|
26 |
|
27 | throw new Error(message);
|
28 | } catch (x) {}
|
29 | };
|
30 | }
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | function 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 |
|
49 |
|
50 |
|
51 | try {
|
52 |
|
53 |
|
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 | );
|
59 | err.name = 'Invariant Violation';
|
60 | throw err;
|
61 | }
|
62 | error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
63 | } catch (ex) {
|
64 | error = ex;
|
65 | }
|
66 | if (error && !(error instanceof Error)) {
|
67 | printWarning(
|
68 | (componentName || 'React class') + ': type specification of ' +
|
69 | location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
70 | 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
71 | 'You may have forgotten to pass an argument to the type checker ' +
|
72 | 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
73 | 'shape all require an argument).'
|
74 | );
|
75 | }
|
76 | if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
77 |
|
78 |
|
79 | loggedTypeFailures[error.message] = true;
|
80 |
|
81 | var stack = getStack ? getStack() : '';
|
82 |
|
83 | printWarning(
|
84 | 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
85 | );
|
86 | }
|
87 | }
|
88 | }
|
89 | }
|
90 | }
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 | checkPropTypes.resetWarningCache = function() {
|
98 | if ("development" !== 'production') {
|
99 | loggedTypeFailures = {};
|
100 | }
|
101 | }
|
102 |
|
103 | module.exports = checkPropTypes;
|
104 |
|
105 | },{"./lib/ReactPropTypesSecret":5}],2:[function(require,module,exports){
|
106 |
|
107 |
|
108 |
|
109 |
|
110 |
|
111 |
|
112 |
|
113 | 'use strict';
|
114 |
|
115 | var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');
|
116 |
|
117 | function emptyFunction() {}
|
118 | function emptyFunctionWithReset() {}
|
119 | emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
120 |
|
121 | module.exports = function() {
|
122 | function shim(props, propName, componentName, location, propFullName, secret) {
|
123 | if (secret === ReactPropTypesSecret) {
|
124 |
|
125 | return;
|
126 | }
|
127 | var err = new Error(
|
128 | 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
129 | 'Use PropTypes.checkPropTypes() to call them. ' +
|
130 | 'Read more at http://fb.me/use-check-prop-types'
|
131 | );
|
132 | err.name = 'Invariant Violation';
|
133 | throw err;
|
134 | };
|
135 | shim.isRequired = shim;
|
136 | function getShim() {
|
137 | return shim;
|
138 | };
|
139 |
|
140 |
|
141 | var ReactPropTypes = {
|
142 | array: shim,
|
143 | bool: shim,
|
144 | func: shim,
|
145 | number: shim,
|
146 | object: shim,
|
147 | string: shim,
|
148 | symbol: shim,
|
149 |
|
150 | any: shim,
|
151 | arrayOf: getShim,
|
152 | element: shim,
|
153 | elementType: shim,
|
154 | instanceOf: getShim,
|
155 | node: shim,
|
156 | objectOf: getShim,
|
157 | oneOf: getShim,
|
158 | oneOfType: getShim,
|
159 | shape: getShim,
|
160 | exact: getShim,
|
161 |
|
162 | checkPropTypes: emptyFunctionWithReset,
|
163 | resetWarningCache: emptyFunction
|
164 | };
|
165 |
|
166 | ReactPropTypes.PropTypes = ReactPropTypes;
|
167 |
|
168 | return ReactPropTypes;
|
169 | };
|
170 |
|
171 | },{"./lib/ReactPropTypesSecret":5}],3:[function(require,module,exports){
|
172 |
|
173 |
|
174 |
|
175 |
|
176 |
|
177 |
|
178 |
|
179 | 'use strict';
|
180 |
|
181 | var ReactIs = require('react-is');
|
182 | var assign = require('object-assign');
|
183 |
|
184 | var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');
|
185 | var checkPropTypes = require('./checkPropTypes');
|
186 |
|
187 | var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
188 | var printWarning = function() {};
|
189 |
|
190 | if ("development" !== 'production') {
|
191 | printWarning = function(text) {
|
192 | var message = 'Warning: ' + text;
|
193 | if (typeof console !== 'undefined') {
|
194 | console.error(message);
|
195 | }
|
196 | try {
|
197 |
|
198 |
|
199 |
|
200 | throw new Error(message);
|
201 | } catch (x) {}
|
202 | };
|
203 | }
|
204 |
|
205 | function emptyFunctionThatReturnsNull() {
|
206 | return null;
|
207 | }
|
208 |
|
209 | module.exports = function(isValidElement, throwOnDirectAccess) {
|
210 |
|
211 | var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
212 | var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
213 |
|
214 | |
215 |
|
216 |
|
217 |
|
218 |
|
219 |
|
220 |
|
221 |
|
222 |
|
223 |
|
224 |
|
225 |
|
226 |
|
227 |
|
228 | function getIteratorFn(maybeIterable) {
|
229 | var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
230 | if (typeof iteratorFn === 'function') {
|
231 | return iteratorFn;
|
232 | }
|
233 | }
|
234 |
|
235 | |
236 |
|
237 |
|
238 |
|
239 |
|
240 |
|
241 |
|
242 |
|
243 |
|
244 |
|
245 |
|
246 |
|
247 |
|
248 |
|
249 |
|
250 |
|
251 |
|
252 |
|
253 |
|
254 |
|
255 |
|
256 |
|
257 |
|
258 |
|
259 |
|
260 |
|
261 |
|
262 |
|
263 |
|
264 |
|
265 |
|
266 |
|
267 |
|
268 |
|
269 |
|
270 |
|
271 |
|
272 |
|
273 |
|
274 |
|
275 |
|
276 |
|
277 |
|
278 |
|
279 |
|
280 |
|
281 |
|
282 | var ANONYMOUS = '<<anonymous>>';
|
283 |
|
284 |
|
285 |
|
286 | var ReactPropTypes = {
|
287 | array: createPrimitiveTypeChecker('array'),
|
288 | bool: createPrimitiveTypeChecker('boolean'),
|
289 | func: createPrimitiveTypeChecker('function'),
|
290 | number: createPrimitiveTypeChecker('number'),
|
291 | object: createPrimitiveTypeChecker('object'),
|
292 | string: createPrimitiveTypeChecker('string'),
|
293 | symbol: createPrimitiveTypeChecker('symbol'),
|
294 |
|
295 | any: createAnyTypeChecker(),
|
296 | arrayOf: createArrayOfTypeChecker,
|
297 | element: createElementTypeChecker(),
|
298 | elementType: createElementTypeTypeChecker(),
|
299 | instanceOf: createInstanceTypeChecker,
|
300 | node: createNodeChecker(),
|
301 | objectOf: createObjectOfTypeChecker,
|
302 | oneOf: createEnumTypeChecker,
|
303 | oneOfType: createUnionTypeChecker,
|
304 | shape: createShapeTypeChecker,
|
305 | exact: createStrictShapeTypeChecker,
|
306 | };
|
307 |
|
308 | |
309 |
|
310 |
|
311 |
|
312 |
|
313 | function is(x, y) {
|
314 |
|
315 | if (x === y) {
|
316 |
|
317 |
|
318 | return x !== 0 || 1 / x === 1 / y;
|
319 | } else {
|
320 |
|
321 | return x !== x && y !== y;
|
322 | }
|
323 | }
|
324 |
|
325 |
|
326 | |
327 |
|
328 |
|
329 |
|
330 |
|
331 |
|
332 |
|
333 | function PropTypeError(message) {
|
334 | this.message = message;
|
335 | this.stack = '';
|
336 | }
|
337 |
|
338 | PropTypeError.prototype = Error.prototype;
|
339 |
|
340 | function createChainableTypeChecker(validate) {
|
341 | if ("development" !== 'production') {
|
342 | var manualPropTypeCallCache = {};
|
343 | var manualPropTypeWarningCount = 0;
|
344 | }
|
345 | function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
346 | componentName = componentName || ANONYMOUS;
|
347 | propFullName = propFullName || propName;
|
348 |
|
349 | if (secret !== ReactPropTypesSecret) {
|
350 | if (throwOnDirectAccess) {
|
351 |
|
352 | var err = new Error(
|
353 | 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
354 | 'Use `PropTypes.checkPropTypes()` to call them. ' +
|
355 | 'Read more at http://fb.me/use-check-prop-types'
|
356 | );
|
357 | err.name = 'Invariant Violation';
|
358 | throw err;
|
359 | } else if ("development" !== 'production' && typeof console !== 'undefined') {
|
360 |
|
361 | var cacheKey = componentName + ':' + propName;
|
362 | if (
|
363 | !manualPropTypeCallCache[cacheKey] &&
|
364 |
|
365 | manualPropTypeWarningCount < 3
|
366 | ) {
|
367 | printWarning(
|
368 | 'You are manually calling a React.PropTypes validation ' +
|
369 | 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
370 | 'and will throw in the standalone `prop-types` package. ' +
|
371 | 'You may be seeing this warning due to a third-party PropTypes ' +
|
372 | 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
373 | );
|
374 | manualPropTypeCallCache[cacheKey] = true;
|
375 | manualPropTypeWarningCount++;
|
376 | }
|
377 | }
|
378 | }
|
379 | if (props[propName] == null) {
|
380 | if (isRequired) {
|
381 | if (props[propName] === null) {
|
382 | return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
383 | }
|
384 | return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
385 | }
|
386 | return null;
|
387 | } else {
|
388 | return validate(props, propName, componentName, location, propFullName);
|
389 | }
|
390 | }
|
391 |
|
392 | var chainedCheckType = checkType.bind(null, false);
|
393 | chainedCheckType.isRequired = checkType.bind(null, true);
|
394 |
|
395 | return chainedCheckType;
|
396 | }
|
397 |
|
398 | function createPrimitiveTypeChecker(expectedType) {
|
399 | function validate(props, propName, componentName, location, propFullName, secret) {
|
400 | var propValue = props[propName];
|
401 | var propType = getPropType(propValue);
|
402 | if (propType !== expectedType) {
|
403 |
|
404 |
|
405 |
|
406 | var preciseType = getPreciseType(propValue);
|
407 |
|
408 | return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
409 | }
|
410 | return null;
|
411 | }
|
412 | return createChainableTypeChecker(validate);
|
413 | }
|
414 |
|
415 | function createAnyTypeChecker() {
|
416 | return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
417 | }
|
418 |
|
419 | function createArrayOfTypeChecker(typeChecker) {
|
420 | function validate(props, propName, componentName, location, propFullName) {
|
421 | if (typeof typeChecker !== 'function') {
|
422 | return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
423 | }
|
424 | var propValue = props[propName];
|
425 | if (!Array.isArray(propValue)) {
|
426 | var propType = getPropType(propValue);
|
427 | return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
428 | }
|
429 | for (var i = 0; i < propValue.length; i++) {
|
430 | var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
431 | if (error instanceof Error) {
|
432 | return error;
|
433 | }
|
434 | }
|
435 | return null;
|
436 | }
|
437 | return createChainableTypeChecker(validate);
|
438 | }
|
439 |
|
440 | function createElementTypeChecker() {
|
441 | function validate(props, propName, componentName, location, propFullName) {
|
442 | var propValue = props[propName];
|
443 | if (!isValidElement(propValue)) {
|
444 | var propType = getPropType(propValue);
|
445 | return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
446 | }
|
447 | return null;
|
448 | }
|
449 | return createChainableTypeChecker(validate);
|
450 | }
|
451 |
|
452 | function createElementTypeTypeChecker() {
|
453 | function validate(props, propName, componentName, location, propFullName) {
|
454 | var propValue = props[propName];
|
455 | if (!ReactIs.isValidElementType(propValue)) {
|
456 | var propType = getPropType(propValue);
|
457 | return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
458 | }
|
459 | return null;
|
460 | }
|
461 | return createChainableTypeChecker(validate);
|
462 | }
|
463 |
|
464 | function createInstanceTypeChecker(expectedClass) {
|
465 | function validate(props, propName, componentName, location, propFullName) {
|
466 | if (!(props[propName] instanceof expectedClass)) {
|
467 | var expectedClassName = expectedClass.name || ANONYMOUS;
|
468 | var actualClassName = getClassName(props[propName]);
|
469 | return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
470 | }
|
471 | return null;
|
472 | }
|
473 | return createChainableTypeChecker(validate);
|
474 | }
|
475 |
|
476 | function createEnumTypeChecker(expectedValues) {
|
477 | if (!Array.isArray(expectedValues)) {
|
478 | if ("development" !== 'production') {
|
479 | if (arguments.length > 1) {
|
480 | printWarning(
|
481 | 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
482 | 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
483 | );
|
484 | } else {
|
485 | printWarning('Invalid argument supplied to oneOf, expected an array.');
|
486 | }
|
487 | }
|
488 | return emptyFunctionThatReturnsNull;
|
489 | }
|
490 |
|
491 | function validate(props, propName, componentName, location, propFullName) {
|
492 | var propValue = props[propName];
|
493 | for (var i = 0; i < expectedValues.length; i++) {
|
494 | if (is(propValue, expectedValues[i])) {
|
495 | return null;
|
496 | }
|
497 | }
|
498 |
|
499 | var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
500 | var type = getPreciseType(value);
|
501 | if (type === 'symbol') {
|
502 | return String(value);
|
503 | }
|
504 | return value;
|
505 | });
|
506 | return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
507 | }
|
508 | return createChainableTypeChecker(validate);
|
509 | }
|
510 |
|
511 | function createObjectOfTypeChecker(typeChecker) {
|
512 | function validate(props, propName, componentName, location, propFullName) {
|
513 | if (typeof typeChecker !== 'function') {
|
514 | return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
515 | }
|
516 | var propValue = props[propName];
|
517 | var propType = getPropType(propValue);
|
518 | if (propType !== 'object') {
|
519 | return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
520 | }
|
521 | for (var key in propValue) {
|
522 | if (has(propValue, key)) {
|
523 | var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
524 | if (error instanceof Error) {
|
525 | return error;
|
526 | }
|
527 | }
|
528 | }
|
529 | return null;
|
530 | }
|
531 | return createChainableTypeChecker(validate);
|
532 | }
|
533 |
|
534 | function createUnionTypeChecker(arrayOfTypeCheckers) {
|
535 | if (!Array.isArray(arrayOfTypeCheckers)) {
|
536 | "development" !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
537 | return emptyFunctionThatReturnsNull;
|
538 | }
|
539 |
|
540 | for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
541 | var checker = arrayOfTypeCheckers[i];
|
542 | if (typeof checker !== 'function') {
|
543 | printWarning(
|
544 | 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
545 | 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
546 | );
|
547 | return emptyFunctionThatReturnsNull;
|
548 | }
|
549 | }
|
550 |
|
551 | function validate(props, propName, componentName, location, propFullName) {
|
552 | for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
553 | var checker = arrayOfTypeCheckers[i];
|
554 | if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
555 | return null;
|
556 | }
|
557 | }
|
558 |
|
559 | return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
560 | }
|
561 | return createChainableTypeChecker(validate);
|
562 | }
|
563 |
|
564 | function createNodeChecker() {
|
565 | function validate(props, propName, componentName, location, propFullName) {
|
566 | if (!isNode(props[propName])) {
|
567 | return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
568 | }
|
569 | return null;
|
570 | }
|
571 | return createChainableTypeChecker(validate);
|
572 | }
|
573 |
|
574 | function createShapeTypeChecker(shapeTypes) {
|
575 | function validate(props, propName, componentName, location, propFullName) {
|
576 | var propValue = props[propName];
|
577 | var propType = getPropType(propValue);
|
578 | if (propType !== 'object') {
|
579 | return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
580 | }
|
581 | for (var key in shapeTypes) {
|
582 | var checker = shapeTypes[key];
|
583 | if (!checker) {
|
584 | continue;
|
585 | }
|
586 | var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
587 | if (error) {
|
588 | return error;
|
589 | }
|
590 | }
|
591 | return null;
|
592 | }
|
593 | return createChainableTypeChecker(validate);
|
594 | }
|
595 |
|
596 | function createStrictShapeTypeChecker(shapeTypes) {
|
597 | function validate(props, propName, componentName, location, propFullName) {
|
598 | var propValue = props[propName];
|
599 | var propType = getPropType(propValue);
|
600 | if (propType !== 'object') {
|
601 | return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
602 | }
|
603 |
|
604 |
|
605 | var allKeys = assign({}, props[propName], shapeTypes);
|
606 | for (var key in allKeys) {
|
607 | var checker = shapeTypes[key];
|
608 | if (!checker) {
|
609 | return new PropTypeError(
|
610 | 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
611 | '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
612 | '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
613 | );
|
614 | }
|
615 | var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
616 | if (error) {
|
617 | return error;
|
618 | }
|
619 | }
|
620 | return null;
|
621 | }
|
622 |
|
623 | return createChainableTypeChecker(validate);
|
624 | }
|
625 |
|
626 | function isNode(propValue) {
|
627 | switch (typeof propValue) {
|
628 | case 'number':
|
629 | case 'string':
|
630 | case 'undefined':
|
631 | return true;
|
632 | case 'boolean':
|
633 | return !propValue;
|
634 | case 'object':
|
635 | if (Array.isArray(propValue)) {
|
636 | return propValue.every(isNode);
|
637 | }
|
638 | if (propValue === null || isValidElement(propValue)) {
|
639 | return true;
|
640 | }
|
641 |
|
642 | var iteratorFn = getIteratorFn(propValue);
|
643 | if (iteratorFn) {
|
644 | var iterator = iteratorFn.call(propValue);
|
645 | var step;
|
646 | if (iteratorFn !== propValue.entries) {
|
647 | while (!(step = iterator.next()).done) {
|
648 | if (!isNode(step.value)) {
|
649 | return false;
|
650 | }
|
651 | }
|
652 | } else {
|
653 |
|
654 | while (!(step = iterator.next()).done) {
|
655 | var entry = step.value;
|
656 | if (entry) {
|
657 | if (!isNode(entry[1])) {
|
658 | return false;
|
659 | }
|
660 | }
|
661 | }
|
662 | }
|
663 | } else {
|
664 | return false;
|
665 | }
|
666 |
|
667 | return true;
|
668 | default:
|
669 | return false;
|
670 | }
|
671 | }
|
672 |
|
673 | function isSymbol(propType, propValue) {
|
674 |
|
675 | if (propType === 'symbol') {
|
676 | return true;
|
677 | }
|
678 |
|
679 |
|
680 | if (!propValue) {
|
681 | return false;
|
682 | }
|
683 |
|
684 |
|
685 | if (propValue['@@toStringTag'] === 'Symbol') {
|
686 | return true;
|
687 | }
|
688 |
|
689 |
|
690 | if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
691 | return true;
|
692 | }
|
693 |
|
694 | return false;
|
695 | }
|
696 |
|
697 |
|
698 | function getPropType(propValue) {
|
699 | var propType = typeof propValue;
|
700 | if (Array.isArray(propValue)) {
|
701 | return 'array';
|
702 | }
|
703 | if (propValue instanceof RegExp) {
|
704 |
|
705 |
|
706 |
|
707 | return 'object';
|
708 | }
|
709 | if (isSymbol(propType, propValue)) {
|
710 | return 'symbol';
|
711 | }
|
712 | return propType;
|
713 | }
|
714 |
|
715 |
|
716 |
|
717 | function getPreciseType(propValue) {
|
718 | if (typeof propValue === 'undefined' || propValue === null) {
|
719 | return '' + propValue;
|
720 | }
|
721 | var propType = getPropType(propValue);
|
722 | if (propType === 'object') {
|
723 | if (propValue instanceof Date) {
|
724 | return 'date';
|
725 | } else if (propValue instanceof RegExp) {
|
726 | return 'regexp';
|
727 | }
|
728 | }
|
729 | return propType;
|
730 | }
|
731 |
|
732 |
|
733 |
|
734 | function getPostfixForTypeWarning(value) {
|
735 | var type = getPreciseType(value);
|
736 | switch (type) {
|
737 | case 'array':
|
738 | case 'object':
|
739 | return 'an ' + type;
|
740 | case 'boolean':
|
741 | case 'date':
|
742 | case 'regexp':
|
743 | return 'a ' + type;
|
744 | default:
|
745 | return type;
|
746 | }
|
747 | }
|
748 |
|
749 |
|
750 | function getClassName(propValue) {
|
751 | if (!propValue.constructor || !propValue.constructor.name) {
|
752 | return ANONYMOUS;
|
753 | }
|
754 | return propValue.constructor.name;
|
755 | }
|
756 |
|
757 | ReactPropTypes.checkPropTypes = checkPropTypes;
|
758 | ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
759 | ReactPropTypes.PropTypes = ReactPropTypes;
|
760 |
|
761 | return ReactPropTypes;
|
762 | };
|
763 |
|
764 | },{"./checkPropTypes":1,"./lib/ReactPropTypesSecret":5,"object-assign":6,"react-is":10}],4:[function(require,module,exports){
|
765 |
|
766 |
|
767 |
|
768 |
|
769 |
|
770 |
|
771 |
|
772 | if ("development" !== 'production') {
|
773 | var ReactIs = require('react-is');
|
774 |
|
775 |
|
776 |
|
777 | var throwOnDirectAccess = true;
|
778 | module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);
|
779 | } else {
|
780 |
|
781 |
|
782 | module.exports = require('./factoryWithThrowingShims')();
|
783 | }
|
784 |
|
785 | },{"./factoryWithThrowingShims":2,"./factoryWithTypeCheckers":3,"react-is":10}],5:[function(require,module,exports){
|
786 |
|
787 |
|
788 |
|
789 |
|
790 |
|
791 |
|
792 |
|
793 | 'use strict';
|
794 |
|
795 | var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
796 |
|
797 | module.exports = ReactPropTypesSecret;
|
798 |
|
799 | },{}],6:[function(require,module,exports){
|
800 |
|
801 |
|
802 |
|
803 |
|
804 |
|
805 |
|
806 | 'use strict';
|
807 |
|
808 | var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
809 | var hasOwnProperty = Object.prototype.hasOwnProperty;
|
810 | var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
811 |
|
812 | function toObject(val) {
|
813 | if (val === null || val === undefined) {
|
814 | throw new TypeError('Object.assign cannot be called with null or undefined');
|
815 | }
|
816 |
|
817 | return Object(val);
|
818 | }
|
819 |
|
820 | function shouldUseNative() {
|
821 | try {
|
822 | if (!Object.assign) {
|
823 | return false;
|
824 | }
|
825 |
|
826 |
|
827 |
|
828 |
|
829 | var test1 = new String('abc');
|
830 | test1[5] = 'de';
|
831 | if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
832 | return false;
|
833 | }
|
834 |
|
835 |
|
836 | var test2 = {};
|
837 | for (var i = 0; i < 10; i++) {
|
838 | test2['_' + String.fromCharCode(i)] = i;
|
839 | }
|
840 | var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
841 | return test2[n];
|
842 | });
|
843 | if (order2.join('') !== '0123456789') {
|
844 | return false;
|
845 | }
|
846 |
|
847 |
|
848 | var test3 = {};
|
849 | 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
850 | test3[letter] = letter;
|
851 | });
|
852 | if (Object.keys(Object.assign({}, test3)).join('') !==
|
853 | 'abcdefghijklmnopqrst') {
|
854 | return false;
|
855 | }
|
856 |
|
857 | return true;
|
858 | } catch (err) {
|
859 |
|
860 | return false;
|
861 | }
|
862 | }
|
863 |
|
864 | module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
865 | var from;
|
866 | var to = toObject(target);
|
867 | var symbols;
|
868 |
|
869 | for (var s = 1; s < arguments.length; s++) {
|
870 | from = Object(arguments[s]);
|
871 |
|
872 | for (var key in from) {
|
873 | if (hasOwnProperty.call(from, key)) {
|
874 | to[key] = from[key];
|
875 | }
|
876 | }
|
877 |
|
878 | if (getOwnPropertySymbols) {
|
879 | symbols = getOwnPropertySymbols(from);
|
880 | for (var i = 0; i < symbols.length; i++) {
|
881 | if (propIsEnumerable.call(from, symbols[i])) {
|
882 | to[symbols[i]] = from[symbols[i]];
|
883 | }
|
884 | }
|
885 | }
|
886 | }
|
887 |
|
888 | return to;
|
889 | };
|
890 |
|
891 | },{}],7:[function(require,module,exports){
|
892 |
|
893 | var process = module.exports = {};
|
894 |
|
895 |
|
896 |
|
897 |
|
898 |
|
899 |
|
900 | var cachedSetTimeout;
|
901 | var cachedClearTimeout;
|
902 |
|
903 | function defaultSetTimout() {
|
904 | throw new Error('setTimeout has not been defined');
|
905 | }
|
906 | function defaultClearTimeout () {
|
907 | throw new Error('clearTimeout has not been defined');
|
908 | }
|
909 | (function () {
|
910 | try {
|
911 | if (typeof setTimeout === 'function') {
|
912 | cachedSetTimeout = setTimeout;
|
913 | } else {
|
914 | cachedSetTimeout = defaultSetTimout;
|
915 | }
|
916 | } catch (e) {
|
917 | cachedSetTimeout = defaultSetTimout;
|
918 | }
|
919 | try {
|
920 | if (typeof clearTimeout === 'function') {
|
921 | cachedClearTimeout = clearTimeout;
|
922 | } else {
|
923 | cachedClearTimeout = defaultClearTimeout;
|
924 | }
|
925 | } catch (e) {
|
926 | cachedClearTimeout = defaultClearTimeout;
|
927 | }
|
928 | } ())
|
929 | function runTimeout(fun) {
|
930 | if (cachedSetTimeout === setTimeout) {
|
931 |
|
932 | return setTimeout(fun, 0);
|
933 | }
|
934 |
|
935 | if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
936 | cachedSetTimeout = setTimeout;
|
937 | return setTimeout(fun, 0);
|
938 | }
|
939 | try {
|
940 |
|
941 | return cachedSetTimeout(fun, 0);
|
942 | } catch(e){
|
943 | try {
|
944 |
|
945 | return cachedSetTimeout.call(null, fun, 0);
|
946 | } catch(e){
|
947 |
|
948 | return cachedSetTimeout.call(this, fun, 0);
|
949 | }
|
950 | }
|
951 |
|
952 |
|
953 | }
|
954 | function runClearTimeout(marker) {
|
955 | if (cachedClearTimeout === clearTimeout) {
|
956 |
|
957 | return clearTimeout(marker);
|
958 | }
|
959 |
|
960 | if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
961 | cachedClearTimeout = clearTimeout;
|
962 | return clearTimeout(marker);
|
963 | }
|
964 | try {
|
965 |
|
966 | return cachedClearTimeout(marker);
|
967 | } catch (e){
|
968 | try {
|
969 |
|
970 | return cachedClearTimeout.call(null, marker);
|
971 | } catch (e){
|
972 |
|
973 |
|
974 | return cachedClearTimeout.call(this, marker);
|
975 | }
|
976 | }
|
977 |
|
978 |
|
979 |
|
980 | }
|
981 | var queue = [];
|
982 | var draining = false;
|
983 | var currentQueue;
|
984 | var queueIndex = -1;
|
985 |
|
986 | function cleanUpNextTick() {
|
987 | if (!draining || !currentQueue) {
|
988 | return;
|
989 | }
|
990 | draining = false;
|
991 | if (currentQueue.length) {
|
992 | queue = currentQueue.concat(queue);
|
993 | } else {
|
994 | queueIndex = -1;
|
995 | }
|
996 | if (queue.length) {
|
997 | drainQueue();
|
998 | }
|
999 | }
|
1000 |
|
1001 | function drainQueue() {
|
1002 | if (draining) {
|
1003 | return;
|
1004 | }
|
1005 | var timeout = runTimeout(cleanUpNextTick);
|
1006 | draining = true;
|
1007 |
|
1008 | var len = queue.length;
|
1009 | while(len) {
|
1010 | currentQueue = queue;
|
1011 | queue = [];
|
1012 | while (++queueIndex < len) {
|
1013 | if (currentQueue) {
|
1014 | currentQueue[queueIndex].run();
|
1015 | }
|
1016 | }
|
1017 | queueIndex = -1;
|
1018 | len = queue.length;
|
1019 | }
|
1020 | currentQueue = null;
|
1021 | draining = false;
|
1022 | runClearTimeout(timeout);
|
1023 | }
|
1024 |
|
1025 | process.nextTick = function (fun) {
|
1026 | var args = new Array(arguments.length - 1);
|
1027 | if (arguments.length > 1) {
|
1028 | for (var i = 1; i < arguments.length; i++) {
|
1029 | args[i - 1] = arguments[i];
|
1030 | }
|
1031 | }
|
1032 | queue.push(new Item(fun, args));
|
1033 | if (queue.length === 1 && !draining) {
|
1034 | runTimeout(drainQueue);
|
1035 | }
|
1036 | };
|
1037 |
|
1038 |
|
1039 | function Item(fun, array) {
|
1040 | this.fun = fun;
|
1041 | this.array = array;
|
1042 | }
|
1043 | Item.prototype.run = function () {
|
1044 | this.fun.apply(null, this.array);
|
1045 | };
|
1046 | process.title = 'browser';
|
1047 | process.browser = true;
|
1048 | process.env = {};
|
1049 | process.argv = [];
|
1050 | process.version = '';
|
1051 | process.versions = {};
|
1052 |
|
1053 | function noop() {}
|
1054 |
|
1055 | process.on = noop;
|
1056 | process.addListener = noop;
|
1057 | process.once = noop;
|
1058 | process.off = noop;
|
1059 | process.removeListener = noop;
|
1060 | process.removeAllListeners = noop;
|
1061 | process.emit = noop;
|
1062 | process.prependListener = noop;
|
1063 | process.prependOnceListener = noop;
|
1064 |
|
1065 | process.listeners = function (name) { return [] }
|
1066 |
|
1067 | process.binding = function (name) {
|
1068 | throw new Error('process.binding is not supported');
|
1069 | };
|
1070 |
|
1071 | process.cwd = function () { return '/' };
|
1072 | process.chdir = function (dir) {
|
1073 | throw new Error('process.chdir is not supported');
|
1074 | };
|
1075 | process.umask = function() { return 0; };
|
1076 |
|
1077 | },{}],8:[function(require,module,exports){
|
1078 | (function (process){
|
1079 |
|
1080 |
|
1081 |
|
1082 |
|
1083 |
|
1084 |
|
1085 |
|
1086 |
|
1087 |
|
1088 | 'use strict';
|
1089 |
|
1090 |
|
1091 |
|
1092 | if (process.env.NODE_ENV !== "production") {
|
1093 | (function() {
|
1094 | 'use strict';
|
1095 |
|
1096 | Object.defineProperty(exports, '__esModule', { value: true });
|
1097 |
|
1098 |
|
1099 |
|
1100 | var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
1101 |
|
1102 | var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
1103 | var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
1104 | var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
1105 | var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
1106 | var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
1107 | var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
1108 | var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
1109 | var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
1110 | var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
1111 | var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
1112 | var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
1113 | var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
1114 | var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
1115 |
|
1116 | function isValidElementType(type) {
|
1117 | return typeof type === 'string' || typeof type === 'function' ||
|
1118 |
|
1119 | type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_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);
|
1120 | }
|
1121 |
|
1122 |
|
1123 |
|
1124 |
|
1125 |
|
1126 |
|
1127 |
|
1128 |
|
1129 |
|
1130 |
|
1131 |
|
1132 |
|
1133 |
|
1134 |
|
1135 |
|
1136 | var lowPriorityWarning = function () {};
|
1137 |
|
1138 | {
|
1139 | var printWarning = function (format) {
|
1140 | for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
1141 | args[_key - 1] = arguments[_key];
|
1142 | }
|
1143 |
|
1144 | var argIndex = 0;
|
1145 | var message = 'Warning: ' + format.replace(/%s/g, function () {
|
1146 | return args[argIndex++];
|
1147 | });
|
1148 | if (typeof console !== 'undefined') {
|
1149 | console.warn(message);
|
1150 | }
|
1151 | try {
|
1152 |
|
1153 |
|
1154 |
|
1155 | throw new Error(message);
|
1156 | } catch (x) {}
|
1157 | };
|
1158 |
|
1159 | lowPriorityWarning = function (condition, format) {
|
1160 | if (format === undefined) {
|
1161 | throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
|
1162 | }
|
1163 | if (!condition) {
|
1164 | for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
1165 | args[_key2 - 2] = arguments[_key2];
|
1166 | }
|
1167 |
|
1168 | printWarning.apply(undefined, [format].concat(args));
|
1169 | }
|
1170 | };
|
1171 | }
|
1172 |
|
1173 | var lowPriorityWarning$1 = lowPriorityWarning;
|
1174 |
|
1175 | function typeOf(object) {
|
1176 | if (typeof object === 'object' && object !== null) {
|
1177 | var $$typeof = object.$$typeof;
|
1178 | switch ($$typeof) {
|
1179 | case REACT_ELEMENT_TYPE:
|
1180 | var type = object.type;
|
1181 |
|
1182 | switch (type) {
|
1183 | case REACT_ASYNC_MODE_TYPE:
|
1184 | case REACT_CONCURRENT_MODE_TYPE:
|
1185 | case REACT_FRAGMENT_TYPE:
|
1186 | case REACT_PROFILER_TYPE:
|
1187 | case REACT_STRICT_MODE_TYPE:
|
1188 | case REACT_SUSPENSE_TYPE:
|
1189 | return type;
|
1190 | default:
|
1191 | var $$typeofType = type && type.$$typeof;
|
1192 |
|
1193 | switch ($$typeofType) {
|
1194 | case REACT_CONTEXT_TYPE:
|
1195 | case REACT_FORWARD_REF_TYPE:
|
1196 | case REACT_PROVIDER_TYPE:
|
1197 | return $$typeofType;
|
1198 | default:
|
1199 | return $$typeof;
|
1200 | }
|
1201 | }
|
1202 | case REACT_LAZY_TYPE:
|
1203 | case REACT_MEMO_TYPE:
|
1204 | case REACT_PORTAL_TYPE:
|
1205 | return $$typeof;
|
1206 | }
|
1207 | }
|
1208 |
|
1209 | return undefined;
|
1210 | }
|
1211 |
|
1212 |
|
1213 | var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
1214 | var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
1215 | var ContextConsumer = REACT_CONTEXT_TYPE;
|
1216 | var ContextProvider = REACT_PROVIDER_TYPE;
|
1217 | var Element = REACT_ELEMENT_TYPE;
|
1218 | var ForwardRef = REACT_FORWARD_REF_TYPE;
|
1219 | var Fragment = REACT_FRAGMENT_TYPE;
|
1220 | var Lazy = REACT_LAZY_TYPE;
|
1221 | var Memo = REACT_MEMO_TYPE;
|
1222 | var Portal = REACT_PORTAL_TYPE;
|
1223 | var Profiler = REACT_PROFILER_TYPE;
|
1224 | var StrictMode = REACT_STRICT_MODE_TYPE;
|
1225 | var Suspense = REACT_SUSPENSE_TYPE;
|
1226 |
|
1227 | var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
1228 |
|
1229 |
|
1230 | function isAsyncMode(object) {
|
1231 | {
|
1232 | if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
1233 | hasWarnedAboutDeprecatedIsAsyncMode = true;
|
1234 | lowPriorityWarning$1(false, '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.');
|
1235 | }
|
1236 | }
|
1237 | return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
1238 | }
|
1239 | function isConcurrentMode(object) {
|
1240 | return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
1241 | }
|
1242 | function isContextConsumer(object) {
|
1243 | return typeOf(object) === REACT_CONTEXT_TYPE;
|
1244 | }
|
1245 | function isContextProvider(object) {
|
1246 | return typeOf(object) === REACT_PROVIDER_TYPE;
|
1247 | }
|
1248 | function isElement(object) {
|
1249 | return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
1250 | }
|
1251 | function isForwardRef(object) {
|
1252 | return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
1253 | }
|
1254 | function isFragment(object) {
|
1255 | return typeOf(object) === REACT_FRAGMENT_TYPE;
|
1256 | }
|
1257 | function isLazy(object) {
|
1258 | return typeOf(object) === REACT_LAZY_TYPE;
|
1259 | }
|
1260 | function isMemo(object) {
|
1261 | return typeOf(object) === REACT_MEMO_TYPE;
|
1262 | }
|
1263 | function isPortal(object) {
|
1264 | return typeOf(object) === REACT_PORTAL_TYPE;
|
1265 | }
|
1266 | function isProfiler(object) {
|
1267 | return typeOf(object) === REACT_PROFILER_TYPE;
|
1268 | }
|
1269 | function isStrictMode(object) {
|
1270 | return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
1271 | }
|
1272 | function isSuspense(object) {
|
1273 | return typeOf(object) === REACT_SUSPENSE_TYPE;
|
1274 | }
|
1275 |
|
1276 | exports.typeOf = typeOf;
|
1277 | exports.AsyncMode = AsyncMode;
|
1278 | exports.ConcurrentMode = ConcurrentMode;
|
1279 | exports.ContextConsumer = ContextConsumer;
|
1280 | exports.ContextProvider = ContextProvider;
|
1281 | exports.Element = Element;
|
1282 | exports.ForwardRef = ForwardRef;
|
1283 | exports.Fragment = Fragment;
|
1284 | exports.Lazy = Lazy;
|
1285 | exports.Memo = Memo;
|
1286 | exports.Portal = Portal;
|
1287 | exports.Profiler = Profiler;
|
1288 | exports.StrictMode = StrictMode;
|
1289 | exports.Suspense = Suspense;
|
1290 | exports.isValidElementType = isValidElementType;
|
1291 | exports.isAsyncMode = isAsyncMode;
|
1292 | exports.isConcurrentMode = isConcurrentMode;
|
1293 | exports.isContextConsumer = isContextConsumer;
|
1294 | exports.isContextProvider = isContextProvider;
|
1295 | exports.isElement = isElement;
|
1296 | exports.isForwardRef = isForwardRef;
|
1297 | exports.isFragment = isFragment;
|
1298 | exports.isLazy = isLazy;
|
1299 | exports.isMemo = isMemo;
|
1300 | exports.isPortal = isPortal;
|
1301 | exports.isProfiler = isProfiler;
|
1302 | exports.isStrictMode = isStrictMode;
|
1303 | exports.isSuspense = isSuspense;
|
1304 | })();
|
1305 | }
|
1306 |
|
1307 | }).call(this,require('_process'))
|
1308 | },{"_process":7}],9:[function(require,module,exports){
|
1309 |
|
1310 |
|
1311 |
|
1312 |
|
1313 |
|
1314 |
|
1315 |
|
1316 |
|
1317 |
|
1318 | 'use strict';Object.defineProperty(exports,"__esModule",{value:!0});
|
1319 | 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?Symbol.for("react.memo"):
|
1320 | 60115,r=b?Symbol.for("react.lazy"):60116;function t(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 h:return a;default:return u}}case r:case q:case d:return u}}}function v(a){return t(a)===m}exports.typeOf=t;exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;
|
1321 | exports.Fragment=e;exports.Lazy=r;exports.Memo=q;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||"object"===typeof a&&null!==a&&(a.$$typeof===r||a.$$typeof===q||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n)};exports.isAsyncMode=function(a){return v(a)||t(a)===l};exports.isConcurrentMode=v;exports.isContextConsumer=function(a){return t(a)===k};
|
1322 | exports.isContextProvider=function(a){return t(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return t(a)===n};exports.isFragment=function(a){return t(a)===e};exports.isLazy=function(a){return t(a)===r};exports.isMemo=function(a){return t(a)===q};exports.isPortal=function(a){return t(a)===d};exports.isProfiler=function(a){return t(a)===g};exports.isStrictMode=function(a){return t(a)===f};
|
1323 | exports.isSuspense=function(a){return t(a)===p};
|
1324 |
|
1325 | },{}],10:[function(require,module,exports){
|
1326 | (function (process){
|
1327 | 'use strict';
|
1328 |
|
1329 | if (process.env.NODE_ENV === 'production') {
|
1330 | module.exports = require('./cjs/react-is.production.min.js');
|
1331 | } else {
|
1332 | module.exports = require('./cjs/react-is.development.js');
|
1333 | }
|
1334 |
|
1335 | }).call(this,require('_process'))
|
1336 | },{"./cjs/react-is.development.js":8,"./cjs/react-is.production.min.js":9,"_process":7}]},{},[4])(4)
|
1337 | }); |
\ | No newline at end of file |