@fluxo-dev/shell-hub 0.0.33 → 0.0.35

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