@vxrn/vendor 1.2.47 → 1.2.48
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/package.json +1 -1
- package/react/cjs/react-compiler-runtime.development.js +9 -9
- package/react/cjs/react-compiler-runtime.production.js +4 -4
- package/react/cjs/react-compiler-runtime.profiling.js +4 -4
- package/react/cjs/react-jsx-dev-runtime.development.js +271 -320
- package/react/cjs/react-jsx-dev-runtime.production.js +4 -4
- package/react/cjs/react-jsx-dev-runtime.profiling.js +4 -4
- package/react/cjs/react-jsx-dev-runtime.react-server.development.js +277 -326
- package/react/cjs/react-jsx-dev-runtime.react-server.production.js +19 -19
- package/react/cjs/react-jsx-runtime.development.js +272 -314
- package/react/cjs/react-jsx-runtime.production.js +16 -16
- package/react/cjs/react-jsx-runtime.profiling.js +16 -16
- package/react/cjs/react-jsx-runtime.react-server.development.js +277 -326
- package/react/cjs/react-jsx-runtime.react-server.production.js +19 -19
- package/react/cjs/react.development.js +657 -734
- package/react/cjs/react.production.js +258 -301
- package/react/cjs/react.react-server.development.js +475 -535
- package/react/cjs/react.react-server.production.js +195 -229
- package/react/compiler-runtime.js +9 -9
- package/react/index.js +3 -3
- package/react/jsx-dev-runtime.js +3 -3
- package/react/jsx-dev-runtime.react-server.js +3 -3
- package/react/jsx-runtime.js +3 -3
- package/react/jsx-runtime.react-server.js +3 -3
- package/react/react.react-server.js +3 -3
- package/react-dom/cjs/react-dom-client.development.js +10301 -12280
- package/react-dom/cjs/react-dom-client.production.js +6275 -7412
- package/react-dom/cjs/react-dom-profiling.development.js +10463 -12479
- package/react-dom/cjs/react-dom-profiling.profiling.js +6611 -7839
- package/react-dom/cjs/react-dom-server-legacy.browser.development.js +4015 -4567
- package/react-dom/cjs/react-dom-server-legacy.browser.production.js +2598 -2934
- package/react-dom/cjs/react-dom-server-legacy.node.development.js +4015 -4567
- package/react-dom/cjs/react-dom-server-legacy.node.production.js +2627 -2961
- package/react-dom/cjs/react-dom-server.browser.development.js +4132 -4771
- package/react-dom/cjs/react-dom-server.browser.production.js +2725 -3092
- package/react-dom/cjs/react-dom-server.bun.development.js +4000 -4466
- package/react-dom/cjs/react-dom-server.bun.production.js +2629 -2967
- package/react-dom/cjs/react-dom-server.edge.development.js +4137 -4780
- package/react-dom/cjs/react-dom-server.edge.production.js +2760 -3123
- package/react-dom/cjs/react-dom-server.node.development.js +4102 -4707
- package/react-dom/cjs/react-dom-server.node.production.js +2739 -3092
- package/react-dom/cjs/react-dom-test-utils.development.js +9 -9
- package/react-dom/cjs/react-dom-test-utils.production.js +7 -7
- package/react-dom/cjs/react-dom.development.js +185 -225
- package/react-dom/cjs/react-dom.production.js +88 -111
- package/react-dom/cjs/react-dom.react-server.development.js +145 -180
- package/react-dom/cjs/react-dom.react-server.production.js +60 -79
- package/react-dom/client.js +8 -8
- package/react-dom/client.react-server.js +2 -4
- package/react-dom/index.js +8 -8
- package/react-dom/profiling.js +8 -8
- package/react-dom/profiling.react-server.js +2 -4
- package/react-dom/react-dom.react-server.js +3 -3
- package/react-dom/server.browser.js +11 -11
- package/react-dom/server.bun.js +12 -12
- package/react-dom/server.edge.js +12 -12
- package/react-dom/server.js +2 -2
- package/react-dom/server.node.js +11 -11
- package/react-dom/server.react-server.js +2 -4
- package/react-dom/static.browser.js +7 -7
- package/react-dom/static.edge.js +7 -7
- package/react-dom/static.js +2 -2
- package/react-dom/static.node.js +7 -7
- package/react-dom/static.react-server.js +2 -4
- package/react-dom/test-utils.js +3 -3
|
@@ -8,165 +8,157 @@
|
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
var REACT_ELEMENT_TYPE = Symbol.for(
|
|
13
|
-
REACT_PORTAL_TYPE = Symbol.for(
|
|
14
|
-
REACT_FRAGMENT_TYPE = Symbol.for(
|
|
15
|
-
REACT_STRICT_MODE_TYPE = Symbol.for(
|
|
16
|
-
REACT_PROFILER_TYPE = Symbol.for(
|
|
17
|
-
REACT_CONSUMER_TYPE = Symbol.for(
|
|
18
|
-
REACT_CONTEXT_TYPE = Symbol.for(
|
|
19
|
-
REACT_FORWARD_REF_TYPE = Symbol.for(
|
|
20
|
-
REACT_SUSPENSE_TYPE = Symbol.for(
|
|
21
|
-
REACT_MEMO_TYPE = Symbol.for(
|
|
22
|
-
REACT_LAZY_TYPE = Symbol.for(
|
|
23
|
-
MAYBE_ITERATOR_SYMBOL = Symbol.iterator
|
|
11
|
+
'use strict'
|
|
12
|
+
var REACT_ELEMENT_TYPE = Symbol.for('react.transitional.element'),
|
|
13
|
+
REACT_PORTAL_TYPE = Symbol.for('react.portal'),
|
|
14
|
+
REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'),
|
|
15
|
+
REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'),
|
|
16
|
+
REACT_PROFILER_TYPE = Symbol.for('react.profiler'),
|
|
17
|
+
REACT_CONSUMER_TYPE = Symbol.for('react.consumer'),
|
|
18
|
+
REACT_CONTEXT_TYPE = Symbol.for('react.context'),
|
|
19
|
+
REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'),
|
|
20
|
+
REACT_SUSPENSE_TYPE = Symbol.for('react.suspense'),
|
|
21
|
+
REACT_MEMO_TYPE = Symbol.for('react.memo'),
|
|
22
|
+
REACT_LAZY_TYPE = Symbol.for('react.lazy'),
|
|
23
|
+
MAYBE_ITERATOR_SYMBOL = Symbol.iterator
|
|
24
24
|
function getIteratorFn(maybeIterable) {
|
|
25
|
-
if (null === maybeIterable ||
|
|
25
|
+
if (null === maybeIterable || 'object' !== typeof maybeIterable) return null
|
|
26
26
|
maybeIterable =
|
|
27
27
|
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
|
28
|
-
maybeIterable[
|
|
29
|
-
return
|
|
28
|
+
maybeIterable['@@iterator']
|
|
29
|
+
return 'function' === typeof maybeIterable ? maybeIterable : null
|
|
30
30
|
}
|
|
31
31
|
var ReactNoopUpdateQueue = {
|
|
32
32
|
isMounted: function () {
|
|
33
|
-
return !1
|
|
33
|
+
return !1
|
|
34
34
|
},
|
|
35
35
|
enqueueForceUpdate: function () {},
|
|
36
36
|
enqueueReplaceState: function () {},
|
|
37
|
-
enqueueSetState: function () {}
|
|
37
|
+
enqueueSetState: function () {},
|
|
38
38
|
},
|
|
39
39
|
assign = Object.assign,
|
|
40
|
-
emptyObject = {}
|
|
40
|
+
emptyObject = {}
|
|
41
41
|
function Component(props, context, updater) {
|
|
42
|
-
this.props = props
|
|
43
|
-
this.context = context
|
|
44
|
-
this.refs = emptyObject
|
|
45
|
-
this.updater = updater || ReactNoopUpdateQueue
|
|
42
|
+
this.props = props
|
|
43
|
+
this.context = context
|
|
44
|
+
this.refs = emptyObject
|
|
45
|
+
this.updater = updater || ReactNoopUpdateQueue
|
|
46
46
|
}
|
|
47
|
-
Component.prototype.isReactComponent = {}
|
|
47
|
+
Component.prototype.isReactComponent = {}
|
|
48
48
|
Component.prototype.setState = function (partialState, callback) {
|
|
49
49
|
if (
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
'object' !== typeof partialState &&
|
|
51
|
+
'function' !== typeof partialState &&
|
|
52
52
|
null != partialState
|
|
53
53
|
)
|
|
54
54
|
throw Error(
|
|
55
|
-
|
|
56
|
-
)
|
|
57
|
-
this.updater.enqueueSetState(this, partialState, callback,
|
|
58
|
-
}
|
|
55
|
+
'takes an object of state variables to update or a function which returns an object of state variables.'
|
|
56
|
+
)
|
|
57
|
+
this.updater.enqueueSetState(this, partialState, callback, 'setState')
|
|
58
|
+
}
|
|
59
59
|
Component.prototype.forceUpdate = function (callback) {
|
|
60
|
-
this.updater.enqueueForceUpdate(this, callback,
|
|
61
|
-
}
|
|
60
|
+
this.updater.enqueueForceUpdate(this, callback, 'forceUpdate')
|
|
61
|
+
}
|
|
62
62
|
function ComponentDummy() {}
|
|
63
|
-
ComponentDummy.prototype = Component.prototype
|
|
63
|
+
ComponentDummy.prototype = Component.prototype
|
|
64
64
|
function PureComponent(props, context, updater) {
|
|
65
|
-
this.props = props
|
|
66
|
-
this.context = context
|
|
67
|
-
this.refs = emptyObject
|
|
68
|
-
this.updater = updater || ReactNoopUpdateQueue
|
|
69
|
-
}
|
|
70
|
-
var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy())
|
|
71
|
-
pureComponentPrototype.constructor = PureComponent
|
|
72
|
-
assign(pureComponentPrototype, Component.prototype)
|
|
73
|
-
pureComponentPrototype.isPureReactComponent = !0
|
|
65
|
+
this.props = props
|
|
66
|
+
this.context = context
|
|
67
|
+
this.refs = emptyObject
|
|
68
|
+
this.updater = updater || ReactNoopUpdateQueue
|
|
69
|
+
}
|
|
70
|
+
var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy())
|
|
71
|
+
pureComponentPrototype.constructor = PureComponent
|
|
72
|
+
assign(pureComponentPrototype, Component.prototype)
|
|
73
|
+
pureComponentPrototype.isPureReactComponent = !0
|
|
74
74
|
var isArrayImpl = Array.isArray,
|
|
75
75
|
ReactSharedInternals = { H: null, A: null, T: null, S: null },
|
|
76
|
-
hasOwnProperty = Object.prototype.hasOwnProperty
|
|
76
|
+
hasOwnProperty = Object.prototype.hasOwnProperty
|
|
77
77
|
function ReactElement(type, key, self, source, owner, props) {
|
|
78
|
-
self = props.ref
|
|
78
|
+
self = props.ref
|
|
79
79
|
return {
|
|
80
80
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
81
81
|
type: type,
|
|
82
82
|
key: key,
|
|
83
83
|
ref: void 0 !== self ? self : null,
|
|
84
|
-
props: props
|
|
85
|
-
}
|
|
84
|
+
props: props,
|
|
85
|
+
}
|
|
86
86
|
}
|
|
87
87
|
function cloneAndReplaceKey(oldElement, newKey) {
|
|
88
|
-
return ReactElement(
|
|
89
|
-
oldElement.type,
|
|
90
|
-
newKey,
|
|
91
|
-
void 0,
|
|
92
|
-
void 0,
|
|
93
|
-
void 0,
|
|
94
|
-
oldElement.props
|
|
95
|
-
);
|
|
88
|
+
return ReactElement(oldElement.type, newKey, void 0, void 0, void 0, oldElement.props)
|
|
96
89
|
}
|
|
97
90
|
function isValidElement(object) {
|
|
98
91
|
return (
|
|
99
|
-
|
|
92
|
+
'object' === typeof object &&
|
|
100
93
|
null !== object &&
|
|
101
94
|
object.$$typeof === REACT_ELEMENT_TYPE
|
|
102
|
-
)
|
|
95
|
+
)
|
|
103
96
|
}
|
|
104
97
|
function escape(key) {
|
|
105
|
-
var escaperLookup = {
|
|
98
|
+
var escaperLookup = { '=': '=0', ':': '=2' }
|
|
106
99
|
return (
|
|
107
|
-
|
|
100
|
+
'$' +
|
|
108
101
|
key.replace(/[=:]/g, function (match) {
|
|
109
|
-
return escaperLookup[match]
|
|
102
|
+
return escaperLookup[match]
|
|
110
103
|
})
|
|
111
|
-
)
|
|
104
|
+
)
|
|
112
105
|
}
|
|
113
|
-
var userProvidedKeyEscapeRegex = /\/+/g
|
|
106
|
+
var userProvidedKeyEscapeRegex = /\/+/g
|
|
114
107
|
function getElementKey(element, index) {
|
|
115
|
-
return
|
|
116
|
-
? escape(
|
|
117
|
-
: index.toString(36)
|
|
108
|
+
return 'object' === typeof element && null !== element && null != element.key
|
|
109
|
+
? escape('' + element.key)
|
|
110
|
+
: index.toString(36)
|
|
118
111
|
}
|
|
119
112
|
function noop$1() {}
|
|
120
113
|
function resolveThenable(thenable) {
|
|
121
114
|
switch (thenable.status) {
|
|
122
|
-
case
|
|
123
|
-
return thenable.value
|
|
124
|
-
case
|
|
125
|
-
throw thenable.reason
|
|
115
|
+
case 'fulfilled':
|
|
116
|
+
return thenable.value
|
|
117
|
+
case 'rejected':
|
|
118
|
+
throw thenable.reason
|
|
126
119
|
default:
|
|
127
120
|
switch (
|
|
128
|
-
(
|
|
121
|
+
('string' === typeof thenable.status
|
|
129
122
|
? thenable.then(noop$1, noop$1)
|
|
130
|
-
: ((thenable.status =
|
|
123
|
+
: ((thenable.status = 'pending'),
|
|
131
124
|
thenable.then(
|
|
132
125
|
function (fulfilledValue) {
|
|
133
|
-
|
|
134
|
-
((thenable.status =
|
|
135
|
-
(thenable.value = fulfilledValue));
|
|
126
|
+
'pending' === thenable.status &&
|
|
127
|
+
((thenable.status = 'fulfilled'), (thenable.value = fulfilledValue))
|
|
136
128
|
},
|
|
137
129
|
function (error) {
|
|
138
|
-
|
|
139
|
-
((thenable.status =
|
|
130
|
+
'pending' === thenable.status &&
|
|
131
|
+
((thenable.status = 'rejected'), (thenable.reason = error))
|
|
140
132
|
}
|
|
141
133
|
)),
|
|
142
134
|
thenable.status)
|
|
143
135
|
) {
|
|
144
|
-
case
|
|
145
|
-
return thenable.value
|
|
146
|
-
case
|
|
147
|
-
throw thenable.reason
|
|
136
|
+
case 'fulfilled':
|
|
137
|
+
return thenable.value
|
|
138
|
+
case 'rejected':
|
|
139
|
+
throw thenable.reason
|
|
148
140
|
}
|
|
149
141
|
}
|
|
150
|
-
throw thenable
|
|
142
|
+
throw thenable
|
|
151
143
|
}
|
|
152
144
|
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
153
|
-
var type = typeof children
|
|
154
|
-
if (
|
|
155
|
-
var invokeCallback = !1
|
|
156
|
-
if (null === children) invokeCallback = !0
|
|
145
|
+
var type = typeof children
|
|
146
|
+
if ('undefined' === type || 'boolean' === type) children = null
|
|
147
|
+
var invokeCallback = !1
|
|
148
|
+
if (null === children) invokeCallback = !0
|
|
157
149
|
else
|
|
158
150
|
switch (type) {
|
|
159
|
-
case
|
|
160
|
-
case
|
|
161
|
-
case
|
|
162
|
-
invokeCallback = !0
|
|
163
|
-
break
|
|
164
|
-
case
|
|
151
|
+
case 'bigint':
|
|
152
|
+
case 'string':
|
|
153
|
+
case 'number':
|
|
154
|
+
invokeCallback = !0
|
|
155
|
+
break
|
|
156
|
+
case 'object':
|
|
165
157
|
switch (children.$$typeof) {
|
|
166
158
|
case REACT_ELEMENT_TYPE:
|
|
167
159
|
case REACT_PORTAL_TYPE:
|
|
168
|
-
invokeCallback = !0
|
|
169
|
-
break
|
|
160
|
+
invokeCallback = !0
|
|
161
|
+
break
|
|
170
162
|
case REACT_LAZY_TYPE:
|
|
171
163
|
return (
|
|
172
164
|
(invokeCallback = children._init),
|
|
@@ -177,144 +169,118 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
|
177
169
|
nameSoFar,
|
|
178
170
|
callback
|
|
179
171
|
)
|
|
180
|
-
)
|
|
172
|
+
)
|
|
181
173
|
}
|
|
182
174
|
}
|
|
183
175
|
if (invokeCallback)
|
|
184
176
|
return (
|
|
185
177
|
(callback = callback(children)),
|
|
186
|
-
(invokeCallback =
|
|
187
|
-
"" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
|
|
178
|
+
(invokeCallback = '' === nameSoFar ? '.' + getElementKey(children, 0) : nameSoFar),
|
|
188
179
|
isArrayImpl(callback)
|
|
189
|
-
? ((escapedPrefix =
|
|
180
|
+
? ((escapedPrefix = ''),
|
|
190
181
|
null != invokeCallback &&
|
|
191
182
|
(escapedPrefix =
|
|
192
|
-
invokeCallback.replace(userProvidedKeyEscapeRegex,
|
|
193
|
-
mapIntoArray(callback, array, escapedPrefix,
|
|
194
|
-
return c
|
|
183
|
+
invokeCallback.replace(userProvidedKeyEscapeRegex, '$&/') + '/'),
|
|
184
|
+
mapIntoArray(callback, array, escapedPrefix, '', function (c) {
|
|
185
|
+
return c
|
|
195
186
|
}))
|
|
196
187
|
: null != callback &&
|
|
197
188
|
(isValidElement(callback) &&
|
|
198
189
|
(callback = cloneAndReplaceKey(
|
|
199
190
|
callback,
|
|
200
191
|
escapedPrefix +
|
|
201
|
-
(null == callback.key ||
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
userProvidedKeyEscapeRegex,
|
|
206
|
-
"$&/"
|
|
207
|
-
) + "/") +
|
|
192
|
+
(null == callback.key || (children && children.key === callback.key)
|
|
193
|
+
? ''
|
|
194
|
+
: ('' + callback.key).replace(userProvidedKeyEscapeRegex, '$&/') +
|
|
195
|
+
'/') +
|
|
208
196
|
invokeCallback
|
|
209
197
|
)),
|
|
210
198
|
array.push(callback)),
|
|
211
199
|
1
|
|
212
|
-
)
|
|
213
|
-
invokeCallback = 0
|
|
214
|
-
var nextNamePrefix =
|
|
200
|
+
)
|
|
201
|
+
invokeCallback = 0
|
|
202
|
+
var nextNamePrefix = '' === nameSoFar ? '.' : nameSoFar + ':'
|
|
215
203
|
if (isArrayImpl(children))
|
|
216
204
|
for (var i = 0; i < children.length; i++)
|
|
217
|
-
(nameSoFar = children[i]),
|
|
205
|
+
((nameSoFar = children[i]),
|
|
218
206
|
(type = nextNamePrefix + getElementKey(nameSoFar, i)),
|
|
219
|
-
(invokeCallback += mapIntoArray(
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
type,
|
|
224
|
-
callback
|
|
225
|
-
));
|
|
226
|
-
else if (((i = getIteratorFn(children)), "function" === typeof i))
|
|
227
|
-
for (
|
|
228
|
-
children = i.call(children), i = 0;
|
|
229
|
-
!(nameSoFar = children.next()).done;
|
|
230
|
-
|
|
231
|
-
)
|
|
232
|
-
(nameSoFar = nameSoFar.value),
|
|
207
|
+
(invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback)))
|
|
208
|
+
else if (((i = getIteratorFn(children)), 'function' === typeof i))
|
|
209
|
+
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
210
|
+
((nameSoFar = nameSoFar.value),
|
|
233
211
|
(type = nextNamePrefix + getElementKey(nameSoFar, i++)),
|
|
234
|
-
(invokeCallback += mapIntoArray(
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
escapedPrefix,
|
|
238
|
-
type,
|
|
239
|
-
callback
|
|
240
|
-
));
|
|
241
|
-
else if ("object" === type) {
|
|
242
|
-
if ("function" === typeof children.then)
|
|
212
|
+
(invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback)))
|
|
213
|
+
else if ('object' === type) {
|
|
214
|
+
if ('function' === typeof children.then)
|
|
243
215
|
return mapIntoArray(
|
|
244
216
|
resolveThenable(children),
|
|
245
217
|
array,
|
|
246
218
|
escapedPrefix,
|
|
247
219
|
nameSoFar,
|
|
248
220
|
callback
|
|
249
|
-
)
|
|
250
|
-
array = String(children)
|
|
221
|
+
)
|
|
222
|
+
array = String(children)
|
|
251
223
|
throw Error(
|
|
252
|
-
|
|
253
|
-
(
|
|
254
|
-
?
|
|
224
|
+
'Objects are not valid as a React child (found: ' +
|
|
225
|
+
('[object Object]' === array
|
|
226
|
+
? 'object with keys {' + Object.keys(children).join(', ') + '}'
|
|
255
227
|
: array) +
|
|
256
|
-
|
|
257
|
-
)
|
|
228
|
+
'). If you meant to render a collection of children, use an array instead.'
|
|
229
|
+
)
|
|
258
230
|
}
|
|
259
|
-
return invokeCallback
|
|
231
|
+
return invokeCallback
|
|
260
232
|
}
|
|
261
233
|
function mapChildren(children, func, context) {
|
|
262
|
-
if (null == children) return children
|
|
234
|
+
if (null == children) return children
|
|
263
235
|
var result = [],
|
|
264
|
-
count = 0
|
|
265
|
-
mapIntoArray(children, result,
|
|
266
|
-
return func.call(context, child, count++)
|
|
267
|
-
})
|
|
268
|
-
return result
|
|
236
|
+
count = 0
|
|
237
|
+
mapIntoArray(children, result, '', '', function (child) {
|
|
238
|
+
return func.call(context, child, count++)
|
|
239
|
+
})
|
|
240
|
+
return result
|
|
269
241
|
}
|
|
270
242
|
function lazyInitializer(payload) {
|
|
271
243
|
if (-1 === payload._status) {
|
|
272
|
-
var ctor = payload._result
|
|
273
|
-
ctor = ctor()
|
|
244
|
+
var ctor = payload._result
|
|
245
|
+
ctor = ctor()
|
|
274
246
|
ctor.then(
|
|
275
247
|
function (moduleObject) {
|
|
276
248
|
if (0 === payload._status || -1 === payload._status)
|
|
277
|
-
(payload._status = 1), (payload._result = moduleObject)
|
|
249
|
+
((payload._status = 1), (payload._result = moduleObject))
|
|
278
250
|
},
|
|
279
251
|
function (error) {
|
|
280
252
|
if (0 === payload._status || -1 === payload._status)
|
|
281
|
-
(payload._status = 2), (payload._result = error)
|
|
253
|
+
((payload._status = 2), (payload._result = error))
|
|
282
254
|
}
|
|
283
|
-
)
|
|
284
|
-
|
|
255
|
+
)
|
|
256
|
+
;-1 === payload._status && ((payload._status = 0), (payload._result = ctor))
|
|
285
257
|
}
|
|
286
|
-
if (1 === payload._status) return payload._result.default
|
|
287
|
-
throw payload._result
|
|
258
|
+
if (1 === payload._status) return payload._result.default
|
|
259
|
+
throw payload._result
|
|
288
260
|
}
|
|
289
261
|
var reportGlobalError =
|
|
290
|
-
|
|
262
|
+
'function' === typeof reportError
|
|
291
263
|
? reportError
|
|
292
264
|
: function (error) {
|
|
293
|
-
if (
|
|
294
|
-
|
|
295
|
-
"function" === typeof window.ErrorEvent
|
|
296
|
-
) {
|
|
297
|
-
var event = new window.ErrorEvent("error", {
|
|
265
|
+
if ('object' === typeof window && 'function' === typeof window.ErrorEvent) {
|
|
266
|
+
var event = new window.ErrorEvent('error', {
|
|
298
267
|
bubbles: !0,
|
|
299
268
|
cancelable: !0,
|
|
300
269
|
message:
|
|
301
|
-
|
|
270
|
+
'object' === typeof error &&
|
|
302
271
|
null !== error &&
|
|
303
|
-
|
|
272
|
+
'string' === typeof error.message
|
|
304
273
|
? String(error.message)
|
|
305
274
|
: String(error),
|
|
306
|
-
error: error
|
|
307
|
-
})
|
|
308
|
-
if (!window.dispatchEvent(event)) return
|
|
309
|
-
} else if (
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
) {
|
|
313
|
-
process.emit("uncaughtException", error);
|
|
314
|
-
return;
|
|
275
|
+
error: error,
|
|
276
|
+
})
|
|
277
|
+
if (!window.dispatchEvent(event)) return
|
|
278
|
+
} else if ('object' === typeof process && 'function' === typeof process.emit) {
|
|
279
|
+
process.emit('uncaughtException', error)
|
|
280
|
+
return
|
|
315
281
|
}
|
|
316
|
-
console.error(error)
|
|
317
|
-
}
|
|
282
|
+
console.error(error)
|
|
283
|
+
}
|
|
318
284
|
function noop() {}
|
|
319
285
|
exports.Children = {
|
|
320
286
|
map: mapChildren,
|
|
@@ -322,76 +288,72 @@ exports.Children = {
|
|
|
322
288
|
mapChildren(
|
|
323
289
|
children,
|
|
324
290
|
function () {
|
|
325
|
-
forEachFunc.apply(this, arguments)
|
|
291
|
+
forEachFunc.apply(this, arguments)
|
|
326
292
|
},
|
|
327
293
|
forEachContext
|
|
328
|
-
)
|
|
294
|
+
)
|
|
329
295
|
},
|
|
330
296
|
count: function (children) {
|
|
331
|
-
var n = 0
|
|
297
|
+
var n = 0
|
|
332
298
|
mapChildren(children, function () {
|
|
333
|
-
n
|
|
334
|
-
})
|
|
335
|
-
return n
|
|
299
|
+
n++
|
|
300
|
+
})
|
|
301
|
+
return n
|
|
336
302
|
},
|
|
337
303
|
toArray: function (children) {
|
|
338
304
|
return (
|
|
339
305
|
mapChildren(children, function (child) {
|
|
340
|
-
return child
|
|
306
|
+
return child
|
|
341
307
|
}) || []
|
|
342
|
-
)
|
|
308
|
+
)
|
|
343
309
|
},
|
|
344
310
|
only: function (children) {
|
|
345
311
|
if (!isValidElement(children))
|
|
346
|
-
throw Error(
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
exports.
|
|
353
|
-
exports.
|
|
354
|
-
exports.
|
|
355
|
-
exports.
|
|
356
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
357
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
312
|
+
throw Error('React.Children.only expected to receive a single React element child.')
|
|
313
|
+
return children
|
|
314
|
+
},
|
|
315
|
+
}
|
|
316
|
+
exports.Component = Component
|
|
317
|
+
exports.Fragment = REACT_FRAGMENT_TYPE
|
|
318
|
+
exports.Profiler = REACT_PROFILER_TYPE
|
|
319
|
+
exports.PureComponent = PureComponent
|
|
320
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE
|
|
321
|
+
exports.Suspense = REACT_SUSPENSE_TYPE
|
|
358
322
|
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
359
|
-
ReactSharedInternals
|
|
323
|
+
ReactSharedInternals
|
|
360
324
|
exports.act = function () {
|
|
361
|
-
throw Error(
|
|
362
|
-
}
|
|
325
|
+
throw Error('act(...) is not supported in production builds of React.')
|
|
326
|
+
}
|
|
363
327
|
exports.cache = function (fn) {
|
|
364
328
|
return function () {
|
|
365
|
-
return fn.apply(null, arguments)
|
|
366
|
-
}
|
|
367
|
-
}
|
|
329
|
+
return fn.apply(null, arguments)
|
|
330
|
+
}
|
|
331
|
+
}
|
|
368
332
|
exports.cloneElement = function (element, config, children) {
|
|
369
333
|
if (null === element || void 0 === element)
|
|
370
|
-
throw Error(
|
|
371
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
372
|
-
);
|
|
334
|
+
throw Error('The argument must be a React element, but you passed ' + element + '.')
|
|
373
335
|
var props = assign({}, element.props),
|
|
374
336
|
key = element.key,
|
|
375
|
-
owner = void 0
|
|
337
|
+
owner = void 0
|
|
376
338
|
if (null != config)
|
|
377
339
|
for (propName in (void 0 !== config.ref && (owner = void 0),
|
|
378
|
-
void 0 !== config.key && (key =
|
|
340
|
+
void 0 !== config.key && (key = '' + config.key),
|
|
379
341
|
config))
|
|
380
342
|
!hasOwnProperty.call(config, propName) ||
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
(
|
|
385
|
-
(props[propName] = config[propName])
|
|
386
|
-
var propName = arguments.length - 2
|
|
387
|
-
if (1 === propName) props.children = children
|
|
343
|
+
'key' === propName ||
|
|
344
|
+
'__self' === propName ||
|
|
345
|
+
'__source' === propName ||
|
|
346
|
+
('ref' === propName && void 0 === config.ref) ||
|
|
347
|
+
(props[propName] = config[propName])
|
|
348
|
+
var propName = arguments.length - 2
|
|
349
|
+
if (1 === propName) props.children = children
|
|
388
350
|
else if (1 < propName) {
|
|
389
351
|
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
390
|
-
childArray[i] = arguments[i + 2]
|
|
391
|
-
props.children = childArray
|
|
352
|
+
childArray[i] = arguments[i + 2]
|
|
353
|
+
props.children = childArray
|
|
392
354
|
}
|
|
393
|
-
return ReactElement(element.type, key, void 0, void 0, owner, props)
|
|
394
|
-
}
|
|
355
|
+
return ReactElement(element.type, key, void 0, void 0, owner, props)
|
|
356
|
+
}
|
|
395
357
|
exports.createContext = function (defaultValue) {
|
|
396
358
|
defaultValue = {
|
|
397
359
|
$$typeof: REACT_CONTEXT_TYPE,
|
|
@@ -399,140 +361,135 @@ exports.createContext = function (defaultValue) {
|
|
|
399
361
|
_currentValue2: defaultValue,
|
|
400
362
|
_threadCount: 0,
|
|
401
363
|
Provider: null,
|
|
402
|
-
Consumer: null
|
|
403
|
-
}
|
|
404
|
-
defaultValue.Provider = defaultValue
|
|
364
|
+
Consumer: null,
|
|
365
|
+
}
|
|
366
|
+
defaultValue.Provider = defaultValue
|
|
405
367
|
defaultValue.Consumer = {
|
|
406
368
|
$$typeof: REACT_CONSUMER_TYPE,
|
|
407
|
-
_context: defaultValue
|
|
408
|
-
}
|
|
409
|
-
return defaultValue
|
|
410
|
-
}
|
|
369
|
+
_context: defaultValue,
|
|
370
|
+
}
|
|
371
|
+
return defaultValue
|
|
372
|
+
}
|
|
411
373
|
exports.createElement = function (type, config, children) {
|
|
412
374
|
var propName,
|
|
413
375
|
props = {},
|
|
414
|
-
key = null
|
|
376
|
+
key = null
|
|
415
377
|
if (null != config)
|
|
416
|
-
for (propName in (void 0 !== config.key && (key =
|
|
378
|
+
for (propName in (void 0 !== config.key && (key = '' + config.key), config))
|
|
417
379
|
hasOwnProperty.call(config, propName) &&
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
(props[propName] = config[propName])
|
|
422
|
-
var childrenLength = arguments.length - 2
|
|
423
|
-
if (1 === childrenLength) props.children = children
|
|
380
|
+
'key' !== propName &&
|
|
381
|
+
'__self' !== propName &&
|
|
382
|
+
'__source' !== propName &&
|
|
383
|
+
(props[propName] = config[propName])
|
|
384
|
+
var childrenLength = arguments.length - 2
|
|
385
|
+
if (1 === childrenLength) props.children = children
|
|
424
386
|
else if (1 < childrenLength) {
|
|
425
387
|
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
426
|
-
childArray[i] = arguments[i + 2]
|
|
427
|
-
props.children = childArray
|
|
388
|
+
childArray[i] = arguments[i + 2]
|
|
389
|
+
props.children = childArray
|
|
428
390
|
}
|
|
429
391
|
if (type && type.defaultProps)
|
|
430
392
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
431
|
-
void 0 === props[propName] &&
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
};
|
|
393
|
+
void 0 === props[propName] && (props[propName] = childrenLength[propName])
|
|
394
|
+
return ReactElement(type, key, void 0, void 0, null, props)
|
|
395
|
+
}
|
|
435
396
|
exports.createRef = function () {
|
|
436
|
-
return { current: null }
|
|
437
|
-
}
|
|
397
|
+
return { current: null }
|
|
398
|
+
}
|
|
438
399
|
exports.forwardRef = function (render) {
|
|
439
|
-
return { $$typeof: REACT_FORWARD_REF_TYPE, render: render }
|
|
440
|
-
}
|
|
441
|
-
exports.isValidElement = isValidElement
|
|
400
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render: render }
|
|
401
|
+
}
|
|
402
|
+
exports.isValidElement = isValidElement
|
|
442
403
|
exports.lazy = function (ctor) {
|
|
443
404
|
return {
|
|
444
405
|
$$typeof: REACT_LAZY_TYPE,
|
|
445
406
|
_payload: { _status: -1, _result: ctor },
|
|
446
|
-
_init: lazyInitializer
|
|
447
|
-
}
|
|
448
|
-
}
|
|
407
|
+
_init: lazyInitializer,
|
|
408
|
+
}
|
|
409
|
+
}
|
|
449
410
|
exports.memo = function (type, compare) {
|
|
450
411
|
return {
|
|
451
412
|
$$typeof: REACT_MEMO_TYPE,
|
|
452
413
|
type: type,
|
|
453
|
-
compare: void 0 === compare ? null : compare
|
|
454
|
-
}
|
|
455
|
-
}
|
|
414
|
+
compare: void 0 === compare ? null : compare,
|
|
415
|
+
}
|
|
416
|
+
}
|
|
456
417
|
exports.startTransition = function (scope) {
|
|
457
418
|
var prevTransition = ReactSharedInternals.T,
|
|
458
|
-
currentTransition = {}
|
|
459
|
-
ReactSharedInternals.T = currentTransition
|
|
419
|
+
currentTransition = {}
|
|
420
|
+
ReactSharedInternals.T = currentTransition
|
|
460
421
|
try {
|
|
461
422
|
var returnValue = scope(),
|
|
462
|
-
onStartTransitionFinish = ReactSharedInternals.S
|
|
423
|
+
onStartTransitionFinish = ReactSharedInternals.S
|
|
463
424
|
null !== onStartTransitionFinish &&
|
|
464
|
-
onStartTransitionFinish(currentTransition, returnValue)
|
|
465
|
-
|
|
425
|
+
onStartTransitionFinish(currentTransition, returnValue)
|
|
426
|
+
'object' === typeof returnValue &&
|
|
466
427
|
null !== returnValue &&
|
|
467
|
-
|
|
468
|
-
returnValue.then(noop, reportGlobalError)
|
|
428
|
+
'function' === typeof returnValue.then &&
|
|
429
|
+
returnValue.then(noop, reportGlobalError)
|
|
469
430
|
} catch (error) {
|
|
470
|
-
reportGlobalError(error)
|
|
431
|
+
reportGlobalError(error)
|
|
471
432
|
} finally {
|
|
472
|
-
ReactSharedInternals.T = prevTransition
|
|
433
|
+
ReactSharedInternals.T = prevTransition
|
|
473
434
|
}
|
|
474
|
-
}
|
|
435
|
+
}
|
|
475
436
|
exports.unstable_useCacheRefresh = function () {
|
|
476
|
-
return ReactSharedInternals.H.useCacheRefresh()
|
|
477
|
-
}
|
|
437
|
+
return ReactSharedInternals.H.useCacheRefresh()
|
|
438
|
+
}
|
|
478
439
|
exports.use = function (usable) {
|
|
479
|
-
return ReactSharedInternals.H.use(usable)
|
|
480
|
-
}
|
|
440
|
+
return ReactSharedInternals.H.use(usable)
|
|
441
|
+
}
|
|
481
442
|
exports.useActionState = function (action, initialState, permalink) {
|
|
482
|
-
return ReactSharedInternals.H.useActionState(action, initialState, permalink)
|
|
483
|
-
}
|
|
443
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink)
|
|
444
|
+
}
|
|
484
445
|
exports.useCallback = function (callback, deps) {
|
|
485
|
-
return ReactSharedInternals.H.useCallback(callback, deps)
|
|
486
|
-
}
|
|
446
|
+
return ReactSharedInternals.H.useCallback(callback, deps)
|
|
447
|
+
}
|
|
487
448
|
exports.useContext = function (Context) {
|
|
488
|
-
return ReactSharedInternals.H.useContext(Context)
|
|
489
|
-
}
|
|
490
|
-
exports.useDebugValue = function () {}
|
|
449
|
+
return ReactSharedInternals.H.useContext(Context)
|
|
450
|
+
}
|
|
451
|
+
exports.useDebugValue = function () {}
|
|
491
452
|
exports.useDeferredValue = function (value, initialValue) {
|
|
492
|
-
return ReactSharedInternals.H.useDeferredValue(value, initialValue)
|
|
493
|
-
}
|
|
453
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue)
|
|
454
|
+
}
|
|
494
455
|
exports.useEffect = function (create, deps) {
|
|
495
|
-
return ReactSharedInternals.H.useEffect(create, deps)
|
|
496
|
-
}
|
|
456
|
+
return ReactSharedInternals.H.useEffect(create, deps)
|
|
457
|
+
}
|
|
497
458
|
exports.useId = function () {
|
|
498
|
-
return ReactSharedInternals.H.useId()
|
|
499
|
-
}
|
|
459
|
+
return ReactSharedInternals.H.useId()
|
|
460
|
+
}
|
|
500
461
|
exports.useImperativeHandle = function (ref, create, deps) {
|
|
501
|
-
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps)
|
|
502
|
-
}
|
|
462
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps)
|
|
463
|
+
}
|
|
503
464
|
exports.useInsertionEffect = function (create, deps) {
|
|
504
|
-
return ReactSharedInternals.H.useInsertionEffect(create, deps)
|
|
505
|
-
}
|
|
465
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps)
|
|
466
|
+
}
|
|
506
467
|
exports.useLayoutEffect = function (create, deps) {
|
|
507
|
-
return ReactSharedInternals.H.useLayoutEffect(create, deps)
|
|
508
|
-
}
|
|
468
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps)
|
|
469
|
+
}
|
|
509
470
|
exports.useMemo = function (create, deps) {
|
|
510
|
-
return ReactSharedInternals.H.useMemo(create, deps)
|
|
511
|
-
}
|
|
471
|
+
return ReactSharedInternals.H.useMemo(create, deps)
|
|
472
|
+
}
|
|
512
473
|
exports.useOptimistic = function (passthrough, reducer) {
|
|
513
|
-
return ReactSharedInternals.H.useOptimistic(passthrough, reducer)
|
|
514
|
-
}
|
|
474
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer)
|
|
475
|
+
}
|
|
515
476
|
exports.useReducer = function (reducer, initialArg, init) {
|
|
516
|
-
return ReactSharedInternals.H.useReducer(reducer, initialArg, init)
|
|
517
|
-
}
|
|
477
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init)
|
|
478
|
+
}
|
|
518
479
|
exports.useRef = function (initialValue) {
|
|
519
|
-
return ReactSharedInternals.H.useRef(initialValue)
|
|
520
|
-
}
|
|
480
|
+
return ReactSharedInternals.H.useRef(initialValue)
|
|
481
|
+
}
|
|
521
482
|
exports.useState = function (initialState) {
|
|
522
|
-
return ReactSharedInternals.H.useState(initialState)
|
|
523
|
-
}
|
|
524
|
-
exports.useSyncExternalStore = function (
|
|
525
|
-
subscribe,
|
|
526
|
-
getSnapshot,
|
|
527
|
-
getServerSnapshot
|
|
528
|
-
) {
|
|
483
|
+
return ReactSharedInternals.H.useState(initialState)
|
|
484
|
+
}
|
|
485
|
+
exports.useSyncExternalStore = function (subscribe, getSnapshot, getServerSnapshot) {
|
|
529
486
|
return ReactSharedInternals.H.useSyncExternalStore(
|
|
530
487
|
subscribe,
|
|
531
488
|
getSnapshot,
|
|
532
489
|
getServerSnapshot
|
|
533
|
-
)
|
|
534
|
-
}
|
|
490
|
+
)
|
|
491
|
+
}
|
|
535
492
|
exports.useTransition = function () {
|
|
536
|
-
return ReactSharedInternals.H.useTransition()
|
|
537
|
-
}
|
|
538
|
-
exports.version =
|
|
493
|
+
return ReactSharedInternals.H.useTransition()
|
|
494
|
+
}
|
|
495
|
+
exports.version = '19.0.0'
|