@bolttech/atoms-button 0.5.0 → 0.7.0
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.
- package/index.cjs +1235 -1136
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -2,263 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
5
|
var atomsIcon = require('@bolttech/atoms-icon');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
(function (SizeVariant) {
|
|
10
|
-
SizeVariant["transaction"] = "generic";
|
|
11
|
-
SizeVariant["brand"] = "generic";
|
|
12
|
-
SizeVariant["alternative"] = "generic";
|
|
13
|
-
SizeVariant["outline"] = "generic";
|
|
14
|
-
SizeVariant["ghost"] = "ghost";
|
|
15
|
-
})(SizeVariant || (SizeVariant = {}));
|
|
16
|
-
|
|
17
|
-
var reactIs$2 = {exports: {}};
|
|
18
|
-
|
|
19
|
-
var reactIs_production_min$1 = {};
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @license React
|
|
23
|
-
* react-is.production.min.js
|
|
24
|
-
*
|
|
25
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the MIT license found in the
|
|
28
|
-
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/
|
|
30
|
-
var b$2=Symbol.for("react.element"),c$1=Symbol.for("react.portal"),d$1=Symbol.for("react.fragment"),e$1=Symbol.for("react.strict_mode"),f$1=Symbol.for("react.profiler"),g$2=Symbol.for("react.provider"),h$1=Symbol.for("react.context"),k$2=Symbol.for("react.server_context"),l$2=Symbol.for("react.forward_ref"),m$1=Symbol.for("react.suspense"),n$2=Symbol.for("react.suspense_list"),p$2=Symbol.for("react.memo"),q$3=Symbol.for("react.lazy"),t$2=Symbol.for("react.offscreen"),u$1;u$1=Symbol.for("react.module.reference");
|
|
31
|
-
function v$3(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b$2:switch(a=a.type,a){case d$1:case f$1:case e$1:case m$1:case n$2:return a;default:switch(a=a&&a.$$typeof,a){case k$2:case h$1:case l$2:case q$3:case p$2:case g$2:return a;default:return r}}case c$1:return r}}}reactIs_production_min$1.ContextConsumer=h$1;reactIs_production_min$1.ContextProvider=g$2;reactIs_production_min$1.Element=b$2;reactIs_production_min$1.ForwardRef=l$2;reactIs_production_min$1.Fragment=d$1;reactIs_production_min$1.Lazy=q$3;reactIs_production_min$1.Memo=p$2;reactIs_production_min$1.Portal=c$1;reactIs_production_min$1.Profiler=f$1;reactIs_production_min$1.StrictMode=e$1;reactIs_production_min$1.Suspense=m$1;
|
|
32
|
-
reactIs_production_min$1.SuspenseList=n$2;reactIs_production_min$1.isAsyncMode=function(){return !1};reactIs_production_min$1.isConcurrentMode=function(){return !1};reactIs_production_min$1.isContextConsumer=function(a){return v$3(a)===h$1};reactIs_production_min$1.isContextProvider=function(a){return v$3(a)===g$2};reactIs_production_min$1.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b$2};reactIs_production_min$1.isForwardRef=function(a){return v$3(a)===l$2};reactIs_production_min$1.isFragment=function(a){return v$3(a)===d$1};reactIs_production_min$1.isLazy=function(a){return v$3(a)===q$3};reactIs_production_min$1.isMemo=function(a){return v$3(a)===p$2};
|
|
33
|
-
reactIs_production_min$1.isPortal=function(a){return v$3(a)===c$1};reactIs_production_min$1.isProfiler=function(a){return v$3(a)===f$1};reactIs_production_min$1.isStrictMode=function(a){return v$3(a)===e$1};reactIs_production_min$1.isSuspense=function(a){return v$3(a)===m$1};reactIs_production_min$1.isSuspenseList=function(a){return v$3(a)===n$2};
|
|
34
|
-
reactIs_production_min$1.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d$1||a===f$1||a===e$1||a===m$1||a===n$2||a===t$2||"object"===typeof a&&null!==a&&(a.$$typeof===q$3||a.$$typeof===p$2||a.$$typeof===g$2||a.$$typeof===h$1||a.$$typeof===l$2||a.$$typeof===u$1||void 0!==a.getModuleId)?!0:!1};reactIs_production_min$1.typeOf=v$3;
|
|
35
|
-
|
|
36
|
-
var reactIs_development$1 = {};
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @license React
|
|
40
|
-
* react-is.development.js
|
|
41
|
-
*
|
|
42
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the MIT license found in the
|
|
45
|
-
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
if (process.env.NODE_ENV !== "production") {
|
|
49
|
-
(function() {
|
|
50
|
-
|
|
51
|
-
// ATTENTION
|
|
52
|
-
// When adding new symbols to this file,
|
|
53
|
-
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
54
|
-
// The Symbol used to tag the ReactElement-like types.
|
|
55
|
-
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
|
|
56
|
-
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
|
|
57
|
-
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
|
58
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
|
59
|
-
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
|
60
|
-
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
|
61
|
-
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
|
62
|
-
var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
|
|
63
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
|
64
|
-
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
|
65
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
|
66
|
-
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
67
|
-
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
|
68
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
|
69
|
-
|
|
70
|
-
// -----------------------------------------------------------------------------
|
|
71
|
-
|
|
72
|
-
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
73
|
-
var enableCacheElement = false;
|
|
74
|
-
var enableTransitionTracing = false; // No known bugs, but needs performance testing
|
|
75
|
-
|
|
76
|
-
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
|
|
77
|
-
// stuff. Intended to enable React core members to more easily debug scheduling
|
|
78
|
-
// issues in DEV builds.
|
|
79
|
-
|
|
80
|
-
var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
|
|
81
|
-
|
|
82
|
-
var REACT_MODULE_REFERENCE;
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
83
9
|
|
|
84
|
-
|
|
85
|
-
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function isValidElementType(type) {
|
|
89
|
-
if (typeof type === 'string' || typeof type === 'function') {
|
|
90
|
-
return true;
|
|
91
|
-
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
|
|
95
|
-
return true;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (typeof type === 'object' && type !== null) {
|
|
99
|
-
if (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 || // This needs to include all possible module reference object
|
|
100
|
-
// types supported by any Flight configuration anywhere since
|
|
101
|
-
// we don't know which Flight build this will end up being used
|
|
102
|
-
// with.
|
|
103
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
104
|
-
return true;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
return false;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function typeOf(object) {
|
|
112
|
-
if (typeof object === 'object' && object !== null) {
|
|
113
|
-
var $$typeof = object.$$typeof;
|
|
114
|
-
|
|
115
|
-
switch ($$typeof) {
|
|
116
|
-
case REACT_ELEMENT_TYPE:
|
|
117
|
-
var type = object.type;
|
|
118
|
-
|
|
119
|
-
switch (type) {
|
|
120
|
-
case REACT_FRAGMENT_TYPE:
|
|
121
|
-
case REACT_PROFILER_TYPE:
|
|
122
|
-
case REACT_STRICT_MODE_TYPE:
|
|
123
|
-
case REACT_SUSPENSE_TYPE:
|
|
124
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
125
|
-
return type;
|
|
126
|
-
|
|
127
|
-
default:
|
|
128
|
-
var $$typeofType = type && type.$$typeof;
|
|
129
|
-
|
|
130
|
-
switch ($$typeofType) {
|
|
131
|
-
case REACT_SERVER_CONTEXT_TYPE:
|
|
132
|
-
case REACT_CONTEXT_TYPE:
|
|
133
|
-
case REACT_FORWARD_REF_TYPE:
|
|
134
|
-
case REACT_LAZY_TYPE:
|
|
135
|
-
case REACT_MEMO_TYPE:
|
|
136
|
-
case REACT_PROVIDER_TYPE:
|
|
137
|
-
return $$typeofType;
|
|
138
|
-
|
|
139
|
-
default:
|
|
140
|
-
return $$typeof;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
case REACT_PORTAL_TYPE:
|
|
146
|
-
return $$typeof;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
return undefined;
|
|
151
|
-
}
|
|
152
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
153
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
154
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
155
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
156
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
157
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
158
|
-
var Memo = REACT_MEMO_TYPE;
|
|
159
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
160
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
161
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
162
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
163
|
-
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
164
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
165
|
-
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
|
166
|
-
|
|
167
|
-
function isAsyncMode(object) {
|
|
168
|
-
{
|
|
169
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
170
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
171
|
-
|
|
172
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
return false;
|
|
177
|
-
}
|
|
178
|
-
function isConcurrentMode(object) {
|
|
179
|
-
{
|
|
180
|
-
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
181
|
-
hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
182
|
-
|
|
183
|
-
console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
184
|
-
}
|
|
185
|
-
}
|
|
10
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
186
11
|
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
function isContextConsumer(object) {
|
|
190
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
191
|
-
}
|
|
192
|
-
function isContextProvider(object) {
|
|
193
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
194
|
-
}
|
|
195
|
-
function isElement(object) {
|
|
196
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
197
|
-
}
|
|
198
|
-
function isForwardRef(object) {
|
|
199
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
200
|
-
}
|
|
201
|
-
function isFragment(object) {
|
|
202
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
203
|
-
}
|
|
204
|
-
function isLazy(object) {
|
|
205
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
206
|
-
}
|
|
207
|
-
function isMemo(object) {
|
|
208
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
209
|
-
}
|
|
210
|
-
function isPortal(object) {
|
|
211
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
212
|
-
}
|
|
213
|
-
function isProfiler(object) {
|
|
214
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
215
|
-
}
|
|
216
|
-
function isStrictMode(object) {
|
|
217
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
218
|
-
}
|
|
219
|
-
function isSuspense(object) {
|
|
220
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
221
|
-
}
|
|
222
|
-
function isSuspenseList(object) {
|
|
223
|
-
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
reactIs_development$1.ContextConsumer = ContextConsumer;
|
|
227
|
-
reactIs_development$1.ContextProvider = ContextProvider;
|
|
228
|
-
reactIs_development$1.Element = Element;
|
|
229
|
-
reactIs_development$1.ForwardRef = ForwardRef;
|
|
230
|
-
reactIs_development$1.Fragment = Fragment;
|
|
231
|
-
reactIs_development$1.Lazy = Lazy;
|
|
232
|
-
reactIs_development$1.Memo = Memo;
|
|
233
|
-
reactIs_development$1.Portal = Portal;
|
|
234
|
-
reactIs_development$1.Profiler = Profiler;
|
|
235
|
-
reactIs_development$1.StrictMode = StrictMode;
|
|
236
|
-
reactIs_development$1.Suspense = Suspense;
|
|
237
|
-
reactIs_development$1.SuspenseList = SuspenseList;
|
|
238
|
-
reactIs_development$1.isAsyncMode = isAsyncMode;
|
|
239
|
-
reactIs_development$1.isConcurrentMode = isConcurrentMode;
|
|
240
|
-
reactIs_development$1.isContextConsumer = isContextConsumer;
|
|
241
|
-
reactIs_development$1.isContextProvider = isContextProvider;
|
|
242
|
-
reactIs_development$1.isElement = isElement;
|
|
243
|
-
reactIs_development$1.isForwardRef = isForwardRef;
|
|
244
|
-
reactIs_development$1.isFragment = isFragment;
|
|
245
|
-
reactIs_development$1.isLazy = isLazy;
|
|
246
|
-
reactIs_development$1.isMemo = isMemo;
|
|
247
|
-
reactIs_development$1.isPortal = isPortal;
|
|
248
|
-
reactIs_development$1.isProfiler = isProfiler;
|
|
249
|
-
reactIs_development$1.isStrictMode = isStrictMode;
|
|
250
|
-
reactIs_development$1.isSuspense = isSuspense;
|
|
251
|
-
reactIs_development$1.isSuspenseList = isSuspenseList;
|
|
252
|
-
reactIs_development$1.isValidElementType = isValidElementType;
|
|
253
|
-
reactIs_development$1.typeOf = typeOf;
|
|
254
|
-
})();
|
|
255
|
-
}
|
|
12
|
+
var jsxRuntime = {exports: {}};
|
|
256
13
|
|
|
257
|
-
|
|
258
|
-
reactIs$2.exports = reactIs_production_min$1;
|
|
259
|
-
} else {
|
|
260
|
-
reactIs$2.exports = reactIs_development$1;
|
|
261
|
-
}
|
|
14
|
+
var reactJsxRuntime_production_min = {};
|
|
262
15
|
|
|
263
16
|
var react = {exports: {}};
|
|
264
17
|
|
|
@@ -273,23 +26,23 @@ var react_production_min = {};
|
|
|
273
26
|
* This source code is licensed under the MIT license found in the
|
|
274
27
|
* LICENSE file in the root directory of this source tree.
|
|
275
28
|
*/
|
|
276
|
-
var l$1=Symbol.for("react.element"),n$1=Symbol.for("react.portal"),p$1=Symbol.for("react.fragment"),q$
|
|
277
|
-
var B
|
|
278
|
-
E
|
|
279
|
-
H
|
|
280
|
-
function M
|
|
281
|
-
function N
|
|
282
|
-
function R
|
|
283
|
-
a[g];var f=d+Q
|
|
284
|
-
function S
|
|
285
|
-
var U
|
|
286
|
-
react_production_min.Profiler=r
|
|
287
|
-
react_production_min.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C
|
|
288
|
-
for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g;}return {$$typeof:l$1,type:a.type,key:c,ref:k,props:d,_owner:h}};react_production_min.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t
|
|
289
|
-
react_production_min.forwardRef=function(a){return {$$typeof:v
|
|
290
|
-
react_production_min.useCallback=function(a,b){return U
|
|
291
|
-
react_production_min.useInsertionEffect=function(a,b){return U
|
|
292
|
-
react_production_min.useTransition=function(){return U
|
|
29
|
+
var l$1=Symbol.for("react.element"),n$1=Symbol.for("react.portal"),p$1=Symbol.for("react.fragment"),q$1=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(a){if(null===a||"object"!==typeof a)return null;a=z&&a[z]||a["@@iterator"];return "function"===typeof a?a:null}
|
|
30
|
+
var B={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B;}E.prototype.isReactComponent={};
|
|
31
|
+
E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState");};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B;}var H=G.prototype=new F;
|
|
32
|
+
H.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};
|
|
33
|
+
function M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f;}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return {$$typeof:l$1,type:a,key:k,ref:h,props:c,_owner:K.current}}
|
|
34
|
+
function N(a,b){return {$$typeof:l$1,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return "object"===typeof a&&null!==a&&a.$$typeof===l$1}function escape(a){var b={"=":"=0",":":"=2"};return "$"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\/+/g;function Q(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
|
|
35
|
+
function R(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case l$1:case n$1:h=!0;}}if(h)return h=a,c=c(h),a=""===d?"."+Q(h,0):d,I(c)?(e="",null!=a&&(e=a.replace(P,"$&/")+"/"),R(c,b,e,"",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(P,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(I(a))for(var g=0;g<a.length;g++){k=
|
|
36
|
+
a[g];var f=d+Q(k,g);h+=R(k,b,e,f,c);}else if(f=A(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if("object"===k)throw b=String(a),Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}
|
|
37
|
+
function S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,"","",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b;},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b;});-1===a._status&&(a._status=0,a._result=b);}if(1===a._status)return a._result.default;throw a._result;}
|
|
38
|
+
var U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};react_production_min.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments);},e);},count:function(a){var b=0;S(a,function(){b++;});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};react_production_min.Component=E;react_production_min.Fragment=p$1;
|
|
39
|
+
react_production_min.Profiler=r;react_production_min.PureComponent=G;react_production_min.StrictMode=q$1;react_production_min.Suspense=w;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;
|
|
40
|
+
react_production_min.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f]);}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);
|
|
41
|
+
for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g;}return {$$typeof:l$1,type:a.type,key:c,ref:k,props:d,_owner:h}};react_production_min.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};react_production_min.createElement=M;react_production_min.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};react_production_min.createRef=function(){return {current:null}};
|
|
42
|
+
react_production_min.forwardRef=function(a){return {$$typeof:v,render:a}};react_production_min.isValidElement=O;react_production_min.lazy=function(a){return {$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};react_production_min.memo=function(a,b){return {$$typeof:x,type:a,compare:void 0===b?null:b}};react_production_min.startTransition=function(a){var b=V.transition;V.transition={};try{a();}finally{V.transition=b;}};react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};
|
|
43
|
+
react_production_min.useCallback=function(a,b){return U.current.useCallback(a,b)};react_production_min.useContext=function(a){return U.current.useContext(a)};react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(a){return U.current.useDeferredValue(a)};react_production_min.useEffect=function(a,b){return U.current.useEffect(a,b)};react_production_min.useId=function(){return U.current.useId()};react_production_min.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};
|
|
44
|
+
react_production_min.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};react_production_min.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};react_production_min.useMemo=function(a,b){return U.current.useMemo(a,b)};react_production_min.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};react_production_min.useRef=function(a){return U.current.useRef(a)};react_production_min.useState=function(a){return U.current.useState(a)};react_production_min.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};
|
|
45
|
+
react_production_min.useTransition=function(){return U.current.useTransition()};react_production_min.version="18.2.0";
|
|
293
46
|
|
|
294
47
|
var react_development = {exports: {}};
|
|
295
48
|
|
|
@@ -3038,1002 +2791,1348 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
3038
2791
|
react.exports = react_development.exports;
|
|
3039
2792
|
}
|
|
3040
2793
|
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
2794
|
+
/**
|
|
2795
|
+
* @license React
|
|
2796
|
+
* react-jsx-runtime.production.min.js
|
|
2797
|
+
*
|
|
2798
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2799
|
+
*
|
|
2800
|
+
* This source code is licensed under the MIT license found in the
|
|
2801
|
+
* LICENSE file in the root directory of this source tree.
|
|
2802
|
+
*/
|
|
2803
|
+
var f=react.exports,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
|
|
2804
|
+
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
|
|
3048
2805
|
|
|
3049
|
-
|
|
3050
|
-
if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
|
|
3051
|
-
switch (g) {
|
|
3052
|
-
case 32:
|
|
3053
|
-
case 9:
|
|
3054
|
-
case 59:
|
|
3055
|
-
case 13:
|
|
3056
|
-
case 10:
|
|
3057
|
-
break;
|
|
2806
|
+
var reactJsxRuntime_development = {};
|
|
3058
2807
|
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
2808
|
+
/**
|
|
2809
|
+
* @license React
|
|
2810
|
+
* react-jsx-runtime.development.js
|
|
2811
|
+
*
|
|
2812
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2813
|
+
*
|
|
2814
|
+
* This source code is licensed under the MIT license found in the
|
|
2815
|
+
* LICENSE file in the root directory of this source tree.
|
|
2816
|
+
*/
|
|
3062
2817
|
|
|
3063
|
-
|
|
3064
|
-
|
|
2818
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2819
|
+
(function() {
|
|
3065
2820
|
|
|
3066
|
-
|
|
3067
|
-
case 123:
|
|
3068
|
-
f = f.trim();
|
|
3069
|
-
q = f.charCodeAt(0);
|
|
3070
|
-
k = 1;
|
|
3071
|
-
|
|
3072
|
-
for (t = ++l; l < B;) {
|
|
3073
|
-
switch (g = e.charCodeAt(l)) {
|
|
3074
|
-
case 123:
|
|
3075
|
-
k++;
|
|
3076
|
-
break;
|
|
3077
|
-
|
|
3078
|
-
case 125:
|
|
3079
|
-
k--;
|
|
3080
|
-
break;
|
|
3081
|
-
|
|
3082
|
-
case 47:
|
|
3083
|
-
switch (g = e.charCodeAt(l + 1)) {
|
|
3084
|
-
case 42:
|
|
3085
|
-
case 47:
|
|
3086
|
-
a: {
|
|
3087
|
-
for (u = l + 1; u < J; ++u) {
|
|
3088
|
-
switch (e.charCodeAt(u)) {
|
|
3089
|
-
case 47:
|
|
3090
|
-
if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
|
|
3091
|
-
l = u + 1;
|
|
3092
|
-
break a;
|
|
3093
|
-
}
|
|
3094
|
-
|
|
3095
|
-
break;
|
|
3096
|
-
|
|
3097
|
-
case 10:
|
|
3098
|
-
if (47 === g) {
|
|
3099
|
-
l = u + 1;
|
|
3100
|
-
break a;
|
|
3101
|
-
}
|
|
3102
|
-
|
|
3103
|
-
}
|
|
3104
|
-
}
|
|
3105
|
-
|
|
3106
|
-
l = u;
|
|
3107
|
-
}
|
|
2821
|
+
var React = react.exports;
|
|
3108
2822
|
|
|
3109
|
-
|
|
2823
|
+
// ATTENTION
|
|
2824
|
+
// When adding new symbols to this file,
|
|
2825
|
+
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
2826
|
+
// The Symbol used to tag the ReactElement-like types.
|
|
2827
|
+
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
|
|
2828
|
+
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
|
|
2829
|
+
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
|
2830
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
|
2831
|
+
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
|
2832
|
+
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
|
2833
|
+
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
|
2834
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
|
2835
|
+
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
|
2836
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
|
2837
|
+
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
2838
|
+
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
|
2839
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
|
2840
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
2841
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
2842
|
+
function getIteratorFn(maybeIterable) {
|
|
2843
|
+
if (maybeIterable === null || typeof maybeIterable !== 'object') {
|
|
2844
|
+
return null;
|
|
2845
|
+
}
|
|
3110
2846
|
|
|
3111
|
-
|
|
2847
|
+
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
3112
2848
|
|
|
3113
|
-
|
|
3114
|
-
|
|
2849
|
+
if (typeof maybeIterator === 'function') {
|
|
2850
|
+
return maybeIterator;
|
|
2851
|
+
}
|
|
3115
2852
|
|
|
3116
|
-
|
|
3117
|
-
|
|
2853
|
+
return null;
|
|
2854
|
+
}
|
|
3118
2855
|
|
|
3119
|
-
|
|
3120
|
-
case 39:
|
|
3121
|
-
for (; l++ < J && e.charCodeAt(l) !== g;) {
|
|
3122
|
-
}
|
|
2856
|
+
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
3123
2857
|
|
|
3124
|
-
|
|
2858
|
+
function error(format) {
|
|
2859
|
+
{
|
|
2860
|
+
{
|
|
2861
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
2862
|
+
args[_key2 - 1] = arguments[_key2];
|
|
2863
|
+
}
|
|
3125
2864
|
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
2865
|
+
printWarning('error', format, args);
|
|
2866
|
+
}
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
3129
2869
|
|
|
3130
|
-
|
|
3131
|
-
|
|
2870
|
+
function printWarning(level, format, args) {
|
|
2871
|
+
// When changing this logic, you might want to also
|
|
2872
|
+
// update consoleWithStackDev.www.js as well.
|
|
2873
|
+
{
|
|
2874
|
+
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2875
|
+
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
3132
2876
|
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
2877
|
+
if (stack !== '') {
|
|
2878
|
+
format += '%s';
|
|
2879
|
+
args = args.concat([stack]);
|
|
2880
|
+
} // eslint-disable-next-line react-internal/safe-string-coercion
|
|
3137
2881
|
|
|
3138
|
-
switch (g) {
|
|
3139
|
-
case 100:
|
|
3140
|
-
case 109:
|
|
3141
|
-
case 115:
|
|
3142
|
-
case 45:
|
|
3143
|
-
r = c;
|
|
3144
|
-
break;
|
|
3145
2882
|
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
2883
|
+
var argsWithFormat = args.map(function (item) {
|
|
2884
|
+
return String(item);
|
|
2885
|
+
}); // Careful: RN currently depends on this prefix
|
|
3149
2886
|
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
if (0 < t) switch (g) {
|
|
3154
|
-
case 115:
|
|
3155
|
-
f = f.replace(da, ea);
|
|
3156
|
-
|
|
3157
|
-
case 100:
|
|
3158
|
-
case 109:
|
|
3159
|
-
case 45:
|
|
3160
|
-
k = f + '{' + k + '}';
|
|
3161
|
-
break;
|
|
3162
|
-
|
|
3163
|
-
case 107:
|
|
3164
|
-
f = f.replace(fa, '$1 $2');
|
|
3165
|
-
k = f + '{' + k + '}';
|
|
3166
|
-
k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
|
|
3167
|
-
break;
|
|
3168
|
-
|
|
3169
|
-
default:
|
|
3170
|
-
k = f + k, 112 === h && (k = (p += k, ''));
|
|
3171
|
-
} else k = '';
|
|
3172
|
-
break;
|
|
3173
|
-
|
|
3174
|
-
default:
|
|
3175
|
-
k = M(c, X(c, f, I), k, h, a + 1);
|
|
3176
|
-
}
|
|
2887
|
+
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
|
|
2888
|
+
// breaks IE9: https://github.com/facebook/react/issues/13610
|
|
2889
|
+
// eslint-disable-next-line react-internal/no-production-logging
|
|
3177
2890
|
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
g = e.charCodeAt(++l);
|
|
3182
|
-
break;
|
|
3183
|
-
|
|
3184
|
-
case 125:
|
|
3185
|
-
case 59:
|
|
3186
|
-
f = (0 < r ? f.replace(N, '') : f).trim();
|
|
3187
|
-
if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
|
|
3188
|
-
case 0:
|
|
3189
|
-
break;
|
|
3190
|
-
|
|
3191
|
-
case 64:
|
|
3192
|
-
if (105 === g || 99 === g) {
|
|
3193
|
-
G += f + e.charAt(l);
|
|
3194
|
-
break;
|
|
3195
|
-
}
|
|
2891
|
+
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
3196
2894
|
|
|
3197
|
-
|
|
3198
|
-
58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
|
|
3199
|
-
}
|
|
3200
|
-
I = r = u = q = 0;
|
|
3201
|
-
f = '';
|
|
3202
|
-
g = e.charCodeAt(++l);
|
|
3203
|
-
}
|
|
3204
|
-
}
|
|
2895
|
+
// -----------------------------------------------------------------------------
|
|
3205
2896
|
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
|
|
3210
|
-
0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
|
|
3211
|
-
z = 1;
|
|
3212
|
-
D++;
|
|
3213
|
-
break;
|
|
2897
|
+
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
2898
|
+
var enableCacheElement = false;
|
|
2899
|
+
var enableTransitionTracing = false; // No known bugs, but needs performance testing
|
|
3214
2900
|
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
z++;
|
|
3219
|
-
break;
|
|
3220
|
-
}
|
|
2901
|
+
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
|
|
2902
|
+
// stuff. Intended to enable React core members to more easily debug scheduling
|
|
2903
|
+
// issues in DEV builds.
|
|
3221
2904
|
|
|
3222
|
-
|
|
3223
|
-
z++;
|
|
3224
|
-
y = e.charAt(l);
|
|
3225
|
-
|
|
3226
|
-
switch (g) {
|
|
3227
|
-
case 9:
|
|
3228
|
-
case 32:
|
|
3229
|
-
if (0 === n + m + b) switch (x) {
|
|
3230
|
-
case 44:
|
|
3231
|
-
case 58:
|
|
3232
|
-
case 9:
|
|
3233
|
-
case 32:
|
|
3234
|
-
y = '';
|
|
3235
|
-
break;
|
|
3236
|
-
|
|
3237
|
-
default:
|
|
3238
|
-
32 !== g && (y = ' ');
|
|
3239
|
-
}
|
|
3240
|
-
break;
|
|
2905
|
+
var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
|
|
3241
2906
|
|
|
3242
|
-
|
|
3243
|
-
y = '\\0';
|
|
3244
|
-
break;
|
|
2907
|
+
var REACT_MODULE_REFERENCE;
|
|
3245
2908
|
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
2909
|
+
{
|
|
2910
|
+
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
|
|
2911
|
+
}
|
|
3249
2912
|
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
2913
|
+
function isValidElementType(type) {
|
|
2914
|
+
if (typeof type === 'string' || typeof type === 'function') {
|
|
2915
|
+
return true;
|
|
2916
|
+
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
3253
2917
|
|
|
3254
|
-
case 38:
|
|
3255
|
-
0 === n + b + m && (r = I = 1, y = '\f' + y);
|
|
3256
|
-
break;
|
|
3257
2918
|
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
|
|
2919
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
|
|
2920
|
+
return true;
|
|
2921
|
+
}
|
|
3262
2922
|
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
2923
|
+
if (typeof type === 'object' && type !== null) {
|
|
2924
|
+
if (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 || // This needs to include all possible module reference object
|
|
2925
|
+
// types supported by any Flight configuration anywhere since
|
|
2926
|
+
// we don't know which Flight build this will end up being used
|
|
2927
|
+
// with.
|
|
2928
|
+
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
2929
|
+
return true;
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
3267
2932
|
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
break;
|
|
2933
|
+
return false;
|
|
2934
|
+
}
|
|
3271
2935
|
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
break;
|
|
2936
|
+
function getWrappedName(outerType, innerType, wrapperName) {
|
|
2937
|
+
var displayName = outerType.displayName;
|
|
3275
2938
|
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
break;
|
|
2939
|
+
if (displayName) {
|
|
2940
|
+
return displayName;
|
|
2941
|
+
}
|
|
3280
2942
|
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
2943
|
+
var functionName = innerType.displayName || innerType.name || '';
|
|
2944
|
+
return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
2945
|
+
} // Keep in sync with react-reconciler/getComponentNameFromFiber
|
|
3284
2946
|
|
|
3285
|
-
case 93:
|
|
3286
|
-
0 === n + b + v && m--;
|
|
3287
|
-
break;
|
|
3288
2947
|
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
2948
|
+
function getContextName(type) {
|
|
2949
|
+
return type.displayName || 'Context';
|
|
2950
|
+
} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
|
3292
2951
|
|
|
3293
|
-
case 40:
|
|
3294
|
-
if (0 === n + b + m) {
|
|
3295
|
-
if (0 === q) switch (2 * x + 3 * K) {
|
|
3296
|
-
case 533:
|
|
3297
|
-
break;
|
|
3298
2952
|
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
2953
|
+
function getComponentNameFromType(type) {
|
|
2954
|
+
if (type == null) {
|
|
2955
|
+
// Host root, text node or just invalid type.
|
|
2956
|
+
return null;
|
|
2957
|
+
}
|
|
2958
|
+
|
|
2959
|
+
{
|
|
2960
|
+
if (typeof type.tag === 'number') {
|
|
2961
|
+
error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
|
|
2962
|
+
}
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
if (typeof type === 'function') {
|
|
2966
|
+
return type.displayName || type.name || null;
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
if (typeof type === 'string') {
|
|
2970
|
+
return type;
|
|
2971
|
+
}
|
|
3304
2972
|
|
|
3305
|
-
|
|
2973
|
+
switch (type) {
|
|
2974
|
+
case REACT_FRAGMENT_TYPE:
|
|
2975
|
+
return 'Fragment';
|
|
3306
2976
|
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
break;
|
|
2977
|
+
case REACT_PORTAL_TYPE:
|
|
2978
|
+
return 'Portal';
|
|
3310
2979
|
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
if (!(0 < n + m + v)) switch (b) {
|
|
3314
|
-
case 0:
|
|
3315
|
-
switch (2 * g + 3 * e.charCodeAt(l + 1)) {
|
|
3316
|
-
case 235:
|
|
3317
|
-
b = 47;
|
|
3318
|
-
break;
|
|
2980
|
+
case REACT_PROFILER_TYPE:
|
|
2981
|
+
return 'Profiler';
|
|
3319
2982
|
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
}
|
|
2983
|
+
case REACT_STRICT_MODE_TYPE:
|
|
2984
|
+
return 'StrictMode';
|
|
3323
2985
|
|
|
3324
|
-
|
|
2986
|
+
case REACT_SUSPENSE_TYPE:
|
|
2987
|
+
return 'Suspense';
|
|
3325
2988
|
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
2989
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
2990
|
+
return 'SuspenseList';
|
|
2991
|
+
|
|
2992
|
+
}
|
|
2993
|
+
|
|
2994
|
+
if (typeof type === 'object') {
|
|
2995
|
+
switch (type.$$typeof) {
|
|
2996
|
+
case REACT_CONTEXT_TYPE:
|
|
2997
|
+
var context = type;
|
|
2998
|
+
return getContextName(context) + '.Consumer';
|
|
2999
|
+
|
|
3000
|
+
case REACT_PROVIDER_TYPE:
|
|
3001
|
+
var provider = type;
|
|
3002
|
+
return getContextName(provider._context) + '.Provider';
|
|
3003
|
+
|
|
3004
|
+
case REACT_FORWARD_REF_TYPE:
|
|
3005
|
+
return getWrappedName(type, type.render, 'ForwardRef');
|
|
3006
|
+
|
|
3007
|
+
case REACT_MEMO_TYPE:
|
|
3008
|
+
var outerName = type.displayName || null;
|
|
3009
|
+
|
|
3010
|
+
if (outerName !== null) {
|
|
3011
|
+
return outerName;
|
|
3012
|
+
}
|
|
3013
|
+
|
|
3014
|
+
return getComponentNameFromType(type.type) || 'Memo';
|
|
3015
|
+
|
|
3016
|
+
case REACT_LAZY_TYPE:
|
|
3017
|
+
{
|
|
3018
|
+
var lazyComponent = type;
|
|
3019
|
+
var payload = lazyComponent._payload;
|
|
3020
|
+
var init = lazyComponent._init;
|
|
3021
|
+
|
|
3022
|
+
try {
|
|
3023
|
+
return getComponentNameFromType(init(payload));
|
|
3024
|
+
} catch (x) {
|
|
3025
|
+
return null;
|
|
3329
3026
|
}
|
|
3027
|
+
}
|
|
3028
|
+
|
|
3029
|
+
// eslint-disable-next-line no-fallthrough
|
|
3030
|
+
}
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
return null;
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
var assign = Object.assign;
|
|
3037
|
+
|
|
3038
|
+
// Helpers to patch console.logs to avoid logging during side-effect free
|
|
3039
|
+
// replaying on render function. This currently only patches the object
|
|
3040
|
+
// lazily which won't cover if the log function was extracted eagerly.
|
|
3041
|
+
// We could also eagerly patch the method.
|
|
3042
|
+
var disabledDepth = 0;
|
|
3043
|
+
var prevLog;
|
|
3044
|
+
var prevInfo;
|
|
3045
|
+
var prevWarn;
|
|
3046
|
+
var prevError;
|
|
3047
|
+
var prevGroup;
|
|
3048
|
+
var prevGroupCollapsed;
|
|
3049
|
+
var prevGroupEnd;
|
|
3050
|
+
|
|
3051
|
+
function disabledLog() {}
|
|
3052
|
+
|
|
3053
|
+
disabledLog.__reactDisabledLog = true;
|
|
3054
|
+
function disableLogs() {
|
|
3055
|
+
{
|
|
3056
|
+
if (disabledDepth === 0) {
|
|
3057
|
+
/* eslint-disable react-internal/no-production-logging */
|
|
3058
|
+
prevLog = console.log;
|
|
3059
|
+
prevInfo = console.info;
|
|
3060
|
+
prevWarn = console.warn;
|
|
3061
|
+
prevError = console.error;
|
|
3062
|
+
prevGroup = console.group;
|
|
3063
|
+
prevGroupCollapsed = console.groupCollapsed;
|
|
3064
|
+
prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
|
|
3065
|
+
|
|
3066
|
+
var props = {
|
|
3067
|
+
configurable: true,
|
|
3068
|
+
enumerable: true,
|
|
3069
|
+
value: disabledLog,
|
|
3070
|
+
writable: true
|
|
3071
|
+
}; // $FlowFixMe Flow thinks console is immutable.
|
|
3072
|
+
|
|
3073
|
+
Object.defineProperties(console, {
|
|
3074
|
+
info: props,
|
|
3075
|
+
log: props,
|
|
3076
|
+
warn: props,
|
|
3077
|
+
error: props,
|
|
3078
|
+
group: props,
|
|
3079
|
+
groupCollapsed: props,
|
|
3080
|
+
groupEnd: props
|
|
3081
|
+
});
|
|
3082
|
+
/* eslint-enable react-internal/no-production-logging */
|
|
3083
|
+
}
|
|
3084
|
+
|
|
3085
|
+
disabledDepth++;
|
|
3086
|
+
}
|
|
3087
|
+
}
|
|
3088
|
+
function reenableLogs() {
|
|
3089
|
+
{
|
|
3090
|
+
disabledDepth--;
|
|
3091
|
+
|
|
3092
|
+
if (disabledDepth === 0) {
|
|
3093
|
+
/* eslint-disable react-internal/no-production-logging */
|
|
3094
|
+
var props = {
|
|
3095
|
+
configurable: true,
|
|
3096
|
+
enumerable: true,
|
|
3097
|
+
writable: true
|
|
3098
|
+
}; // $FlowFixMe Flow thinks console is immutable.
|
|
3099
|
+
|
|
3100
|
+
Object.defineProperties(console, {
|
|
3101
|
+
log: assign({}, props, {
|
|
3102
|
+
value: prevLog
|
|
3103
|
+
}),
|
|
3104
|
+
info: assign({}, props, {
|
|
3105
|
+
value: prevInfo
|
|
3106
|
+
}),
|
|
3107
|
+
warn: assign({}, props, {
|
|
3108
|
+
value: prevWarn
|
|
3109
|
+
}),
|
|
3110
|
+
error: assign({}, props, {
|
|
3111
|
+
value: prevError
|
|
3112
|
+
}),
|
|
3113
|
+
group: assign({}, props, {
|
|
3114
|
+
value: prevGroup
|
|
3115
|
+
}),
|
|
3116
|
+
groupCollapsed: assign({}, props, {
|
|
3117
|
+
value: prevGroupCollapsed
|
|
3118
|
+
}),
|
|
3119
|
+
groupEnd: assign({}, props, {
|
|
3120
|
+
value: prevGroupEnd
|
|
3121
|
+
})
|
|
3122
|
+
});
|
|
3123
|
+
/* eslint-enable react-internal/no-production-logging */
|
|
3124
|
+
}
|
|
3125
|
+
|
|
3126
|
+
if (disabledDepth < 0) {
|
|
3127
|
+
error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
3130
|
+
}
|
|
3330
3131
|
|
|
3331
|
-
|
|
3132
|
+
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
3133
|
+
var prefix;
|
|
3134
|
+
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
3135
|
+
{
|
|
3136
|
+
if (prefix === undefined) {
|
|
3137
|
+
// Extract the VM specific prefix used by each line.
|
|
3138
|
+
try {
|
|
3139
|
+
throw Error();
|
|
3140
|
+
} catch (x) {
|
|
3141
|
+
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
3142
|
+
prefix = match && match[1] || '';
|
|
3332
3143
|
}
|
|
3144
|
+
} // We use the prefix to ensure our stacks line up with native stack frames.
|
|
3145
|
+
|
|
3146
|
+
|
|
3147
|
+
return '\n' + prefix + name;
|
|
3148
|
+
}
|
|
3149
|
+
}
|
|
3150
|
+
var reentry = false;
|
|
3151
|
+
var componentFrameCache;
|
|
3152
|
+
|
|
3153
|
+
{
|
|
3154
|
+
var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
|
|
3155
|
+
componentFrameCache = new PossiblyWeakMap();
|
|
3156
|
+
}
|
|
3157
|
+
|
|
3158
|
+
function describeNativeComponentFrame(fn, construct) {
|
|
3159
|
+
// If something asked for a stack inside a fake render, it should get ignored.
|
|
3160
|
+
if ( !fn || reentry) {
|
|
3161
|
+
return '';
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
{
|
|
3165
|
+
var frame = componentFrameCache.get(fn);
|
|
3166
|
+
|
|
3167
|
+
if (frame !== undefined) {
|
|
3168
|
+
return frame;
|
|
3169
|
+
}
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
var control;
|
|
3173
|
+
reentry = true;
|
|
3174
|
+
var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
|
|
3175
|
+
|
|
3176
|
+
Error.prepareStackTrace = undefined;
|
|
3177
|
+
var previousDispatcher;
|
|
3178
|
+
|
|
3179
|
+
{
|
|
3180
|
+
previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
|
|
3181
|
+
// for warnings.
|
|
3182
|
+
|
|
3183
|
+
ReactCurrentDispatcher.current = null;
|
|
3184
|
+
disableLogs();
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3187
|
+
try {
|
|
3188
|
+
// This should throw.
|
|
3189
|
+
if (construct) {
|
|
3190
|
+
// Something should be setting the props in the constructor.
|
|
3191
|
+
var Fake = function () {
|
|
3192
|
+
throw Error();
|
|
3193
|
+
}; // $FlowFixMe
|
|
3194
|
+
|
|
3195
|
+
|
|
3196
|
+
Object.defineProperty(Fake.prototype, 'props', {
|
|
3197
|
+
set: function () {
|
|
3198
|
+
// We use a throwing setter instead of frozen or non-writable props
|
|
3199
|
+
// because that won't throw in a non-strict mode function.
|
|
3200
|
+
throw Error();
|
|
3201
|
+
}
|
|
3202
|
+
});
|
|
3333
3203
|
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3204
|
+
if (typeof Reflect === 'object' && Reflect.construct) {
|
|
3205
|
+
// We construct a different control for this case to include any extra
|
|
3206
|
+
// frames added by the construct call.
|
|
3207
|
+
try {
|
|
3208
|
+
Reflect.construct(Fake, []);
|
|
3209
|
+
} catch (x) {
|
|
3210
|
+
control = x;
|
|
3211
|
+
}
|
|
3212
|
+
|
|
3213
|
+
Reflect.construct(fn, [], Fake);
|
|
3214
|
+
} else {
|
|
3215
|
+
try {
|
|
3216
|
+
Fake.call();
|
|
3217
|
+
} catch (x) {
|
|
3218
|
+
control = x;
|
|
3219
|
+
}
|
|
3220
|
+
|
|
3221
|
+
fn.call(Fake.prototype);
|
|
3222
|
+
}
|
|
3223
|
+
} else {
|
|
3224
|
+
try {
|
|
3225
|
+
throw Error();
|
|
3226
|
+
} catch (x) {
|
|
3227
|
+
control = x;
|
|
3228
|
+
}
|
|
3229
|
+
|
|
3230
|
+
fn();
|
|
3231
|
+
}
|
|
3232
|
+
} catch (sample) {
|
|
3233
|
+
// This is inlined manually because closure doesn't do it for us.
|
|
3234
|
+
if (sample && control && typeof sample.stack === 'string') {
|
|
3235
|
+
// This extracts the first frame from the sample that isn't also in the control.
|
|
3236
|
+
// Skipping one frame that we assume is the frame that calls the two.
|
|
3237
|
+
var sampleLines = sample.stack.split('\n');
|
|
3238
|
+
var controlLines = control.stack.split('\n');
|
|
3239
|
+
var s = sampleLines.length - 1;
|
|
3240
|
+
var c = controlLines.length - 1;
|
|
3241
|
+
|
|
3242
|
+
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
3243
|
+
// We expect at least one stack frame to be shared.
|
|
3244
|
+
// Typically this will be the root most one. However, stack frames may be
|
|
3245
|
+
// cut off due to maximum stack limits. In this case, one maybe cut off
|
|
3246
|
+
// earlier than the other. We assume that the sample is longer or the same
|
|
3247
|
+
// and there for cut off earlier. So we should find the root most frame in
|
|
3248
|
+
// the sample somewhere in the control.
|
|
3249
|
+
c--;
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
for (; s >= 1 && c >= 0; s--, c--) {
|
|
3253
|
+
// Next we find the first one that isn't the same which should be the
|
|
3254
|
+
// frame that called our sample function and the control.
|
|
3255
|
+
if (sampleLines[s] !== controlLines[c]) {
|
|
3256
|
+
// In V8, the first line is describing the message but other VMs don't.
|
|
3257
|
+
// If we're about to return the first line, and the control is also on the same
|
|
3258
|
+
// line, that's a pretty good indicator that our sample threw at same line as
|
|
3259
|
+
// the control. I.e. before we entered the sample frame. So we ignore this result.
|
|
3260
|
+
// This can happen if you passed a class to function component, or non-function.
|
|
3261
|
+
if (s !== 1 || c !== 1) {
|
|
3262
|
+
do {
|
|
3263
|
+
s--;
|
|
3264
|
+
c--; // We may still have similar intermediate frames from the construct call.
|
|
3265
|
+
// The next one that isn't the same should be our match though.
|
|
3266
|
+
|
|
3267
|
+
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
3268
|
+
// V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
|
|
3269
|
+
var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
|
|
3270
|
+
// but we have a user-provided "displayName"
|
|
3271
|
+
// splice it in to make the stack more readable.
|
|
3272
|
+
|
|
3273
|
+
|
|
3274
|
+
if (fn.displayName && _frame.includes('<anonymous>')) {
|
|
3275
|
+
_frame = _frame.replace('<anonymous>', fn.displayName);
|
|
3276
|
+
}
|
|
3277
|
+
|
|
3278
|
+
{
|
|
3279
|
+
if (typeof fn === 'function') {
|
|
3280
|
+
componentFrameCache.set(fn, _frame);
|
|
3281
|
+
}
|
|
3282
|
+
} // Return the line we found.
|
|
3283
|
+
|
|
3284
|
+
|
|
3285
|
+
return _frame;
|
|
3286
|
+
}
|
|
3287
|
+
} while (s >= 1 && c >= 0);
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
break;
|
|
3291
|
+
}
|
|
3292
|
+
}
|
|
3293
|
+
}
|
|
3294
|
+
} finally {
|
|
3295
|
+
reentry = false;
|
|
3296
|
+
|
|
3297
|
+
{
|
|
3298
|
+
ReactCurrentDispatcher.current = previousDispatcher;
|
|
3299
|
+
reenableLogs();
|
|
3300
|
+
}
|
|
3301
|
+
|
|
3302
|
+
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
3303
|
+
} // Fallback to just using the name if we couldn't make it throw.
|
|
3304
|
+
|
|
3305
|
+
|
|
3306
|
+
var name = fn ? fn.displayName || fn.name : '';
|
|
3307
|
+
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
|
|
3308
|
+
|
|
3309
|
+
{
|
|
3310
|
+
if (typeof fn === 'function') {
|
|
3311
|
+
componentFrameCache.set(fn, syntheticFrame);
|
|
3312
|
+
}
|
|
3313
|
+
}
|
|
3314
|
+
|
|
3315
|
+
return syntheticFrame;
|
|
3316
|
+
}
|
|
3317
|
+
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
3318
|
+
{
|
|
3319
|
+
return describeNativeComponentFrame(fn, false);
|
|
3320
|
+
}
|
|
3321
|
+
}
|
|
3322
|
+
|
|
3323
|
+
function shouldConstruct(Component) {
|
|
3324
|
+
var prototype = Component.prototype;
|
|
3325
|
+
return !!(prototype && prototype.isReactComponent);
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3328
|
+
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
3329
|
+
|
|
3330
|
+
if (type == null) {
|
|
3331
|
+
return '';
|
|
3332
|
+
}
|
|
3333
|
+
|
|
3334
|
+
if (typeof type === 'function') {
|
|
3335
|
+
{
|
|
3336
|
+
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
3337
|
+
}
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
if (typeof type === 'string') {
|
|
3341
|
+
return describeBuiltInComponentFrame(type);
|
|
3342
|
+
}
|
|
3343
|
+
|
|
3344
|
+
switch (type) {
|
|
3345
|
+
case REACT_SUSPENSE_TYPE:
|
|
3346
|
+
return describeBuiltInComponentFrame('Suspense');
|
|
3347
|
+
|
|
3348
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
3349
|
+
return describeBuiltInComponentFrame('SuspenseList');
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
if (typeof type === 'object') {
|
|
3353
|
+
switch (type.$$typeof) {
|
|
3354
|
+
case REACT_FORWARD_REF_TYPE:
|
|
3355
|
+
return describeFunctionComponentFrame(type.render);
|
|
3356
|
+
|
|
3357
|
+
case REACT_MEMO_TYPE:
|
|
3358
|
+
// Memo may contain any component type so we recursively resolve it.
|
|
3359
|
+
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
3360
|
+
|
|
3361
|
+
case REACT_LAZY_TYPE:
|
|
3362
|
+
{
|
|
3363
|
+
var lazyComponent = type;
|
|
3364
|
+
var payload = lazyComponent._payload;
|
|
3365
|
+
var init = lazyComponent._init;
|
|
3366
|
+
|
|
3367
|
+
try {
|
|
3368
|
+
// Lazy may contain any component type so we recursively resolve it.
|
|
3369
|
+
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
3370
|
+
} catch (x) {}
|
|
3371
|
+
}
|
|
3372
|
+
}
|
|
3373
|
+
}
|
|
3374
|
+
|
|
3375
|
+
return '';
|
|
3376
|
+
}
|
|
3377
|
+
|
|
3378
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
3379
|
+
|
|
3380
|
+
var loggedTypeFailures = {};
|
|
3381
|
+
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
3382
|
+
|
|
3383
|
+
function setCurrentlyValidatingElement(element) {
|
|
3384
|
+
{
|
|
3385
|
+
if (element) {
|
|
3386
|
+
var owner = element._owner;
|
|
3387
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
3388
|
+
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
3389
|
+
} else {
|
|
3390
|
+
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3393
|
+
}
|
|
3394
|
+
|
|
3395
|
+
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
3396
|
+
{
|
|
3397
|
+
// $FlowFixMe This is okay but Flow doesn't know it.
|
|
3398
|
+
var has = Function.call.bind(hasOwnProperty);
|
|
3399
|
+
|
|
3400
|
+
for (var typeSpecName in typeSpecs) {
|
|
3401
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
3402
|
+
var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
|
|
3403
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
3404
|
+
// After these have been cleaned up, we'll let them throw.
|
|
3405
|
+
|
|
3406
|
+
try {
|
|
3407
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
3408
|
+
// behavior as without this statement except with a better message.
|
|
3409
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
3410
|
+
// eslint-disable-next-line react-internal/prod-error-codes
|
|
3411
|
+
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
3412
|
+
err.name = 'Invariant Violation';
|
|
3413
|
+
throw err;
|
|
3414
|
+
}
|
|
3415
|
+
|
|
3416
|
+
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
|
|
3417
|
+
} catch (ex) {
|
|
3418
|
+
error$1 = ex;
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
if (error$1 && !(error$1 instanceof Error)) {
|
|
3422
|
+
setCurrentlyValidatingElement(element);
|
|
3423
|
+
|
|
3424
|
+
error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
|
|
3425
|
+
|
|
3426
|
+
setCurrentlyValidatingElement(null);
|
|
3427
|
+
}
|
|
3428
|
+
|
|
3429
|
+
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
3430
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
3431
|
+
// same error.
|
|
3432
|
+
loggedTypeFailures[error$1.message] = true;
|
|
3433
|
+
setCurrentlyValidatingElement(element);
|
|
3434
|
+
|
|
3435
|
+
error('Failed %s type: %s', location, error$1.message);
|
|
3436
|
+
|
|
3437
|
+
setCurrentlyValidatingElement(null);
|
|
3438
|
+
}
|
|
3439
|
+
}
|
|
3440
|
+
}
|
|
3441
|
+
}
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3444
|
+
var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
|
|
3445
|
+
|
|
3446
|
+
function isArray(a) {
|
|
3447
|
+
return isArrayImpl(a);
|
|
3448
|
+
}
|
|
3449
|
+
|
|
3450
|
+
/*
|
|
3451
|
+
* The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
|
|
3452
|
+
* and Temporal.* types. See https://github.com/facebook/react/pull/22064.
|
|
3453
|
+
*
|
|
3454
|
+
* The functions in this module will throw an easier-to-understand,
|
|
3455
|
+
* easier-to-debug exception with a clear errors message message explaining the
|
|
3456
|
+
* problem. (Instead of a confusing exception thrown inside the implementation
|
|
3457
|
+
* of the `value` object).
|
|
3458
|
+
*/
|
|
3459
|
+
// $FlowFixMe only called in DEV, so void return is not possible.
|
|
3460
|
+
function typeName(value) {
|
|
3461
|
+
{
|
|
3462
|
+
// toStringTag is needed for namespaced types like Temporal.Instant
|
|
3463
|
+
var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
|
|
3464
|
+
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
|
|
3465
|
+
return type;
|
|
3466
|
+
}
|
|
3467
|
+
} // $FlowFixMe only called in DEV, so void return is not possible.
|
|
3468
|
+
|
|
3469
|
+
|
|
3470
|
+
function willCoercionThrow(value) {
|
|
3471
|
+
{
|
|
3472
|
+
try {
|
|
3473
|
+
testStringCoercion(value);
|
|
3474
|
+
return false;
|
|
3475
|
+
} catch (e) {
|
|
3476
|
+
return true;
|
|
3477
|
+
}
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
|
|
3481
|
+
function testStringCoercion(value) {
|
|
3482
|
+
// If you ended up here by following an exception call stack, here's what's
|
|
3483
|
+
// happened: you supplied an object or symbol value to React (as a prop, key,
|
|
3484
|
+
// DOM attribute, CSS property, string ref, etc.) and when React tried to
|
|
3485
|
+
// coerce it to a string using `'' + value`, an exception was thrown.
|
|
3486
|
+
//
|
|
3487
|
+
// The most common types that will cause this exception are `Symbol` instances
|
|
3488
|
+
// and Temporal objects like `Temporal.Instant`. But any object that has a
|
|
3489
|
+
// `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
|
|
3490
|
+
// exception. (Library authors do this to prevent users from using built-in
|
|
3491
|
+
// numeric operators like `+` or comparison operators like `>=` because custom
|
|
3492
|
+
// methods are needed to perform accurate arithmetic or comparison.)
|
|
3493
|
+
//
|
|
3494
|
+
// To fix the problem, coerce this object or symbol value to a string before
|
|
3495
|
+
// passing it to React. The most reliable way is usually `String(value)`.
|
|
3496
|
+
//
|
|
3497
|
+
// To find which value is throwing, check the browser or debugger console.
|
|
3498
|
+
// Before this exception was thrown, there should be `console.error` output
|
|
3499
|
+
// that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
|
|
3500
|
+
// problem and how that type was used: key, atrribute, input value prop, etc.
|
|
3501
|
+
// In most cases, this console output also shows the component and its
|
|
3502
|
+
// ancestor components where the exception happened.
|
|
3503
|
+
//
|
|
3504
|
+
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
3505
|
+
return '' + value;
|
|
3506
|
+
}
|
|
3507
|
+
function checkKeyStringCoercion(value) {
|
|
3508
|
+
{
|
|
3509
|
+
if (willCoercionThrow(value)) {
|
|
3510
|
+
error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
|
|
3511
|
+
|
|
3512
|
+
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
|
|
3513
|
+
}
|
|
3514
|
+
}
|
|
3515
|
+
}
|
|
3516
|
+
|
|
3517
|
+
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
3518
|
+
var RESERVED_PROPS = {
|
|
3519
|
+
key: true,
|
|
3520
|
+
ref: true,
|
|
3521
|
+
__self: true,
|
|
3522
|
+
__source: true
|
|
3523
|
+
};
|
|
3524
|
+
var specialPropKeyWarningShown;
|
|
3525
|
+
var specialPropRefWarningShown;
|
|
3526
|
+
var didWarnAboutStringRefs;
|
|
3527
|
+
|
|
3528
|
+
{
|
|
3529
|
+
didWarnAboutStringRefs = {};
|
|
3530
|
+
}
|
|
3531
|
+
|
|
3532
|
+
function hasValidRef(config) {
|
|
3533
|
+
{
|
|
3534
|
+
if (hasOwnProperty.call(config, 'ref')) {
|
|
3535
|
+
var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
|
|
3536
|
+
|
|
3537
|
+
if (getter && getter.isReactWarning) {
|
|
3538
|
+
return false;
|
|
3539
|
+
}
|
|
3540
|
+
}
|
|
3541
|
+
}
|
|
3542
|
+
|
|
3543
|
+
return config.ref !== undefined;
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
function hasValidKey(config) {
|
|
3547
|
+
{
|
|
3548
|
+
if (hasOwnProperty.call(config, 'key')) {
|
|
3549
|
+
var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
|
|
3550
|
+
|
|
3551
|
+
if (getter && getter.isReactWarning) {
|
|
3552
|
+
return false;
|
|
3553
|
+
}
|
|
3554
|
+
}
|
|
3555
|
+
}
|
|
3556
|
+
|
|
3557
|
+
return config.key !== undefined;
|
|
3558
|
+
}
|
|
3559
|
+
|
|
3560
|
+
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
3561
|
+
{
|
|
3562
|
+
if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
|
3563
|
+
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
3564
|
+
|
|
3565
|
+
if (!didWarnAboutStringRefs[componentName]) {
|
|
3566
|
+
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
|
3567
|
+
|
|
3568
|
+
didWarnAboutStringRefs[componentName] = true;
|
|
3569
|
+
}
|
|
3570
|
+
}
|
|
3571
|
+
}
|
|
3572
|
+
}
|
|
3573
|
+
|
|
3574
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
3575
|
+
{
|
|
3576
|
+
var warnAboutAccessingKey = function () {
|
|
3577
|
+
if (!specialPropKeyWarningShown) {
|
|
3578
|
+
specialPropKeyWarningShown = true;
|
|
3579
|
+
|
|
3580
|
+
error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
|
|
3581
|
+
}
|
|
3582
|
+
};
|
|
3583
|
+
|
|
3584
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
3585
|
+
Object.defineProperty(props, 'key', {
|
|
3586
|
+
get: warnAboutAccessingKey,
|
|
3587
|
+
configurable: true
|
|
3588
|
+
});
|
|
3589
|
+
}
|
|
3590
|
+
}
|
|
3591
|
+
|
|
3592
|
+
function defineRefPropWarningGetter(props, displayName) {
|
|
3593
|
+
{
|
|
3594
|
+
var warnAboutAccessingRef = function () {
|
|
3595
|
+
if (!specialPropRefWarningShown) {
|
|
3596
|
+
specialPropRefWarningShown = true;
|
|
3597
|
+
|
|
3598
|
+
error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
|
|
3599
|
+
}
|
|
3600
|
+
};
|
|
3601
|
+
|
|
3602
|
+
warnAboutAccessingRef.isReactWarning = true;
|
|
3603
|
+
Object.defineProperty(props, 'ref', {
|
|
3604
|
+
get: warnAboutAccessingRef,
|
|
3605
|
+
configurable: true
|
|
3606
|
+
});
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
/**
|
|
3610
|
+
* Factory method to create a new React element. This no longer adheres to
|
|
3611
|
+
* the class pattern, so do not use new to call it. Also, instanceof check
|
|
3612
|
+
* will not work. Instead test $$typeof field against Symbol.for('react.element') to check
|
|
3613
|
+
* if something is a React Element.
|
|
3614
|
+
*
|
|
3615
|
+
* @param {*} type
|
|
3616
|
+
* @param {*} props
|
|
3617
|
+
* @param {*} key
|
|
3618
|
+
* @param {string|object} ref
|
|
3619
|
+
* @param {*} owner
|
|
3620
|
+
* @param {*} self A *temporary* helper to detect places where `this` is
|
|
3621
|
+
* different from the `owner` when React.createElement is called, so that we
|
|
3622
|
+
* can warn. We want to get rid of owner and replace string `ref`s with arrow
|
|
3623
|
+
* functions, and as long as `this` and owner are the same, there will be no
|
|
3624
|
+
* change in behavior.
|
|
3625
|
+
* @param {*} source An annotation object (added by a transpiler or otherwise)
|
|
3626
|
+
* indicating filename, line number, and/or other information.
|
|
3627
|
+
* @internal
|
|
3628
|
+
*/
|
|
3629
|
+
|
|
3630
|
+
|
|
3631
|
+
var ReactElement = function (type, key, ref, self, source, owner, props) {
|
|
3632
|
+
var element = {
|
|
3633
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
3634
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
3635
|
+
// Built-in properties that belong on the element
|
|
3636
|
+
type: type,
|
|
3637
|
+
key: key,
|
|
3638
|
+
ref: ref,
|
|
3639
|
+
props: props,
|
|
3640
|
+
// Record the component responsible for creating this element.
|
|
3641
|
+
_owner: owner
|
|
3642
|
+
};
|
|
3643
|
+
|
|
3644
|
+
{
|
|
3645
|
+
// The validation flag is currently mutative. We put it on
|
|
3646
|
+
// an external backing store so that we can freeze the whole object.
|
|
3647
|
+
// This can be replaced with a WeakMap once they are implemented in
|
|
3648
|
+
// commonly used development environments.
|
|
3649
|
+
element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
|
|
3650
|
+
// the validation flag non-enumerable (where possible, which should
|
|
3651
|
+
// include every environment we run tests in), so the test framework
|
|
3652
|
+
// ignores it.
|
|
3653
|
+
|
|
3654
|
+
Object.defineProperty(element._store, 'validated', {
|
|
3655
|
+
configurable: false,
|
|
3656
|
+
enumerable: false,
|
|
3657
|
+
writable: true,
|
|
3658
|
+
value: false
|
|
3659
|
+
}); // self and source are DEV only properties.
|
|
3660
|
+
|
|
3661
|
+
Object.defineProperty(element, '_self', {
|
|
3662
|
+
configurable: false,
|
|
3663
|
+
enumerable: false,
|
|
3664
|
+
writable: false,
|
|
3665
|
+
value: self
|
|
3666
|
+
}); // Two elements created in two different places should be considered
|
|
3667
|
+
// equal for testing purposes and therefore we hide it from enumeration.
|
|
3668
|
+
|
|
3669
|
+
Object.defineProperty(element, '_source', {
|
|
3670
|
+
configurable: false,
|
|
3671
|
+
enumerable: false,
|
|
3672
|
+
writable: false,
|
|
3673
|
+
value: source
|
|
3674
|
+
});
|
|
3675
|
+
|
|
3676
|
+
if (Object.freeze) {
|
|
3677
|
+
Object.freeze(element.props);
|
|
3678
|
+
Object.freeze(element);
|
|
3679
|
+
}
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
return element;
|
|
3683
|
+
};
|
|
3684
|
+
/**
|
|
3685
|
+
* https://github.com/reactjs/rfcs/pull/107
|
|
3686
|
+
* @param {*} type
|
|
3687
|
+
* @param {object} props
|
|
3688
|
+
* @param {string} key
|
|
3689
|
+
*/
|
|
3690
|
+
|
|
3691
|
+
function jsxDEV(type, config, maybeKey, source, self) {
|
|
3692
|
+
{
|
|
3693
|
+
var propName; // Reserved names are extracted
|
|
3694
|
+
|
|
3695
|
+
var props = {};
|
|
3696
|
+
var key = null;
|
|
3697
|
+
var ref = null; // Currently, key can be spread in as a prop. This causes a potential
|
|
3698
|
+
// issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
|
|
3699
|
+
// or <div key="Hi" {...props} /> ). We want to deprecate key spread,
|
|
3700
|
+
// but as an intermediary step, we will use jsxDEV for everything except
|
|
3701
|
+
// <div {...props} key="Hi" />, because we aren't currently able to tell if
|
|
3702
|
+
// key is explicitly declared to be undefined or not.
|
|
3703
|
+
|
|
3704
|
+
if (maybeKey !== undefined) {
|
|
3705
|
+
{
|
|
3706
|
+
checkKeyStringCoercion(maybeKey);
|
|
3707
|
+
}
|
|
3708
|
+
|
|
3709
|
+
key = '' + maybeKey;
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3712
|
+
if (hasValidKey(config)) {
|
|
3713
|
+
{
|
|
3714
|
+
checkKeyStringCoercion(config.key);
|
|
3715
|
+
}
|
|
3716
|
+
|
|
3717
|
+
key = '' + config.key;
|
|
3718
|
+
}
|
|
3719
|
+
|
|
3720
|
+
if (hasValidRef(config)) {
|
|
3721
|
+
ref = config.ref;
|
|
3722
|
+
warnIfStringRefCannotBeAutoConverted(config, self);
|
|
3723
|
+
} // Remaining properties are added to a new props object
|
|
3724
|
+
|
|
3725
|
+
|
|
3726
|
+
for (propName in config) {
|
|
3727
|
+
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
3728
|
+
props[propName] = config[propName];
|
|
3729
|
+
}
|
|
3730
|
+
} // Resolve default props
|
|
3731
|
+
|
|
3732
|
+
|
|
3733
|
+
if (type && type.defaultProps) {
|
|
3734
|
+
var defaultProps = type.defaultProps;
|
|
3735
|
+
|
|
3736
|
+
for (propName in defaultProps) {
|
|
3737
|
+
if (props[propName] === undefined) {
|
|
3738
|
+
props[propName] = defaultProps[propName];
|
|
3739
|
+
}
|
|
3740
|
+
}
|
|
3741
|
+
}
|
|
3742
|
+
|
|
3743
|
+
if (key || ref) {
|
|
3744
|
+
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
|
|
3745
|
+
|
|
3746
|
+
if (key) {
|
|
3747
|
+
defineKeyPropWarningGetter(props, displayName);
|
|
3748
|
+
}
|
|
3749
|
+
|
|
3750
|
+
if (ref) {
|
|
3751
|
+
defineRefPropWarningGetter(props, displayName);
|
|
3752
|
+
}
|
|
3753
|
+
}
|
|
3754
|
+
|
|
3755
|
+
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
3756
|
+
}
|
|
3757
|
+
}
|
|
3758
|
+
|
|
3759
|
+
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
3760
|
+
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
3761
|
+
|
|
3762
|
+
function setCurrentlyValidatingElement$1(element) {
|
|
3763
|
+
{
|
|
3764
|
+
if (element) {
|
|
3765
|
+
var owner = element._owner;
|
|
3766
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
3767
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
3768
|
+
} else {
|
|
3769
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
3337
3770
|
}
|
|
3771
|
+
}
|
|
3772
|
+
}
|
|
3338
3773
|
|
|
3339
|
-
|
|
3774
|
+
var propTypesMisspellWarningShown;
|
|
3340
3775
|
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3776
|
+
{
|
|
3777
|
+
propTypesMisspellWarningShown = false;
|
|
3778
|
+
}
|
|
3779
|
+
/**
|
|
3780
|
+
* Verifies the object is a ReactElement.
|
|
3781
|
+
* See https://reactjs.org/docs/react-api.html#isvalidelement
|
|
3782
|
+
* @param {?object} object
|
|
3783
|
+
* @return {boolean} True if `object` is a ReactElement.
|
|
3784
|
+
* @final
|
|
3785
|
+
*/
|
|
3345
3786
|
|
|
3346
|
-
if (0 !== w * E) {
|
|
3347
|
-
2 !== w || L(p, 2) || (E = 0);
|
|
3348
3787
|
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3788
|
+
function isValidElement(object) {
|
|
3789
|
+
{
|
|
3790
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
3791
|
+
}
|
|
3792
|
+
}
|
|
3353
3793
|
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3794
|
+
function getDeclarationErrorAddendum() {
|
|
3795
|
+
{
|
|
3796
|
+
if (ReactCurrentOwner$1.current) {
|
|
3797
|
+
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
3357
3798
|
|
|
3358
|
-
|
|
3799
|
+
if (name) {
|
|
3800
|
+
return '\n\nCheck the render method of `' + name + '`.';
|
|
3359
3801
|
}
|
|
3360
3802
|
}
|
|
3361
3803
|
|
|
3362
|
-
return
|
|
3804
|
+
return '';
|
|
3363
3805
|
}
|
|
3806
|
+
}
|
|
3364
3807
|
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
switch (m) {
|
|
3372
|
-
case 0:
|
|
3373
|
-
case 1:
|
|
3374
|
-
var b = 0;
|
|
3375
|
-
|
|
3376
|
-
for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
|
|
3377
|
-
c[b] = Z(d, c[b], e).trim();
|
|
3378
|
-
}
|
|
3379
|
-
|
|
3380
|
-
break;
|
|
3381
|
-
|
|
3382
|
-
default:
|
|
3383
|
-
var v = b = 0;
|
|
3384
|
-
|
|
3385
|
-
for (c = []; b < a; ++b) {
|
|
3386
|
-
for (var n = 0; n < m; ++n) {
|
|
3387
|
-
c[v++] = Z(d[n] + ' ', h[b], e).trim();
|
|
3388
|
-
}
|
|
3389
|
-
}
|
|
3390
|
-
|
|
3808
|
+
function getSourceInfoErrorAddendum(source) {
|
|
3809
|
+
{
|
|
3810
|
+
if (source !== undefined) {
|
|
3811
|
+
var fileName = source.fileName.replace(/^.*[\\\/]/, '');
|
|
3812
|
+
var lineNumber = source.lineNumber;
|
|
3813
|
+
return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
|
|
3391
3814
|
}
|
|
3392
3815
|
|
|
3393
|
-
return
|
|
3816
|
+
return '';
|
|
3394
3817
|
}
|
|
3818
|
+
}
|
|
3819
|
+
/**
|
|
3820
|
+
* Warn if there's no key explicitly set on dynamic arrays of children or
|
|
3821
|
+
* object keys are not valid. This allows us to keep track of children between
|
|
3822
|
+
* updates.
|
|
3823
|
+
*/
|
|
3395
3824
|
|
|
3396
|
-
function Z(d, c, e) {
|
|
3397
|
-
var h = c.charCodeAt(0);
|
|
3398
|
-
33 > h && (h = (c = c.trim()).charCodeAt(0));
|
|
3399
3825
|
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3826
|
+
var ownerHasKeyUseWarning = {};
|
|
3827
|
+
|
|
3828
|
+
function getCurrentComponentErrorInfo(parentType) {
|
|
3829
|
+
{
|
|
3830
|
+
var info = getDeclarationErrorAddendum();
|
|
3403
3831
|
|
|
3404
|
-
|
|
3405
|
-
|
|
3832
|
+
if (!info) {
|
|
3833
|
+
var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
|
|
3406
3834
|
|
|
3407
|
-
|
|
3408
|
-
|
|
3835
|
+
if (parentName) {
|
|
3836
|
+
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
3837
|
+
}
|
|
3409
3838
|
}
|
|
3410
3839
|
|
|
3411
|
-
return
|
|
3840
|
+
return info;
|
|
3412
3841
|
}
|
|
3842
|
+
}
|
|
3843
|
+
/**
|
|
3844
|
+
* Warn if the element doesn't have an explicit key assigned to it.
|
|
3845
|
+
* This element is in an array. The array could grow and shrink or be
|
|
3846
|
+
* reordered. All children that haven't already been validated are required to
|
|
3847
|
+
* have a "key" property assigned to it. Error statuses are cached so a warning
|
|
3848
|
+
* will only be shown once.
|
|
3849
|
+
*
|
|
3850
|
+
* @internal
|
|
3851
|
+
* @param {ReactElement} element Element that requires a key.
|
|
3852
|
+
* @param {*} parentType element's parent's type.
|
|
3853
|
+
*/
|
|
3413
3854
|
|
|
3414
|
-
function P(d, c, e, h) {
|
|
3415
|
-
var a = d + ';',
|
|
3416
|
-
m = 2 * c + 3 * e + 4 * h;
|
|
3417
3855
|
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
|
|
3856
|
+
function validateExplicitKey(element, parentType) {
|
|
3857
|
+
{
|
|
3858
|
+
if (!element._store || element._store.validated || element.key != null) {
|
|
3859
|
+
return;
|
|
3423
3860
|
}
|
|
3424
3861
|
|
|
3425
|
-
|
|
3862
|
+
element._store.validated = true;
|
|
3863
|
+
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
3426
3864
|
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3865
|
+
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
3866
|
+
return;
|
|
3867
|
+
}
|
|
3430
3868
|
|
|
3431
|
-
|
|
3432
|
-
|
|
3869
|
+
ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
|
|
3870
|
+
// property, it may be the creator of the child that's responsible for
|
|
3871
|
+
// assigning it a key.
|
|
3433
3872
|
|
|
3434
|
-
|
|
3435
|
-
return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
|
|
3873
|
+
var childOwner = '';
|
|
3436
3874
|
|
|
3437
|
-
|
|
3438
|
-
|
|
3875
|
+
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
3876
|
+
// Give the component that originally created this child.
|
|
3877
|
+
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
3878
|
+
}
|
|
3439
3879
|
|
|
3440
|
-
|
|
3441
|
-
case 942:
|
|
3442
|
-
return '-webkit-' + a + a;
|
|
3880
|
+
setCurrentlyValidatingElement$1(element);
|
|
3443
3881
|
|
|
3444
|
-
|
|
3445
|
-
return '-webkit-' + a + '-moz-' + a + a;
|
|
3882
|
+
error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
3446
3883
|
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3884
|
+
setCurrentlyValidatingElement$1(null);
|
|
3885
|
+
}
|
|
3886
|
+
}
|
|
3887
|
+
/**
|
|
3888
|
+
* Ensure that every element either is passed in a static location, in an
|
|
3889
|
+
* array with an explicit keys property defined, or in an object literal
|
|
3890
|
+
* with valid key property.
|
|
3891
|
+
*
|
|
3892
|
+
* @internal
|
|
3893
|
+
* @param {ReactNode} node Statically passed child of any type.
|
|
3894
|
+
* @param {*} parentType node's parent's type.
|
|
3895
|
+
*/
|
|
3450
3896
|
|
|
3451
|
-
case 883:
|
|
3452
|
-
if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
|
|
3453
|
-
if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
|
|
3454
|
-
break;
|
|
3455
3897
|
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3898
|
+
function validateChildKeys(node, parentType) {
|
|
3899
|
+
{
|
|
3900
|
+
if (typeof node !== 'object') {
|
|
3901
|
+
return;
|
|
3902
|
+
}
|
|
3460
3903
|
|
|
3461
|
-
|
|
3462
|
-
|
|
3904
|
+
if (isArray(node)) {
|
|
3905
|
+
for (var i = 0; i < node.length; i++) {
|
|
3906
|
+
var child = node[i];
|
|
3463
3907
|
|
|
3464
|
-
|
|
3465
|
-
|
|
3908
|
+
if (isValidElement(child)) {
|
|
3909
|
+
validateExplicitKey(child, parentType);
|
|
3466
3910
|
}
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
case 232:
|
|
3490
|
-
b = a.replace(G, 'tb-rl');
|
|
3491
|
-
break;
|
|
3492
|
-
|
|
3493
|
-
case 220:
|
|
3494
|
-
b = a.replace(G, 'lr');
|
|
3495
|
-
break;
|
|
3496
|
-
|
|
3497
|
-
default:
|
|
3498
|
-
return a;
|
|
3911
|
+
}
|
|
3912
|
+
} else if (isValidElement(node)) {
|
|
3913
|
+
// This element was passed in a valid location.
|
|
3914
|
+
if (node._store) {
|
|
3915
|
+
node._store.validated = true;
|
|
3916
|
+
}
|
|
3917
|
+
} else if (node) {
|
|
3918
|
+
var iteratorFn = getIteratorFn(node);
|
|
3919
|
+
|
|
3920
|
+
if (typeof iteratorFn === 'function') {
|
|
3921
|
+
// Entry iterators used to provide implicit keys,
|
|
3922
|
+
// but now we print a separate warning for them later.
|
|
3923
|
+
if (iteratorFn !== node.entries) {
|
|
3924
|
+
var iterator = iteratorFn.call(node);
|
|
3925
|
+
var step;
|
|
3926
|
+
|
|
3927
|
+
while (!(step = iterator.next()).done) {
|
|
3928
|
+
if (isValidElement(step.value)) {
|
|
3929
|
+
validateExplicitKey(step.value, parentType);
|
|
3930
|
+
}
|
|
3931
|
+
}
|
|
3499
3932
|
}
|
|
3933
|
+
}
|
|
3934
|
+
}
|
|
3935
|
+
}
|
|
3936
|
+
}
|
|
3937
|
+
/**
|
|
3938
|
+
* Given an element, validate that its props follow the propTypes definition,
|
|
3939
|
+
* provided by the type.
|
|
3940
|
+
*
|
|
3941
|
+
* @param {ReactElement} element
|
|
3942
|
+
*/
|
|
3500
3943
|
|
|
3501
|
-
return '-webkit-' + a + '-ms-' + b + a;
|
|
3502
|
-
|
|
3503
|
-
case 1017:
|
|
3504
|
-
if (-1 === a.indexOf('sticky', 9)) break;
|
|
3505
|
-
|
|
3506
|
-
case 975:
|
|
3507
|
-
c = (a = d).length - 10;
|
|
3508
|
-
b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
|
|
3509
|
-
|
|
3510
|
-
switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
|
|
3511
|
-
case 203:
|
|
3512
|
-
if (111 > b.charCodeAt(8)) break;
|
|
3513
|
-
|
|
3514
|
-
case 115:
|
|
3515
|
-
a = a.replace(b, '-webkit-' + b) + ';' + a;
|
|
3516
|
-
break;
|
|
3517
|
-
|
|
3518
|
-
case 207:
|
|
3519
|
-
case 102:
|
|
3520
|
-
a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
|
|
3521
|
-
}
|
|
3522
3944
|
|
|
3523
|
-
|
|
3945
|
+
function validatePropTypes(element) {
|
|
3946
|
+
{
|
|
3947
|
+
var type = element.type;
|
|
3524
3948
|
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
|
|
3949
|
+
if (type === null || type === undefined || typeof type === 'string') {
|
|
3950
|
+
return;
|
|
3951
|
+
}
|
|
3529
3952
|
|
|
3530
|
-
|
|
3531
|
-
return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
|
|
3953
|
+
var propTypes;
|
|
3532
3954
|
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3955
|
+
if (typeof type === 'function') {
|
|
3956
|
+
propTypes = type.propTypes;
|
|
3957
|
+
} else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
3958
|
+
// Inner props are checked in the reconciler.
|
|
3959
|
+
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
3960
|
+
propTypes = type.propTypes;
|
|
3961
|
+
} else {
|
|
3962
|
+
return;
|
|
3963
|
+
}
|
|
3537
3964
|
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3965
|
+
if (propTypes) {
|
|
3966
|
+
// Intentionally inside to avoid triggering lazy initializers:
|
|
3967
|
+
var name = getComponentNameFromType(type);
|
|
3968
|
+
checkPropTypes(propTypes, element.props, 'prop', name, element);
|
|
3969
|
+
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
|
3970
|
+
propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
|
|
3541
3971
|
|
|
3542
|
-
|
|
3543
|
-
case 953:
|
|
3544
|
-
if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
|
|
3545
|
-
break;
|
|
3972
|
+
var _name = getComponentNameFromType(type);
|
|
3546
3973
|
|
|
3547
|
-
|
|
3548
|
-
if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
|
|
3974
|
+
error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
|
|
3549
3975
|
}
|
|
3550
3976
|
|
|
3551
|
-
|
|
3977
|
+
if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
|
|
3978
|
+
error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
|
|
3979
|
+
}
|
|
3552
3980
|
}
|
|
3981
|
+
}
|
|
3982
|
+
/**
|
|
3983
|
+
* Given a fragment, validate that it can only be provided with fragment props
|
|
3984
|
+
* @param {ReactElement} fragment
|
|
3985
|
+
*/
|
|
3553
3986
|
|
|
3554
|
-
function L(d, c) {
|
|
3555
|
-
var e = d.indexOf(1 === c ? ':' : '{'),
|
|
3556
|
-
h = d.substring(0, 3 !== c ? e : 10);
|
|
3557
|
-
e = d.substring(e + 1, d.length - 1);
|
|
3558
|
-
return R(2 !== c ? h : h.replace(na, '$1'), e, c);
|
|
3559
|
-
}
|
|
3560
3987
|
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
}
|
|
3988
|
+
function validateFragmentProps(fragment) {
|
|
3989
|
+
{
|
|
3990
|
+
var keys = Object.keys(fragment.props);
|
|
3565
3991
|
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
|
|
3569
|
-
case void 0:
|
|
3570
|
-
case !1:
|
|
3571
|
-
case !0:
|
|
3572
|
-
case null:
|
|
3573
|
-
break;
|
|
3992
|
+
for (var i = 0; i < keys.length; i++) {
|
|
3993
|
+
var key = keys[i];
|
|
3574
3994
|
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
}
|
|
3578
|
-
}
|
|
3995
|
+
if (key !== 'children' && key !== 'key') {
|
|
3996
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
3579
3997
|
|
|
3580
|
-
|
|
3581
|
-
}
|
|
3998
|
+
error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
|
|
3582
3999
|
|
|
3583
|
-
|
|
3584
|
-
switch (d) {
|
|
3585
|
-
case void 0:
|
|
3586
|
-
case null:
|
|
3587
|
-
A = S.length = 0;
|
|
4000
|
+
setCurrentlyValidatingElement$1(null);
|
|
3588
4001
|
break;
|
|
3589
|
-
|
|
3590
|
-
default:
|
|
3591
|
-
if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
|
|
3592
|
-
T(d[c]);
|
|
3593
|
-
} else Y = !!d | 0;
|
|
4002
|
+
}
|
|
3594
4003
|
}
|
|
3595
4004
|
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
function U(d) {
|
|
3600
|
-
d = d.prefix;
|
|
3601
|
-
void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
|
|
3602
|
-
return U;
|
|
3603
|
-
}
|
|
4005
|
+
if (fragment.ref !== null) {
|
|
4006
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
3604
4007
|
|
|
3605
|
-
|
|
3606
|
-
var e = d;
|
|
3607
|
-
33 > e.charCodeAt(0) && (e = e.trim());
|
|
3608
|
-
V = e;
|
|
3609
|
-
e = [V];
|
|
4008
|
+
error('Invalid attribute `ref` supplied to `React.Fragment`.');
|
|
3610
4009
|
|
|
3611
|
-
|
|
3612
|
-
var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
|
|
3613
|
-
void 0 !== h && 'string' === typeof h && (c = h);
|
|
4010
|
+
setCurrentlyValidatingElement$1(null);
|
|
3614
4011
|
}
|
|
3615
|
-
|
|
3616
|
-
var a = M(O, e, c, 0, 0);
|
|
3617
|
-
0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
|
|
3618
|
-
V = '';
|
|
3619
|
-
E = 0;
|
|
3620
|
-
z = D = 1;
|
|
3621
|
-
return a;
|
|
3622
|
-
}
|
|
3623
|
-
|
|
3624
|
-
var ca = /^\0+/g,
|
|
3625
|
-
N = /[\0\r\f]/g,
|
|
3626
|
-
aa = /: */g,
|
|
3627
|
-
ka = /zoo|gra/,
|
|
3628
|
-
ma = /([,: ])(transform)/g,
|
|
3629
|
-
ia = /,\r+?/g,
|
|
3630
|
-
F = /([\t\r\n ])*\f?&/g,
|
|
3631
|
-
fa = /@(k\w+)\s*(\S*)\s*/,
|
|
3632
|
-
Q = /::(place)/g,
|
|
3633
|
-
ha = /:(read-only)/g,
|
|
3634
|
-
G = /[svh]\w+-[tblr]{2}/,
|
|
3635
|
-
da = /\(\s*(.*)\s*\)/g,
|
|
3636
|
-
oa = /([\s\S]*?);/g,
|
|
3637
|
-
ba = /-self|flex-/g,
|
|
3638
|
-
na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
|
|
3639
|
-
la = /stretch|:\s*\w+\-(?:conte|avail)/,
|
|
3640
|
-
ja = /([^-])(image-set\()/,
|
|
3641
|
-
z = 1,
|
|
3642
|
-
D = 1,
|
|
3643
|
-
E = 0,
|
|
3644
|
-
w = 1,
|
|
3645
|
-
O = [],
|
|
3646
|
-
S = [],
|
|
3647
|
-
A = 0,
|
|
3648
|
-
R = null,
|
|
3649
|
-
Y = 0,
|
|
3650
|
-
V = '';
|
|
3651
|
-
B.use = T;
|
|
3652
|
-
B.set = U;
|
|
3653
|
-
void 0 !== W && U(W);
|
|
3654
|
-
return B;
|
|
3655
|
-
}
|
|
3656
|
-
|
|
3657
|
-
var unitlessKeys = {
|
|
3658
|
-
animationIterationCount: 1,
|
|
3659
|
-
borderImageOutset: 1,
|
|
3660
|
-
borderImageSlice: 1,
|
|
3661
|
-
borderImageWidth: 1,
|
|
3662
|
-
boxFlex: 1,
|
|
3663
|
-
boxFlexGroup: 1,
|
|
3664
|
-
boxOrdinalGroup: 1,
|
|
3665
|
-
columnCount: 1,
|
|
3666
|
-
columns: 1,
|
|
3667
|
-
flex: 1,
|
|
3668
|
-
flexGrow: 1,
|
|
3669
|
-
flexPositive: 1,
|
|
3670
|
-
flexShrink: 1,
|
|
3671
|
-
flexNegative: 1,
|
|
3672
|
-
flexOrder: 1,
|
|
3673
|
-
gridRow: 1,
|
|
3674
|
-
gridRowEnd: 1,
|
|
3675
|
-
gridRowSpan: 1,
|
|
3676
|
-
gridRowStart: 1,
|
|
3677
|
-
gridColumn: 1,
|
|
3678
|
-
gridColumnEnd: 1,
|
|
3679
|
-
gridColumnSpan: 1,
|
|
3680
|
-
gridColumnStart: 1,
|
|
3681
|
-
msGridRow: 1,
|
|
3682
|
-
msGridRowSpan: 1,
|
|
3683
|
-
msGridColumn: 1,
|
|
3684
|
-
msGridColumnSpan: 1,
|
|
3685
|
-
fontWeight: 1,
|
|
3686
|
-
lineHeight: 1,
|
|
3687
|
-
opacity: 1,
|
|
3688
|
-
order: 1,
|
|
3689
|
-
orphans: 1,
|
|
3690
|
-
tabSize: 1,
|
|
3691
|
-
widows: 1,
|
|
3692
|
-
zIndex: 1,
|
|
3693
|
-
zoom: 1,
|
|
3694
|
-
WebkitLineClamp: 1,
|
|
3695
|
-
// SVG-related properties
|
|
3696
|
-
fillOpacity: 1,
|
|
3697
|
-
floodOpacity: 1,
|
|
3698
|
-
stopOpacity: 1,
|
|
3699
|
-
strokeDasharray: 1,
|
|
3700
|
-
strokeDashoffset: 1,
|
|
3701
|
-
strokeMiterlimit: 1,
|
|
3702
|
-
strokeOpacity: 1,
|
|
3703
|
-
strokeWidth: 1
|
|
3704
|
-
};
|
|
3705
|
-
|
|
3706
|
-
function memoize(fn) {
|
|
3707
|
-
var cache = Object.create(null);
|
|
3708
|
-
return function (arg) {
|
|
3709
|
-
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
3710
|
-
return cache[arg];
|
|
3711
|
-
};
|
|
4012
|
+
}
|
|
3712
4013
|
}
|
|
3713
4014
|
|
|
3714
|
-
|
|
4015
|
+
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
4016
|
+
{
|
|
4017
|
+
var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
|
|
4018
|
+
// succeed and there will likely be errors in render.
|
|
3715
4019
|
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
/* o */
|
|
3719
|
-
&& prop.charCodeAt(1) === 110
|
|
3720
|
-
/* n */
|
|
3721
|
-
&& prop.charCodeAt(2) < 91;
|
|
3722
|
-
}
|
|
3723
|
-
/* Z+1 */
|
|
3724
|
-
);
|
|
4020
|
+
if (!validType) {
|
|
4021
|
+
var info = '';
|
|
3725
4022
|
|
|
3726
|
-
|
|
4023
|
+
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
4024
|
+
info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
|
|
4025
|
+
}
|
|
3727
4026
|
|
|
3728
|
-
var
|
|
4027
|
+
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
3729
4028
|
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
* This source code is licensed under the MIT license found in the
|
|
3736
|
-
* LICENSE file in the root directory of this source tree.
|
|
3737
|
-
*/
|
|
3738
|
-
var b$1="function"===typeof Symbol&&Symbol.for,c=b$1?Symbol.for("react.element"):60103,d=b$1?Symbol.for("react.portal"):60106,e=b$1?Symbol.for("react.fragment"):60107,f=b$1?Symbol.for("react.strict_mode"):60108,g$1=b$1?Symbol.for("react.profiler"):60114,h=b$1?Symbol.for("react.provider"):60109,k$1=b$1?Symbol.for("react.context"):60110,l=b$1?Symbol.for("react.async_mode"):60111,m=b$1?Symbol.for("react.concurrent_mode"):60111,n=b$1?Symbol.for("react.forward_ref"):60112,p=b$1?Symbol.for("react.suspense"):60113,q$1=b$1?
|
|
3739
|
-
Symbol.for("react.suspense_list"):60120,r=b$1?Symbol.for("react.memo"):60115,t=b$1?Symbol.for("react.lazy"):60116,v$1=b$1?Symbol.for("react.block"):60121,w$1=b$1?Symbol.for("react.fundamental"):60117,x$1=b$1?Symbol.for("react.responder"):60118,y$1=b$1?Symbol.for("react.scope"):60119;
|
|
3740
|
-
function z$1(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$1:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k$1:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z$1(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k$1;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;
|
|
3741
|
-
reactIs_production_min.Profiler=g$1;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z$1(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z$1(a)===k$1};reactIs_production_min.isContextProvider=function(a){return z$1(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$1(a)===n};reactIs_production_min.isFragment=function(a){return z$1(a)===e};reactIs_production_min.isLazy=function(a){return z$1(a)===t};
|
|
3742
|
-
reactIs_production_min.isMemo=function(a){return z$1(a)===r};reactIs_production_min.isPortal=function(a){return z$1(a)===d};reactIs_production_min.isProfiler=function(a){return z$1(a)===g$1};reactIs_production_min.isStrictMode=function(a){return z$1(a)===f};reactIs_production_min.isSuspense=function(a){return z$1(a)===p};
|
|
3743
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g$1||a===f||a===p||a===q$1||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k$1||a.$$typeof===n||a.$$typeof===w$1||a.$$typeof===x$1||a.$$typeof===y$1||a.$$typeof===v$1)};reactIs_production_min.typeOf=z$1;
|
|
4029
|
+
if (sourceInfo) {
|
|
4030
|
+
info += sourceInfo;
|
|
4031
|
+
} else {
|
|
4032
|
+
info += getDeclarationErrorAddendum();
|
|
4033
|
+
}
|
|
3744
4034
|
|
|
3745
|
-
var
|
|
4035
|
+
var typeString;
|
|
3746
4036
|
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
4037
|
+
if (type === null) {
|
|
4038
|
+
typeString = 'null';
|
|
4039
|
+
} else if (isArray(type)) {
|
|
4040
|
+
typeString = 'array';
|
|
4041
|
+
} else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
4042
|
+
typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
|
|
4043
|
+
info = ' Did you accidentally export a JSX literal instead of a component?';
|
|
4044
|
+
} else {
|
|
4045
|
+
typeString = typeof type;
|
|
4046
|
+
}
|
|
3755
4047
|
|
|
4048
|
+
error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
|
|
4049
|
+
}
|
|
3756
4050
|
|
|
4051
|
+
var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
|
|
4052
|
+
// TODO: Drop this when these are no longer allowed as the type argument.
|
|
3757
4053
|
|
|
3758
|
-
if (
|
|
3759
|
-
|
|
4054
|
+
if (element == null) {
|
|
4055
|
+
return element;
|
|
4056
|
+
} // Skip key warning if the type isn't valid since our key validation logic
|
|
4057
|
+
// doesn't expect a non-string/function type and can throw confusing errors.
|
|
4058
|
+
// We don't want exception behavior to differ between dev and prod.
|
|
4059
|
+
// (Rendering will throw with a helpful message and as soon as the type is
|
|
4060
|
+
// fixed, the key warnings will appear.)
|
|
3760
4061
|
|
|
3761
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
3762
|
-
// nor polyfill, then a plain number is used for performance.
|
|
3763
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
3764
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
3765
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
3766
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
3767
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
3768
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
3769
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
3770
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
3771
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
3772
|
-
|
|
3773
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
3774
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
3775
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
3776
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
3777
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
3778
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
3779
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
3780
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
3781
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
3782
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
3783
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
3784
4062
|
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
switch ($$typeof) {
|
|
3795
|
-
case REACT_ELEMENT_TYPE:
|
|
3796
|
-
var type = object.type;
|
|
3797
|
-
|
|
3798
|
-
switch (type) {
|
|
3799
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
3800
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
3801
|
-
case REACT_FRAGMENT_TYPE:
|
|
3802
|
-
case REACT_PROFILER_TYPE:
|
|
3803
|
-
case REACT_STRICT_MODE_TYPE:
|
|
3804
|
-
case REACT_SUSPENSE_TYPE:
|
|
3805
|
-
return type;
|
|
3806
|
-
|
|
3807
|
-
default:
|
|
3808
|
-
var $$typeofType = type && type.$$typeof;
|
|
3809
|
-
|
|
3810
|
-
switch ($$typeofType) {
|
|
3811
|
-
case REACT_CONTEXT_TYPE:
|
|
3812
|
-
case REACT_FORWARD_REF_TYPE:
|
|
3813
|
-
case REACT_LAZY_TYPE:
|
|
3814
|
-
case REACT_MEMO_TYPE:
|
|
3815
|
-
case REACT_PROVIDER_TYPE:
|
|
3816
|
-
return $$typeofType;
|
|
3817
|
-
|
|
3818
|
-
default:
|
|
3819
|
-
return $$typeof;
|
|
4063
|
+
if (validType) {
|
|
4064
|
+
var children = props.children;
|
|
4065
|
+
|
|
4066
|
+
if (children !== undefined) {
|
|
4067
|
+
if (isStaticChildren) {
|
|
4068
|
+
if (isArray(children)) {
|
|
4069
|
+
for (var i = 0; i < children.length; i++) {
|
|
4070
|
+
validateChildKeys(children[i], type);
|
|
3820
4071
|
}
|
|
3821
4072
|
|
|
4073
|
+
if (Object.freeze) {
|
|
4074
|
+
Object.freeze(children);
|
|
4075
|
+
}
|
|
4076
|
+
} else {
|
|
4077
|
+
error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
|
|
4078
|
+
}
|
|
4079
|
+
} else {
|
|
4080
|
+
validateChildKeys(children, type);
|
|
3822
4081
|
}
|
|
4082
|
+
}
|
|
4083
|
+
}
|
|
3823
4084
|
|
|
3824
|
-
|
|
3825
|
-
|
|
4085
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
|
4086
|
+
validateFragmentProps(element);
|
|
4087
|
+
} else {
|
|
4088
|
+
validatePropTypes(element);
|
|
3826
4089
|
}
|
|
4090
|
+
|
|
4091
|
+
return element;
|
|
3827
4092
|
}
|
|
4093
|
+
} // These two functions exist to still get child warnings in dev
|
|
4094
|
+
// even with the prod transform. This means that jsxDEV is purely
|
|
4095
|
+
// opt-in behavior for better messages but that we won't stop
|
|
4096
|
+
// giving you warnings if you use production apis.
|
|
3828
4097
|
|
|
3829
|
-
|
|
3830
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
3831
|
-
|
|
3832
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
3833
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
3834
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
3835
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
3836
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
3837
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
3838
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
3839
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
3840
|
-
var Memo = REACT_MEMO_TYPE;
|
|
3841
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
3842
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
3843
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
3844
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
3845
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
3846
|
-
|
|
3847
|
-
function isAsyncMode(object) {
|
|
4098
|
+
function jsxWithValidationStatic(type, props, key) {
|
|
3848
4099
|
{
|
|
3849
|
-
|
|
3850
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
3851
|
-
|
|
3852
|
-
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.');
|
|
3853
|
-
}
|
|
4100
|
+
return jsxWithValidation(type, props, key, true);
|
|
3854
4101
|
}
|
|
3855
|
-
|
|
3856
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
3857
|
-
}
|
|
3858
|
-
function isConcurrentMode(object) {
|
|
3859
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
3860
|
-
}
|
|
3861
|
-
function isContextConsumer(object) {
|
|
3862
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
3863
4102
|
}
|
|
3864
|
-
function
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
4103
|
+
function jsxWithValidationDynamic(type, props, key) {
|
|
4104
|
+
{
|
|
4105
|
+
return jsxWithValidation(type, props, key, false);
|
|
4106
|
+
}
|
|
3869
4107
|
}
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
function isMemo(object) {
|
|
3880
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
3881
|
-
}
|
|
3882
|
-
function isPortal(object) {
|
|
3883
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
3884
|
-
}
|
|
3885
|
-
function isProfiler(object) {
|
|
3886
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
3887
|
-
}
|
|
3888
|
-
function isStrictMode(object) {
|
|
3889
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
3890
|
-
}
|
|
3891
|
-
function isSuspense(object) {
|
|
3892
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
3893
|
-
}
|
|
3894
|
-
|
|
3895
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
3896
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
3897
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
3898
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
3899
|
-
reactIs_development.Element = Element;
|
|
3900
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
3901
|
-
reactIs_development.Fragment = Fragment;
|
|
3902
|
-
reactIs_development.Lazy = Lazy;
|
|
3903
|
-
reactIs_development.Memo = Memo;
|
|
3904
|
-
reactIs_development.Portal = Portal;
|
|
3905
|
-
reactIs_development.Profiler = Profiler;
|
|
3906
|
-
reactIs_development.StrictMode = StrictMode;
|
|
3907
|
-
reactIs_development.Suspense = Suspense;
|
|
3908
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
3909
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
3910
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
3911
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
3912
|
-
reactIs_development.isElement = isElement;
|
|
3913
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
3914
|
-
reactIs_development.isFragment = isFragment;
|
|
3915
|
-
reactIs_development.isLazy = isLazy;
|
|
3916
|
-
reactIs_development.isMemo = isMemo;
|
|
3917
|
-
reactIs_development.isPortal = isPortal;
|
|
3918
|
-
reactIs_development.isProfiler = isProfiler;
|
|
3919
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
3920
|
-
reactIs_development.isSuspense = isSuspense;
|
|
3921
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
3922
|
-
reactIs_development.typeOf = typeOf;
|
|
4108
|
+
|
|
4109
|
+
var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
|
|
4110
|
+
// for now we can ship identical prod functions
|
|
4111
|
+
|
|
4112
|
+
var jsxs = jsxWithValidationStatic ;
|
|
4113
|
+
|
|
4114
|
+
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
4115
|
+
reactJsxRuntime_development.jsx = jsx;
|
|
4116
|
+
reactJsxRuntime_development.jsxs = jsxs;
|
|
3923
4117
|
})();
|
|
3924
4118
|
}
|
|
3925
4119
|
|
|
3926
4120
|
if (process.env.NODE_ENV === 'production') {
|
|
3927
|
-
|
|
4121
|
+
jsxRuntime.exports = reactJsxRuntime_production_min;
|
|
3928
4122
|
} else {
|
|
3929
|
-
|
|
3930
|
-
}
|
|
3931
|
-
|
|
3932
|
-
var reactIs = reactIs$1.exports;
|
|
3933
|
-
|
|
3934
|
-
/**
|
|
3935
|
-
* Copyright 2015, Yahoo! Inc.
|
|
3936
|
-
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
3937
|
-
*/
|
|
3938
|
-
var REACT_STATICS = {
|
|
3939
|
-
childContextTypes: true,
|
|
3940
|
-
contextType: true,
|
|
3941
|
-
contextTypes: true,
|
|
3942
|
-
defaultProps: true,
|
|
3943
|
-
displayName: true,
|
|
3944
|
-
getDefaultProps: true,
|
|
3945
|
-
getDerivedStateFromError: true,
|
|
3946
|
-
getDerivedStateFromProps: true,
|
|
3947
|
-
mixins: true,
|
|
3948
|
-
propTypes: true,
|
|
3949
|
-
type: true
|
|
3950
|
-
};
|
|
3951
|
-
var KNOWN_STATICS = {
|
|
3952
|
-
name: true,
|
|
3953
|
-
length: true,
|
|
3954
|
-
prototype: true,
|
|
3955
|
-
caller: true,
|
|
3956
|
-
callee: true,
|
|
3957
|
-
arguments: true,
|
|
3958
|
-
arity: true
|
|
3959
|
-
};
|
|
3960
|
-
var FORWARD_REF_STATICS = {
|
|
3961
|
-
'$$typeof': true,
|
|
3962
|
-
render: true,
|
|
3963
|
-
defaultProps: true,
|
|
3964
|
-
displayName: true,
|
|
3965
|
-
propTypes: true
|
|
3966
|
-
};
|
|
3967
|
-
var MEMO_STATICS = {
|
|
3968
|
-
'$$typeof': true,
|
|
3969
|
-
compare: true,
|
|
3970
|
-
defaultProps: true,
|
|
3971
|
-
displayName: true,
|
|
3972
|
-
propTypes: true,
|
|
3973
|
-
type: true
|
|
3974
|
-
};
|
|
3975
|
-
var TYPE_STATICS = {};
|
|
3976
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
3977
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
3978
|
-
|
|
3979
|
-
function getStatics(component) {
|
|
3980
|
-
// React v16.11 and below
|
|
3981
|
-
if (reactIs.isMemo(component)) {
|
|
3982
|
-
return MEMO_STATICS;
|
|
3983
|
-
} // React v16.12 and above
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
3987
|
-
}
|
|
3988
|
-
|
|
3989
|
-
var defineProperty = Object.defineProperty;
|
|
3990
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
3991
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
3992
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
3993
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
3994
|
-
var objectPrototype = Object.prototype;
|
|
3995
|
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
3996
|
-
if (typeof sourceComponent !== 'string') {
|
|
3997
|
-
// don't hoist over string (html) components
|
|
3998
|
-
if (objectPrototype) {
|
|
3999
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
4000
|
-
|
|
4001
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
4002
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
4003
|
-
}
|
|
4004
|
-
}
|
|
4005
|
-
|
|
4006
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
4007
|
-
|
|
4008
|
-
if (getOwnPropertySymbols) {
|
|
4009
|
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
4010
|
-
}
|
|
4011
|
-
|
|
4012
|
-
var targetStatics = getStatics(targetComponent);
|
|
4013
|
-
var sourceStatics = getStatics(sourceComponent);
|
|
4014
|
-
|
|
4015
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
4016
|
-
var key = keys[i];
|
|
4017
|
-
|
|
4018
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
4019
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
4020
|
-
|
|
4021
|
-
try {
|
|
4022
|
-
// Avoid failures from read-only properties
|
|
4023
|
-
defineProperty(targetComponent, key, descriptor);
|
|
4024
|
-
} catch (e) {}
|
|
4025
|
-
}
|
|
4026
|
-
}
|
|
4027
|
-
}
|
|
4028
|
-
|
|
4029
|
-
return targetComponent;
|
|
4123
|
+
jsxRuntime.exports = reactJsxRuntime_development;
|
|
4030
4124
|
}
|
|
4031
4125
|
|
|
4032
|
-
var
|
|
4033
|
-
|
|
4034
|
-
function y(){return (y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var v=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},g=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!reactIs$2.exports.typeOf(t)},S=Object.freeze([]),w=Object.freeze({});function E(e){return "function"==typeof e}function b(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function _(e){return e&&"string"==typeof e.styledComponentId}var N="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",C="undefined"!=typeof window&&"HTMLElement"in window,I=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),O="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function R(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t);})),e}function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw "production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(R.apply(void 0,[O[e]].concat(n)).trim())}var j=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&D(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++);},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n);}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),T=new Map,x=new Map,k=1,V=function(e){if(T.has(e))return T.get(e);for(;x.has(k);)k++;var t=k++;return "production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&D(16,""+t),T.set(e,t),x.set(t,e),t},z=function(e){return x.get(e)},B=function(e,t){t>=k&&(k=t+1),T.set(e,t),x.set(t,e);},M="style["+N+'][data-styled-version="5.3.6"]',G=new RegExp("^"+N+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r);},F=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(G);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(B(u,c),L(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0;}else r.push(i);}}},Y=function(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null},q=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(N))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(N,"active"),r.setAttribute("data-styled-version","5.3.6");var i=Y();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},H=function(){function e(e){var t=this.element=q(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}D(17);}(t),this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$=function(){function e(e){var t=this.element=q(e);this.nodes=t.childNodes,this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return !1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),W=function(){function e(e){this.rules=[],this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--;},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=C,J={isServer:!C,useCSSOMInjection:!I},X=function(){function e(e,t,n){void 0===e&&(e=w),void 0===t&&(t={}),this.options=y({},J,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&C&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(M),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(N)&&(F(e,o),o.parentNode&&o.parentNode.removeChild(o));}}(this));}e.registerId=function(e){return V(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(y({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new W(o):r?new H(o):new $(o),new j(e)));var e,t,n,r,o;},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(V(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(V(e),n);},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},t.clearRules=function(e){this.getTag().clearGroup(V(e)),this.clearNames(e);},t.clearTag=function(){this.tag=void 0;},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=z(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=N+".g"+o+'[id="'+s+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",");})),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n';}}}return r}(this)},e}(),Z=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=K(t%52)+n;return (K(t%52)+n).replace(Z,"$1-$2")}var ee=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},te=function(e){return ee(5381,e)};function ne(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(E(n)&&!_(n))return !1}return !0}var re=te("5.3.6"),oe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&ne(e),this.componentId=t,this.baseHash=ee(re,t),this.baseStyle=n,X.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else {var s=_e(this.rules,e,t,n).join(""),i=Q(ee(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a);}o.push(i),this.staticRulesId=i;}else {for(var c=this.rules.length,u=ee(this.baseHash,n.hash),l="",d=0;d<c;d++){var h=this.rules[d];if("string"==typeof h)l+=h,"production"!==process.env.NODE_ENV&&(u=ee(u,h+d));else if(h){var p=_e(h,e,t,n),f=Array.isArray(p)?p.join(""):p;u=ee(u,f+d),l+=f;}}if(l){var m=Q(u>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y);}o.push(m);}}return o.join(" ")},e}(),se=/^\s*\/\/.*$/gm,ie=[":","[",".","#"];function ae(e){var t,n,r,o,s=void 0===e?w:e,i=s.options,a=void 0===i?w:i,c=s.plugins,u=void 0===c?S:c,l=new stylis_min(a),d=[],p=function(e){function t(t){if(t)try{e(t+"}");}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t);}}}((function(e){d.push(e);})),f=function(e,r,s){return 0===r&&-1!==ie.indexOf(s[n.length])||s.match(o)?e:"."+t};function m(e,s,i,a){void 0===a&&(a="&");var c=e.replace(se,""),u=s&&i?i+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f));},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||D(15),ee(e,t.name)}),5381).toString():"",m}var ce=r$1.createContext();ce.Consumer;var le=r$1.createContext(),de=(le.Consumer,new X),he=ae();function pe(){return react.exports.useContext(ce)||de}function fe(){return react.exports.useContext(le)||he}var ye=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=he);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.toString=function(){return D(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t;}return e.prototype.getName=function(e){return void 0===e&&(e=he),this.name+e.hash},e}(),ve=/([A-Z])/,ge=/([A-Z])/g,Se=/^ms-/,we=function(e){return "-"+e.toLowerCase()};function Ee(e){return ve.test(e)?e.replace(ge,we).replace(Se,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function _e(e,n,r,o){if(Array.isArray(e)){for(var s,i=[],a=0,c=e.length;a<c;a+=1)""!==(s=_e(e[a],n,r,o))&&(Array.isArray(s)?i.push.apply(i,s):i.push(s));return i}if(be(e))return "";if(_(e))return "."+e.styledComponentId;if(E(e)){if("function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!n)return e;var u=e(n);return "production"!==process.env.NODE_ENV&&reactIs$2.exports.isElement(u)&&console.warn(b(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),_e(u,n,r,o)}var l;return e instanceof ye?r?(e.inject(r,o),e.getName(o)):e:g(e)?function e(t,n){var r,o,s=[];for(var i in t)t.hasOwnProperty(i)&&!be(t[i])&&(Array.isArray(t[i])&&t[i].isCss||E(t[i])?s.push(Ee(i)+":",t[i],";"):g(t[i])?s.push.apply(s,e(t[i],i)):s.push(Ee(i)+": "+(r=i,null==(o=t[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in unitlessKeys?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}var Ne=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return E(e)||g(e)?Ne(_e(v(S,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Ne(_e(v(e,n)))}var Ce=/invalid hook call/i,Ie=new Set,Pe=function(e,t){if("production"!==process.env.NODE_ENV){var n="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",r=console.error;try{var o=!0;console.error=function(e){if(Ce.test(e))o=!1,Ie.delete(n);else {for(var t=arguments.length,s=new Array(t>1?t-1:0),i=1;i<t;i++)s[i-1]=arguments[i];r.apply(void 0,[e].concat(s));}},react.exports.useRef(),o&&!Ie.has(n)&&(console.warn(n),Ie.add(n));}catch(e){Ce.test(e.message)&&Ie.delete(n);}finally{console.error=r;}}},Oe=function(e,t,n){return void 0===n&&(n=w),e.theme!==n.theme&&e.theme||t||n.theme},Re=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function je(e){return e.replace(Re,"-").replace(De,"")}var Te=function(e){return Q(te(e)>>>0)};function xe(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var ke=function(e){return "function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ve=function(e){return "__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ze(e,t,n){var r=e[n];ke(t)&&ke(r)?Be(r,t):e[n]=t;}function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(ke(i))for(var a in i)Ve(a)&&ze(e,i[a],a);}return e}var Me=r$1.createContext();Me.Consumer;var Fe={};function Ye(e,t,n){var o=_(e),i=!xe(e),a=t.attrs,c=void 0===a?S:a,d=t.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":je(e);Fe[n]=(Fe[n]||0)+1;var r=n+"-"+Te("5.3.6"+n+Fe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):d,p=t.displayName,v=void 0===p?function(e){return xe(e)?"styled."+e:"Styled("+b(e)+")"}(e):p,g=t.displayName&&t.componentId?je(t.displayName)+"-"+t.componentId:t.componentId||h,N=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,A=t.shouldForwardProp;o&&e.shouldForwardProp&&(A=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var C,I=new oe(n,g,o?e.componentStyle:void 0),P=I.isStatic&&0===c.length,O=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,d=e.shouldForwardProp,h=e.styledComponentId,p=e.target;"production"!==process.env.NODE_ENV&&react.exports.useDebugValue(h);var m=function(e,t,n){void 0===e&&(e=w);var r=y({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,s,i=e;for(t in E(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t];})),[r,o]}(Oe(t,react.exports.useContext(Me),a)||w,t,o),v=m[0],g=m[1],S=function(e,t,n,r){var o=pe(),s=fe(),i=t?e.generateAndInjectStyles(w,o,s):e.generateAndInjectStyles(n,o,s);return "production"!==process.env.NODE_ENV&&react.exports.useDebugValue(i),"production"!==process.env.NODE_ENV&&!t&&r&&r(i),i}(i,r,v,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),b=n,_=g.$as||t.$as||g.as||t.as||p,N=xe(_),A=g!==t?y({},t,{},g):t,C={};for(var I in A)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?C.as=A[I]:(d?d(I,isPropValid,_):!N||isPropValid(I))&&(C[I]=A[I]));return t.style&&g.style!==t.style&&(C.style=y({},t.style,{},g.style)),C.className=Array.prototype.concat(c,h,S!==h?S:null,t.className,g.className).filter(Boolean).join(" "),C.ref=b,react.exports.createElement(_,C)}(C,e,t,P)};return O.displayName=v,(C=r$1.forwardRef(O)).attrs=N,C.componentStyle=I,C.displayName=v,C.shouldForwardProp=A,C.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):S,C.styledComponentId=g,C.target=o?e.target:e,C.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return {};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),s=r&&r+"-"+(xe(e)?e:je(b(e)));return Ye(e,y({},o,{attrs:N,componentId:s}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Be({},e.defaultProps,t):t;}}),"production"!==process.env.NODE_ENV&&(Pe(v,g),C.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+s+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={};}}}(v,g)),C.toString=function(){return "."+C.styledComponentId},i&&hoistNonReactStatics_cjs(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var qe=function(e){return function e(t,r,o){if(void 0===o&&(o=w),!reactIs$2.exports.isValidElementType(r))return D(1,String(r));var s=function(){return t(r,o,Ae.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,y({},o,{},n))},s.attrs=function(n){return e(t,r,y({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},s}(Ye,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){qe[e]=qe(e);}));"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var styled = qe;
|
|
4126
|
+
var SizeVariant;
|
|
4127
|
+
(function (SizeVariant) {
|
|
4128
|
+
SizeVariant["transaction"] = "generic";
|
|
4129
|
+
SizeVariant["brand"] = "generic";
|
|
4130
|
+
SizeVariant["alternative"] = "generic";
|
|
4131
|
+
SizeVariant["outline"] = "generic";
|
|
4132
|
+
SizeVariant["ghost"] = "ghost";
|
|
4133
|
+
})(SizeVariant || (SizeVariant = {}));
|
|
4035
4134
|
|
|
4036
|
-
const Container = /*#__PURE__*/
|
|
4135
|
+
const Container = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
4037
4136
|
displayName: "atoms-buttonstyles__Container",
|
|
4038
4137
|
componentId: "sc-i4bzba-0"
|
|
4039
4138
|
})(["display:flex;align-items:center;gap:", ";.left-img-btn,.right-img-btn{display:flex;label{font-size:", ";}}"], ({
|
|
@@ -4043,7 +4142,7 @@ const Container = /*#__PURE__*/styled.div.withConfig({
|
|
|
4043
4142
|
theme,
|
|
4044
4143
|
size
|
|
4045
4144
|
}) => theme.components.button[size].icon.size);
|
|
4046
|
-
const Button$1 = /*#__PURE__*/
|
|
4145
|
+
const Button$1 = /*#__PURE__*/styled__default["default"].button.withConfig({
|
|
4047
4146
|
displayName: "atoms-buttonstyles__Button",
|
|
4048
4147
|
componentId: "sc-i4bzba-1"
|
|
4049
4148
|
})(["background-color:", ";border-radius:", ";border:1px solid ", ";box-shadow:", ";color:", ";padding:", ";label.material-symbols-sharp{color:", ";}:active:enabled{background-color:", ";border:1px solid ", ";color:", ";label.material-symbols-sharp{color:", ";}}:disabled{background-color:", ";border:1px solid ", ";color:", ";label.material-symbols-sharp{color:", ";}}:hover:enabled{background-color:", ";border:1px solid ", ";color:", ";label.material-symbols-sharp{color:", ";}}", ""], ({
|
|
@@ -4110,8 +4209,8 @@ const Button$1 = /*#__PURE__*/styled.button.withConfig({
|
|
|
4110
4209
|
variant
|
|
4111
4210
|
}) => theme.components.button[variant].icon.color.hover, ({
|
|
4112
4211
|
fullWidth
|
|
4113
|
-
}) => fullWidth &&
|
|
4114
|
-
const ButtonTitle = /*#__PURE__*/
|
|
4212
|
+
}) => fullWidth && styled.css(["width:100%;", "{justify-content:center;}"], Container));
|
|
4213
|
+
const ButtonTitle = /*#__PURE__*/styled__default["default"].label.withConfig({
|
|
4115
4214
|
displayName: "atoms-buttonstyles__ButtonTitle",
|
|
4116
4215
|
componentId: "sc-i4bzba-2"
|
|
4117
4216
|
})(["font-size:", ";font-weight:", ";letter-spacing:", ";line-height:", ";text-decoration:", ";text-indent:", ";text-transform:", ";"], ({
|
|
@@ -4156,7 +4255,7 @@ function Button({
|
|
|
4156
4255
|
type = 'button',
|
|
4157
4256
|
onClick
|
|
4158
4257
|
}) {
|
|
4159
|
-
return jsxRuntime.jsx(Button$1, {
|
|
4258
|
+
return jsxRuntime.exports.jsx(Button$1, {
|
|
4160
4259
|
"data-testid": dataTestId,
|
|
4161
4260
|
variant: variant,
|
|
4162
4261
|
size: size,
|
|
@@ -4166,23 +4265,23 @@ function Button({
|
|
|
4166
4265
|
type: type,
|
|
4167
4266
|
fullWidth: fullWidth,
|
|
4168
4267
|
onClick: () => !disabled && onClick && onClick(),
|
|
4169
|
-
children: jsxRuntime.jsxs(Container, {
|
|
4268
|
+
children: jsxRuntime.exports.jsxs(Container, {
|
|
4170
4269
|
size: size,
|
|
4171
|
-
children: [iconLeft && jsxRuntime.jsx("div", {
|
|
4270
|
+
children: [iconLeft && jsxRuntime.exports.jsx("div", {
|
|
4172
4271
|
className: "left-img-btn",
|
|
4173
4272
|
"data-testid": `left-img-btn-${iconLeft}`,
|
|
4174
|
-
children: jsxRuntime.jsx(atomsIcon.Icon, {
|
|
4273
|
+
children: jsxRuntime.exports.jsx(atomsIcon.Icon, {
|
|
4175
4274
|
dataTestId: `buttonIcon-${iconLeft}`,
|
|
4176
4275
|
icon: iconLeft
|
|
4177
4276
|
})
|
|
4178
|
-
}), title && jsxRuntime.jsx(ButtonTitle, {
|
|
4277
|
+
}), title && jsxRuntime.exports.jsx(ButtonTitle, {
|
|
4179
4278
|
size: size,
|
|
4180
4279
|
sizeVariant: SizeVariant[variant],
|
|
4181
4280
|
children: title
|
|
4182
|
-
}), iconRight && jsxRuntime.jsx("div", {
|
|
4281
|
+
}), iconRight && jsxRuntime.exports.jsx("div", {
|
|
4183
4282
|
className: "right-img-btn",
|
|
4184
4283
|
"data-testid": `left-img-btn-${iconRight}`,
|
|
4185
|
-
children: jsxRuntime.jsx(atomsIcon.Icon, {
|
|
4284
|
+
children: jsxRuntime.exports.jsx(atomsIcon.Icon, {
|
|
4186
4285
|
dataTestId: `buttonIcon-${iconRight}`,
|
|
4187
4286
|
icon: iconRight
|
|
4188
4287
|
})
|