react-dom 19.3.0-canary-c7862584-20251006 → 19.3.0-canary-3025aa39-20251007
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/cjs/react-dom-client.development.js +3068 -789
- package/cjs/react-dom-client.production.js +2657 -669
- package/cjs/react-dom-profiling.development.js +3067 -788
- package/cjs/react-dom-profiling.profiling.js +2879 -824
- package/cjs/react-dom-server-legacy.browser.development.js +153 -42
- package/cjs/react-dom-server-legacy.browser.production.js +476 -323
- package/cjs/react-dom-server-legacy.node.development.js +153 -42
- package/cjs/react-dom-server-legacy.node.production.js +476 -323
- package/cjs/react-dom-server.browser.development.js +230 -52
- package/cjs/react-dom-server.browser.production.js +530 -308
- package/cjs/react-dom-server.bun.development.js +225 -48
- package/cjs/react-dom-server.bun.production.js +527 -305
- package/cjs/react-dom-server.edge.development.js +230 -52
- package/cjs/react-dom-server.edge.production.js +530 -308
- package/cjs/react-dom-server.node.development.js +226 -46
- package/cjs/react-dom-server.node.production.js +524 -302
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
|
@@ -152,6 +152,105 @@ function findCurrentHostFiberImpl(node) {
|
|
|
152
152
|
}
|
|
153
153
|
return null;
|
|
154
154
|
}
|
|
155
|
+
function traverseVisibleHostChildren(child, searchWithinHosts, fn, a, b, c) {
|
|
156
|
+
for (; null !== child; ) {
|
|
157
|
+
if (
|
|
158
|
+
(5 === child.tag && fn(child, a, b, c)) ||
|
|
159
|
+
((22 !== child.tag || null === child.memoizedState) &&
|
|
160
|
+
(searchWithinHosts || 5 !== child.tag) &&
|
|
161
|
+
traverseVisibleHostChildren(
|
|
162
|
+
child.child,
|
|
163
|
+
searchWithinHosts,
|
|
164
|
+
fn,
|
|
165
|
+
a,
|
|
166
|
+
b,
|
|
167
|
+
c
|
|
168
|
+
))
|
|
169
|
+
)
|
|
170
|
+
return !0;
|
|
171
|
+
child = child.sibling;
|
|
172
|
+
}
|
|
173
|
+
return !1;
|
|
174
|
+
}
|
|
175
|
+
function getFragmentParentHostFiber(fiber) {
|
|
176
|
+
for (fiber = fiber.return; null !== fiber; ) {
|
|
177
|
+
if (3 === fiber.tag || 5 === fiber.tag) return fiber;
|
|
178
|
+
fiber = fiber.return;
|
|
179
|
+
}
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
182
|
+
function findFragmentInstanceSiblings(result, self, child) {
|
|
183
|
+
for (
|
|
184
|
+
var foundSelf =
|
|
185
|
+
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : !1;
|
|
186
|
+
null !== child;
|
|
187
|
+
|
|
188
|
+
) {
|
|
189
|
+
if (child === self)
|
|
190
|
+
if (((foundSelf = !0), child.sibling)) child = child.sibling;
|
|
191
|
+
else return !0;
|
|
192
|
+
if (5 === child.tag) {
|
|
193
|
+
if (foundSelf) return (result[1] = child), !0;
|
|
194
|
+
result[0] = child;
|
|
195
|
+
} else if (
|
|
196
|
+
(22 !== child.tag || null === child.memoizedState) &&
|
|
197
|
+
findFragmentInstanceSiblings(result, self, child.child, foundSelf)
|
|
198
|
+
)
|
|
199
|
+
return !0;
|
|
200
|
+
child = child.sibling;
|
|
201
|
+
}
|
|
202
|
+
return !1;
|
|
203
|
+
}
|
|
204
|
+
function getInstanceFromHostFiber(fiber) {
|
|
205
|
+
switch (fiber.tag) {
|
|
206
|
+
case 5:
|
|
207
|
+
return fiber.stateNode;
|
|
208
|
+
case 3:
|
|
209
|
+
return fiber.stateNode.containerInfo;
|
|
210
|
+
default:
|
|
211
|
+
throw Error(formatProdErrorMessage(559));
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
var searchTarget = null,
|
|
215
|
+
searchBoundary = null;
|
|
216
|
+
function findNextSibling(child) {
|
|
217
|
+
searchTarget = child;
|
|
218
|
+
return !0;
|
|
219
|
+
}
|
|
220
|
+
function isFiberPrecedingCheck(child, target, boundary) {
|
|
221
|
+
return child === boundary
|
|
222
|
+
? !0
|
|
223
|
+
: child === target
|
|
224
|
+
? ((searchTarget = child), !0)
|
|
225
|
+
: !1;
|
|
226
|
+
}
|
|
227
|
+
function isFiberFollowingCheck(child, target, boundary) {
|
|
228
|
+
return child === boundary
|
|
229
|
+
? ((searchBoundary = child), !1)
|
|
230
|
+
: child === target
|
|
231
|
+
? (null !== searchBoundary && (searchTarget = child), !0)
|
|
232
|
+
: !1;
|
|
233
|
+
}
|
|
234
|
+
function getParentForFragmentAncestors(inst) {
|
|
235
|
+
if (null === inst) return null;
|
|
236
|
+
do inst = null === inst ? null : inst.return;
|
|
237
|
+
while (inst && 5 !== inst.tag && 27 !== inst.tag && 3 !== inst.tag);
|
|
238
|
+
return inst ? inst : null;
|
|
239
|
+
}
|
|
240
|
+
function getLowestCommonAncestor(instA, instB, getParent) {
|
|
241
|
+
for (var depthA = 0, tempA = instA; tempA; tempA = getParent(tempA)) depthA++;
|
|
242
|
+
tempA = 0;
|
|
243
|
+
for (var tempB = instB; tempB; tempB = getParent(tempB)) tempA++;
|
|
244
|
+
for (; 0 < depthA - tempA; ) (instA = getParent(instA)), depthA--;
|
|
245
|
+
for (; 0 < tempA - depthA; ) (instB = getParent(instB)), tempA--;
|
|
246
|
+
for (; depthA--; ) {
|
|
247
|
+
if (instA === instB || (null !== instB && instA === instB.alternate))
|
|
248
|
+
return instA;
|
|
249
|
+
instA = getParent(instA);
|
|
250
|
+
instB = getParent(instB);
|
|
251
|
+
}
|
|
252
|
+
return null;
|
|
253
|
+
}
|
|
155
254
|
var assign = Object.assign,
|
|
156
255
|
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
|
157
256
|
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
@@ -167,12 +266,12 @@ var assign = Object.assign,
|
|
|
167
266
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
168
267
|
REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
169
268
|
Symbol.for("react.scope");
|
|
170
|
-
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity")
|
|
171
|
-
Symbol.for("react.legacy_hidden");
|
|
269
|
+
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
270
|
+
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden");
|
|
172
271
|
Symbol.for("react.tracing_marker");
|
|
173
|
-
var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel")
|
|
174
|
-
Symbol.for("react.view_transition")
|
|
175
|
-
|
|
272
|
+
var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
|
273
|
+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
|
274
|
+
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
176
275
|
function getIteratorFn(maybeIterable) {
|
|
177
276
|
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
178
277
|
maybeIterable =
|
|
@@ -201,6 +300,8 @@ function getComponentNameFromType(type) {
|
|
|
201
300
|
return "SuspenseList";
|
|
202
301
|
case REACT_ACTIVITY_TYPE:
|
|
203
302
|
return "Activity";
|
|
303
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
304
|
+
return "ViewTransition";
|
|
204
305
|
}
|
|
205
306
|
if ("object" === typeof type)
|
|
206
307
|
switch (type.$$typeof) {
|
|
@@ -491,6 +592,8 @@ function describeFiber(fiber, childFiber) {
|
|
|
491
592
|
return describeNativeComponentFrame(fiber.type, !0);
|
|
492
593
|
case 31:
|
|
493
594
|
return describeBuiltInComponentFrame("Activity");
|
|
595
|
+
case 30:
|
|
596
|
+
return describeBuiltInComponentFrame("ViewTransition");
|
|
494
597
|
default:
|
|
495
598
|
return "";
|
|
496
599
|
}
|
|
@@ -947,6 +1050,12 @@ function isAttributeNameSafe(attributeName) {
|
|
|
947
1050
|
illegalAttributeNameCache[attributeName] = !0;
|
|
948
1051
|
return !1;
|
|
949
1052
|
}
|
|
1053
|
+
var viewTransitionMutationContext = !1;
|
|
1054
|
+
function pushMutationContext() {
|
|
1055
|
+
var prev = viewTransitionMutationContext;
|
|
1056
|
+
viewTransitionMutationContext = !1;
|
|
1057
|
+
return prev;
|
|
1058
|
+
}
|
|
950
1059
|
function setValueForAttribute(node, name, value) {
|
|
951
1060
|
if (isAttributeNameSafe(name))
|
|
952
1061
|
if (null === value) node.removeAttribute(name);
|
|
@@ -1300,12 +1409,14 @@ function setValueForStyles(node, styles, prevStyles) {
|
|
|
1300
1409
|
? node.setProperty(styleName, "")
|
|
1301
1410
|
: "float" === styleName
|
|
1302
1411
|
? (node.cssFloat = "")
|
|
1303
|
-
: (node[styleName] = "")
|
|
1412
|
+
: (node[styleName] = ""),
|
|
1413
|
+
(viewTransitionMutationContext = !0));
|
|
1304
1414
|
for (var styleName$16 in styles)
|
|
1305
1415
|
(styleName = styles[styleName$16]),
|
|
1306
1416
|
styles.hasOwnProperty(styleName$16) &&
|
|
1307
1417
|
prevStyles[styleName$16] !== styleName &&
|
|
1308
|
-
setValueForStyle(node, styleName$16, styleName)
|
|
1418
|
+
(setValueForStyle(node, styleName$16, styleName),
|
|
1419
|
+
(viewTransitionMutationContext = !0));
|
|
1309
1420
|
} else
|
|
1310
1421
|
for (var styleName$17 in styles)
|
|
1311
1422
|
styles.hasOwnProperty(styleName$17) &&
|
|
@@ -2044,19 +2155,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) {
|
|
|
2044
2155
|
}
|
|
2045
2156
|
var isInputEventSupported = !1;
|
|
2046
2157
|
if (canUseDOM) {
|
|
2047
|
-
var JSCompiler_inline_result$jscomp$
|
|
2158
|
+
var JSCompiler_inline_result$jscomp$307;
|
|
2048
2159
|
if (canUseDOM) {
|
|
2049
|
-
var isSupported$jscomp$
|
|
2050
|
-
if (!isSupported$jscomp$
|
|
2051
|
-
var element$jscomp$
|
|
2052
|
-
element$jscomp$
|
|
2053
|
-
isSupported$jscomp$
|
|
2054
|
-
"function" === typeof element$jscomp$
|
|
2055
|
-
}
|
|
2056
|
-
JSCompiler_inline_result$jscomp$
|
|
2057
|
-
} else JSCompiler_inline_result$jscomp$
|
|
2160
|
+
var isSupported$jscomp$inline_468 = "oninput" in document;
|
|
2161
|
+
if (!isSupported$jscomp$inline_468) {
|
|
2162
|
+
var element$jscomp$inline_469 = document.createElement("div");
|
|
2163
|
+
element$jscomp$inline_469.setAttribute("oninput", "return;");
|
|
2164
|
+
isSupported$jscomp$inline_468 =
|
|
2165
|
+
"function" === typeof element$jscomp$inline_469.oninput;
|
|
2166
|
+
}
|
|
2167
|
+
JSCompiler_inline_result$jscomp$307 = isSupported$jscomp$inline_468;
|
|
2168
|
+
} else JSCompiler_inline_result$jscomp$307 = !1;
|
|
2058
2169
|
isInputEventSupported =
|
|
2059
|
-
JSCompiler_inline_result$jscomp$
|
|
2170
|
+
JSCompiler_inline_result$jscomp$307 &&
|
|
2060
2171
|
(!document.documentMode || 9 < document.documentMode);
|
|
2061
2172
|
}
|
|
2062
2173
|
function stopWatchingForValueChange() {
|
|
@@ -2304,6 +2415,41 @@ function registerSimpleEvent(domEventName, reactName) {
|
|
|
2304
2415
|
topLevelEventsToReactNames.set(domEventName, reactName);
|
|
2305
2416
|
registerTwoPhaseEvent(reactName, [domEventName]);
|
|
2306
2417
|
}
|
|
2418
|
+
var globalClientIdCounter$1 = 0;
|
|
2419
|
+
function getViewTransitionName(props, instance) {
|
|
2420
|
+
if (null != props.name && "auto" !== props.name) return props.name;
|
|
2421
|
+
if (null !== instance.autoName) return instance.autoName;
|
|
2422
|
+
props = pendingEffectsRoot.identifierPrefix;
|
|
2423
|
+
var globalClientId = globalClientIdCounter$1++;
|
|
2424
|
+
props = "_" + props + "t_" + globalClientId.toString(32) + "_";
|
|
2425
|
+
return (instance.autoName = props);
|
|
2426
|
+
}
|
|
2427
|
+
function getClassNameByType(classByType) {
|
|
2428
|
+
if (null == classByType || "string" === typeof classByType)
|
|
2429
|
+
return classByType;
|
|
2430
|
+
var className = null,
|
|
2431
|
+
activeTypes = pendingTransitionTypes;
|
|
2432
|
+
if (null !== activeTypes)
|
|
2433
|
+
for (var i = 0; i < activeTypes.length; i++) {
|
|
2434
|
+
var match = classByType[activeTypes[i]];
|
|
2435
|
+
if (null != match) {
|
|
2436
|
+
if ("none" === match) return "none";
|
|
2437
|
+
className = null == className ? match : className + (" " + match);
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
return null == className ? classByType.default : className;
|
|
2441
|
+
}
|
|
2442
|
+
function getViewTransitionClassName(defaultClass, eventClass) {
|
|
2443
|
+
defaultClass = getClassNameByType(defaultClass);
|
|
2444
|
+
eventClass = getClassNameByType(eventClass);
|
|
2445
|
+
return null == eventClass
|
|
2446
|
+
? "auto" === defaultClass
|
|
2447
|
+
? null
|
|
2448
|
+
: defaultClass
|
|
2449
|
+
: "auto" === eventClass
|
|
2450
|
+
? null
|
|
2451
|
+
: eventClass;
|
|
2452
|
+
}
|
|
2307
2453
|
var reportGlobalError =
|
|
2308
2454
|
"function" === typeof reportError
|
|
2309
2455
|
? reportError
|
|
@@ -2575,6 +2721,21 @@ function createFiberFromTypeAndProps(
|
|
|
2575
2721
|
(type.lanes = lanes),
|
|
2576
2722
|
type
|
|
2577
2723
|
);
|
|
2724
|
+
case REACT_LEGACY_HIDDEN_TYPE:
|
|
2725
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
2726
|
+
return (
|
|
2727
|
+
(type = mode | 32),
|
|
2728
|
+
(type = createFiberImplClass(30, pendingProps, key, type)),
|
|
2729
|
+
(type.elementType = REACT_VIEW_TRANSITION_TYPE),
|
|
2730
|
+
(type.lanes = lanes),
|
|
2731
|
+
(type.stateNode = {
|
|
2732
|
+
autoName: null,
|
|
2733
|
+
paired: null,
|
|
2734
|
+
clones: null,
|
|
2735
|
+
ref: null
|
|
2736
|
+
}),
|
|
2737
|
+
type
|
|
2738
|
+
);
|
|
2578
2739
|
default:
|
|
2579
2740
|
if ("object" === typeof type && null !== type)
|
|
2580
2741
|
switch (type.$$typeof) {
|
|
@@ -3102,6 +3263,22 @@ function releaseCache(cache) {
|
|
|
3102
3263
|
cache.controller.abort();
|
|
3103
3264
|
});
|
|
3104
3265
|
}
|
|
3266
|
+
function queueTransitionTypes(root, transitionTypes) {
|
|
3267
|
+
if (0 !== (root.pendingLanes & 4194048)) {
|
|
3268
|
+
var queued = root.transitionTypes;
|
|
3269
|
+
null === queued && (queued = root.transitionTypes = []);
|
|
3270
|
+
for (root = 0; root < transitionTypes.length; root++) {
|
|
3271
|
+
var transitionType = transitionTypes[root];
|
|
3272
|
+
-1 === queued.indexOf(transitionType) && queued.push(transitionType);
|
|
3273
|
+
}
|
|
3274
|
+
}
|
|
3275
|
+
}
|
|
3276
|
+
var entangledTransitionTypes = null;
|
|
3277
|
+
function claimQueuedTransitionTypes(root) {
|
|
3278
|
+
var claimed = root.transitionTypes;
|
|
3279
|
+
root.transitionTypes = null;
|
|
3280
|
+
return claimed;
|
|
3281
|
+
}
|
|
3105
3282
|
var currentEntangledListeners = null,
|
|
3106
3283
|
currentEntangledPendingCount = 0,
|
|
3107
3284
|
currentEntangledLane = 0,
|
|
@@ -3126,7 +3303,7 @@ function entangleAsyncAction(transition, thenable) {
|
|
|
3126
3303
|
function pingEngtangledActionScope() {
|
|
3127
3304
|
if (
|
|
3128
3305
|
0 === --currentEntangledPendingCount &&
|
|
3129
|
-
null !== currentEntangledListeners
|
|
3306
|
+
((entangledTransitionTypes = null), null !== currentEntangledListeners)
|
|
3130
3307
|
) {
|
|
3131
3308
|
null !== currentEntangledActionThenable &&
|
|
3132
3309
|
(currentEntangledActionThenable.status = "fulfilled");
|
|
@@ -3169,6 +3346,23 @@ ReactSharedInternals.S = function (transition, returnValue) {
|
|
|
3169
3346
|
null !== returnValue &&
|
|
3170
3347
|
"function" === typeof returnValue.then &&
|
|
3171
3348
|
entangleAsyncAction(transition, returnValue);
|
|
3349
|
+
if (null !== entangledTransitionTypes)
|
|
3350
|
+
for (var root$26 = firstScheduledRoot; null !== root$26; )
|
|
3351
|
+
queueTransitionTypes(root$26, entangledTransitionTypes),
|
|
3352
|
+
(root$26 = root$26.next);
|
|
3353
|
+
root$26 = transition.types;
|
|
3354
|
+
if (null !== root$26) {
|
|
3355
|
+
for (var root$27 = firstScheduledRoot; null !== root$27; )
|
|
3356
|
+
queueTransitionTypes(root$27, root$26), (root$27 = root$27.next);
|
|
3357
|
+
if (0 !== currentEntangledLane) {
|
|
3358
|
+
root$27 = entangledTransitionTypes;
|
|
3359
|
+
null === root$27 && (root$27 = entangledTransitionTypes = []);
|
|
3360
|
+
for (var i = 0; i < root$26.length; i++) {
|
|
3361
|
+
var transitionType = root$26[i];
|
|
3362
|
+
-1 === root$27.indexOf(transitionType) && root$27.push(transitionType);
|
|
3363
|
+
}
|
|
3364
|
+
}
|
|
3365
|
+
}
|
|
3172
3366
|
null !== prevOnStartTransitionFinish &&
|
|
3173
3367
|
prevOnStartTransitionFinish(transition, returnValue);
|
|
3174
3368
|
};
|
|
@@ -3365,12 +3559,16 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
3365
3559
|
function updateElement(returnFiber, current, element, lanes) {
|
|
3366
3560
|
var elementType = element.type;
|
|
3367
3561
|
if (elementType === REACT_FRAGMENT_TYPE)
|
|
3368
|
-
return
|
|
3369
|
-
returnFiber
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3562
|
+
return (
|
|
3563
|
+
(returnFiber = updateFragment(
|
|
3564
|
+
returnFiber,
|
|
3565
|
+
current,
|
|
3566
|
+
element.props.children,
|
|
3567
|
+
lanes,
|
|
3568
|
+
element.key
|
|
3569
|
+
)),
|
|
3570
|
+
coerceRef(returnFiber, element),
|
|
3571
|
+
returnFiber
|
|
3374
3572
|
);
|
|
3375
3573
|
if (
|
|
3376
3574
|
null !== current &&
|
|
@@ -3800,6 +3998,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
3800
3998
|
null !== newChild &&
|
|
3801
3999
|
newChild.type === REACT_FRAGMENT_TYPE &&
|
|
3802
4000
|
null === newChild.key &&
|
|
4001
|
+
void 0 === newChild.props.ref &&
|
|
3803
4002
|
(newChild = newChild.props.children);
|
|
3804
4003
|
if ("object" === typeof newChild && null !== newChild) {
|
|
3805
4004
|
switch (newChild.$$typeof) {
|
|
@@ -3818,6 +4017,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
3818
4017
|
currentFirstChild,
|
|
3819
4018
|
newChild.props.children
|
|
3820
4019
|
);
|
|
4020
|
+
coerceRef(lanes, newChild);
|
|
3821
4021
|
lanes.return = returnFiber;
|
|
3822
4022
|
returnFiber = lanes;
|
|
3823
4023
|
break a;
|
|
@@ -3851,6 +4051,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
3851
4051
|
lanes,
|
|
3852
4052
|
newChild.key
|
|
3853
4053
|
)),
|
|
4054
|
+
coerceRef(lanes, newChild),
|
|
3854
4055
|
(lanes.return = returnFiber),
|
|
3855
4056
|
(returnFiber = lanes))
|
|
3856
4057
|
: ((lanes = createFiberFromTypeAndProps(
|
|
@@ -4576,7 +4777,7 @@ function updateReducerImpl(hook, current, reducer) {
|
|
|
4576
4777
|
var newBaseQueueFirst = (baseFirst = null),
|
|
4577
4778
|
newBaseQueueLast = null,
|
|
4578
4779
|
update = current,
|
|
4579
|
-
didReadFromEntangledAsyncAction$
|
|
4780
|
+
didReadFromEntangledAsyncAction$62 = !1;
|
|
4580
4781
|
do {
|
|
4581
4782
|
var updateLane = update.lane & -536870913;
|
|
4582
4783
|
if (
|
|
@@ -4598,11 +4799,11 @@ function updateReducerImpl(hook, current, reducer) {
|
|
|
4598
4799
|
next: null
|
|
4599
4800
|
}),
|
|
4600
4801
|
updateLane === currentEntangledLane &&
|
|
4601
|
-
(didReadFromEntangledAsyncAction$
|
|
4802
|
+
(didReadFromEntangledAsyncAction$62 = !0);
|
|
4602
4803
|
else if ((renderLanes & revertLane) === revertLane) {
|
|
4603
4804
|
update = update.next;
|
|
4604
4805
|
revertLane === currentEntangledLane &&
|
|
4605
|
-
(didReadFromEntangledAsyncAction$
|
|
4806
|
+
(didReadFromEntangledAsyncAction$62 = !0);
|
|
4606
4807
|
continue;
|
|
4607
4808
|
} else
|
|
4608
4809
|
(updateLane = {
|
|
@@ -4650,7 +4851,7 @@ function updateReducerImpl(hook, current, reducer) {
|
|
|
4650
4851
|
if (
|
|
4651
4852
|
!objectIs(pendingQueue, hook.memoizedState) &&
|
|
4652
4853
|
((didReceiveUpdate = !0),
|
|
4653
|
-
didReadFromEntangledAsyncAction$
|
|
4854
|
+
didReadFromEntangledAsyncAction$62 &&
|
|
4654
4855
|
((reducer = currentEntangledActionThenable), null !== reducer))
|
|
4655
4856
|
)
|
|
4656
4857
|
throw reducer;
|
|
@@ -4836,6 +5037,8 @@ function runActionStateAction(actionQueue, node) {
|
|
|
4836
5037
|
if (node.isTransition) {
|
|
4837
5038
|
var prevTransition = ReactSharedInternals.T,
|
|
4838
5039
|
currentTransition = {};
|
|
5040
|
+
currentTransition.types =
|
|
5041
|
+
null !== prevTransition ? prevTransition.types : null;
|
|
4839
5042
|
ReactSharedInternals.T = currentTransition;
|
|
4840
5043
|
try {
|
|
4841
5044
|
var returnValue = action(prevState, payload),
|
|
@@ -4855,8 +5058,8 @@ function runActionStateAction(actionQueue, node) {
|
|
|
4855
5058
|
try {
|
|
4856
5059
|
(prevTransition = action(prevState, payload)),
|
|
4857
5060
|
handleActionReturnValue(actionQueue, node, prevTransition);
|
|
4858
|
-
} catch (error$
|
|
4859
|
-
onActionError(actionQueue, node, error$
|
|
5061
|
+
} catch (error$68) {
|
|
5062
|
+
onActionError(actionQueue, node, error$68);
|
|
4860
5063
|
}
|
|
4861
5064
|
}
|
|
4862
5065
|
function handleActionReturnValue(actionQueue, node, returnValue) {
|
|
@@ -5215,6 +5418,8 @@ function startTransition(fiber, queue, pendingState, finishedState, callback) {
|
|
|
5215
5418
|
0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;
|
|
5216
5419
|
var prevTransition = ReactSharedInternals.T,
|
|
5217
5420
|
currentTransition = {};
|
|
5421
|
+
currentTransition.types =
|
|
5422
|
+
null !== prevTransition ? prevTransition.types : null;
|
|
5218
5423
|
ReactSharedInternals.T = currentTransition;
|
|
5219
5424
|
dispatchOptimisticSetState(fiber, !1, queue, pendingState);
|
|
5220
5425
|
try {
|
|
@@ -5337,10 +5542,10 @@ function refreshCache(fiber) {
|
|
|
5337
5542
|
case 3:
|
|
5338
5543
|
var lane = requestUpdateLane();
|
|
5339
5544
|
fiber = createUpdate(lane);
|
|
5340
|
-
var root$
|
|
5341
|
-
null !== root$
|
|
5342
|
-
(scheduleUpdateOnFiber(root$
|
|
5343
|
-
entangleTransitions(root$
|
|
5545
|
+
var root$71 = enqueueUpdate(provider, fiber, lane);
|
|
5546
|
+
null !== root$71 &&
|
|
5547
|
+
(scheduleUpdateOnFiber(root$71, provider, lane),
|
|
5548
|
+
entangleTransitions(root$71, provider, lane));
|
|
5344
5549
|
provider = { cache: createCache() };
|
|
5345
5550
|
fiber.payload = provider;
|
|
5346
5551
|
return;
|
|
@@ -5879,9 +6084,9 @@ function resolveClassComponentProps(Component, baseProps) {
|
|
|
5879
6084
|
}
|
|
5880
6085
|
if ((Component = Component.defaultProps)) {
|
|
5881
6086
|
newProps === baseProps && (newProps = assign({}, newProps));
|
|
5882
|
-
for (var propName$
|
|
5883
|
-
void 0 === newProps[propName$
|
|
5884
|
-
(newProps[propName$
|
|
6087
|
+
for (var propName$75 in Component)
|
|
6088
|
+
void 0 === newProps[propName$75] &&
|
|
6089
|
+
(newProps[propName$75] = Component[propName$75]);
|
|
5885
6090
|
}
|
|
5886
6091
|
return newProps;
|
|
5887
6092
|
}
|
|
@@ -5898,9 +6103,9 @@ function logUncaughtError(root, errorInfo) {
|
|
|
5898
6103
|
try {
|
|
5899
6104
|
var onUncaughtError = root.onUncaughtError;
|
|
5900
6105
|
onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack });
|
|
5901
|
-
} catch (e$
|
|
6106
|
+
} catch (e$76) {
|
|
5902
6107
|
setTimeout(function () {
|
|
5903
|
-
throw e$
|
|
6108
|
+
throw e$76;
|
|
5904
6109
|
});
|
|
5905
6110
|
}
|
|
5906
6111
|
}
|
|
@@ -5911,9 +6116,9 @@ function logCaughtError(root, boundary, errorInfo) {
|
|
|
5911
6116
|
componentStack: errorInfo.stack,
|
|
5912
6117
|
errorBoundary: 1 === boundary.tag ? boundary.stateNode : null
|
|
5913
6118
|
});
|
|
5914
|
-
} catch (e$
|
|
6119
|
+
} catch (e$77) {
|
|
5915
6120
|
setTimeout(function () {
|
|
5916
|
-
throw e$
|
|
6121
|
+
throw e$77;
|
|
5917
6122
|
});
|
|
5918
6123
|
}
|
|
5919
6124
|
}
|
|
@@ -7326,9 +7531,9 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
|
7326
7531
|
);
|
|
7327
7532
|
break;
|
|
7328
7533
|
case 13:
|
|
7329
|
-
var state$
|
|
7330
|
-
if (null !== state$
|
|
7331
|
-
if (null !== state$
|
|
7534
|
+
var state$104 = workInProgress.memoizedState;
|
|
7535
|
+
if (null !== state$104) {
|
|
7536
|
+
if (null !== state$104.dehydrated)
|
|
7332
7537
|
return (
|
|
7333
7538
|
pushPrimaryTreeSuspenseHandler(workInProgress),
|
|
7334
7539
|
(workInProgress.flags |= 128),
|
|
@@ -7348,17 +7553,17 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
|
7348
7553
|
break;
|
|
7349
7554
|
case 19:
|
|
7350
7555
|
var didSuspendBefore = 0 !== (current.flags & 128);
|
|
7351
|
-
state$
|
|
7352
|
-
state$
|
|
7556
|
+
state$104 = 0 !== (renderLanes & workInProgress.childLanes);
|
|
7557
|
+
state$104 ||
|
|
7353
7558
|
(propagateParentContextChanges(
|
|
7354
7559
|
current,
|
|
7355
7560
|
workInProgress,
|
|
7356
7561
|
renderLanes,
|
|
7357
7562
|
!1
|
|
7358
7563
|
),
|
|
7359
|
-
(state$
|
|
7564
|
+
(state$104 = 0 !== (renderLanes & workInProgress.childLanes)));
|
|
7360
7565
|
if (didSuspendBefore) {
|
|
7361
|
-
if (state$
|
|
7566
|
+
if (state$104)
|
|
7362
7567
|
return updateSuspenseListComponent(
|
|
7363
7568
|
current,
|
|
7364
7569
|
workInProgress,
|
|
@@ -7372,7 +7577,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
|
7372
7577
|
(didSuspendBefore.tail = null),
|
|
7373
7578
|
(didSuspendBefore.lastEffect = null));
|
|
7374
7579
|
push(suspenseStackCursor, suspenseStackCursor.current);
|
|
7375
|
-
if (state$
|
|
7580
|
+
if (state$104) break;
|
|
7376
7581
|
else return null;
|
|
7377
7582
|
case 22:
|
|
7378
7583
|
return (
|
|
@@ -7734,12 +7939,9 @@ function beginWork(current, workInProgress, renderLanes) {
|
|
|
7734
7939
|
);
|
|
7735
7940
|
case 7:
|
|
7736
7941
|
return (
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
workInProgress.pendingProps,
|
|
7741
|
-
renderLanes
|
|
7742
|
-
),
|
|
7942
|
+
(props = workInProgress.pendingProps),
|
|
7943
|
+
markRef(current, workInProgress),
|
|
7944
|
+
reconcileChildren(current, workInProgress, props, renderLanes),
|
|
7743
7945
|
workInProgress.child
|
|
7744
7946
|
);
|
|
7745
7947
|
case 8:
|
|
@@ -7854,6 +8056,18 @@ function beginWork(current, workInProgress, renderLanes) {
|
|
|
7854
8056
|
),
|
|
7855
8057
|
workInProgress.child
|
|
7856
8058
|
);
|
|
8059
|
+
case 30:
|
|
8060
|
+
return (
|
|
8061
|
+
(props = workInProgress.pendingProps),
|
|
8062
|
+
null != props.name && "auto" !== props.name
|
|
8063
|
+
? (workInProgress.flags |= null === current ? 18882560 : 18874368)
|
|
8064
|
+
: isHydrating && pushMaterializedTreeId(workInProgress),
|
|
8065
|
+
null !== current && current.memoizedProps.name !== props.name
|
|
8066
|
+
? (workInProgress.flags |= 4194816)
|
|
8067
|
+
: markRef(current, workInProgress),
|
|
8068
|
+
reconcileChildren(current, workInProgress, props.children, renderLanes),
|
|
8069
|
+
workInProgress.child
|
|
8070
|
+
);
|
|
7857
8071
|
case 29:
|
|
7858
8072
|
throw workInProgress.pendingProps;
|
|
7859
8073
|
}
|
|
@@ -7869,8 +8083,15 @@ function preloadInstanceAndSuspendIfNeeded(
|
|
|
7869
8083
|
newProps,
|
|
7870
8084
|
renderLanes
|
|
7871
8085
|
) {
|
|
7872
|
-
|
|
7873
|
-
if (
|
|
8086
|
+
var JSCompiler_temp;
|
|
8087
|
+
if ((JSCompiler_temp = 0 !== (workInProgress.mode & 32)))
|
|
8088
|
+
JSCompiler_temp =
|
|
8089
|
+
null === oldProps
|
|
8090
|
+
? maySuspendCommit(type, newProps)
|
|
8091
|
+
: maySuspendCommit(type, newProps) &&
|
|
8092
|
+
(newProps.src !== oldProps.src ||
|
|
8093
|
+
newProps.srcSet !== oldProps.srcSet);
|
|
8094
|
+
if (JSCompiler_temp) {
|
|
7874
8095
|
if (
|
|
7875
8096
|
((workInProgress.flags |= 16777216),
|
|
7876
8097
|
(renderLanes & 335544128) === renderLanes)
|
|
@@ -7918,14 +8139,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
|
7918
8139
|
break;
|
|
7919
8140
|
case "collapsed":
|
|
7920
8141
|
lastTailNode = renderState.tail;
|
|
7921
|
-
for (var lastTailNode$
|
|
7922
|
-
null !== lastTailNode.alternate && (lastTailNode$
|
|
8142
|
+
for (var lastTailNode$108 = null; null !== lastTailNode; )
|
|
8143
|
+
null !== lastTailNode.alternate && (lastTailNode$108 = lastTailNode),
|
|
7923
8144
|
(lastTailNode = lastTailNode.sibling);
|
|
7924
|
-
null === lastTailNode$
|
|
8145
|
+
null === lastTailNode$108
|
|
7925
8146
|
? hasRenderedATailFallback || null === renderState.tail
|
|
7926
8147
|
? (renderState.tail = null)
|
|
7927
8148
|
: (renderState.tail.sibling = null)
|
|
7928
|
-
: (lastTailNode$
|
|
8149
|
+
: (lastTailNode$108.sibling = null);
|
|
7929
8150
|
}
|
|
7930
8151
|
}
|
|
7931
8152
|
function bubbleProperties(completedWork) {
|
|
@@ -7935,19 +8156,19 @@ function bubbleProperties(completedWork) {
|
|
|
7935
8156
|
newChildLanes = 0,
|
|
7936
8157
|
subtreeFlags = 0;
|
|
7937
8158
|
if (didBailout)
|
|
7938
|
-
for (var child$
|
|
7939
|
-
(newChildLanes |= child$
|
|
7940
|
-
(subtreeFlags |= child$
|
|
7941
|
-
(subtreeFlags |= child$
|
|
7942
|
-
(child$
|
|
7943
|
-
(child$
|
|
8159
|
+
for (var child$109 = completedWork.child; null !== child$109; )
|
|
8160
|
+
(newChildLanes |= child$109.lanes | child$109.childLanes),
|
|
8161
|
+
(subtreeFlags |= child$109.subtreeFlags & 65011712),
|
|
8162
|
+
(subtreeFlags |= child$109.flags & 65011712),
|
|
8163
|
+
(child$109.return = completedWork),
|
|
8164
|
+
(child$109 = child$109.sibling);
|
|
7944
8165
|
else
|
|
7945
|
-
for (child$
|
|
7946
|
-
(newChildLanes |= child$
|
|
7947
|
-
(subtreeFlags |= child$
|
|
7948
|
-
(subtreeFlags |= child$
|
|
7949
|
-
(child$
|
|
7950
|
-
(child$
|
|
8166
|
+
for (child$109 = completedWork.child; null !== child$109; )
|
|
8167
|
+
(newChildLanes |= child$109.lanes | child$109.childLanes),
|
|
8168
|
+
(subtreeFlags |= child$109.subtreeFlags),
|
|
8169
|
+
(subtreeFlags |= child$109.flags),
|
|
8170
|
+
(child$109.return = completedWork),
|
|
8171
|
+
(child$109 = child$109.sibling);
|
|
7951
8172
|
completedWork.subtreeFlags |= subtreeFlags;
|
|
7952
8173
|
completedWork.childLanes = newChildLanes;
|
|
7953
8174
|
return didBailout;
|
|
@@ -8034,6 +8255,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
8034
8255
|
if (null === workInProgress.stateNode)
|
|
8035
8256
|
throw Error(formatProdErrorMessage(166));
|
|
8036
8257
|
bubbleProperties(workInProgress);
|
|
8258
|
+
workInProgress.subtreeFlags &= -33554433;
|
|
8037
8259
|
return null;
|
|
8038
8260
|
}
|
|
8039
8261
|
current = contextStackCursor.current;
|
|
@@ -8044,6 +8266,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
8044
8266
|
markUpdate(workInProgress));
|
|
8045
8267
|
}
|
|
8046
8268
|
bubbleProperties(workInProgress);
|
|
8269
|
+
workInProgress.subtreeFlags &= -33554433;
|
|
8047
8270
|
return null;
|
|
8048
8271
|
case 5:
|
|
8049
8272
|
popHostContext(workInProgress);
|
|
@@ -8055,6 +8278,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
8055
8278
|
if (null === workInProgress.stateNode)
|
|
8056
8279
|
throw Error(formatProdErrorMessage(166));
|
|
8057
8280
|
bubbleProperties(workInProgress);
|
|
8281
|
+
workInProgress.subtreeFlags &= -33554433;
|
|
8058
8282
|
return null;
|
|
8059
8283
|
}
|
|
8060
8284
|
nextResource = contextStackCursor.current;
|
|
@@ -8166,6 +8390,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
8166
8390
|
}
|
|
8167
8391
|
}
|
|
8168
8392
|
bubbleProperties(workInProgress);
|
|
8393
|
+
workInProgress.subtreeFlags &= -33554433;
|
|
8169
8394
|
preloadInstanceAndSuspendIfNeeded(
|
|
8170
8395
|
workInProgress,
|
|
8171
8396
|
workInProgress.type,
|
|
@@ -8455,7 +8680,11 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
8455
8680
|
case 25:
|
|
8456
8681
|
return null;
|
|
8457
8682
|
case 30:
|
|
8458
|
-
return
|
|
8683
|
+
return (
|
|
8684
|
+
(workInProgress.flags |= 33554432),
|
|
8685
|
+
bubbleProperties(workInProgress),
|
|
8686
|
+
null
|
|
8687
|
+
);
|
|
8459
8688
|
}
|
|
8460
8689
|
throw Error(formatProdErrorMessage(156, workInProgress.tag));
|
|
8461
8690
|
}
|
|
@@ -8666,6 +8895,15 @@ function safelyAttachRef(current, nearestMountedAncestor) {
|
|
|
8666
8895
|
var instanceToUse = current.stateNode;
|
|
8667
8896
|
break;
|
|
8668
8897
|
case 30:
|
|
8898
|
+
var instance = current.stateNode,
|
|
8899
|
+
name = getViewTransitionName(current.memoizedProps, instance);
|
|
8900
|
+
if (null === instance.ref || instance.ref.name !== name)
|
|
8901
|
+
instance.ref = createViewTransitionInstance(name);
|
|
8902
|
+
instanceToUse = instance.ref;
|
|
8903
|
+
break;
|
|
8904
|
+
case 7:
|
|
8905
|
+
null === current.stateNode &&
|
|
8906
|
+
(current.stateNode = new FragmentInstance(current));
|
|
8669
8907
|
instanceToUse = current.stateNode;
|
|
8670
8908
|
break;
|
|
8671
8909
|
default:
|
|
@@ -8696,8 +8934,8 @@ function safelyDetachRef(current, nearestMountedAncestor) {
|
|
|
8696
8934
|
else if ("function" === typeof ref)
|
|
8697
8935
|
try {
|
|
8698
8936
|
ref(null);
|
|
8699
|
-
} catch (error$
|
|
8700
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error$
|
|
8937
|
+
} catch (error$143) {
|
|
8938
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error$143);
|
|
8701
8939
|
}
|
|
8702
8940
|
else ref.current = null;
|
|
8703
8941
|
}
|
|
@@ -8731,6 +8969,37 @@ function commitHostUpdate(finishedWork, newProps, oldProps) {
|
|
|
8731
8969
|
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
8732
8970
|
}
|
|
8733
8971
|
}
|
|
8972
|
+
function commitNewChildToFragmentInstances(fiber, parentFragmentInstances) {
|
|
8973
|
+
if (
|
|
8974
|
+
5 === fiber.tag &&
|
|
8975
|
+
null === fiber.alternate &&
|
|
8976
|
+
null !== parentFragmentInstances
|
|
8977
|
+
)
|
|
8978
|
+
for (var i = 0; i < parentFragmentInstances.length; i++)
|
|
8979
|
+
commitNewChildToFragmentInstance(
|
|
8980
|
+
fiber.stateNode,
|
|
8981
|
+
parentFragmentInstances[i]
|
|
8982
|
+
);
|
|
8983
|
+
}
|
|
8984
|
+
function commitFragmentInstanceDeletionEffects(fiber) {
|
|
8985
|
+
for (var parent = fiber.return; null !== parent; ) {
|
|
8986
|
+
if (isFragmentInstanceParent(parent)) {
|
|
8987
|
+
var childElement = fiber.stateNode,
|
|
8988
|
+
eventListeners = parent.stateNode._eventListeners;
|
|
8989
|
+
if (null !== eventListeners)
|
|
8990
|
+
for (var i = 0; i < eventListeners.length; i++) {
|
|
8991
|
+
var _eventListeners$i4 = eventListeners[i];
|
|
8992
|
+
childElement.removeEventListener(
|
|
8993
|
+
_eventListeners$i4.type,
|
|
8994
|
+
_eventListeners$i4.listener,
|
|
8995
|
+
_eventListeners$i4.optionsOrUseCapture
|
|
8996
|
+
);
|
|
8997
|
+
}
|
|
8998
|
+
}
|
|
8999
|
+
if (isHostParent(parent)) break;
|
|
9000
|
+
parent = parent.return;
|
|
9001
|
+
}
|
|
9002
|
+
}
|
|
8734
9003
|
function isHostParent(fiber) {
|
|
8735
9004
|
return (
|
|
8736
9005
|
5 === fiber.tag ||
|
|
@@ -8740,6 +9009,9 @@ function isHostParent(fiber) {
|
|
|
8740
9009
|
4 === fiber.tag
|
|
8741
9010
|
);
|
|
8742
9011
|
}
|
|
9012
|
+
function isFragmentInstanceParent(fiber) {
|
|
9013
|
+
return fiber && 7 === fiber.tag && null !== fiber.stateNode;
|
|
9014
|
+
}
|
|
8743
9015
|
function getHostSibling(fiber) {
|
|
8744
9016
|
a: for (;;) {
|
|
8745
9017
|
for (; null === fiber.sibling; ) {
|
|
@@ -8760,28 +9032,35 @@ function getHostSibling(fiber) {
|
|
|
8760
9032
|
if (!(fiber.flags & 2)) return fiber.stateNode;
|
|
8761
9033
|
}
|
|
8762
9034
|
}
|
|
8763
|
-
function insertOrAppendPlacementNodeIntoContainer(
|
|
9035
|
+
function insertOrAppendPlacementNodeIntoContainer(
|
|
9036
|
+
node,
|
|
9037
|
+
before,
|
|
9038
|
+
parent,
|
|
9039
|
+
parentFragmentInstances
|
|
9040
|
+
) {
|
|
8764
9041
|
var tag = node.tag;
|
|
8765
9042
|
if (5 === tag || 6 === tag)
|
|
8766
|
-
(
|
|
9043
|
+
(tag = node.stateNode),
|
|
8767
9044
|
before
|
|
8768
9045
|
? (9 === parent.nodeType
|
|
8769
9046
|
? parent.body
|
|
8770
9047
|
: "HTML" === parent.nodeName
|
|
8771
9048
|
? parent.ownerDocument.body
|
|
8772
9049
|
: parent
|
|
8773
|
-
).insertBefore(
|
|
9050
|
+
).insertBefore(tag, before)
|
|
8774
9051
|
: ((before =
|
|
8775
9052
|
9 === parent.nodeType
|
|
8776
9053
|
? parent.body
|
|
8777
9054
|
: "HTML" === parent.nodeName
|
|
8778
9055
|
? parent.ownerDocument.body
|
|
8779
9056
|
: parent),
|
|
8780
|
-
before.appendChild(
|
|
9057
|
+
before.appendChild(tag),
|
|
8781
9058
|
(parent = parent._reactRootContainer),
|
|
8782
9059
|
(null !== parent && void 0 !== parent) ||
|
|
8783
9060
|
null !== before.onclick ||
|
|
8784
|
-
(before.onclick = noop$1))
|
|
9061
|
+
(before.onclick = noop$1)),
|
|
9062
|
+
commitNewChildToFragmentInstances(node, parentFragmentInstances),
|
|
9063
|
+
(viewTransitionMutationContext = !0);
|
|
8785
9064
|
else if (
|
|
8786
9065
|
4 !== tag &&
|
|
8787
9066
|
(27 === tag &&
|
|
@@ -8791,19 +9070,36 @@ function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
|
|
|
8791
9070
|
null !== node)
|
|
8792
9071
|
)
|
|
8793
9072
|
for (
|
|
8794
|
-
insertOrAppendPlacementNodeIntoContainer(
|
|
9073
|
+
insertOrAppendPlacementNodeIntoContainer(
|
|
9074
|
+
node,
|
|
9075
|
+
before,
|
|
9076
|
+
parent,
|
|
9077
|
+
parentFragmentInstances
|
|
9078
|
+
),
|
|
8795
9079
|
node = node.sibling;
|
|
8796
9080
|
null !== node;
|
|
8797
9081
|
|
|
8798
9082
|
)
|
|
8799
|
-
insertOrAppendPlacementNodeIntoContainer(
|
|
9083
|
+
insertOrAppendPlacementNodeIntoContainer(
|
|
9084
|
+
node,
|
|
9085
|
+
before,
|
|
9086
|
+
parent,
|
|
9087
|
+
parentFragmentInstances
|
|
9088
|
+
),
|
|
8800
9089
|
(node = node.sibling);
|
|
8801
9090
|
}
|
|
8802
|
-
function insertOrAppendPlacementNode(
|
|
9091
|
+
function insertOrAppendPlacementNode(
|
|
9092
|
+
node,
|
|
9093
|
+
before,
|
|
9094
|
+
parent,
|
|
9095
|
+
parentFragmentInstances
|
|
9096
|
+
) {
|
|
8803
9097
|
var tag = node.tag;
|
|
8804
9098
|
if (5 === tag || 6 === tag)
|
|
8805
|
-
(
|
|
8806
|
-
before ? parent.insertBefore(
|
|
9099
|
+
(tag = node.stateNode),
|
|
9100
|
+
before ? parent.insertBefore(tag, before) : parent.appendChild(tag),
|
|
9101
|
+
commitNewChildToFragmentInstances(node, parentFragmentInstances),
|
|
9102
|
+
(viewTransitionMutationContext = !0);
|
|
8807
9103
|
else if (
|
|
8808
9104
|
4 !== tag &&
|
|
8809
9105
|
(27 === tag && isSingletonScope(node.type) && (parent = node.stateNode),
|
|
@@ -8811,11 +9107,23 @@ function insertOrAppendPlacementNode(node, before, parent) {
|
|
|
8811
9107
|
null !== node)
|
|
8812
9108
|
)
|
|
8813
9109
|
for (
|
|
8814
|
-
insertOrAppendPlacementNode(
|
|
9110
|
+
insertOrAppendPlacementNode(
|
|
9111
|
+
node,
|
|
9112
|
+
before,
|
|
9113
|
+
parent,
|
|
9114
|
+
parentFragmentInstances
|
|
9115
|
+
),
|
|
9116
|
+
node = node.sibling;
|
|
8815
9117
|
null !== node;
|
|
8816
9118
|
|
|
8817
9119
|
)
|
|
8818
|
-
insertOrAppendPlacementNode(
|
|
9120
|
+
insertOrAppendPlacementNode(
|
|
9121
|
+
node,
|
|
9122
|
+
before,
|
|
9123
|
+
parent,
|
|
9124
|
+
parentFragmentInstances
|
|
9125
|
+
),
|
|
9126
|
+
(node = node.sibling);
|
|
8819
9127
|
}
|
|
8820
9128
|
function commitHostSingletonAcquisition(finishedWork) {
|
|
8821
9129
|
var singleton = finishedWork.stateNode,
|
|
@@ -8834,12 +9142,389 @@ function commitHostSingletonAcquisition(finishedWork) {
|
|
|
8834
9142
|
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
8835
9143
|
}
|
|
8836
9144
|
}
|
|
9145
|
+
var shouldStartViewTransition = !1,
|
|
9146
|
+
appearingViewTransitions = null;
|
|
9147
|
+
function trackEnterViewTransitions(placement) {
|
|
9148
|
+
if (30 === placement.tag || 0 !== (placement.subtreeFlags & 33554432))
|
|
9149
|
+
shouldStartViewTransition = !0;
|
|
9150
|
+
}
|
|
9151
|
+
var viewTransitionCancelableChildren = null;
|
|
9152
|
+
function pushViewTransitionCancelableScope() {
|
|
9153
|
+
var prevChildren = viewTransitionCancelableChildren;
|
|
9154
|
+
viewTransitionCancelableChildren = null;
|
|
9155
|
+
return prevChildren;
|
|
9156
|
+
}
|
|
9157
|
+
var viewTransitionHostInstanceIdx = 0;
|
|
9158
|
+
function applyViewTransitionToHostInstances(
|
|
9159
|
+
fiber,
|
|
9160
|
+
name,
|
|
9161
|
+
className,
|
|
9162
|
+
collectMeasurements,
|
|
9163
|
+
stopAtNestedViewTransitions
|
|
9164
|
+
) {
|
|
9165
|
+
viewTransitionHostInstanceIdx = 0;
|
|
9166
|
+
return applyViewTransitionToHostInstancesRecursive(
|
|
9167
|
+
fiber.child,
|
|
9168
|
+
name,
|
|
9169
|
+
className,
|
|
9170
|
+
collectMeasurements,
|
|
9171
|
+
stopAtNestedViewTransitions
|
|
9172
|
+
);
|
|
9173
|
+
}
|
|
9174
|
+
function applyViewTransitionToHostInstancesRecursive(
|
|
9175
|
+
child,
|
|
9176
|
+
name,
|
|
9177
|
+
className,
|
|
9178
|
+
collectMeasurements,
|
|
9179
|
+
stopAtNestedViewTransitions
|
|
9180
|
+
) {
|
|
9181
|
+
for (var inViewport = !1; null !== child; ) {
|
|
9182
|
+
if (5 === child.tag) {
|
|
9183
|
+
var instance = child.stateNode;
|
|
9184
|
+
if (null !== collectMeasurements) {
|
|
9185
|
+
var measurement = measureInstance(instance);
|
|
9186
|
+
collectMeasurements.push(measurement);
|
|
9187
|
+
measurement.view && (inViewport = !0);
|
|
9188
|
+
} else
|
|
9189
|
+
inViewport || (measureInstance(instance).view && (inViewport = !0));
|
|
9190
|
+
shouldStartViewTransition = !0;
|
|
9191
|
+
applyViewTransitionName(
|
|
9192
|
+
instance,
|
|
9193
|
+
0 === viewTransitionHostInstanceIdx
|
|
9194
|
+
? name
|
|
9195
|
+
: name + "_" + viewTransitionHostInstanceIdx,
|
|
9196
|
+
className
|
|
9197
|
+
);
|
|
9198
|
+
viewTransitionHostInstanceIdx++;
|
|
9199
|
+
} else if (22 !== child.tag || null === child.memoizedState)
|
|
9200
|
+
(30 === child.tag && stopAtNestedViewTransitions) ||
|
|
9201
|
+
(applyViewTransitionToHostInstancesRecursive(
|
|
9202
|
+
child.child,
|
|
9203
|
+
name,
|
|
9204
|
+
className,
|
|
9205
|
+
collectMeasurements,
|
|
9206
|
+
stopAtNestedViewTransitions
|
|
9207
|
+
) &&
|
|
9208
|
+
(inViewport = !0));
|
|
9209
|
+
child = child.sibling;
|
|
9210
|
+
}
|
|
9211
|
+
return inViewport;
|
|
9212
|
+
}
|
|
9213
|
+
function restoreViewTransitionOnHostInstances(
|
|
9214
|
+
child,
|
|
9215
|
+
stopAtNestedViewTransitions
|
|
9216
|
+
) {
|
|
9217
|
+
for (; null !== child; ) {
|
|
9218
|
+
if (5 === child.tag)
|
|
9219
|
+
restoreViewTransitionName(child.stateNode, child.memoizedProps);
|
|
9220
|
+
else if (22 !== child.tag || null === child.memoizedState)
|
|
9221
|
+
(30 === child.tag && stopAtNestedViewTransitions) ||
|
|
9222
|
+
restoreViewTransitionOnHostInstances(
|
|
9223
|
+
child.child,
|
|
9224
|
+
stopAtNestedViewTransitions
|
|
9225
|
+
);
|
|
9226
|
+
child = child.sibling;
|
|
9227
|
+
}
|
|
9228
|
+
}
|
|
9229
|
+
function commitAppearingPairViewTransitions(placement) {
|
|
9230
|
+
if (0 !== (placement.subtreeFlags & 18874368))
|
|
9231
|
+
for (placement = placement.child; null !== placement; ) {
|
|
9232
|
+
if (22 !== placement.tag || null !== placement.memoizedState)
|
|
9233
|
+
if (
|
|
9234
|
+
(commitAppearingPairViewTransitions(placement),
|
|
9235
|
+
30 === placement.tag &&
|
|
9236
|
+
0 !== (placement.flags & 18874368) &&
|
|
9237
|
+
placement.stateNode.paired)
|
|
9238
|
+
) {
|
|
9239
|
+
var props = placement.memoizedProps;
|
|
9240
|
+
if (null == props.name || "auto" === props.name)
|
|
9241
|
+
throw Error(formatProdErrorMessage(544));
|
|
9242
|
+
var name = props.name;
|
|
9243
|
+
props = getViewTransitionClassName(props.default, props.share);
|
|
9244
|
+
"none" !== props &&
|
|
9245
|
+
(applyViewTransitionToHostInstances(
|
|
9246
|
+
placement,
|
|
9247
|
+
name,
|
|
9248
|
+
props,
|
|
9249
|
+
null,
|
|
9250
|
+
!1
|
|
9251
|
+
) ||
|
|
9252
|
+
restoreViewTransitionOnHostInstances(placement.child, !1));
|
|
9253
|
+
}
|
|
9254
|
+
placement = placement.sibling;
|
|
9255
|
+
}
|
|
9256
|
+
}
|
|
9257
|
+
function commitEnterViewTransitions(placement, gesture) {
|
|
9258
|
+
if (30 === placement.tag) {
|
|
9259
|
+
var state = placement.stateNode,
|
|
9260
|
+
props = placement.memoizedProps,
|
|
9261
|
+
name = getViewTransitionName(props, state),
|
|
9262
|
+
className = getViewTransitionClassName(
|
|
9263
|
+
props.default,
|
|
9264
|
+
state.paired ? props.share : props.enter
|
|
9265
|
+
);
|
|
9266
|
+
"none" !== className
|
|
9267
|
+
? applyViewTransitionToHostInstances(placement, name, className, null, !1)
|
|
9268
|
+
? (commitAppearingPairViewTransitions(placement),
|
|
9269
|
+
state.paired ||
|
|
9270
|
+
gesture ||
|
|
9271
|
+
scheduleViewTransitionEvent(placement, props.onEnter))
|
|
9272
|
+
: restoreViewTransitionOnHostInstances(placement.child, !1)
|
|
9273
|
+
: commitAppearingPairViewTransitions(placement);
|
|
9274
|
+
} else if (0 !== (placement.subtreeFlags & 33554432))
|
|
9275
|
+
for (placement = placement.child; null !== placement; )
|
|
9276
|
+
commitEnterViewTransitions(placement, gesture),
|
|
9277
|
+
(placement = placement.sibling);
|
|
9278
|
+
else commitAppearingPairViewTransitions(placement);
|
|
9279
|
+
}
|
|
9280
|
+
function commitDeletedPairViewTransitions(deletion) {
|
|
9281
|
+
if (
|
|
9282
|
+
null !== appearingViewTransitions &&
|
|
9283
|
+
0 !== appearingViewTransitions.size
|
|
9284
|
+
) {
|
|
9285
|
+
var pairs = appearingViewTransitions;
|
|
9286
|
+
if (0 !== (deletion.subtreeFlags & 18874368))
|
|
9287
|
+
for (deletion = deletion.child; null !== deletion; ) {
|
|
9288
|
+
if (22 !== deletion.tag || null !== deletion.memoizedState) {
|
|
9289
|
+
if (30 === deletion.tag && 0 !== (deletion.flags & 18874368)) {
|
|
9290
|
+
var props = deletion.memoizedProps,
|
|
9291
|
+
name = props.name;
|
|
9292
|
+
if (null != name && "auto" !== name) {
|
|
9293
|
+
var pair = pairs.get(name);
|
|
9294
|
+
if (void 0 !== pair) {
|
|
9295
|
+
var className = getViewTransitionClassName(
|
|
9296
|
+
props.default,
|
|
9297
|
+
props.share
|
|
9298
|
+
);
|
|
9299
|
+
"none" !== className &&
|
|
9300
|
+
(applyViewTransitionToHostInstances(
|
|
9301
|
+
deletion,
|
|
9302
|
+
name,
|
|
9303
|
+
className,
|
|
9304
|
+
null,
|
|
9305
|
+
!1
|
|
9306
|
+
)
|
|
9307
|
+
? ((className = deletion.stateNode),
|
|
9308
|
+
(pair.paired = className),
|
|
9309
|
+
(className.paired = pair),
|
|
9310
|
+
scheduleViewTransitionEvent(deletion, props.onShare))
|
|
9311
|
+
: restoreViewTransitionOnHostInstances(deletion.child, !1));
|
|
9312
|
+
pairs.delete(name);
|
|
9313
|
+
if (0 === pairs.size) break;
|
|
9314
|
+
}
|
|
9315
|
+
}
|
|
9316
|
+
}
|
|
9317
|
+
commitDeletedPairViewTransitions(deletion);
|
|
9318
|
+
}
|
|
9319
|
+
deletion = deletion.sibling;
|
|
9320
|
+
}
|
|
9321
|
+
}
|
|
9322
|
+
}
|
|
9323
|
+
function commitExitViewTransitions(deletion) {
|
|
9324
|
+
if (30 === deletion.tag) {
|
|
9325
|
+
var props = deletion.memoizedProps,
|
|
9326
|
+
name = getViewTransitionName(props, deletion.stateNode),
|
|
9327
|
+
pair =
|
|
9328
|
+
null !== appearingViewTransitions
|
|
9329
|
+
? appearingViewTransitions.get(name)
|
|
9330
|
+
: void 0,
|
|
9331
|
+
className = getViewTransitionClassName(
|
|
9332
|
+
props.default,
|
|
9333
|
+
void 0 !== pair ? props.share : props.exit
|
|
9334
|
+
);
|
|
9335
|
+
"none" !== className &&
|
|
9336
|
+
(applyViewTransitionToHostInstances(deletion, name, className, null, !1)
|
|
9337
|
+
? void 0 !== pair
|
|
9338
|
+
? ((className = deletion.stateNode),
|
|
9339
|
+
(pair.paired = className),
|
|
9340
|
+
(className.paired = pair),
|
|
9341
|
+
appearingViewTransitions.delete(name),
|
|
9342
|
+
scheduleViewTransitionEvent(deletion, props.onShare))
|
|
9343
|
+
: scheduleViewTransitionEvent(deletion, props.onExit)
|
|
9344
|
+
: restoreViewTransitionOnHostInstances(deletion.child, !1));
|
|
9345
|
+
null !== appearingViewTransitions &&
|
|
9346
|
+
commitDeletedPairViewTransitions(deletion);
|
|
9347
|
+
} else if (0 !== (deletion.subtreeFlags & 33554432))
|
|
9348
|
+
for (deletion = deletion.child; null !== deletion; )
|
|
9349
|
+
commitExitViewTransitions(deletion), (deletion = deletion.sibling);
|
|
9350
|
+
else
|
|
9351
|
+
null !== appearingViewTransitions &&
|
|
9352
|
+
commitDeletedPairViewTransitions(deletion);
|
|
9353
|
+
}
|
|
9354
|
+
function commitNestedViewTransitions(changedParent) {
|
|
9355
|
+
for (changedParent = changedParent.child; null !== changedParent; ) {
|
|
9356
|
+
if (30 === changedParent.tag) {
|
|
9357
|
+
var props = changedParent.memoizedProps,
|
|
9358
|
+
name = getViewTransitionName(props, changedParent.stateNode);
|
|
9359
|
+
props = getViewTransitionClassName(props.default, props.update);
|
|
9360
|
+
changedParent.flags &= -5;
|
|
9361
|
+
"none" !== props &&
|
|
9362
|
+
applyViewTransitionToHostInstances(
|
|
9363
|
+
changedParent,
|
|
9364
|
+
name,
|
|
9365
|
+
props,
|
|
9366
|
+
(changedParent.memoizedState = []),
|
|
9367
|
+
!1
|
|
9368
|
+
);
|
|
9369
|
+
} else
|
|
9370
|
+
0 !== (changedParent.subtreeFlags & 33554432) &&
|
|
9371
|
+
commitNestedViewTransitions(changedParent);
|
|
9372
|
+
changedParent = changedParent.sibling;
|
|
9373
|
+
}
|
|
9374
|
+
}
|
|
9375
|
+
function restorePairedViewTransitions(parent) {
|
|
9376
|
+
if (0 !== (parent.subtreeFlags & 18874368))
|
|
9377
|
+
for (parent = parent.child; null !== parent; ) {
|
|
9378
|
+
if (22 !== parent.tag || null !== parent.memoizedState) {
|
|
9379
|
+
if (30 === parent.tag && 0 !== (parent.flags & 18874368)) {
|
|
9380
|
+
var instance = parent.stateNode;
|
|
9381
|
+
null !== instance.paired &&
|
|
9382
|
+
((instance.paired = null),
|
|
9383
|
+
restoreViewTransitionOnHostInstances(parent.child, !1));
|
|
9384
|
+
}
|
|
9385
|
+
restorePairedViewTransitions(parent);
|
|
9386
|
+
}
|
|
9387
|
+
parent = parent.sibling;
|
|
9388
|
+
}
|
|
9389
|
+
}
|
|
9390
|
+
function restoreEnterOrExitViewTransitions(fiber) {
|
|
9391
|
+
if (30 === fiber.tag)
|
|
9392
|
+
(fiber.stateNode.paired = null),
|
|
9393
|
+
restoreViewTransitionOnHostInstances(fiber.child, !1),
|
|
9394
|
+
restorePairedViewTransitions(fiber);
|
|
9395
|
+
else if (0 !== (fiber.subtreeFlags & 33554432))
|
|
9396
|
+
for (fiber = fiber.child; null !== fiber; )
|
|
9397
|
+
restoreEnterOrExitViewTransitions(fiber), (fiber = fiber.sibling);
|
|
9398
|
+
else restorePairedViewTransitions(fiber);
|
|
9399
|
+
}
|
|
9400
|
+
function restoreNestedViewTransitions(changedParent) {
|
|
9401
|
+
for (changedParent = changedParent.child; null !== changedParent; )
|
|
9402
|
+
30 === changedParent.tag
|
|
9403
|
+
? restoreViewTransitionOnHostInstances(changedParent.child, !1)
|
|
9404
|
+
: 0 !== (changedParent.subtreeFlags & 33554432) &&
|
|
9405
|
+
restoreNestedViewTransitions(changedParent),
|
|
9406
|
+
(changedParent = changedParent.sibling);
|
|
9407
|
+
}
|
|
9408
|
+
function measureViewTransitionHostInstancesRecursive(
|
|
9409
|
+
parentViewTransition,
|
|
9410
|
+
child,
|
|
9411
|
+
newName,
|
|
9412
|
+
oldName,
|
|
9413
|
+
className,
|
|
9414
|
+
previousMeasurements,
|
|
9415
|
+
stopAtNestedViewTransitions
|
|
9416
|
+
) {
|
|
9417
|
+
for (var inViewport = !1; null !== child; ) {
|
|
9418
|
+
if (5 === child.tag) {
|
|
9419
|
+
var instance = child.stateNode;
|
|
9420
|
+
if (
|
|
9421
|
+
null !== previousMeasurements &&
|
|
9422
|
+
viewTransitionHostInstanceIdx < previousMeasurements.length
|
|
9423
|
+
) {
|
|
9424
|
+
var previousMeasurement =
|
|
9425
|
+
previousMeasurements[viewTransitionHostInstanceIdx],
|
|
9426
|
+
nextMeasurement = measureInstance(instance);
|
|
9427
|
+
if (previousMeasurement.view || nextMeasurement.view) inViewport = !0;
|
|
9428
|
+
var JSCompiler_temp;
|
|
9429
|
+
if ((JSCompiler_temp = 0 === (parentViewTransition.flags & 4)))
|
|
9430
|
+
if (nextMeasurement.clip) JSCompiler_temp = !0;
|
|
9431
|
+
else {
|
|
9432
|
+
JSCompiler_temp = previousMeasurement.rect;
|
|
9433
|
+
var newRect = nextMeasurement.rect;
|
|
9434
|
+
JSCompiler_temp =
|
|
9435
|
+
JSCompiler_temp.y !== newRect.y ||
|
|
9436
|
+
JSCompiler_temp.x !== newRect.x ||
|
|
9437
|
+
JSCompiler_temp.height !== newRect.height ||
|
|
9438
|
+
JSCompiler_temp.width !== newRect.width;
|
|
9439
|
+
}
|
|
9440
|
+
JSCompiler_temp && (parentViewTransition.flags |= 4);
|
|
9441
|
+
nextMeasurement.abs
|
|
9442
|
+
? (nextMeasurement = !previousMeasurement.abs)
|
|
9443
|
+
: ((previousMeasurement = previousMeasurement.rect),
|
|
9444
|
+
(nextMeasurement = nextMeasurement.rect),
|
|
9445
|
+
(nextMeasurement =
|
|
9446
|
+
previousMeasurement.height !== nextMeasurement.height ||
|
|
9447
|
+
previousMeasurement.width !== nextMeasurement.width));
|
|
9448
|
+
nextMeasurement && (parentViewTransition.flags |= 32);
|
|
9449
|
+
} else parentViewTransition.flags |= 32;
|
|
9450
|
+
0 !== (parentViewTransition.flags & 4) &&
|
|
9451
|
+
applyViewTransitionName(
|
|
9452
|
+
instance,
|
|
9453
|
+
0 === viewTransitionHostInstanceIdx
|
|
9454
|
+
? newName
|
|
9455
|
+
: newName + "_" + viewTransitionHostInstanceIdx,
|
|
9456
|
+
className
|
|
9457
|
+
);
|
|
9458
|
+
(inViewport && 0 !== (parentViewTransition.flags & 4)) ||
|
|
9459
|
+
(null === viewTransitionCancelableChildren &&
|
|
9460
|
+
(viewTransitionCancelableChildren = []),
|
|
9461
|
+
viewTransitionCancelableChildren.push(
|
|
9462
|
+
instance,
|
|
9463
|
+
oldName,
|
|
9464
|
+
child.memoizedProps
|
|
9465
|
+
));
|
|
9466
|
+
viewTransitionHostInstanceIdx++;
|
|
9467
|
+
} else if (22 !== child.tag || null === child.memoizedState)
|
|
9468
|
+
30 === child.tag && stopAtNestedViewTransitions
|
|
9469
|
+
? (parentViewTransition.flags |= child.flags & 32)
|
|
9470
|
+
: measureViewTransitionHostInstancesRecursive(
|
|
9471
|
+
parentViewTransition,
|
|
9472
|
+
child.child,
|
|
9473
|
+
newName,
|
|
9474
|
+
oldName,
|
|
9475
|
+
className,
|
|
9476
|
+
previousMeasurements,
|
|
9477
|
+
stopAtNestedViewTransitions
|
|
9478
|
+
) && (inViewport = !0);
|
|
9479
|
+
child = child.sibling;
|
|
9480
|
+
}
|
|
9481
|
+
return inViewport;
|
|
9482
|
+
}
|
|
9483
|
+
function measureNestedViewTransitions(changedParent, gesture) {
|
|
9484
|
+
for (changedParent = changedParent.child; null !== changedParent; ) {
|
|
9485
|
+
if (30 === changedParent.tag) {
|
|
9486
|
+
var props = changedParent.memoizedProps,
|
|
9487
|
+
state = changedParent.stateNode,
|
|
9488
|
+
name = getViewTransitionName(props, state),
|
|
9489
|
+
className = getViewTransitionClassName(props.default, props.update);
|
|
9490
|
+
if (gesture) {
|
|
9491
|
+
state = state.clones;
|
|
9492
|
+
var previousMeasurements =
|
|
9493
|
+
null === state ? null : state.map(measureClonedInstance);
|
|
9494
|
+
} else
|
|
9495
|
+
(previousMeasurements = changedParent.memoizedState),
|
|
9496
|
+
(changedParent.memoizedState = null);
|
|
9497
|
+
state = changedParent;
|
|
9498
|
+
var child = changedParent.child;
|
|
9499
|
+
viewTransitionHostInstanceIdx = 0;
|
|
9500
|
+
name = measureViewTransitionHostInstancesRecursive(
|
|
9501
|
+
state,
|
|
9502
|
+
child,
|
|
9503
|
+
name,
|
|
9504
|
+
name,
|
|
9505
|
+
className,
|
|
9506
|
+
previousMeasurements,
|
|
9507
|
+
!1
|
|
9508
|
+
);
|
|
9509
|
+
0 !== (changedParent.flags & 4) &&
|
|
9510
|
+
name &&
|
|
9511
|
+
(gesture || scheduleViewTransitionEvent(changedParent, props.onUpdate));
|
|
9512
|
+
} else
|
|
9513
|
+
0 !== (changedParent.subtreeFlags & 33554432) &&
|
|
9514
|
+
measureNestedViewTransitions(changedParent, gesture);
|
|
9515
|
+
changedParent = changedParent.sibling;
|
|
9516
|
+
}
|
|
9517
|
+
}
|
|
8837
9518
|
var offscreenSubtreeIsHidden = !1,
|
|
8838
9519
|
offscreenSubtreeWasHidden = !1,
|
|
8839
9520
|
needsFormReset = !1,
|
|
8840
9521
|
PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set,
|
|
8841
|
-
nextEffect = null
|
|
8842
|
-
|
|
9522
|
+
nextEffect = null,
|
|
9523
|
+
viewTransitionContextChanged = !1,
|
|
9524
|
+
inUpdateViewTransition = !1,
|
|
9525
|
+
rootViewTransitionAffected = !1,
|
|
9526
|
+
rootViewTransitionNameCanceled = !1;
|
|
9527
|
+
function commitBeforeMutationEffects(root, firstChild, committedLanes) {
|
|
8843
9528
|
root = root.containerInfo;
|
|
8844
9529
|
eventsEnabled = _enabled;
|
|
8845
9530
|
root = getActiveElementDeep(root);
|
|
@@ -8910,100 +9595,154 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
8910
9595
|
} else JSCompiler_temp = null;
|
|
8911
9596
|
selectionInformation = { focusedElem: root, selectionRange: JSCompiler_temp };
|
|
8912
9597
|
_enabled = !1;
|
|
8913
|
-
|
|
9598
|
+
committedLanes = (committedLanes & 335544064) === committedLanes;
|
|
9599
|
+
nextEffect = firstChild;
|
|
9600
|
+
for (firstChild = committedLanes ? 9270 : 1028; null !== nextEffect; ) {
|
|
9601
|
+
root = nextEffect;
|
|
8914
9602
|
if (
|
|
8915
|
-
|
|
8916
|
-
(
|
|
8917
|
-
0 !== (firstChild.subtreeFlags & 1028) && null !== root)
|
|
9603
|
+
committedLanes &&
|
|
9604
|
+
((JSCompiler_temp = root.deletions), null !== JSCompiler_temp)
|
|
8918
9605
|
)
|
|
8919
|
-
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
if (0 !== (root & 1024) && null !== focusNode) {
|
|
8946
|
-
root = void 0;
|
|
8947
|
-
JSCompiler_temp = firstChild;
|
|
8948
|
-
anchorOffset = focusNode.memoizedProps;
|
|
8949
|
-
focusNode = focusNode.memoizedState;
|
|
8950
|
-
selection = JSCompiler_temp.stateNode;
|
|
8951
|
-
try {
|
|
8952
|
-
var resolvedPrevProps = resolveClassComponentProps(
|
|
8953
|
-
JSCompiler_temp.type,
|
|
8954
|
-
anchorOffset
|
|
8955
|
-
);
|
|
8956
|
-
root = selection.getSnapshotBeforeUpdate(
|
|
8957
|
-
resolvedPrevProps,
|
|
8958
|
-
focusNode
|
|
8959
|
-
);
|
|
8960
|
-
selection.__reactInternalSnapshotBeforeUpdate = root;
|
|
8961
|
-
} catch (error) {
|
|
8962
|
-
captureCommitPhaseError(
|
|
8963
|
-
JSCompiler_temp,
|
|
8964
|
-
JSCompiler_temp.return,
|
|
8965
|
-
error
|
|
8966
|
-
);
|
|
8967
|
-
}
|
|
8968
|
-
}
|
|
8969
|
-
break;
|
|
8970
|
-
case 3:
|
|
8971
|
-
if (0 !== (root & 1024))
|
|
8972
|
-
if (
|
|
8973
|
-
((root = firstChild.stateNode.containerInfo),
|
|
8974
|
-
(JSCompiler_temp = root.nodeType),
|
|
8975
|
-
9 === JSCompiler_temp)
|
|
8976
|
-
)
|
|
8977
|
-
clearContainerSparingly(root);
|
|
8978
|
-
else if (1 === JSCompiler_temp)
|
|
8979
|
-
switch (root.nodeName) {
|
|
8980
|
-
case "HEAD":
|
|
8981
|
-
case "HTML":
|
|
8982
|
-
case "BODY":
|
|
8983
|
-
clearContainerSparingly(root);
|
|
8984
|
-
break;
|
|
8985
|
-
default:
|
|
8986
|
-
root.textContent = "";
|
|
8987
|
-
}
|
|
8988
|
-
break;
|
|
8989
|
-
case 5:
|
|
8990
|
-
case 26:
|
|
8991
|
-
case 27:
|
|
8992
|
-
case 6:
|
|
8993
|
-
case 4:
|
|
8994
|
-
case 17:
|
|
8995
|
-
break;
|
|
8996
|
-
default:
|
|
8997
|
-
if (0 !== (root & 1024)) throw Error(formatProdErrorMessage(163));
|
|
9606
|
+
for (
|
|
9607
|
+
anchorOffset = 0;
|
|
9608
|
+
anchorOffset < JSCompiler_temp.length;
|
|
9609
|
+
anchorOffset++
|
|
9610
|
+
)
|
|
9611
|
+
committedLanes &&
|
|
9612
|
+
commitExitViewTransitions(JSCompiler_temp[anchorOffset]);
|
|
9613
|
+
if (null === root.alternate && 0 !== (root.flags & 2))
|
|
9614
|
+
committedLanes && trackEnterViewTransitions(root),
|
|
9615
|
+
commitBeforeMutationEffects_complete(committedLanes);
|
|
9616
|
+
else {
|
|
9617
|
+
if (22 === root.tag)
|
|
9618
|
+
if (((JSCompiler_temp = root.alternate), null !== root.memoizedState)) {
|
|
9619
|
+
null !== JSCompiler_temp &&
|
|
9620
|
+
null === JSCompiler_temp.memoizedState &&
|
|
9621
|
+
committedLanes &&
|
|
9622
|
+
commitExitViewTransitions(JSCompiler_temp);
|
|
9623
|
+
commitBeforeMutationEffects_complete(committedLanes);
|
|
9624
|
+
continue;
|
|
9625
|
+
} else if (
|
|
9626
|
+
null !== JSCompiler_temp &&
|
|
9627
|
+
null !== JSCompiler_temp.memoizedState
|
|
9628
|
+
) {
|
|
9629
|
+
committedLanes && trackEnterViewTransitions(root);
|
|
9630
|
+
commitBeforeMutationEffects_complete(committedLanes);
|
|
9631
|
+
continue;
|
|
8998
9632
|
}
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9633
|
+
JSCompiler_temp = root.child;
|
|
9634
|
+
0 !== (root.subtreeFlags & firstChild) && null !== JSCompiler_temp
|
|
9635
|
+
? ((JSCompiler_temp.return = root), (nextEffect = JSCompiler_temp))
|
|
9636
|
+
: (committedLanes && commitNestedViewTransitions(root),
|
|
9637
|
+
commitBeforeMutationEffects_complete(committedLanes));
|
|
9638
|
+
}
|
|
9639
|
+
}
|
|
9640
|
+
appearingViewTransitions = null;
|
|
9641
|
+
}
|
|
9642
|
+
function commitBeforeMutationEffects_complete(
|
|
9643
|
+
isViewTransitionEligible$jscomp$0
|
|
9644
|
+
) {
|
|
9645
|
+
for (; null !== nextEffect; ) {
|
|
9646
|
+
var fiber = nextEffect,
|
|
9647
|
+
isViewTransitionEligible = isViewTransitionEligible$jscomp$0,
|
|
9648
|
+
current = fiber.alternate,
|
|
9649
|
+
flags = fiber.flags;
|
|
9650
|
+
switch (fiber.tag) {
|
|
9651
|
+
case 0:
|
|
9652
|
+
if (
|
|
9653
|
+
0 !== (flags & 4) &&
|
|
9654
|
+
((current = fiber.updateQueue),
|
|
9655
|
+
(current = null !== current ? current.events : null),
|
|
9656
|
+
null !== current)
|
|
9657
|
+
)
|
|
9658
|
+
for (
|
|
9659
|
+
isViewTransitionEligible = 0;
|
|
9660
|
+
isViewTransitionEligible < current.length;
|
|
9661
|
+
isViewTransitionEligible++
|
|
9662
|
+
)
|
|
9663
|
+
(flags = current[isViewTransitionEligible]),
|
|
9664
|
+
(flags.ref.impl = flags.nextImpl);
|
|
9665
|
+
break;
|
|
9666
|
+
case 11:
|
|
9667
|
+
case 15:
|
|
9668
|
+
break;
|
|
9669
|
+
case 1:
|
|
9670
|
+
if (0 !== (flags & 1024) && null !== current) {
|
|
9671
|
+
isViewTransitionEligible = void 0;
|
|
9672
|
+
flags = current.memoizedProps;
|
|
9673
|
+
current = current.memoizedState;
|
|
9674
|
+
var instance = fiber.stateNode;
|
|
9675
|
+
try {
|
|
9676
|
+
var resolvedPrevProps = resolveClassComponentProps(
|
|
9677
|
+
fiber.type,
|
|
9678
|
+
flags
|
|
9679
|
+
);
|
|
9680
|
+
isViewTransitionEligible = instance.getSnapshotBeforeUpdate(
|
|
9681
|
+
resolvedPrevProps,
|
|
9682
|
+
current
|
|
9683
|
+
);
|
|
9684
|
+
instance.__reactInternalSnapshotBeforeUpdate =
|
|
9685
|
+
isViewTransitionEligible;
|
|
9686
|
+
} catch (error) {
|
|
9687
|
+
captureCommitPhaseError(fiber, fiber.return, error);
|
|
9688
|
+
}
|
|
9004
9689
|
}
|
|
9005
|
-
|
|
9006
|
-
|
|
9690
|
+
break;
|
|
9691
|
+
case 3:
|
|
9692
|
+
if (0 !== (flags & 1024))
|
|
9693
|
+
if (
|
|
9694
|
+
((current = fiber.stateNode.containerInfo),
|
|
9695
|
+
(isViewTransitionEligible = current.nodeType),
|
|
9696
|
+
9 === isViewTransitionEligible)
|
|
9697
|
+
)
|
|
9698
|
+
clearContainerSparingly(current);
|
|
9699
|
+
else if (1 === isViewTransitionEligible)
|
|
9700
|
+
switch (current.nodeName) {
|
|
9701
|
+
case "HEAD":
|
|
9702
|
+
case "HTML":
|
|
9703
|
+
case "BODY":
|
|
9704
|
+
clearContainerSparingly(current);
|
|
9705
|
+
break;
|
|
9706
|
+
default:
|
|
9707
|
+
current.textContent = "";
|
|
9708
|
+
}
|
|
9709
|
+
break;
|
|
9710
|
+
case 5:
|
|
9711
|
+
case 26:
|
|
9712
|
+
case 27:
|
|
9713
|
+
case 6:
|
|
9714
|
+
case 4:
|
|
9715
|
+
case 17:
|
|
9716
|
+
break;
|
|
9717
|
+
case 30:
|
|
9718
|
+
isViewTransitionEligible &&
|
|
9719
|
+
null !== current &&
|
|
9720
|
+
((isViewTransitionEligible = getViewTransitionName(
|
|
9721
|
+
current.memoizedProps,
|
|
9722
|
+
current.stateNode
|
|
9723
|
+
)),
|
|
9724
|
+
(flags = fiber.memoizedProps),
|
|
9725
|
+
(flags = getViewTransitionClassName(flags.default, flags.update)),
|
|
9726
|
+
"none" !== flags &&
|
|
9727
|
+
applyViewTransitionToHostInstances(
|
|
9728
|
+
current,
|
|
9729
|
+
isViewTransitionEligible,
|
|
9730
|
+
flags,
|
|
9731
|
+
(current.memoizedState = []),
|
|
9732
|
+
!0
|
|
9733
|
+
));
|
|
9734
|
+
break;
|
|
9735
|
+
default:
|
|
9736
|
+
if (0 !== (flags & 1024)) throw Error(formatProdErrorMessage(163));
|
|
9737
|
+
}
|
|
9738
|
+
current = fiber.sibling;
|
|
9739
|
+
if (null !== current) {
|
|
9740
|
+
current.return = fiber.return;
|
|
9741
|
+
nextEffect = current;
|
|
9742
|
+
break;
|
|
9743
|
+
}
|
|
9744
|
+
nextEffect = fiber.return;
|
|
9745
|
+
}
|
|
9007
9746
|
}
|
|
9008
9747
|
function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
|
|
9009
9748
|
var flags = finishedWork.flags;
|
|
@@ -9035,11 +9774,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
|
|
|
9035
9774
|
current,
|
|
9036
9775
|
finishedRoot.__reactInternalSnapshotBeforeUpdate
|
|
9037
9776
|
);
|
|
9038
|
-
} catch (error$
|
|
9777
|
+
} catch (error$141) {
|
|
9039
9778
|
captureCommitPhaseError(
|
|
9040
9779
|
finishedWork,
|
|
9041
9780
|
finishedWork.return,
|
|
9042
|
-
error$
|
|
9781
|
+
error$141
|
|
9043
9782
|
);
|
|
9044
9783
|
}
|
|
9045
9784
|
}
|
|
@@ -9121,7 +9860,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
|
|
|
9121
9860
|
}
|
|
9122
9861
|
break;
|
|
9123
9862
|
case 30:
|
|
9863
|
+
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
|
|
9864
|
+
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
|
|
9124
9865
|
break;
|
|
9866
|
+
case 7:
|
|
9867
|
+
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
|
|
9125
9868
|
default:
|
|
9126
9869
|
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
|
|
9127
9870
|
}
|
|
@@ -9198,7 +9941,9 @@ function commitDeletionEffectsOnFiber(
|
|
|
9198
9941
|
break;
|
|
9199
9942
|
case 5:
|
|
9200
9943
|
offscreenSubtreeWasHidden ||
|
|
9201
|
-
safelyDetachRef(deletedFiber, nearestMountedAncestor)
|
|
9944
|
+
safelyDetachRef(deletedFiber, nearestMountedAncestor),
|
|
9945
|
+
5 === deletedFiber.tag &&
|
|
9946
|
+
commitFragmentInstanceDeletionEffects(deletedFiber);
|
|
9202
9947
|
case 6:
|
|
9203
9948
|
prevHostParent = hostParent;
|
|
9204
9949
|
prevHostParentIsContainer = hostParentIsContainer;
|
|
@@ -9218,7 +9963,8 @@ function commitDeletionEffectsOnFiber(
|
|
|
9218
9963
|
: "HTML" === hostParent.nodeName
|
|
9219
9964
|
? hostParent.ownerDocument.body
|
|
9220
9965
|
: hostParent
|
|
9221
|
-
).removeChild(deletedFiber.stateNode)
|
|
9966
|
+
).removeChild(deletedFiber.stateNode),
|
|
9967
|
+
(viewTransitionMutationContext = !0);
|
|
9222
9968
|
} catch (error) {
|
|
9223
9969
|
captureCommitPhaseError(
|
|
9224
9970
|
deletedFiber,
|
|
@@ -9228,7 +9974,8 @@ function commitDeletionEffectsOnFiber(
|
|
|
9228
9974
|
}
|
|
9229
9975
|
else
|
|
9230
9976
|
try {
|
|
9231
|
-
hostParent.removeChild(deletedFiber.stateNode)
|
|
9977
|
+
hostParent.removeChild(deletedFiber.stateNode),
|
|
9978
|
+
(viewTransitionMutationContext = !0);
|
|
9232
9979
|
} catch (error) {
|
|
9233
9980
|
captureCommitPhaseError(
|
|
9234
9981
|
deletedFiber,
|
|
@@ -9312,6 +10059,23 @@ function commitDeletionEffectsOnFiber(
|
|
|
9312
10059
|
);
|
|
9313
10060
|
offscreenSubtreeWasHidden = prevHostParent;
|
|
9314
10061
|
break;
|
|
10062
|
+
case 30:
|
|
10063
|
+
safelyDetachRef(deletedFiber, nearestMountedAncestor);
|
|
10064
|
+
recursivelyTraverseDeletionEffects(
|
|
10065
|
+
finishedRoot,
|
|
10066
|
+
nearestMountedAncestor,
|
|
10067
|
+
deletedFiber
|
|
10068
|
+
);
|
|
10069
|
+
break;
|
|
10070
|
+
case 7:
|
|
10071
|
+
offscreenSubtreeWasHidden ||
|
|
10072
|
+
safelyDetachRef(deletedFiber, nearestMountedAncestor);
|
|
10073
|
+
recursivelyTraverseDeletionEffects(
|
|
10074
|
+
finishedRoot,
|
|
10075
|
+
nearestMountedAncestor,
|
|
10076
|
+
deletedFiber
|
|
10077
|
+
);
|
|
10078
|
+
break;
|
|
9315
10079
|
default:
|
|
9316
10080
|
recursivelyTraverseDeletionEffects(
|
|
9317
10081
|
finishedRoot,
|
|
@@ -9381,7 +10145,7 @@ function attachSuspenseRetryListeners(finishedWork, wakeables) {
|
|
|
9381
10145
|
}
|
|
9382
10146
|
});
|
|
9383
10147
|
}
|
|
9384
|
-
function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {
|
|
10148
|
+
function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber, lanes) {
|
|
9385
10149
|
var deletions = parentFiber.deletions;
|
|
9386
10150
|
if (null !== deletions)
|
|
9387
10151
|
for (var i = 0; i < deletions.length; i++) {
|
|
@@ -9420,11 +10184,11 @@ function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {
|
|
|
9420
10184
|
}
|
|
9421
10185
|
if (parentFiber.subtreeFlags & 13886)
|
|
9422
10186
|
for (parentFiber = parentFiber.child; null !== parentFiber; )
|
|
9423
|
-
commitMutationEffectsOnFiber(parentFiber, root$jscomp$0),
|
|
10187
|
+
commitMutationEffectsOnFiber(parentFiber, root$jscomp$0, lanes),
|
|
9424
10188
|
(parentFiber = parentFiber.sibling);
|
|
9425
10189
|
}
|
|
9426
10190
|
var currentHoistableRoot = null;
|
|
9427
|
-
function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
10191
|
+
function commitMutationEffectsOnFiber(finishedWork, root, lanes) {
|
|
9428
10192
|
var current = finishedWork.alternate,
|
|
9429
10193
|
flags = finishedWork.flags;
|
|
9430
10194
|
switch (finishedWork.tag) {
|
|
@@ -9432,7 +10196,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
9432
10196
|
case 11:
|
|
9433
10197
|
case 14:
|
|
9434
10198
|
case 15:
|
|
9435
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
10199
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
9436
10200
|
commitReconciliationEffects(finishedWork);
|
|
9437
10201
|
flags & 4 &&
|
|
9438
10202
|
(commitHookEffectListUnmount(3, finishedWork, finishedWork.return),
|
|
@@ -9440,7 +10204,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
9440
10204
|
commitHookEffectListUnmount(5, finishedWork, finishedWork.return));
|
|
9441
10205
|
break;
|
|
9442
10206
|
case 1:
|
|
9443
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
10207
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
9444
10208
|
commitReconciliationEffects(finishedWork);
|
|
9445
10209
|
flags & 512 &&
|
|
9446
10210
|
(offscreenSubtreeWasHidden ||
|
|
@@ -9450,127 +10214,126 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
9450
10214
|
offscreenSubtreeIsHidden &&
|
|
9451
10215
|
((finishedWork = finishedWork.updateQueue),
|
|
9452
10216
|
null !== finishedWork &&
|
|
9453
|
-
((
|
|
9454
|
-
null !==
|
|
9455
|
-
((
|
|
10217
|
+
((current = finishedWork.callbacks),
|
|
10218
|
+
null !== current &&
|
|
10219
|
+
((flags = finishedWork.shared.hiddenCallbacks),
|
|
9456
10220
|
(finishedWork.shared.hiddenCallbacks =
|
|
9457
|
-
null ===
|
|
10221
|
+
null === flags ? current : flags.concat(current)))));
|
|
9458
10222
|
break;
|
|
9459
10223
|
case 26:
|
|
9460
10224
|
var hoistableRoot = currentHoistableRoot;
|
|
9461
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
10225
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
9462
10226
|
commitReconciliationEffects(finishedWork);
|
|
9463
10227
|
flags & 512 &&
|
|
9464
10228
|
(offscreenSubtreeWasHidden ||
|
|
9465
10229
|
null === current ||
|
|
9466
10230
|
safelyDetachRef(current, current.return));
|
|
9467
|
-
if (flags & 4)
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
10231
|
+
if (flags & 4)
|
|
10232
|
+
if (
|
|
10233
|
+
((root = null !== current ? current.memoizedState : null),
|
|
10234
|
+
(flags = finishedWork.memoizedState),
|
|
10235
|
+
null === current)
|
|
10236
|
+
)
|
|
9471
10237
|
if (null === flags)
|
|
9472
10238
|
if (null === finishedWork.stateNode) {
|
|
9473
10239
|
a: {
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
b: switch (
|
|
10240
|
+
current = finishedWork.type;
|
|
10241
|
+
flags = finishedWork.memoizedProps;
|
|
10242
|
+
root = hoistableRoot.ownerDocument || hoistableRoot;
|
|
10243
|
+
b: switch (current) {
|
|
9478
10244
|
case "title":
|
|
9479
|
-
|
|
9480
|
-
hoistableRoot.getElementsByTagName("title")[0];
|
|
10245
|
+
lanes = root.getElementsByTagName("title")[0];
|
|
9481
10246
|
if (
|
|
9482
|
-
!
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
"http://www.w3.org/2000/svg" ===
|
|
9486
|
-
|
|
9487
|
-
currentResource.hasAttribute("itemprop")
|
|
10247
|
+
!lanes ||
|
|
10248
|
+
lanes[internalHoistableMarker] ||
|
|
10249
|
+
lanes[internalInstanceKey] ||
|
|
10250
|
+
"http://www.w3.org/2000/svg" === lanes.namespaceURI ||
|
|
10251
|
+
lanes.hasAttribute("itemprop")
|
|
9488
10252
|
)
|
|
9489
|
-
(
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
10253
|
+
(lanes = root.createElement(current)),
|
|
10254
|
+
root.head.insertBefore(
|
|
10255
|
+
lanes,
|
|
10256
|
+
root.querySelector("head > title")
|
|
9493
10257
|
);
|
|
9494
|
-
setInitialProperties(
|
|
9495
|
-
|
|
9496
|
-
markNodeAsHoistable(
|
|
9497
|
-
|
|
10258
|
+
setInitialProperties(lanes, current, flags);
|
|
10259
|
+
lanes[internalInstanceKey] = finishedWork;
|
|
10260
|
+
markNodeAsHoistable(lanes);
|
|
10261
|
+
current = lanes;
|
|
9498
10262
|
break a;
|
|
9499
10263
|
case "link":
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
10264
|
+
if (
|
|
10265
|
+
(hoistableRoot = getHydratableHoistableCache(
|
|
10266
|
+
"link",
|
|
10267
|
+
"href",
|
|
10268
|
+
root
|
|
10269
|
+
).get(current + (flags.href || "")))
|
|
10270
|
+
)
|
|
10271
|
+
for (var i = 0; i < hoistableRoot.length; i++)
|
|
9507
10272
|
if (
|
|
9508
|
-
((
|
|
9509
|
-
|
|
9510
|
-
(null ==
|
|
10273
|
+
((lanes = hoistableRoot[i]),
|
|
10274
|
+
lanes.getAttribute("href") ===
|
|
10275
|
+
(null == flags.href || "" === flags.href
|
|
9511
10276
|
? null
|
|
9512
|
-
:
|
|
9513
|
-
|
|
9514
|
-
(null ==
|
|
9515
|
-
|
|
9516
|
-
(null ==
|
|
9517
|
-
|
|
9518
|
-
(null ==
|
|
10277
|
+
: flags.href) &&
|
|
10278
|
+
lanes.getAttribute("rel") ===
|
|
10279
|
+
(null == flags.rel ? null : flags.rel) &&
|
|
10280
|
+
lanes.getAttribute("title") ===
|
|
10281
|
+
(null == flags.title ? null : flags.title) &&
|
|
10282
|
+
lanes.getAttribute("crossorigin") ===
|
|
10283
|
+
(null == flags.crossOrigin
|
|
9519
10284
|
? null
|
|
9520
|
-
:
|
|
10285
|
+
: flags.crossOrigin))
|
|
9521
10286
|
) {
|
|
9522
|
-
|
|
10287
|
+
hoistableRoot.splice(i, 1);
|
|
9523
10288
|
break b;
|
|
9524
10289
|
}
|
|
9525
|
-
|
|
9526
|
-
setInitialProperties(
|
|
9527
|
-
|
|
10290
|
+
lanes = root.createElement(current);
|
|
10291
|
+
setInitialProperties(lanes, current, flags);
|
|
10292
|
+
root.head.appendChild(lanes);
|
|
9528
10293
|
break;
|
|
9529
10294
|
case "meta":
|
|
9530
10295
|
if (
|
|
9531
|
-
(
|
|
10296
|
+
(hoistableRoot = getHydratableHoistableCache(
|
|
9532
10297
|
"meta",
|
|
9533
10298
|
"content",
|
|
9534
|
-
|
|
9535
|
-
).get(
|
|
10299
|
+
root
|
|
10300
|
+
).get(current + (flags.content || "")))
|
|
9536
10301
|
)
|
|
9537
|
-
for (i = 0; i <
|
|
10302
|
+
for (i = 0; i < hoistableRoot.length; i++)
|
|
9538
10303
|
if (
|
|
9539
|
-
((
|
|
9540
|
-
|
|
9541
|
-
(null ==
|
|
10304
|
+
((lanes = hoistableRoot[i]),
|
|
10305
|
+
lanes.getAttribute("content") ===
|
|
10306
|
+
(null == flags.content
|
|
9542
10307
|
? null
|
|
9543
|
-
: "" +
|
|
9544
|
-
|
|
9545
|
-
(null ==
|
|
9546
|
-
|
|
9547
|
-
(null ==
|
|
10308
|
+
: "" + flags.content) &&
|
|
10309
|
+
lanes.getAttribute("name") ===
|
|
10310
|
+
(null == flags.name ? null : flags.name) &&
|
|
10311
|
+
lanes.getAttribute("property") ===
|
|
10312
|
+
(null == flags.property
|
|
9548
10313
|
? null
|
|
9549
|
-
:
|
|
9550
|
-
|
|
9551
|
-
(null ==
|
|
10314
|
+
: flags.property) &&
|
|
10315
|
+
lanes.getAttribute("http-equiv") ===
|
|
10316
|
+
(null == flags.httpEquiv
|
|
9552
10317
|
? null
|
|
9553
|
-
:
|
|
9554
|
-
|
|
9555
|
-
(null ==
|
|
9556
|
-
? null
|
|
9557
|
-
: current.charSet))
|
|
10318
|
+
: flags.httpEquiv) &&
|
|
10319
|
+
lanes.getAttribute("charset") ===
|
|
10320
|
+
(null == flags.charSet ? null : flags.charSet))
|
|
9558
10321
|
) {
|
|
9559
|
-
|
|
10322
|
+
hoistableRoot.splice(i, 1);
|
|
9560
10323
|
break b;
|
|
9561
10324
|
}
|
|
9562
|
-
|
|
9563
|
-
setInitialProperties(
|
|
9564
|
-
|
|
10325
|
+
lanes = root.createElement(current);
|
|
10326
|
+
setInitialProperties(lanes, current, flags);
|
|
10327
|
+
root.head.appendChild(lanes);
|
|
9565
10328
|
break;
|
|
9566
10329
|
default:
|
|
9567
|
-
throw Error(formatProdErrorMessage(468,
|
|
10330
|
+
throw Error(formatProdErrorMessage(468, current));
|
|
9568
10331
|
}
|
|
9569
|
-
|
|
9570
|
-
markNodeAsHoistable(
|
|
9571
|
-
|
|
10332
|
+
lanes[internalInstanceKey] = finishedWork;
|
|
10333
|
+
markNodeAsHoistable(lanes);
|
|
10334
|
+
current = lanes;
|
|
9572
10335
|
}
|
|
9573
|
-
finishedWork.stateNode =
|
|
10336
|
+
finishedWork.stateNode = current;
|
|
9574
10337
|
} else
|
|
9575
10338
|
mountHoistable(
|
|
9576
10339
|
hoistableRoot,
|
|
@@ -9584,12 +10347,12 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
9584
10347
|
finishedWork.memoizedProps
|
|
9585
10348
|
);
|
|
9586
10349
|
else
|
|
9587
|
-
|
|
9588
|
-
? (null ===
|
|
10350
|
+
root !== flags
|
|
10351
|
+
? (null === root
|
|
9589
10352
|
? null !== current.stateNode &&
|
|
9590
10353
|
((current = current.stateNode),
|
|
9591
10354
|
current.parentNode.removeChild(current))
|
|
9592
|
-
:
|
|
10355
|
+
: root.count--,
|
|
9593
10356
|
null === flags
|
|
9594
10357
|
? mountHoistable(
|
|
9595
10358
|
hoistableRoot,
|
|
@@ -9608,10 +10371,9 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
9608
10371
|
finishedWork.memoizedProps,
|
|
9609
10372
|
current.memoizedProps
|
|
9610
10373
|
);
|
|
9611
|
-
}
|
|
9612
10374
|
break;
|
|
9613
10375
|
case 27:
|
|
9614
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
10376
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
9615
10377
|
commitReconciliationEffects(finishedWork);
|
|
9616
10378
|
flags & 512 &&
|
|
9617
10379
|
(offscreenSubtreeWasHidden ||
|
|
@@ -9626,50 +10388,51 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
9626
10388
|
);
|
|
9627
10389
|
break;
|
|
9628
10390
|
case 5:
|
|
9629
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
10391
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
9630
10392
|
commitReconciliationEffects(finishedWork);
|
|
9631
10393
|
flags & 512 &&
|
|
9632
10394
|
(offscreenSubtreeWasHidden ||
|
|
9633
10395
|
null === current ||
|
|
9634
10396
|
safelyDetachRef(current, current.return));
|
|
9635
10397
|
if (finishedWork.flags & 32) {
|
|
9636
|
-
|
|
10398
|
+
root = finishedWork.stateNode;
|
|
9637
10399
|
try {
|
|
9638
|
-
setTextContent(
|
|
10400
|
+
setTextContent(root, ""), (viewTransitionMutationContext = !0);
|
|
9639
10401
|
} catch (error) {
|
|
9640
10402
|
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
9641
10403
|
}
|
|
9642
10404
|
}
|
|
9643
10405
|
flags & 4 &&
|
|
9644
10406
|
null != finishedWork.stateNode &&
|
|
9645
|
-
((
|
|
10407
|
+
((root = finishedWork.memoizedProps),
|
|
9646
10408
|
commitHostUpdate(
|
|
9647
10409
|
finishedWork,
|
|
9648
|
-
|
|
9649
|
-
null !== current ? current.memoizedProps :
|
|
10410
|
+
root,
|
|
10411
|
+
null !== current ? current.memoizedProps : root
|
|
9650
10412
|
));
|
|
9651
10413
|
flags & 1024 && (needsFormReset = !0);
|
|
9652
10414
|
break;
|
|
9653
10415
|
case 6:
|
|
9654
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
10416
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
9655
10417
|
commitReconciliationEffects(finishedWork);
|
|
9656
10418
|
if (flags & 4) {
|
|
9657
10419
|
if (null === finishedWork.stateNode)
|
|
9658
10420
|
throw Error(formatProdErrorMessage(162));
|
|
9659
|
-
|
|
9660
|
-
|
|
10421
|
+
current = finishedWork.memoizedProps;
|
|
10422
|
+
flags = finishedWork.stateNode;
|
|
9661
10423
|
try {
|
|
9662
|
-
|
|
10424
|
+
(flags.nodeValue = current), (viewTransitionMutationContext = !0);
|
|
9663
10425
|
} catch (error) {
|
|
9664
10426
|
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
9665
10427
|
}
|
|
9666
10428
|
}
|
|
9667
10429
|
break;
|
|
9668
10430
|
case 3:
|
|
10431
|
+
viewTransitionMutationContext = !1;
|
|
9669
10432
|
tagCaches = null;
|
|
9670
10433
|
hoistableRoot = currentHoistableRoot;
|
|
9671
10434
|
currentHoistableRoot = getHoistableRoot(root.containerInfo);
|
|
9672
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
10435
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
9673
10436
|
currentHoistableRoot = hoistableRoot;
|
|
9674
10437
|
commitReconciliationEffects(finishedWork);
|
|
9675
10438
|
if (flags & 4 && null !== current && current.memoizedState.isDehydrated)
|
|
@@ -9680,41 +10443,47 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
9680
10443
|
}
|
|
9681
10444
|
needsFormReset &&
|
|
9682
10445
|
((needsFormReset = !1), recursivelyResetForms(finishedWork));
|
|
10446
|
+
viewTransitionMutationContext = !1;
|
|
9683
10447
|
break;
|
|
9684
10448
|
case 4:
|
|
10449
|
+
current = pushMutationContext();
|
|
9685
10450
|
flags = currentHoistableRoot;
|
|
9686
10451
|
currentHoistableRoot = getHoistableRoot(
|
|
9687
10452
|
finishedWork.stateNode.containerInfo
|
|
9688
10453
|
);
|
|
9689
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
10454
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
9690
10455
|
commitReconciliationEffects(finishedWork);
|
|
9691
10456
|
currentHoistableRoot = flags;
|
|
10457
|
+
viewTransitionMutationContext &&
|
|
10458
|
+
inUpdateViewTransition &&
|
|
10459
|
+
(rootViewTransitionAffected = !0);
|
|
10460
|
+
viewTransitionMutationContext = current;
|
|
9692
10461
|
break;
|
|
9693
10462
|
case 12:
|
|
9694
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
10463
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
9695
10464
|
commitReconciliationEffects(finishedWork);
|
|
9696
10465
|
break;
|
|
9697
10466
|
case 31:
|
|
9698
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
10467
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
9699
10468
|
commitReconciliationEffects(finishedWork);
|
|
9700
10469
|
flags & 4 &&
|
|
9701
|
-
((
|
|
9702
|
-
null !==
|
|
10470
|
+
((current = finishedWork.updateQueue),
|
|
10471
|
+
null !== current &&
|
|
9703
10472
|
((finishedWork.updateQueue = null),
|
|
9704
|
-
attachSuspenseRetryListeners(finishedWork,
|
|
10473
|
+
attachSuspenseRetryListeners(finishedWork, current)));
|
|
9705
10474
|
break;
|
|
9706
10475
|
case 13:
|
|
9707
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
10476
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
9708
10477
|
commitReconciliationEffects(finishedWork);
|
|
9709
10478
|
finishedWork.child.flags & 8192 &&
|
|
9710
10479
|
(null !== finishedWork.memoizedState) !==
|
|
9711
10480
|
(null !== current && null !== current.memoizedState) &&
|
|
9712
10481
|
(globalMostRecentFallbackTime = now());
|
|
9713
10482
|
flags & 4 &&
|
|
9714
|
-
((
|
|
9715
|
-
null !==
|
|
10483
|
+
((current = finishedWork.updateQueue),
|
|
10484
|
+
null !== current &&
|
|
9716
10485
|
((finishedWork.updateQueue = null),
|
|
9717
|
-
attachSuspenseRetryListeners(finishedWork,
|
|
10486
|
+
attachSuspenseRetryListeners(finishedWork, current)));
|
|
9718
10487
|
break;
|
|
9719
10488
|
case 22:
|
|
9720
10489
|
hoistableRoot = null !== finishedWork.memoizedState;
|
|
@@ -9723,7 +10492,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
9723
10492
|
prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;
|
|
9724
10493
|
offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot;
|
|
9725
10494
|
offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden;
|
|
9726
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
10495
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
9727
10496
|
offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;
|
|
9728
10497
|
offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;
|
|
9729
10498
|
commitReconciliationEffects(finishedWork);
|
|
@@ -9746,52 +10515,53 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
9746
10515
|
) {
|
|
9747
10516
|
if (5 === root.tag || 26 === root.tag) {
|
|
9748
10517
|
if (null === current) {
|
|
9749
|
-
|
|
10518
|
+
lanes = current = root;
|
|
9750
10519
|
try {
|
|
9751
|
-
if (((
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
else {
|
|
9757
|
-
|
|
9758
|
-
|
|
10520
|
+
if (((i = lanes.stateNode), hoistableRoot)) {
|
|
10521
|
+
var style = i.style;
|
|
10522
|
+
"function" === typeof style.setProperty
|
|
10523
|
+
? style.setProperty("display", "none", "important")
|
|
10524
|
+
: (style.display = "none");
|
|
10525
|
+
} else {
|
|
10526
|
+
var instance = lanes.stateNode,
|
|
10527
|
+
styleProp = lanes.memoizedProps.style,
|
|
9759
10528
|
display =
|
|
9760
10529
|
void 0 !== styleProp &&
|
|
9761
10530
|
null !== styleProp &&
|
|
9762
10531
|
styleProp.hasOwnProperty("display")
|
|
9763
10532
|
? styleProp.display
|
|
9764
10533
|
: null;
|
|
9765
|
-
|
|
10534
|
+
instance.style.display =
|
|
9766
10535
|
null == display || "boolean" === typeof display
|
|
9767
10536
|
? ""
|
|
9768
10537
|
: ("" + display).trim();
|
|
9769
10538
|
}
|
|
9770
10539
|
} catch (error) {
|
|
9771
|
-
captureCommitPhaseError(
|
|
10540
|
+
captureCommitPhaseError(lanes, lanes.return, error);
|
|
9772
10541
|
}
|
|
9773
10542
|
}
|
|
9774
10543
|
} else if (6 === root.tag) {
|
|
9775
10544
|
if (null === current) {
|
|
9776
|
-
|
|
10545
|
+
lanes = root;
|
|
9777
10546
|
try {
|
|
9778
|
-
|
|
10547
|
+
(lanes.stateNode.nodeValue = hoistableRoot
|
|
9779
10548
|
? ""
|
|
9780
|
-
:
|
|
10549
|
+
: lanes.memoizedProps),
|
|
10550
|
+
(viewTransitionMutationContext = !0);
|
|
9781
10551
|
} catch (error) {
|
|
9782
|
-
captureCommitPhaseError(
|
|
10552
|
+
captureCommitPhaseError(lanes, lanes.return, error);
|
|
9783
10553
|
}
|
|
9784
10554
|
}
|
|
9785
10555
|
} else if (18 === root.tag) {
|
|
9786
10556
|
if (null === current) {
|
|
9787
|
-
|
|
10557
|
+
lanes = root;
|
|
9788
10558
|
try {
|
|
9789
|
-
var instance =
|
|
10559
|
+
var instance$jscomp$0 = lanes.stateNode;
|
|
9790
10560
|
hoistableRoot
|
|
9791
|
-
? hideOrUnhideDehydratedBoundary(instance, !0)
|
|
9792
|
-
: hideOrUnhideDehydratedBoundary(
|
|
10561
|
+
? hideOrUnhideDehydratedBoundary(instance$jscomp$0, !0)
|
|
10562
|
+
: hideOrUnhideDehydratedBoundary(lanes.stateNode, !1);
|
|
9793
10563
|
} catch (error) {
|
|
9794
|
-
captureCommitPhaseError(
|
|
10564
|
+
captureCommitPhaseError(lanes, lanes.return, error);
|
|
9795
10565
|
}
|
|
9796
10566
|
}
|
|
9797
10567
|
} else if (
|
|
@@ -9815,28 +10585,50 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
9815
10585
|
root = root.sibling;
|
|
9816
10586
|
}
|
|
9817
10587
|
flags & 4 &&
|
|
9818
|
-
((
|
|
9819
|
-
null !==
|
|
9820
|
-
((
|
|
9821
|
-
null !==
|
|
9822
|
-
((
|
|
9823
|
-
attachSuspenseRetryListeners(finishedWork,
|
|
10588
|
+
((current = finishedWork.updateQueue),
|
|
10589
|
+
null !== current &&
|
|
10590
|
+
((flags = current.retryQueue),
|
|
10591
|
+
null !== flags &&
|
|
10592
|
+
((current.retryQueue = null),
|
|
10593
|
+
attachSuspenseRetryListeners(finishedWork, flags))));
|
|
9824
10594
|
break;
|
|
9825
10595
|
case 19:
|
|
9826
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
10596
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
9827
10597
|
commitReconciliationEffects(finishedWork);
|
|
9828
10598
|
flags & 4 &&
|
|
9829
|
-
((
|
|
9830
|
-
null !==
|
|
10599
|
+
((current = finishedWork.updateQueue),
|
|
10600
|
+
null !== current &&
|
|
9831
10601
|
((finishedWork.updateQueue = null),
|
|
9832
|
-
attachSuspenseRetryListeners(finishedWork,
|
|
10602
|
+
attachSuspenseRetryListeners(finishedWork, current)));
|
|
9833
10603
|
break;
|
|
9834
10604
|
case 30:
|
|
10605
|
+
flags & 512 &&
|
|
10606
|
+
(offscreenSubtreeWasHidden ||
|
|
10607
|
+
null === current ||
|
|
10608
|
+
safelyDetachRef(current, current.return));
|
|
10609
|
+
flags = pushMutationContext();
|
|
10610
|
+
hoistableRoot = inUpdateViewTransition;
|
|
10611
|
+
i = (lanes & 335544064) === lanes;
|
|
10612
|
+
style = finishedWork.memoizedProps;
|
|
10613
|
+
inUpdateViewTransition =
|
|
10614
|
+
i && "none" !== getViewTransitionClassName(style.default, style.update);
|
|
10615
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
10616
|
+
commitReconciliationEffects(finishedWork);
|
|
10617
|
+
i &&
|
|
10618
|
+
null !== current &&
|
|
10619
|
+
viewTransitionMutationContext &&
|
|
10620
|
+
(finishedWork.flags |= 4);
|
|
10621
|
+
inUpdateViewTransition = hoistableRoot;
|
|
10622
|
+
viewTransitionMutationContext = flags;
|
|
9835
10623
|
break;
|
|
9836
10624
|
case 21:
|
|
9837
10625
|
break;
|
|
10626
|
+
case 7:
|
|
10627
|
+
current &&
|
|
10628
|
+
null !== current.stateNode &&
|
|
10629
|
+
(current.stateNode._fragmentFiber = finishedWork);
|
|
9838
10630
|
default:
|
|
9839
|
-
recursivelyTraverseMutationEffects(root, finishedWork),
|
|
10631
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes),
|
|
9840
10632
|
commitReconciliationEffects(finishedWork);
|
|
9841
10633
|
}
|
|
9842
10634
|
}
|
|
@@ -9845,10 +10637,18 @@ function commitReconciliationEffects(finishedWork) {
|
|
|
9845
10637
|
if (flags & 2) {
|
|
9846
10638
|
try {
|
|
9847
10639
|
for (
|
|
9848
|
-
var hostParentFiber,
|
|
10640
|
+
var hostParentFiber,
|
|
10641
|
+
parentFragmentInstances = null,
|
|
10642
|
+
parentFiber = finishedWork.return;
|
|
9849
10643
|
null !== parentFiber;
|
|
9850
10644
|
|
|
9851
10645
|
) {
|
|
10646
|
+
if (isFragmentInstanceParent(parentFiber)) {
|
|
10647
|
+
var fragmentInstance = parentFiber.stateNode;
|
|
10648
|
+
null === parentFragmentInstances
|
|
10649
|
+
? (parentFragmentInstances = [fragmentInstance])
|
|
10650
|
+
: parentFragmentInstances.push(fragmentInstance);
|
|
10651
|
+
}
|
|
9852
10652
|
if (isHostParent(parentFiber)) {
|
|
9853
10653
|
hostParentFiber = parentFiber;
|
|
9854
10654
|
break;
|
|
@@ -9860,23 +10660,34 @@ function commitReconciliationEffects(finishedWork) {
|
|
|
9860
10660
|
case 27:
|
|
9861
10661
|
var parent = hostParentFiber.stateNode,
|
|
9862
10662
|
before = getHostSibling(finishedWork);
|
|
9863
|
-
insertOrAppendPlacementNode(
|
|
10663
|
+
insertOrAppendPlacementNode(
|
|
10664
|
+
finishedWork,
|
|
10665
|
+
before,
|
|
10666
|
+
parent,
|
|
10667
|
+
parentFragmentInstances
|
|
10668
|
+
);
|
|
9864
10669
|
break;
|
|
9865
10670
|
case 5:
|
|
9866
|
-
var parent$
|
|
10671
|
+
var parent$144 = hostParentFiber.stateNode;
|
|
9867
10672
|
hostParentFiber.flags & 32 &&
|
|
9868
|
-
(setTextContent(parent$
|
|
9869
|
-
var before$
|
|
9870
|
-
insertOrAppendPlacementNode(
|
|
10673
|
+
(setTextContent(parent$144, ""), (hostParentFiber.flags &= -33));
|
|
10674
|
+
var before$145 = getHostSibling(finishedWork);
|
|
10675
|
+
insertOrAppendPlacementNode(
|
|
10676
|
+
finishedWork,
|
|
10677
|
+
before$145,
|
|
10678
|
+
parent$144,
|
|
10679
|
+
parentFragmentInstances
|
|
10680
|
+
);
|
|
9871
10681
|
break;
|
|
9872
10682
|
case 3:
|
|
9873
10683
|
case 4:
|
|
9874
|
-
var parent$
|
|
9875
|
-
before$
|
|
10684
|
+
var parent$146 = hostParentFiber.stateNode.containerInfo,
|
|
10685
|
+
before$147 = getHostSibling(finishedWork);
|
|
9876
10686
|
insertOrAppendPlacementNodeIntoContainer(
|
|
9877
10687
|
finishedWork,
|
|
9878
|
-
before$
|
|
9879
|
-
parent$
|
|
10688
|
+
before$147,
|
|
10689
|
+
parent$146,
|
|
10690
|
+
parentFragmentInstances
|
|
9880
10691
|
);
|
|
9881
10692
|
break;
|
|
9882
10693
|
default:
|
|
@@ -9898,6 +10709,128 @@ function recursivelyResetForms(parentFiber) {
|
|
|
9898
10709
|
parentFiber = parentFiber.sibling;
|
|
9899
10710
|
}
|
|
9900
10711
|
}
|
|
10712
|
+
function recursivelyTraverseAfterMutationEffects(root, parentFiber) {
|
|
10713
|
+
if (parentFiber.subtreeFlags & 9270)
|
|
10714
|
+
for (parentFiber = parentFiber.child; null !== parentFiber; )
|
|
10715
|
+
commitAfterMutationEffectsOnFiber(parentFiber, root),
|
|
10716
|
+
(parentFiber = parentFiber.sibling);
|
|
10717
|
+
else measureNestedViewTransitions(parentFiber, !1);
|
|
10718
|
+
}
|
|
10719
|
+
function commitAfterMutationEffectsOnFiber(finishedWork, root) {
|
|
10720
|
+
var current = finishedWork.alternate;
|
|
10721
|
+
if (null === current) commitEnterViewTransitions(finishedWork, !1);
|
|
10722
|
+
else
|
|
10723
|
+
switch (finishedWork.tag) {
|
|
10724
|
+
case 3:
|
|
10725
|
+
rootViewTransitionNameCanceled = viewTransitionContextChanged = !1;
|
|
10726
|
+
pushViewTransitionCancelableScope();
|
|
10727
|
+
recursivelyTraverseAfterMutationEffects(root, finishedWork);
|
|
10728
|
+
if (!viewTransitionContextChanged && !rootViewTransitionAffected) {
|
|
10729
|
+
finishedWork = viewTransitionCancelableChildren;
|
|
10730
|
+
if (null !== finishedWork)
|
|
10731
|
+
for (var i = 0; i < finishedWork.length; i += 3) {
|
|
10732
|
+
current = finishedWork[i];
|
|
10733
|
+
var oldName = finishedWork[i + 1];
|
|
10734
|
+
restoreViewTransitionName(current, finishedWork[i + 2]);
|
|
10735
|
+
current = current.ownerDocument.documentElement;
|
|
10736
|
+
null !== current &&
|
|
10737
|
+
current.animate(
|
|
10738
|
+
{ opacity: [0, 0], pointerEvents: ["none", "none"] },
|
|
10739
|
+
{
|
|
10740
|
+
duration: 0,
|
|
10741
|
+
fill: "forwards",
|
|
10742
|
+
pseudoElement: "::view-transition-group(" + oldName + ")"
|
|
10743
|
+
}
|
|
10744
|
+
);
|
|
10745
|
+
}
|
|
10746
|
+
finishedWork = root.containerInfo;
|
|
10747
|
+
finishedWork =
|
|
10748
|
+
9 === finishedWork.nodeType
|
|
10749
|
+
? finishedWork.documentElement
|
|
10750
|
+
: finishedWork.ownerDocument.documentElement;
|
|
10751
|
+
null !== finishedWork &&
|
|
10752
|
+
"" === finishedWork.style.viewTransitionName &&
|
|
10753
|
+
((finishedWork.style.viewTransitionName = "none"),
|
|
10754
|
+
finishedWork.animate(
|
|
10755
|
+
{ opacity: [0, 0], pointerEvents: ["none", "none"] },
|
|
10756
|
+
{
|
|
10757
|
+
duration: 0,
|
|
10758
|
+
fill: "forwards",
|
|
10759
|
+
pseudoElement: "::view-transition-group(root)"
|
|
10760
|
+
}
|
|
10761
|
+
),
|
|
10762
|
+
finishedWork.animate(
|
|
10763
|
+
{ width: [0, 0], height: [0, 0] },
|
|
10764
|
+
{
|
|
10765
|
+
duration: 0,
|
|
10766
|
+
fill: "forwards",
|
|
10767
|
+
pseudoElement: "::view-transition"
|
|
10768
|
+
}
|
|
10769
|
+
));
|
|
10770
|
+
rootViewTransitionNameCanceled = !0;
|
|
10771
|
+
}
|
|
10772
|
+
viewTransitionCancelableChildren = null;
|
|
10773
|
+
break;
|
|
10774
|
+
case 5:
|
|
10775
|
+
recursivelyTraverseAfterMutationEffects(root, finishedWork);
|
|
10776
|
+
break;
|
|
10777
|
+
case 4:
|
|
10778
|
+
i = viewTransitionContextChanged;
|
|
10779
|
+
viewTransitionContextChanged = !1;
|
|
10780
|
+
recursivelyTraverseAfterMutationEffects(root, finishedWork);
|
|
10781
|
+
viewTransitionContextChanged && (rootViewTransitionAffected = !0);
|
|
10782
|
+
viewTransitionContextChanged = i;
|
|
10783
|
+
break;
|
|
10784
|
+
case 22:
|
|
10785
|
+
null === finishedWork.memoizedState &&
|
|
10786
|
+
(null !== current.memoizedState
|
|
10787
|
+
? commitEnterViewTransitions(finishedWork, !1)
|
|
10788
|
+
: recursivelyTraverseAfterMutationEffects(root, finishedWork));
|
|
10789
|
+
break;
|
|
10790
|
+
case 30:
|
|
10791
|
+
i = viewTransitionContextChanged;
|
|
10792
|
+
oldName = pushViewTransitionCancelableScope();
|
|
10793
|
+
viewTransitionContextChanged = !1;
|
|
10794
|
+
recursivelyTraverseAfterMutationEffects(root, finishedWork);
|
|
10795
|
+
viewTransitionContextChanged && (finishedWork.flags |= 4);
|
|
10796
|
+
var props = finishedWork.memoizedProps,
|
|
10797
|
+
state = finishedWork.stateNode;
|
|
10798
|
+
root = getViewTransitionName(props, state);
|
|
10799
|
+
state = getViewTransitionName(current.memoizedProps, state);
|
|
10800
|
+
var className = getViewTransitionClassName(props.default, props.update);
|
|
10801
|
+
"none" === className
|
|
10802
|
+
? (root = !1)
|
|
10803
|
+
: ((props = current.memoizedState),
|
|
10804
|
+
(current.memoizedState = null),
|
|
10805
|
+
(current = finishedWork.child),
|
|
10806
|
+
(viewTransitionHostInstanceIdx = 0),
|
|
10807
|
+
(root = measureViewTransitionHostInstancesRecursive(
|
|
10808
|
+
finishedWork,
|
|
10809
|
+
current,
|
|
10810
|
+
root,
|
|
10811
|
+
state,
|
|
10812
|
+
className,
|
|
10813
|
+
props,
|
|
10814
|
+
!0
|
|
10815
|
+
)),
|
|
10816
|
+
viewTransitionHostInstanceIdx !==
|
|
10817
|
+
(null === props ? 0 : props.length) &&
|
|
10818
|
+
(finishedWork.flags |= 32));
|
|
10819
|
+
0 !== (finishedWork.flags & 4) && root
|
|
10820
|
+
? (scheduleViewTransitionEvent(
|
|
10821
|
+
finishedWork,
|
|
10822
|
+
finishedWork.memoizedProps.onUpdate
|
|
10823
|
+
),
|
|
10824
|
+
(viewTransitionCancelableChildren = oldName))
|
|
10825
|
+
: null !== oldName &&
|
|
10826
|
+
(oldName.push.apply(oldName, viewTransitionCancelableChildren),
|
|
10827
|
+
(viewTransitionCancelableChildren = oldName));
|
|
10828
|
+
viewTransitionContextChanged = 0 !== (finishedWork.flags & 32) ? !0 : i;
|
|
10829
|
+
break;
|
|
10830
|
+
default:
|
|
10831
|
+
recursivelyTraverseAfterMutationEffects(root, finishedWork);
|
|
10832
|
+
}
|
|
10833
|
+
}
|
|
9901
10834
|
function recursivelyTraverseLayoutEffects(root, parentFiber) {
|
|
9902
10835
|
if (parentFiber.subtreeFlags & 8772)
|
|
9903
10836
|
for (parentFiber = parentFiber.child; null !== parentFiber; )
|
|
@@ -9931,6 +10864,8 @@ function recursivelyTraverseDisappearLayoutEffects(parentFiber) {
|
|
|
9931
10864
|
case 26:
|
|
9932
10865
|
case 5:
|
|
9933
10866
|
safelyDetachRef(finishedWork, finishedWork.return);
|
|
10867
|
+
5 === finishedWork.tag &&
|
|
10868
|
+
commitFragmentInstanceDeletionEffects(finishedWork);
|
|
9934
10869
|
recursivelyTraverseDisappearLayoutEffects(finishedWork);
|
|
9935
10870
|
break;
|
|
9936
10871
|
case 22:
|
|
@@ -9938,8 +10873,11 @@ function recursivelyTraverseDisappearLayoutEffects(parentFiber) {
|
|
|
9938
10873
|
recursivelyTraverseDisappearLayoutEffects(finishedWork);
|
|
9939
10874
|
break;
|
|
9940
10875
|
case 30:
|
|
10876
|
+
safelyDetachRef(finishedWork, finishedWork.return);
|
|
9941
10877
|
recursivelyTraverseDisappearLayoutEffects(finishedWork);
|
|
9942
10878
|
break;
|
|
10879
|
+
case 7:
|
|
10880
|
+
safelyDetachRef(finishedWork, finishedWork.return);
|
|
9943
10881
|
default:
|
|
9944
10882
|
recursivelyTraverseDisappearLayoutEffects(finishedWork);
|
|
9945
10883
|
}
|
|
@@ -10009,6 +10947,18 @@ function recursivelyTraverseReappearLayoutEffects(
|
|
|
10009
10947
|
commitHostSingletonAcquisition(finishedWork);
|
|
10010
10948
|
case 26:
|
|
10011
10949
|
case 5:
|
|
10950
|
+
if (5 === finishedWork.tag) {
|
|
10951
|
+
instance = finishedWork;
|
|
10952
|
+
for (var parent = instance.return; null !== parent; ) {
|
|
10953
|
+
isFragmentInstanceParent(parent) &&
|
|
10954
|
+
commitNewChildToFragmentInstance(
|
|
10955
|
+
instance.stateNode,
|
|
10956
|
+
parent.stateNode
|
|
10957
|
+
);
|
|
10958
|
+
if (isHostParent(parent)) break;
|
|
10959
|
+
parent = parent.return;
|
|
10960
|
+
}
|
|
10961
|
+
}
|
|
10012
10962
|
recursivelyTraverseReappearLayoutEffects(
|
|
10013
10963
|
finishedRoot,
|
|
10014
10964
|
finishedWork,
|
|
@@ -10057,7 +11007,15 @@ function recursivelyTraverseReappearLayoutEffects(
|
|
|
10057
11007
|
safelyAttachRef(finishedWork, finishedWork.return);
|
|
10058
11008
|
break;
|
|
10059
11009
|
case 30:
|
|
11010
|
+
recursivelyTraverseReappearLayoutEffects(
|
|
11011
|
+
finishedRoot,
|
|
11012
|
+
finishedWork,
|
|
11013
|
+
includeWorkInProgressEffects
|
|
11014
|
+
);
|
|
11015
|
+
safelyAttachRef(finishedWork, finishedWork.return);
|
|
10060
11016
|
break;
|
|
11017
|
+
case 7:
|
|
11018
|
+
safelyAttachRef(finishedWork, finishedWork.return);
|
|
10061
11019
|
default:
|
|
10062
11020
|
recursivelyTraverseReappearLayoutEffects(
|
|
10063
11021
|
finishedRoot,
|
|
@@ -10096,7 +11054,9 @@ function recursivelyTraversePassiveMountEffects(
|
|
|
10096
11054
|
committedLanes,
|
|
10097
11055
|
committedTransitions
|
|
10098
11056
|
) {
|
|
10099
|
-
|
|
11057
|
+
var isViewTransitionEligible =
|
|
11058
|
+
(committedLanes & 335544064) === committedLanes;
|
|
11059
|
+
if (parentFiber.subtreeFlags & (isViewTransitionEligible ? 10262 : 10256))
|
|
10100
11060
|
for (parentFiber = parentFiber.child; null !== parentFiber; )
|
|
10101
11061
|
commitPassiveMountOnFiber(
|
|
10102
11062
|
root,
|
|
@@ -10105,6 +11065,7 @@ function recursivelyTraversePassiveMountEffects(
|
|
|
10105
11065
|
committedTransitions
|
|
10106
11066
|
),
|
|
10107
11067
|
(parentFiber = parentFiber.sibling);
|
|
11068
|
+
else isViewTransitionEligible && restoreNestedViewTransitions(parentFiber);
|
|
10108
11069
|
}
|
|
10109
11070
|
function commitPassiveMountOnFiber(
|
|
10110
11071
|
finishedRoot,
|
|
@@ -10112,6 +11073,13 @@ function commitPassiveMountOnFiber(
|
|
|
10112
11073
|
committedLanes,
|
|
10113
11074
|
committedTransitions
|
|
10114
11075
|
) {
|
|
11076
|
+
var isViewTransitionEligible =
|
|
11077
|
+
(committedLanes & 335544064) === committedLanes;
|
|
11078
|
+
isViewTransitionEligible &&
|
|
11079
|
+
null === finishedWork.alternate &&
|
|
11080
|
+
null !== finishedWork.return &&
|
|
11081
|
+
null !== finishedWork.return.alternate &&
|
|
11082
|
+
restoreEnterOrExitViewTransitions(finishedWork);
|
|
10115
11083
|
var flags = finishedWork.flags;
|
|
10116
11084
|
switch (finishedWork.tag) {
|
|
10117
11085
|
case 0:
|
|
@@ -10140,14 +11108,28 @@ function commitPassiveMountOnFiber(
|
|
|
10140
11108
|
committedLanes,
|
|
10141
11109
|
committedTransitions
|
|
10142
11110
|
);
|
|
11111
|
+
isViewTransitionEligible &&
|
|
11112
|
+
rootViewTransitionNameCanceled &&
|
|
11113
|
+
((finishedRoot = finishedRoot.containerInfo),
|
|
11114
|
+
(finishedRoot =
|
|
11115
|
+
9 === finishedRoot.nodeType
|
|
11116
|
+
? finishedRoot.body
|
|
11117
|
+
: "HTML" === finishedRoot.nodeName
|
|
11118
|
+
? finishedRoot.ownerDocument.body
|
|
11119
|
+
: finishedRoot),
|
|
11120
|
+
"root" === finishedRoot.style.viewTransitionName &&
|
|
11121
|
+
(finishedRoot.style.viewTransitionName = ""),
|
|
11122
|
+
(finishedRoot = finishedRoot.ownerDocument.documentElement),
|
|
11123
|
+
null !== finishedRoot &&
|
|
11124
|
+
"none" === finishedRoot.style.viewTransitionName &&
|
|
11125
|
+
(finishedRoot.style.viewTransitionName = ""));
|
|
10143
11126
|
flags & 2048 &&
|
|
10144
|
-
((
|
|
11127
|
+
((flags = null),
|
|
10145
11128
|
null !== finishedWork.alternate &&
|
|
10146
|
-
(
|
|
11129
|
+
(flags = finishedWork.alternate.memoizedState.cache),
|
|
10147
11130
|
(finishedWork = finishedWork.memoizedState.cache),
|
|
10148
|
-
finishedWork !==
|
|
10149
|
-
(finishedWork.refCount++,
|
|
10150
|
-
null != finishedRoot && releaseCache(finishedRoot)));
|
|
11131
|
+
finishedWork !== flags &&
|
|
11132
|
+
(finishedWork.refCount++, null != flags && releaseCache(flags)));
|
|
10151
11133
|
break;
|
|
10152
11134
|
case 12:
|
|
10153
11135
|
if (flags & 2048) {
|
|
@@ -10157,7 +11139,7 @@ function commitPassiveMountOnFiber(
|
|
|
10157
11139
|
committedLanes,
|
|
10158
11140
|
committedTransitions
|
|
10159
11141
|
);
|
|
10160
|
-
|
|
11142
|
+
flags = finishedWork.stateNode;
|
|
10161
11143
|
try {
|
|
10162
11144
|
var _finishedWork$memoize2 = finishedWork.memoizedProps,
|
|
10163
11145
|
id = _finishedWork$memoize2.id,
|
|
@@ -10166,7 +11148,7 @@ function commitPassiveMountOnFiber(
|
|
|
10166
11148
|
onPostCommit(
|
|
10167
11149
|
id,
|
|
10168
11150
|
null === finishedWork.alternate ? "mount" : "update",
|
|
10169
|
-
|
|
11151
|
+
flags.passiveEffectDuration,
|
|
10170
11152
|
-0
|
|
10171
11153
|
);
|
|
10172
11154
|
} catch (error) {
|
|
@@ -10202,29 +11184,40 @@ function commitPassiveMountOnFiber(
|
|
|
10202
11184
|
_finishedWork$memoize2 = finishedWork.stateNode;
|
|
10203
11185
|
id = finishedWork.alternate;
|
|
10204
11186
|
null !== finishedWork.memoizedState
|
|
10205
|
-
?
|
|
10206
|
-
|
|
10207
|
-
|
|
10208
|
-
|
|
10209
|
-
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
11187
|
+
? (isViewTransitionEligible &&
|
|
11188
|
+
null !== id &&
|
|
11189
|
+
null === id.memoizedState &&
|
|
11190
|
+
restoreEnterOrExitViewTransitions(id),
|
|
11191
|
+
_finishedWork$memoize2._visibility & 2
|
|
11192
|
+
? recursivelyTraversePassiveMountEffects(
|
|
11193
|
+
finishedRoot,
|
|
11194
|
+
finishedWork,
|
|
11195
|
+
committedLanes,
|
|
11196
|
+
committedTransitions
|
|
11197
|
+
)
|
|
11198
|
+
: recursivelyTraverseAtomicPassiveEffects(
|
|
11199
|
+
finishedRoot,
|
|
11200
|
+
finishedWork
|
|
11201
|
+
))
|
|
11202
|
+
: (isViewTransitionEligible &&
|
|
11203
|
+
null !== id &&
|
|
11204
|
+
null !== id.memoizedState &&
|
|
11205
|
+
restoreEnterOrExitViewTransitions(finishedWork),
|
|
11206
|
+
_finishedWork$memoize2._visibility & 2
|
|
11207
|
+
? recursivelyTraversePassiveMountEffects(
|
|
11208
|
+
finishedRoot,
|
|
11209
|
+
finishedWork,
|
|
11210
|
+
committedLanes,
|
|
11211
|
+
committedTransitions
|
|
11212
|
+
)
|
|
11213
|
+
: ((_finishedWork$memoize2._visibility |= 2),
|
|
11214
|
+
recursivelyTraverseReconnectPassiveEffects(
|
|
11215
|
+
finishedRoot,
|
|
11216
|
+
finishedWork,
|
|
11217
|
+
committedLanes,
|
|
11218
|
+
committedTransitions,
|
|
11219
|
+
0 !== (finishedWork.subtreeFlags & 10256) || !1
|
|
11220
|
+
)));
|
|
10228
11221
|
flags & 2048 && commitOffscreenPassiveMountEffects(id, finishedWork);
|
|
10229
11222
|
break;
|
|
10230
11223
|
case 24:
|
|
@@ -10237,6 +11230,19 @@ function commitPassiveMountOnFiber(
|
|
|
10237
11230
|
flags & 2048 &&
|
|
10238
11231
|
commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);
|
|
10239
11232
|
break;
|
|
11233
|
+
case 30:
|
|
11234
|
+
isViewTransitionEligible &&
|
|
11235
|
+
((flags = finishedWork.alternate),
|
|
11236
|
+
null !== flags &&
|
|
11237
|
+
(restoreViewTransitionOnHostInstances(flags.child, !0),
|
|
11238
|
+
restoreViewTransitionOnHostInstances(finishedWork.child, !0)));
|
|
11239
|
+
recursivelyTraversePassiveMountEffects(
|
|
11240
|
+
finishedRoot,
|
|
11241
|
+
finishedWork,
|
|
11242
|
+
committedLanes,
|
|
11243
|
+
committedTransitions
|
|
11244
|
+
);
|
|
11245
|
+
break;
|
|
10240
11246
|
default:
|
|
10241
11247
|
recursivelyTraversePassiveMountEffects(
|
|
10242
11248
|
finishedRoot,
|
|
@@ -10388,13 +11394,16 @@ function accumulateSuspenseyCommitOnFiber(
|
|
|
10388
11394
|
suspendedState
|
|
10389
11395
|
);
|
|
10390
11396
|
fiber.flags & suspenseyCommitFlag &&
|
|
10391
|
-
null !== fiber.memoizedState
|
|
10392
|
-
|
|
10393
|
-
|
|
10394
|
-
|
|
10395
|
-
|
|
10396
|
-
|
|
10397
|
-
|
|
11397
|
+
(null !== fiber.memoizedState
|
|
11398
|
+
? suspendResource(
|
|
11399
|
+
suspendedState,
|
|
11400
|
+
currentHoistableRoot,
|
|
11401
|
+
fiber.memoizedState,
|
|
11402
|
+
fiber.memoizedProps
|
|
11403
|
+
)
|
|
11404
|
+
: ((fiber = fiber.stateNode),
|
|
11405
|
+
(committedLanes & 335544128) === committedLanes &&
|
|
11406
|
+
suspendInstance(suspendedState, fiber)));
|
|
10398
11407
|
break;
|
|
10399
11408
|
case 5:
|
|
10400
11409
|
recursivelyAccumulateSuspenseyCommit(
|
|
@@ -10402,6 +11411,10 @@ function accumulateSuspenseyCommitOnFiber(
|
|
|
10402
11411
|
committedLanes,
|
|
10403
11412
|
suspendedState
|
|
10404
11413
|
);
|
|
11414
|
+
fiber.flags & suspenseyCommitFlag &&
|
|
11415
|
+
((fiber = fiber.stateNode),
|
|
11416
|
+
(committedLanes & 335544128) === committedLanes &&
|
|
11417
|
+
suspendInstance(suspendedState, fiber));
|
|
10405
11418
|
break;
|
|
10406
11419
|
case 3:
|
|
10407
11420
|
case 4:
|
|
@@ -10433,6 +11446,24 @@ function accumulateSuspenseyCommitOnFiber(
|
|
|
10433
11446
|
suspendedState
|
|
10434
11447
|
));
|
|
10435
11448
|
break;
|
|
11449
|
+
case 30:
|
|
11450
|
+
if (
|
|
11451
|
+
0 !== (fiber.flags & suspenseyCommitFlag) &&
|
|
11452
|
+
((previousHoistableRoot = fiber.memoizedProps.name),
|
|
11453
|
+
null != previousHoistableRoot && "auto" !== previousHoistableRoot)
|
|
11454
|
+
) {
|
|
11455
|
+
var state = fiber.stateNode;
|
|
11456
|
+
state.paired = null;
|
|
11457
|
+
null === appearingViewTransitions &&
|
|
11458
|
+
(appearingViewTransitions = new Map());
|
|
11459
|
+
appearingViewTransitions.set(previousHoistableRoot, state);
|
|
11460
|
+
}
|
|
11461
|
+
recursivelyAccumulateSuspenseyCommit(
|
|
11462
|
+
fiber,
|
|
11463
|
+
committedLanes,
|
|
11464
|
+
suspendedState
|
|
11465
|
+
);
|
|
11466
|
+
break;
|
|
10436
11467
|
default:
|
|
10437
11468
|
recursivelyAccumulateSuspenseyCommit(
|
|
10438
11469
|
fiber,
|
|
@@ -10628,6 +11659,9 @@ var DefaultAsyncDispatcher = {
|
|
|
10628
11659
|
pendingEffectsRemainingLanes = 0,
|
|
10629
11660
|
pendingPassiveTransitions = null,
|
|
10630
11661
|
pendingRecoverableErrors = null,
|
|
11662
|
+
pendingViewTransition = null,
|
|
11663
|
+
pendingViewTransitionEvents = null,
|
|
11664
|
+
pendingTransitionTypes = null,
|
|
10631
11665
|
nestedUpdateCount = 0,
|
|
10632
11666
|
rootWithNestedUpdates = null;
|
|
10633
11667
|
function requestUpdateLane() {
|
|
@@ -10650,6 +11684,19 @@ function requestDeferredLane() {
|
|
|
10650
11684
|
null !== lane && (lane.flags |= 32);
|
|
10651
11685
|
return workInProgressDeferredLane;
|
|
10652
11686
|
}
|
|
11687
|
+
function scheduleViewTransitionEvent(fiber, callback) {
|
|
11688
|
+
if (null != callback) {
|
|
11689
|
+
var state = fiber.stateNode,
|
|
11690
|
+
instance = state.ref;
|
|
11691
|
+
null === instance &&
|
|
11692
|
+
(instance = state.ref =
|
|
11693
|
+
createViewTransitionInstance(
|
|
11694
|
+
getViewTransitionName(fiber.memoizedProps, state)
|
|
11695
|
+
));
|
|
11696
|
+
null === pendingViewTransitionEvents && (pendingViewTransitionEvents = []);
|
|
11697
|
+
pendingViewTransitionEvents.push(callback.bind(null, instance));
|
|
11698
|
+
}
|
|
11699
|
+
}
|
|
10653
11700
|
function scheduleUpdateOnFiber(root, fiber, lane) {
|
|
10654
11701
|
if (
|
|
10655
11702
|
(root === workInProgressRoot &&
|
|
@@ -10862,39 +11909,58 @@ function commitRootWhenReady(
|
|
|
10862
11909
|
completedRenderEndTime
|
|
10863
11910
|
) {
|
|
10864
11911
|
root.timeoutHandle = -1;
|
|
10865
|
-
|
|
11912
|
+
var subtreeFlags = finishedWork.subtreeFlags,
|
|
11913
|
+
isViewTransitionEligible = (lanes & 335544064) === lanes;
|
|
11914
|
+
suspendedCommitReason = null;
|
|
10866
11915
|
if (
|
|
10867
|
-
|
|
10868
|
-
|
|
10869
|
-
|
|
10870
|
-
|
|
10871
|
-
|
|
10872
|
-
|
|
10873
|
-
|
|
10874
|
-
|
|
10875
|
-
|
|
10876
|
-
|
|
10877
|
-
|
|
10878
|
-
|
|
10879
|
-
|
|
10880
|
-
|
|
10881
|
-
|
|
10882
|
-
|
|
10883
|
-
|
|
10884
|
-
|
|
10885
|
-
|
|
10886
|
-
|
|
10887
|
-
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
|
|
10891
|
-
|
|
10892
|
-
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
|
|
11916
|
+
isViewTransitionEligible ||
|
|
11917
|
+
subtreeFlags & 8192 ||
|
|
11918
|
+
16785408 === (subtreeFlags & 16785408)
|
|
11919
|
+
)
|
|
11920
|
+
if (
|
|
11921
|
+
((suspendedCommitReason = {
|
|
11922
|
+
stylesheets: null,
|
|
11923
|
+
count: 0,
|
|
11924
|
+
imgCount: 0,
|
|
11925
|
+
imgBytes: 0,
|
|
11926
|
+
suspenseyImages: [],
|
|
11927
|
+
waitingForImages: !0,
|
|
11928
|
+
waitingForViewTransition: !1,
|
|
11929
|
+
unsuspend: noop$1
|
|
11930
|
+
}),
|
|
11931
|
+
(appearingViewTransitions = null),
|
|
11932
|
+
accumulateSuspenseyCommitOnFiber(
|
|
11933
|
+
finishedWork,
|
|
11934
|
+
lanes,
|
|
11935
|
+
suspendedCommitReason
|
|
11936
|
+
),
|
|
11937
|
+
isViewTransitionEligible &&
|
|
11938
|
+
((subtreeFlags = suspendedCommitReason),
|
|
11939
|
+
(isViewTransitionEligible = root.containerInfo),
|
|
11940
|
+
(isViewTransitionEligible = (
|
|
11941
|
+
9 === isViewTransitionEligible.nodeType
|
|
11942
|
+
? isViewTransitionEligible
|
|
11943
|
+
: isViewTransitionEligible.ownerDocument
|
|
11944
|
+
).__reactViewTransition),
|
|
11945
|
+
null != isViewTransitionEligible &&
|
|
11946
|
+
(subtreeFlags.count++,
|
|
11947
|
+
(subtreeFlags.waitingForViewTransition = !0),
|
|
11948
|
+
(subtreeFlags = onUnsuspend.bind(subtreeFlags)),
|
|
11949
|
+
isViewTransitionEligible.finished.then(subtreeFlags, subtreeFlags))),
|
|
11950
|
+
(subtreeFlags =
|
|
11951
|
+
(lanes & 62914560) === lanes
|
|
11952
|
+
? globalMostRecentFallbackTime - now()
|
|
11953
|
+
: (lanes & 4194048) === lanes
|
|
11954
|
+
? globalMostRecentTransitionTime - now()
|
|
11955
|
+
: 0),
|
|
11956
|
+
(subtreeFlags = waitForCommitToBeReady(
|
|
11957
|
+
suspendedCommitReason,
|
|
11958
|
+
subtreeFlags
|
|
11959
|
+
)),
|
|
11960
|
+
null !== subtreeFlags)
|
|
11961
|
+
) {
|
|
10896
11962
|
pendingEffectsLanes = lanes;
|
|
10897
|
-
root.cancelPendingCommit =
|
|
11963
|
+
root.cancelPendingCommit = subtreeFlags(
|
|
10898
11964
|
commitRoot.bind(
|
|
10899
11965
|
null,
|
|
10900
11966
|
root,
|
|
@@ -10916,7 +11982,6 @@ function commitRootWhenReady(
|
|
|
10916
11982
|
markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings);
|
|
10917
11983
|
return;
|
|
10918
11984
|
}
|
|
10919
|
-
}
|
|
10920
11985
|
commitRoot(
|
|
10921
11986
|
root,
|
|
10922
11987
|
finishedWork,
|
|
@@ -10926,7 +11991,9 @@ function commitRootWhenReady(
|
|
|
10926
11991
|
didIncludeRenderPhaseUpdate,
|
|
10927
11992
|
spawnedLane,
|
|
10928
11993
|
updatedLanes,
|
|
10929
|
-
suspendedRetryLanes
|
|
11994
|
+
suspendedRetryLanes,
|
|
11995
|
+
exitStatus,
|
|
11996
|
+
suspendedCommitReason
|
|
10930
11997
|
);
|
|
10931
11998
|
}
|
|
10932
11999
|
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
@@ -11163,8 +12230,8 @@ function renderRootSync(root, lanes, shouldYieldForPrerendering) {
|
|
|
11163
12230
|
workLoopSync();
|
|
11164
12231
|
exitStatus = workInProgressRootExitStatus;
|
|
11165
12232
|
break;
|
|
11166
|
-
} catch (thrownValue$
|
|
11167
|
-
handleThrow(root, thrownValue$
|
|
12233
|
+
} catch (thrownValue$172) {
|
|
12234
|
+
handleThrow(root, thrownValue$172);
|
|
11168
12235
|
}
|
|
11169
12236
|
while (1);
|
|
11170
12237
|
lanes && root.shellSuspendCounter++;
|
|
@@ -11283,8 +12350,8 @@ function renderRootConcurrent(root, lanes) {
|
|
|
11283
12350
|
}
|
|
11284
12351
|
workLoopConcurrentByScheduler();
|
|
11285
12352
|
break;
|
|
11286
|
-
} catch (thrownValue$
|
|
11287
|
-
handleThrow(root, thrownValue$
|
|
12353
|
+
} catch (thrownValue$174) {
|
|
12354
|
+
handleThrow(root, thrownValue$174);
|
|
11288
12355
|
}
|
|
11289
12356
|
while (1);
|
|
11290
12357
|
lastContextDependency = currentlyRenderingFiber$1 = null;
|
|
@@ -11463,7 +12530,9 @@ function commitRoot(
|
|
|
11463
12530
|
didIncludeRenderPhaseUpdate,
|
|
11464
12531
|
spawnedLane,
|
|
11465
12532
|
updatedLanes,
|
|
11466
|
-
suspendedRetryLanes
|
|
12533
|
+
suspendedRetryLanes,
|
|
12534
|
+
exitStatus,
|
|
12535
|
+
suspendedState
|
|
11467
12536
|
) {
|
|
11468
12537
|
root.cancelPendingCommit = null;
|
|
11469
12538
|
do flushPendingEffects();
|
|
@@ -11490,8 +12559,13 @@ function commitRoot(
|
|
|
11490
12559
|
pendingEffectsRemainingLanes = didIncludeRenderPhaseUpdate;
|
|
11491
12560
|
pendingPassiveTransitions = transitions;
|
|
11492
12561
|
pendingRecoverableErrors = recoverableErrors;
|
|
11493
|
-
|
|
11494
|
-
|
|
12562
|
+
pendingViewTransitionEvents = null;
|
|
12563
|
+
(lanes & 335544064) === lanes
|
|
12564
|
+
? ((pendingTransitionTypes = claimQueuedTransitionTypes(root)),
|
|
12565
|
+
(recoverableErrors = 10262))
|
|
12566
|
+
: ((pendingTransitionTypes = null), (recoverableErrors = 10256));
|
|
12567
|
+
0 !== (finishedWork.subtreeFlags & recoverableErrors) ||
|
|
12568
|
+
0 !== (finishedWork.flags & recoverableErrors)
|
|
11495
12569
|
? ((root.callbackNode = null),
|
|
11496
12570
|
(root.callbackPriority = 0),
|
|
11497
12571
|
scheduleCallback$1(NormalPriority$1, function () {
|
|
@@ -11499,6 +12573,7 @@ function commitRoot(
|
|
|
11499
12573
|
return null;
|
|
11500
12574
|
}))
|
|
11501
12575
|
: ((root.callbackNode = null), (root.callbackPriority = 0));
|
|
12576
|
+
shouldStartViewTransition = !1;
|
|
11502
12577
|
recoverableErrors = 0 !== (finishedWork.flags & 13878);
|
|
11503
12578
|
if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) {
|
|
11504
12579
|
recoverableErrors = ReactSharedInternals.T;
|
|
@@ -11515,17 +12590,43 @@ function commitRoot(
|
|
|
11515
12590
|
(ReactSharedInternals.T = recoverableErrors);
|
|
11516
12591
|
}
|
|
11517
12592
|
}
|
|
12593
|
+
finishedWork = shouldStartViewTransition;
|
|
11518
12594
|
pendingEffectsStatus = 1;
|
|
11519
|
-
|
|
11520
|
-
|
|
11521
|
-
|
|
12595
|
+
finishedWork
|
|
12596
|
+
? (pendingViewTransition = startViewTransition(
|
|
12597
|
+
suspendedState,
|
|
12598
|
+
root.containerInfo,
|
|
12599
|
+
pendingTransitionTypes,
|
|
12600
|
+
flushMutationEffects,
|
|
12601
|
+
flushLayoutEffects,
|
|
12602
|
+
flushAfterMutationEffects,
|
|
12603
|
+
flushSpawnedWork,
|
|
12604
|
+
flushPassiveEffects,
|
|
12605
|
+
reportViewTransitionError,
|
|
12606
|
+
null,
|
|
12607
|
+
null
|
|
12608
|
+
))
|
|
12609
|
+
: (flushMutationEffects(), flushLayoutEffects(), flushSpawnedWork());
|
|
11522
12610
|
}
|
|
11523
12611
|
}
|
|
12612
|
+
function reportViewTransitionError(error) {
|
|
12613
|
+
if (0 !== pendingEffectsStatus) {
|
|
12614
|
+
var onRecoverableError = pendingEffectsRoot.onRecoverableError;
|
|
12615
|
+
onRecoverableError(error, { componentStack: null });
|
|
12616
|
+
}
|
|
12617
|
+
}
|
|
12618
|
+
function flushAfterMutationEffects() {
|
|
12619
|
+
3 === pendingEffectsStatus &&
|
|
12620
|
+
((pendingEffectsStatus = 0),
|
|
12621
|
+
commitAfterMutationEffectsOnFiber(pendingFinishedWork, pendingEffectsRoot),
|
|
12622
|
+
(pendingEffectsStatus = 4));
|
|
12623
|
+
}
|
|
11524
12624
|
function flushMutationEffects() {
|
|
11525
12625
|
if (1 === pendingEffectsStatus) {
|
|
11526
12626
|
pendingEffectsStatus = 0;
|
|
11527
12627
|
var root = pendingEffectsRoot,
|
|
11528
12628
|
finishedWork = pendingFinishedWork,
|
|
12629
|
+
lanes = pendingEffectsLanes,
|
|
11529
12630
|
rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);
|
|
11530
12631
|
if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) {
|
|
11531
12632
|
rootMutationHasEffect = ReactSharedInternals.T;
|
|
@@ -11535,11 +12636,12 @@ function flushMutationEffects() {
|
|
|
11535
12636
|
var prevExecutionContext = executionContext;
|
|
11536
12637
|
executionContext |= 4;
|
|
11537
12638
|
try {
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
12639
|
+
inUpdateViewTransition = rootViewTransitionAffected = !1;
|
|
12640
|
+
commitMutationEffectsOnFiber(finishedWork, root, lanes);
|
|
12641
|
+
lanes = selectionInformation;
|
|
12642
|
+
var curFocusedElem = getActiveElementDeep(root.containerInfo),
|
|
12643
|
+
priorFocusedElem = lanes.focusedElem,
|
|
12644
|
+
priorSelectionRange = lanes.selectionRange;
|
|
11543
12645
|
if (
|
|
11544
12646
|
curFocusedElem !== priorFocusedElem &&
|
|
11545
12647
|
priorFocusedElem &&
|
|
@@ -11670,19 +12772,21 @@ function flushLayoutEffects() {
|
|
|
11670
12772
|
function flushSpawnedWork() {
|
|
11671
12773
|
if (4 === pendingEffectsStatus || 3 === pendingEffectsStatus) {
|
|
11672
12774
|
pendingEffectsStatus = 0;
|
|
12775
|
+
pendingViewTransition = null;
|
|
11673
12776
|
requestPaint();
|
|
11674
12777
|
var root = pendingEffectsRoot,
|
|
11675
12778
|
finishedWork = pendingFinishedWork,
|
|
11676
12779
|
lanes = pendingEffectsLanes,
|
|
11677
|
-
recoverableErrors = pendingRecoverableErrors
|
|
11678
|
-
|
|
11679
|
-
0 !== (finishedWork.
|
|
12780
|
+
recoverableErrors = pendingRecoverableErrors,
|
|
12781
|
+
passiveSubtreeMask = (lanes & 335544064) === lanes ? 10262 : 10256;
|
|
12782
|
+
0 !== (finishedWork.subtreeFlags & passiveSubtreeMask) ||
|
|
12783
|
+
0 !== (finishedWork.flags & passiveSubtreeMask)
|
|
11680
12784
|
? (pendingEffectsStatus = 5)
|
|
11681
12785
|
: ((pendingEffectsStatus = 0),
|
|
11682
12786
|
(pendingFinishedWork = pendingEffectsRoot = null),
|
|
11683
12787
|
releaseRootPooledCache(root, root.pendingLanes));
|
|
11684
|
-
|
|
11685
|
-
0 ===
|
|
12788
|
+
passiveSubtreeMask = root.pendingLanes;
|
|
12789
|
+
0 === passiveSubtreeMask && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
11686
12790
|
lanesToEventPriority(lanes);
|
|
11687
12791
|
finishedWork = finishedWork.stateNode;
|
|
11688
12792
|
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
|
@@ -11696,7 +12800,7 @@ function flushSpawnedWork() {
|
|
|
11696
12800
|
} catch (err) {}
|
|
11697
12801
|
if (null !== recoverableErrors) {
|
|
11698
12802
|
finishedWork = ReactSharedInternals.T;
|
|
11699
|
-
|
|
12803
|
+
passiveSubtreeMask = ReactDOMSharedInternals.p;
|
|
11700
12804
|
ReactDOMSharedInternals.p = 2;
|
|
11701
12805
|
ReactSharedInternals.T = null;
|
|
11702
12806
|
try {
|
|
@@ -11712,13 +12816,25 @@ function flushSpawnedWork() {
|
|
|
11712
12816
|
}
|
|
11713
12817
|
} finally {
|
|
11714
12818
|
(ReactSharedInternals.T = finishedWork),
|
|
11715
|
-
(ReactDOMSharedInternals.p =
|
|
12819
|
+
(ReactDOMSharedInternals.p = passiveSubtreeMask);
|
|
11716
12820
|
}
|
|
11717
12821
|
}
|
|
12822
|
+
recoverableErrors = pendingViewTransitionEvents;
|
|
12823
|
+
onRecoverableError = pendingTransitionTypes;
|
|
12824
|
+
pendingTransitionTypes = null;
|
|
12825
|
+
if (null !== recoverableErrors)
|
|
12826
|
+
for (
|
|
12827
|
+
pendingViewTransitionEvents = null,
|
|
12828
|
+
null === onRecoverableError && (onRecoverableError = []),
|
|
12829
|
+
recoverableError = 0;
|
|
12830
|
+
recoverableError < recoverableErrors.length;
|
|
12831
|
+
recoverableError++
|
|
12832
|
+
)
|
|
12833
|
+
(0, recoverableErrors[recoverableError])(onRecoverableError);
|
|
11718
12834
|
0 !== (pendingEffectsLanes & 3) && flushPendingEffects();
|
|
11719
12835
|
ensureRootIsScheduled(root);
|
|
11720
|
-
|
|
11721
|
-
0 !== (lanes & 261930) && 0 !== (
|
|
12836
|
+
passiveSubtreeMask = root.pendingLanes;
|
|
12837
|
+
0 !== (lanes & 261930) && 0 !== (passiveSubtreeMask & 42)
|
|
11722
12838
|
? root === rootWithNestedUpdates
|
|
11723
12839
|
? nestedUpdateCount++
|
|
11724
12840
|
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
|
@@ -11733,6 +12849,8 @@ function releaseRootPooledCache(root, remainingLanes) {
|
|
|
11733
12849
|
((root.pooledCache = null), releaseCache(remainingLanes)));
|
|
11734
12850
|
}
|
|
11735
12851
|
function flushPendingEffects() {
|
|
12852
|
+
null !== pendingViewTransition &&
|
|
12853
|
+
(pendingViewTransition.skipTransition(), (pendingViewTransition = null));
|
|
11736
12854
|
flushMutationEffects();
|
|
11737
12855
|
flushLayoutEffects();
|
|
11738
12856
|
flushSpawnedWork();
|
|
@@ -11920,14 +13038,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
|
|
|
11920
13038
|
isFlushingWork = !0;
|
|
11921
13039
|
do {
|
|
11922
13040
|
var didPerformSomeWork = !1;
|
|
11923
|
-
for (var root$
|
|
13041
|
+
for (var root$178 = firstScheduledRoot; null !== root$178; ) {
|
|
11924
13042
|
if (!onlyLegacy)
|
|
11925
13043
|
if (0 !== syncTransitionLanes) {
|
|
11926
|
-
var pendingLanes = root$
|
|
13044
|
+
var pendingLanes = root$178.pendingLanes;
|
|
11927
13045
|
if (0 === pendingLanes) var JSCompiler_inline_result = 0;
|
|
11928
13046
|
else {
|
|
11929
|
-
var suspendedLanes = root$
|
|
11930
|
-
pingedLanes = root$
|
|
13047
|
+
var suspendedLanes = root$178.suspendedLanes,
|
|
13048
|
+
pingedLanes = root$178.pingedLanes;
|
|
11931
13049
|
JSCompiler_inline_result =
|
|
11932
13050
|
(1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1;
|
|
11933
13051
|
JSCompiler_inline_result &=
|
|
@@ -11941,20 +13059,20 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
|
|
|
11941
13059
|
}
|
|
11942
13060
|
0 !== JSCompiler_inline_result &&
|
|
11943
13061
|
((didPerformSomeWork = !0),
|
|
11944
|
-
performSyncWorkOnRoot(root$
|
|
13062
|
+
performSyncWorkOnRoot(root$178, JSCompiler_inline_result));
|
|
11945
13063
|
} else
|
|
11946
13064
|
(JSCompiler_inline_result = workInProgressRootRenderLanes),
|
|
11947
13065
|
(JSCompiler_inline_result = getNextLanes(
|
|
11948
|
-
root$
|
|
11949
|
-
root$
|
|
11950
|
-
null !== root$
|
|
11951
|
-
-1 !== root$
|
|
13066
|
+
root$178,
|
|
13067
|
+
root$178 === workInProgressRoot ? JSCompiler_inline_result : 0,
|
|
13068
|
+
null !== root$178.cancelPendingCommit ||
|
|
13069
|
+
-1 !== root$178.timeoutHandle
|
|
11952
13070
|
)),
|
|
11953
13071
|
0 === (JSCompiler_inline_result & 3) ||
|
|
11954
|
-
checkIfRootIsPrerendering(root$
|
|
13072
|
+
checkIfRootIsPrerendering(root$178, JSCompiler_inline_result) ||
|
|
11955
13073
|
((didPerformSomeWork = !0),
|
|
11956
|
-
performSyncWorkOnRoot(root$
|
|
11957
|
-
root$
|
|
13074
|
+
performSyncWorkOnRoot(root$178, JSCompiler_inline_result));
|
|
13075
|
+
root$178 = root$178.next;
|
|
11958
13076
|
}
|
|
11959
13077
|
} while (didPerformSomeWork);
|
|
11960
13078
|
isFlushingWork = !1;
|
|
@@ -12202,20 +13320,20 @@ function extractEvents$1(
|
|
|
12202
13320
|
}
|
|
12203
13321
|
}
|
|
12204
13322
|
for (
|
|
12205
|
-
var i$jscomp$
|
|
12206
|
-
i$jscomp$
|
|
12207
|
-
i$jscomp$
|
|
13323
|
+
var i$jscomp$inline_1703 = 0;
|
|
13324
|
+
i$jscomp$inline_1703 < simpleEventPluginEvents.length;
|
|
13325
|
+
i$jscomp$inline_1703++
|
|
12208
13326
|
) {
|
|
12209
|
-
var eventName$jscomp$
|
|
12210
|
-
simpleEventPluginEvents[i$jscomp$
|
|
12211
|
-
domEventName$jscomp$
|
|
12212
|
-
eventName$jscomp$
|
|
12213
|
-
capitalizedEvent$jscomp$
|
|
12214
|
-
eventName$jscomp$
|
|
12215
|
-
eventName$jscomp$
|
|
13327
|
+
var eventName$jscomp$inline_1704 =
|
|
13328
|
+
simpleEventPluginEvents[i$jscomp$inline_1703],
|
|
13329
|
+
domEventName$jscomp$inline_1705 =
|
|
13330
|
+
eventName$jscomp$inline_1704.toLowerCase(),
|
|
13331
|
+
capitalizedEvent$jscomp$inline_1706 =
|
|
13332
|
+
eventName$jscomp$inline_1704[0].toUpperCase() +
|
|
13333
|
+
eventName$jscomp$inline_1704.slice(1);
|
|
12216
13334
|
registerSimpleEvent(
|
|
12217
|
-
domEventName$jscomp$
|
|
12218
|
-
"on" + capitalizedEvent$jscomp$
|
|
13335
|
+
domEventName$jscomp$inline_1705,
|
|
13336
|
+
"on" + capitalizedEvent$jscomp$inline_1706
|
|
12219
13337
|
);
|
|
12220
13338
|
}
|
|
12221
13339
|
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
|
|
@@ -12584,12 +13702,12 @@ function dispatchEventForPluginEventSystem(
|
|
|
12584
13702
|
}
|
|
12585
13703
|
if (0 === (eventSystemFlags & 7)) {
|
|
12586
13704
|
a: {
|
|
12587
|
-
reactName =
|
|
12588
|
-
"mouseover" === domEventName || "pointerover" === domEventName;
|
|
12589
13705
|
SyntheticEventCtor =
|
|
13706
|
+
"mouseover" === domEventName || "pointerover" === domEventName;
|
|
13707
|
+
reactName =
|
|
12590
13708
|
"mouseout" === domEventName || "pointerout" === domEventName;
|
|
12591
13709
|
if (
|
|
12592
|
-
|
|
13710
|
+
SyntheticEventCtor &&
|
|
12593
13711
|
nativeEvent !== currentReplayingEvent &&
|
|
12594
13712
|
(reactEventType =
|
|
12595
13713
|
nativeEvent.relatedTarget || nativeEvent.fromElement) &&
|
|
@@ -12597,33 +13715,34 @@ function dispatchEventForPluginEventSystem(
|
|
|
12597
13715
|
reactEventType[internalContainerInstanceKey])
|
|
12598
13716
|
)
|
|
12599
13717
|
break a;
|
|
12600
|
-
if (
|
|
12601
|
-
|
|
13718
|
+
if (reactName || SyntheticEventCtor) {
|
|
13719
|
+
reactEventType =
|
|
12602
13720
|
nativeEventTarget.window === nativeEventTarget
|
|
12603
13721
|
? nativeEventTarget
|
|
12604
|
-
: (
|
|
12605
|
-
?
|
|
13722
|
+
: (SyntheticEventCtor = nativeEventTarget.ownerDocument)
|
|
13723
|
+
? SyntheticEventCtor.defaultView ||
|
|
13724
|
+
SyntheticEventCtor.parentWindow
|
|
12606
13725
|
: window;
|
|
12607
|
-
if (
|
|
13726
|
+
if (reactName) {
|
|
12608
13727
|
if (
|
|
12609
|
-
((
|
|
13728
|
+
((SyntheticEventCtor =
|
|
12610
13729
|
nativeEvent.relatedTarget || nativeEvent.toElement),
|
|
12611
|
-
(
|
|
12612
|
-
(
|
|
12613
|
-
? getClosestInstanceFromNode(
|
|
13730
|
+
(reactName = targetInst),
|
|
13731
|
+
(SyntheticEventCtor = SyntheticEventCtor
|
|
13732
|
+
? getClosestInstanceFromNode(SyntheticEventCtor)
|
|
12614
13733
|
: null),
|
|
12615
|
-
null !==
|
|
13734
|
+
null !== SyntheticEventCtor &&
|
|
12616
13735
|
((accumulateTargetOnly =
|
|
12617
|
-
getNearestMountedFiber(
|
|
12618
|
-
(inCapturePhase =
|
|
12619
|
-
|
|
13736
|
+
getNearestMountedFiber(SyntheticEventCtor)),
|
|
13737
|
+
(inCapturePhase = SyntheticEventCtor.tag),
|
|
13738
|
+
SyntheticEventCtor !== accumulateTargetOnly ||
|
|
12620
13739
|
(5 !== inCapturePhase &&
|
|
12621
13740
|
27 !== inCapturePhase &&
|
|
12622
13741
|
6 !== inCapturePhase)))
|
|
12623
13742
|
)
|
|
12624
|
-
|
|
12625
|
-
} else (
|
|
12626
|
-
if (
|
|
13743
|
+
SyntheticEventCtor = null;
|
|
13744
|
+
} else (reactName = null), (SyntheticEventCtor = targetInst);
|
|
13745
|
+
if (reactName !== SyntheticEventCtor) {
|
|
12627
13746
|
inCapturePhase = SyntheticMouseEvent;
|
|
12628
13747
|
_instance = "onMouseLeave";
|
|
12629
13748
|
reactEventName = "onMouseEnter";
|
|
@@ -12634,28 +13753,28 @@ function dispatchEventForPluginEventSystem(
|
|
|
12634
13753
|
(reactEventName = "onPointerEnter"),
|
|
12635
13754
|
(instance = "pointer");
|
|
12636
13755
|
accumulateTargetOnly =
|
|
13756
|
+
null == reactName
|
|
13757
|
+
? reactEventType
|
|
13758
|
+
: getNodeFromInstance(reactName);
|
|
13759
|
+
lastHostComponent =
|
|
12637
13760
|
null == SyntheticEventCtor
|
|
12638
|
-
?
|
|
13761
|
+
? reactEventType
|
|
12639
13762
|
: getNodeFromInstance(SyntheticEventCtor);
|
|
12640
|
-
|
|
12641
|
-
null == reactEventType
|
|
12642
|
-
? reactName
|
|
12643
|
-
: getNodeFromInstance(reactEventType);
|
|
12644
|
-
reactName = new inCapturePhase(
|
|
13763
|
+
reactEventType = new inCapturePhase(
|
|
12645
13764
|
_instance,
|
|
12646
13765
|
instance + "leave",
|
|
12647
|
-
|
|
13766
|
+
reactName,
|
|
12648
13767
|
nativeEvent,
|
|
12649
13768
|
nativeEventTarget
|
|
12650
13769
|
);
|
|
12651
|
-
|
|
12652
|
-
|
|
13770
|
+
reactEventType.target = accumulateTargetOnly;
|
|
13771
|
+
reactEventType.relatedTarget = lastHostComponent;
|
|
12653
13772
|
_instance = null;
|
|
12654
13773
|
getClosestInstanceFromNode(nativeEventTarget) === targetInst &&
|
|
12655
13774
|
((inCapturePhase = new inCapturePhase(
|
|
12656
13775
|
reactEventName,
|
|
12657
13776
|
instance + "enter",
|
|
12658
|
-
|
|
13777
|
+
SyntheticEventCtor,
|
|
12659
13778
|
nativeEvent,
|
|
12660
13779
|
nativeEventTarget
|
|
12661
13780
|
)),
|
|
@@ -12663,54 +13782,28 @@ function dispatchEventForPluginEventSystem(
|
|
|
12663
13782
|
(inCapturePhase.relatedTarget = accumulateTargetOnly),
|
|
12664
13783
|
(_instance = inCapturePhase));
|
|
12665
13784
|
accumulateTargetOnly = _instance;
|
|
12666
|
-
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
_instance = inCapturePhase(_instance)
|
|
12676
|
-
)
|
|
12677
|
-
lastHostComponent++;
|
|
12678
|
-
_instance = 0;
|
|
12679
|
-
for (var tempB = instance; tempB; tempB = inCapturePhase(tempB))
|
|
12680
|
-
_instance++;
|
|
12681
|
-
for (; 0 < lastHostComponent - _instance; )
|
|
12682
|
-
(reactEventName = inCapturePhase(reactEventName)),
|
|
12683
|
-
lastHostComponent--;
|
|
12684
|
-
for (; 0 < _instance - lastHostComponent; )
|
|
12685
|
-
(instance = inCapturePhase(instance)), _instance--;
|
|
12686
|
-
for (; lastHostComponent--; ) {
|
|
12687
|
-
if (
|
|
12688
|
-
reactEventName === instance ||
|
|
12689
|
-
(null !== instance && reactEventName === instance.alternate)
|
|
12690
|
-
) {
|
|
12691
|
-
inCapturePhase = reactEventName;
|
|
12692
|
-
break b;
|
|
12693
|
-
}
|
|
12694
|
-
reactEventName = inCapturePhase(reactEventName);
|
|
12695
|
-
instance = inCapturePhase(instance);
|
|
12696
|
-
}
|
|
12697
|
-
inCapturePhase = null;
|
|
12698
|
-
}
|
|
12699
|
-
else inCapturePhase = null;
|
|
12700
|
-
null !== SyntheticEventCtor &&
|
|
13785
|
+
inCapturePhase =
|
|
13786
|
+
reactName && SyntheticEventCtor
|
|
13787
|
+
? getLowestCommonAncestor(
|
|
13788
|
+
reactName,
|
|
13789
|
+
SyntheticEventCtor,
|
|
13790
|
+
getParent
|
|
13791
|
+
)
|
|
13792
|
+
: null;
|
|
13793
|
+
null !== reactName &&
|
|
12701
13794
|
accumulateEnterLeaveListenersForEvent(
|
|
12702
13795
|
dispatchQueue,
|
|
13796
|
+
reactEventType,
|
|
12703
13797
|
reactName,
|
|
12704
|
-
SyntheticEventCtor,
|
|
12705
13798
|
inCapturePhase,
|
|
12706
13799
|
!1
|
|
12707
13800
|
);
|
|
12708
|
-
null !==
|
|
13801
|
+
null !== SyntheticEventCtor &&
|
|
12709
13802
|
null !== accumulateTargetOnly &&
|
|
12710
13803
|
accumulateEnterLeaveListenersForEvent(
|
|
12711
13804
|
dispatchQueue,
|
|
12712
13805
|
accumulateTargetOnly,
|
|
12713
|
-
|
|
13806
|
+
SyntheticEventCtor,
|
|
12714
13807
|
inCapturePhase,
|
|
12715
13808
|
!0
|
|
12716
13809
|
);
|
|
@@ -12957,13 +14050,13 @@ function checkForUnmatchedText(serverText, clientText) {
|
|
|
12957
14050
|
function setProp(domElement, tag, key, value, props, prevValue) {
|
|
12958
14051
|
switch (key) {
|
|
12959
14052
|
case "children":
|
|
12960
|
-
"string" === typeof value
|
|
12961
|
-
|
|
14053
|
+
if ("string" === typeof value)
|
|
14054
|
+
"body" === tag ||
|
|
12962
14055
|
("textarea" === tag && "" === value) ||
|
|
12963
|
-
setTextContent(domElement, value)
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
|
|
14056
|
+
setTextContent(domElement, value);
|
|
14057
|
+
else if ("number" === typeof value || "bigint" === typeof value)
|
|
14058
|
+
"body" !== tag && setTextContent(domElement, "" + value);
|
|
14059
|
+
else return;
|
|
12967
14060
|
break;
|
|
12968
14061
|
case "className":
|
|
12969
14062
|
setValueForKnownAttribute(domElement, "class", value);
|
|
@@ -12980,7 +14073,7 @@ function setProp(domElement, tag, key, value, props, prevValue) {
|
|
|
12980
14073
|
break;
|
|
12981
14074
|
case "style":
|
|
12982
14075
|
setValueForStyles(domElement, value, prevValue);
|
|
12983
|
-
|
|
14076
|
+
return;
|
|
12984
14077
|
case "data":
|
|
12985
14078
|
if ("object" !== tag) {
|
|
12986
14079
|
setValueForKnownAttribute(domElement, "data", value);
|
|
@@ -13057,13 +14150,13 @@ function setProp(domElement, tag, key, value, props, prevValue) {
|
|
|
13057
14150
|
break;
|
|
13058
14151
|
case "onClick":
|
|
13059
14152
|
null != value && (domElement.onclick = noop$1);
|
|
13060
|
-
|
|
14153
|
+
return;
|
|
13061
14154
|
case "onScroll":
|
|
13062
14155
|
null != value && listenToNonDelegatedEvent("scroll", domElement);
|
|
13063
|
-
|
|
14156
|
+
return;
|
|
13064
14157
|
case "onScrollEnd":
|
|
13065
14158
|
null != value && listenToNonDelegatedEvent("scrollend", domElement);
|
|
13066
|
-
|
|
14159
|
+
return;
|
|
13067
14160
|
case "dangerouslySetInnerHTML":
|
|
13068
14161
|
if (null != value) {
|
|
13069
14162
|
if ("object" !== typeof value || !("__html" in value))
|
|
@@ -13262,7 +14355,7 @@ function setProp(domElement, tag, key, value, props, prevValue) {
|
|
|
13262
14355
|
break;
|
|
13263
14356
|
case "innerText":
|
|
13264
14357
|
case "textContent":
|
|
13265
|
-
|
|
14358
|
+
return;
|
|
13266
14359
|
default:
|
|
13267
14360
|
if (
|
|
13268
14361
|
!(2 < key.length) ||
|
|
@@ -13271,13 +14364,15 @@ function setProp(domElement, tag, key, value, props, prevValue) {
|
|
|
13271
14364
|
)
|
|
13272
14365
|
(key = aliases.get(key) || key),
|
|
13273
14366
|
setValueForAttribute(domElement, key, value);
|
|
14367
|
+
else return;
|
|
13274
14368
|
}
|
|
14369
|
+
viewTransitionMutationContext = !0;
|
|
13275
14370
|
}
|
|
13276
14371
|
function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) {
|
|
13277
14372
|
switch (key) {
|
|
13278
14373
|
case "style":
|
|
13279
14374
|
setValueForStyles(domElement, value, prevValue);
|
|
13280
|
-
|
|
14375
|
+
return;
|
|
13281
14376
|
case "dangerouslySetInnerHTML":
|
|
13282
14377
|
if (null != value) {
|
|
13283
14378
|
if ("object" !== typeof value || !("__html" in value))
|
|
@@ -13290,28 +14385,28 @@ function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) {
|
|
|
13290
14385
|
}
|
|
13291
14386
|
break;
|
|
13292
14387
|
case "children":
|
|
13293
|
-
"string" === typeof value
|
|
13294
|
-
|
|
13295
|
-
|
|
13296
|
-
|
|
14388
|
+
if ("string" === typeof value) setTextContent(domElement, value);
|
|
14389
|
+
else if ("number" === typeof value || "bigint" === typeof value)
|
|
14390
|
+
setTextContent(domElement, "" + value);
|
|
14391
|
+
else return;
|
|
13297
14392
|
break;
|
|
13298
14393
|
case "onScroll":
|
|
13299
14394
|
null != value && listenToNonDelegatedEvent("scroll", domElement);
|
|
13300
|
-
|
|
14395
|
+
return;
|
|
13301
14396
|
case "onScrollEnd":
|
|
13302
14397
|
null != value && listenToNonDelegatedEvent("scrollend", domElement);
|
|
13303
|
-
|
|
14398
|
+
return;
|
|
13304
14399
|
case "onClick":
|
|
13305
14400
|
null != value && (domElement.onclick = noop$1);
|
|
13306
|
-
|
|
14401
|
+
return;
|
|
13307
14402
|
case "suppressContentEditableWarning":
|
|
13308
14403
|
case "suppressHydrationWarning":
|
|
13309
14404
|
case "innerHTML":
|
|
13310
14405
|
case "ref":
|
|
13311
|
-
|
|
14406
|
+
return;
|
|
13312
14407
|
case "innerText":
|
|
13313
14408
|
case "textContent":
|
|
13314
|
-
|
|
14409
|
+
return;
|
|
13315
14410
|
default:
|
|
13316
14411
|
if (!registrationNameDependencies.hasOwnProperty(key))
|
|
13317
14412
|
a: {
|
|
@@ -13335,13 +14430,16 @@ function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) {
|
|
|
13335
14430
|
domElement.addEventListener(tag, value, props);
|
|
13336
14431
|
break a;
|
|
13337
14432
|
}
|
|
14433
|
+
viewTransitionMutationContext = !0;
|
|
13338
14434
|
key in domElement
|
|
13339
14435
|
? (domElement[key] = value)
|
|
13340
14436
|
: !0 === value
|
|
13341
14437
|
? domElement.setAttribute(key, "")
|
|
13342
14438
|
: setValueForAttribute(domElement, key, value);
|
|
13343
14439
|
}
|
|
14440
|
+
return;
|
|
13344
14441
|
}
|
|
14442
|
+
viewTransitionMutationContext = !0;
|
|
13345
14443
|
}
|
|
13346
14444
|
function setInitialProperties(domElement, tag, props) {
|
|
13347
14445
|
switch (tag) {
|
|
@@ -13389,34 +14487,34 @@ function setInitialProperties(domElement, tag, props) {
|
|
|
13389
14487
|
defaultChecked = null;
|
|
13390
14488
|
for (hasSrc in props)
|
|
13391
14489
|
if (props.hasOwnProperty(hasSrc)) {
|
|
13392
|
-
var propValue$
|
|
13393
|
-
if (null != propValue$
|
|
14490
|
+
var propValue$192 = props[hasSrc];
|
|
14491
|
+
if (null != propValue$192)
|
|
13394
14492
|
switch (hasSrc) {
|
|
13395
14493
|
case "name":
|
|
13396
|
-
hasSrcSet = propValue$
|
|
14494
|
+
hasSrcSet = propValue$192;
|
|
13397
14495
|
break;
|
|
13398
14496
|
case "type":
|
|
13399
|
-
propValue = propValue$
|
|
14497
|
+
propValue = propValue$192;
|
|
13400
14498
|
break;
|
|
13401
14499
|
case "checked":
|
|
13402
|
-
checked = propValue$
|
|
14500
|
+
checked = propValue$192;
|
|
13403
14501
|
break;
|
|
13404
14502
|
case "defaultChecked":
|
|
13405
|
-
defaultChecked = propValue$
|
|
14503
|
+
defaultChecked = propValue$192;
|
|
13406
14504
|
break;
|
|
13407
14505
|
case "value":
|
|
13408
|
-
propKey = propValue$
|
|
14506
|
+
propKey = propValue$192;
|
|
13409
14507
|
break;
|
|
13410
14508
|
case "defaultValue":
|
|
13411
|
-
defaultValue = propValue$
|
|
14509
|
+
defaultValue = propValue$192;
|
|
13412
14510
|
break;
|
|
13413
14511
|
case "children":
|
|
13414
14512
|
case "dangerouslySetInnerHTML":
|
|
13415
|
-
if (null != propValue$
|
|
14513
|
+
if (null != propValue$192)
|
|
13416
14514
|
throw Error(formatProdErrorMessage(137, tag));
|
|
13417
14515
|
break;
|
|
13418
14516
|
default:
|
|
13419
|
-
setProp(domElement, tag, hasSrc, propValue$
|
|
14517
|
+
setProp(domElement, tag, hasSrc, propValue$192, props, null);
|
|
13420
14518
|
}
|
|
13421
14519
|
}
|
|
13422
14520
|
initInput(
|
|
@@ -13553,14 +14651,14 @@ function setInitialProperties(domElement, tag, props) {
|
|
|
13553
14651
|
return;
|
|
13554
14652
|
default:
|
|
13555
14653
|
if (isCustomElement(tag)) {
|
|
13556
|
-
for (propValue$
|
|
13557
|
-
props.hasOwnProperty(propValue$
|
|
13558
|
-
((hasSrc = props[propValue$
|
|
14654
|
+
for (propValue$192 in props)
|
|
14655
|
+
props.hasOwnProperty(propValue$192) &&
|
|
14656
|
+
((hasSrc = props[propValue$192]),
|
|
13559
14657
|
void 0 !== hasSrc &&
|
|
13560
14658
|
setPropOnCustomElement(
|
|
13561
14659
|
domElement,
|
|
13562
14660
|
tag,
|
|
13563
|
-
propValue$
|
|
14661
|
+
propValue$192,
|
|
13564
14662
|
hasSrc,
|
|
13565
14663
|
props,
|
|
13566
14664
|
void 0
|
|
@@ -13608,30 +14706,36 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
|
13608
14706
|
setProp(domElement, tag, propKey, null, nextProps, lastProp);
|
|
13609
14707
|
}
|
|
13610
14708
|
}
|
|
13611
|
-
for (var propKey$
|
|
13612
|
-
var propKey = nextProps[propKey$
|
|
13613
|
-
lastProp = lastProps[propKey$
|
|
14709
|
+
for (var propKey$209 in nextProps) {
|
|
14710
|
+
var propKey = nextProps[propKey$209];
|
|
14711
|
+
lastProp = lastProps[propKey$209];
|
|
13614
14712
|
if (
|
|
13615
|
-
nextProps.hasOwnProperty(propKey$
|
|
14713
|
+
nextProps.hasOwnProperty(propKey$209) &&
|
|
13616
14714
|
(null != propKey || null != lastProp)
|
|
13617
14715
|
)
|
|
13618
|
-
switch (propKey$
|
|
14716
|
+
switch (propKey$209) {
|
|
13619
14717
|
case "type":
|
|
14718
|
+
propKey !== lastProp && (viewTransitionMutationContext = !0);
|
|
13620
14719
|
type = propKey;
|
|
13621
14720
|
break;
|
|
13622
14721
|
case "name":
|
|
14722
|
+
propKey !== lastProp && (viewTransitionMutationContext = !0);
|
|
13623
14723
|
name = propKey;
|
|
13624
14724
|
break;
|
|
13625
14725
|
case "checked":
|
|
14726
|
+
propKey !== lastProp && (viewTransitionMutationContext = !0);
|
|
13626
14727
|
checked = propKey;
|
|
13627
14728
|
break;
|
|
13628
14729
|
case "defaultChecked":
|
|
14730
|
+
propKey !== lastProp && (viewTransitionMutationContext = !0);
|
|
13629
14731
|
defaultChecked = propKey;
|
|
13630
14732
|
break;
|
|
13631
14733
|
case "value":
|
|
14734
|
+
propKey !== lastProp && (viewTransitionMutationContext = !0);
|
|
13632
14735
|
value = propKey;
|
|
13633
14736
|
break;
|
|
13634
14737
|
case "defaultValue":
|
|
14738
|
+
propKey !== lastProp && (viewTransitionMutationContext = !0);
|
|
13635
14739
|
defaultValue = propKey;
|
|
13636
14740
|
break;
|
|
13637
14741
|
case "children":
|
|
@@ -13644,7 +14748,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
|
13644
14748
|
setProp(
|
|
13645
14749
|
domElement,
|
|
13646
14750
|
tag,
|
|
13647
|
-
propKey$
|
|
14751
|
+
propKey$209,
|
|
13648
14752
|
propKey,
|
|
13649
14753
|
nextProps,
|
|
13650
14754
|
lastProp
|
|
@@ -13663,7 +14767,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
|
13663
14767
|
);
|
|
13664
14768
|
return;
|
|
13665
14769
|
case "select":
|
|
13666
|
-
propKey = value = defaultValue = propKey$
|
|
14770
|
+
propKey = value = defaultValue = propKey$209 = null;
|
|
13667
14771
|
for (type in lastProps)
|
|
13668
14772
|
if (
|
|
13669
14773
|
((lastDefaultValue = lastProps[type]),
|
|
@@ -13694,13 +14798,16 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
|
13694
14798
|
)
|
|
13695
14799
|
switch (name) {
|
|
13696
14800
|
case "value":
|
|
13697
|
-
|
|
14801
|
+
type !== lastDefaultValue && (viewTransitionMutationContext = !0);
|
|
14802
|
+
propKey$209 = type;
|
|
13698
14803
|
break;
|
|
13699
14804
|
case "defaultValue":
|
|
14805
|
+
type !== lastDefaultValue && (viewTransitionMutationContext = !0);
|
|
13700
14806
|
defaultValue = type;
|
|
13701
14807
|
break;
|
|
13702
14808
|
case "multiple":
|
|
13703
|
-
|
|
14809
|
+
type !== lastDefaultValue && (viewTransitionMutationContext = !0),
|
|
14810
|
+
(value = type);
|
|
13704
14811
|
default:
|
|
13705
14812
|
type !== lastDefaultValue &&
|
|
13706
14813
|
setProp(
|
|
@@ -13715,15 +14822,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
|
13715
14822
|
tag = defaultValue;
|
|
13716
14823
|
lastProps = value;
|
|
13717
14824
|
nextProps = propKey;
|
|
13718
|
-
null != propKey$
|
|
13719
|
-
? updateOptions(domElement, !!lastProps, propKey$
|
|
14825
|
+
null != propKey$209
|
|
14826
|
+
? updateOptions(domElement, !!lastProps, propKey$209, !1)
|
|
13720
14827
|
: !!nextProps !== !!lastProps &&
|
|
13721
14828
|
(null != tag
|
|
13722
14829
|
? updateOptions(domElement, !!lastProps, tag, !0)
|
|
13723
14830
|
: updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1));
|
|
13724
14831
|
return;
|
|
13725
14832
|
case "textarea":
|
|
13726
|
-
propKey = propKey$
|
|
14833
|
+
propKey = propKey$209 = null;
|
|
13727
14834
|
for (defaultValue in lastProps)
|
|
13728
14835
|
if (
|
|
13729
14836
|
((name = lastProps[defaultValue]),
|
|
@@ -13747,9 +14854,11 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
|
13747
14854
|
)
|
|
13748
14855
|
switch (value) {
|
|
13749
14856
|
case "value":
|
|
13750
|
-
|
|
14857
|
+
name !== type && (viewTransitionMutationContext = !0);
|
|
14858
|
+
propKey$209 = name;
|
|
13751
14859
|
break;
|
|
13752
14860
|
case "defaultValue":
|
|
14861
|
+
name !== type && (viewTransitionMutationContext = !0);
|
|
13753
14862
|
propKey = name;
|
|
13754
14863
|
break;
|
|
13755
14864
|
case "children":
|
|
@@ -13761,17 +14870,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
|
13761
14870
|
name !== type &&
|
|
13762
14871
|
setProp(domElement, tag, value, name, nextProps, type);
|
|
13763
14872
|
}
|
|
13764
|
-
updateTextarea(domElement, propKey$
|
|
14873
|
+
updateTextarea(domElement, propKey$209, propKey);
|
|
13765
14874
|
return;
|
|
13766
14875
|
case "option":
|
|
13767
|
-
for (var propKey$
|
|
14876
|
+
for (var propKey$225 in lastProps)
|
|
13768
14877
|
if (
|
|
13769
|
-
((propKey$
|
|
13770
|
-
lastProps.hasOwnProperty(propKey$
|
|
13771
|
-
null != propKey$
|
|
13772
|
-
!nextProps.hasOwnProperty(propKey$
|
|
14878
|
+
((propKey$209 = lastProps[propKey$225]),
|
|
14879
|
+
lastProps.hasOwnProperty(propKey$225) &&
|
|
14880
|
+
null != propKey$209 &&
|
|
14881
|
+
!nextProps.hasOwnProperty(propKey$225))
|
|
13773
14882
|
)
|
|
13774
|
-
switch (propKey$
|
|
14883
|
+
switch (propKey$225) {
|
|
13775
14884
|
case "selected":
|
|
13776
14885
|
domElement.selected = !1;
|
|
13777
14886
|
break;
|
|
@@ -13779,33 +14888,34 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
|
13779
14888
|
setProp(
|
|
13780
14889
|
domElement,
|
|
13781
14890
|
tag,
|
|
13782
|
-
propKey$
|
|
14891
|
+
propKey$225,
|
|
13783
14892
|
null,
|
|
13784
14893
|
nextProps,
|
|
13785
|
-
propKey$
|
|
14894
|
+
propKey$209
|
|
13786
14895
|
);
|
|
13787
14896
|
}
|
|
13788
14897
|
for (lastDefaultValue in nextProps)
|
|
13789
14898
|
if (
|
|
13790
|
-
((propKey$
|
|
14899
|
+
((propKey$209 = nextProps[lastDefaultValue]),
|
|
13791
14900
|
(propKey = lastProps[lastDefaultValue]),
|
|
13792
14901
|
nextProps.hasOwnProperty(lastDefaultValue) &&
|
|
13793
|
-
propKey$
|
|
13794
|
-
(null != propKey$
|
|
14902
|
+
propKey$209 !== propKey &&
|
|
14903
|
+
(null != propKey$209 || null != propKey))
|
|
13795
14904
|
)
|
|
13796
14905
|
switch (lastDefaultValue) {
|
|
13797
14906
|
case "selected":
|
|
14907
|
+
propKey$209 !== propKey && (viewTransitionMutationContext = !0);
|
|
13798
14908
|
domElement.selected =
|
|
13799
|
-
propKey$
|
|
13800
|
-
"function" !== typeof propKey$
|
|
13801
|
-
"symbol" !== typeof propKey$
|
|
14909
|
+
propKey$209 &&
|
|
14910
|
+
"function" !== typeof propKey$209 &&
|
|
14911
|
+
"symbol" !== typeof propKey$209;
|
|
13802
14912
|
break;
|
|
13803
14913
|
default:
|
|
13804
14914
|
setProp(
|
|
13805
14915
|
domElement,
|
|
13806
14916
|
tag,
|
|
13807
14917
|
lastDefaultValue,
|
|
13808
|
-
propKey$
|
|
14918
|
+
propKey$209,
|
|
13809
14919
|
nextProps,
|
|
13810
14920
|
propKey
|
|
13811
14921
|
);
|
|
@@ -13826,24 +14936,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
|
13826
14936
|
case "track":
|
|
13827
14937
|
case "wbr":
|
|
13828
14938
|
case "menuitem":
|
|
13829
|
-
for (var propKey$
|
|
13830
|
-
(propKey$
|
|
13831
|
-
lastProps.hasOwnProperty(propKey$
|
|
13832
|
-
null != propKey$
|
|
13833
|
-
!nextProps.hasOwnProperty(propKey$
|
|
13834
|
-
setProp(domElement, tag, propKey$
|
|
14939
|
+
for (var propKey$230 in lastProps)
|
|
14940
|
+
(propKey$209 = lastProps[propKey$230]),
|
|
14941
|
+
lastProps.hasOwnProperty(propKey$230) &&
|
|
14942
|
+
null != propKey$209 &&
|
|
14943
|
+
!nextProps.hasOwnProperty(propKey$230) &&
|
|
14944
|
+
setProp(domElement, tag, propKey$230, null, nextProps, propKey$209);
|
|
13835
14945
|
for (checked in nextProps)
|
|
13836
14946
|
if (
|
|
13837
|
-
((propKey$
|
|
14947
|
+
((propKey$209 = nextProps[checked]),
|
|
13838
14948
|
(propKey = lastProps[checked]),
|
|
13839
14949
|
nextProps.hasOwnProperty(checked) &&
|
|
13840
|
-
propKey$
|
|
13841
|
-
(null != propKey$
|
|
14950
|
+
propKey$209 !== propKey &&
|
|
14951
|
+
(null != propKey$209 || null != propKey))
|
|
13842
14952
|
)
|
|
13843
14953
|
switch (checked) {
|
|
13844
14954
|
case "children":
|
|
13845
14955
|
case "dangerouslySetInnerHTML":
|
|
13846
|
-
if (null != propKey$
|
|
14956
|
+
if (null != propKey$209)
|
|
13847
14957
|
throw Error(formatProdErrorMessage(137, tag));
|
|
13848
14958
|
break;
|
|
13849
14959
|
default:
|
|
@@ -13851,7 +14961,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
|
13851
14961
|
domElement,
|
|
13852
14962
|
tag,
|
|
13853
14963
|
checked,
|
|
13854
|
-
propKey$
|
|
14964
|
+
propKey$209,
|
|
13855
14965
|
nextProps,
|
|
13856
14966
|
propKey
|
|
13857
14967
|
);
|
|
@@ -13859,49 +14969,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
|
13859
14969
|
return;
|
|
13860
14970
|
default:
|
|
13861
14971
|
if (isCustomElement(tag)) {
|
|
13862
|
-
for (var propKey$
|
|
13863
|
-
(propKey$
|
|
13864
|
-
lastProps.hasOwnProperty(propKey$
|
|
13865
|
-
void 0 !== propKey$
|
|
13866
|
-
!nextProps.hasOwnProperty(propKey$
|
|
14972
|
+
for (var propKey$235 in lastProps)
|
|
14973
|
+
(propKey$209 = lastProps[propKey$235]),
|
|
14974
|
+
lastProps.hasOwnProperty(propKey$235) &&
|
|
14975
|
+
void 0 !== propKey$209 &&
|
|
14976
|
+
!nextProps.hasOwnProperty(propKey$235) &&
|
|
13867
14977
|
setPropOnCustomElement(
|
|
13868
14978
|
domElement,
|
|
13869
14979
|
tag,
|
|
13870
|
-
propKey$
|
|
14980
|
+
propKey$235,
|
|
13871
14981
|
void 0,
|
|
13872
14982
|
nextProps,
|
|
13873
|
-
propKey$
|
|
14983
|
+
propKey$209
|
|
13874
14984
|
);
|
|
13875
14985
|
for (defaultChecked in nextProps)
|
|
13876
|
-
(propKey$
|
|
14986
|
+
(propKey$209 = nextProps[defaultChecked]),
|
|
13877
14987
|
(propKey = lastProps[defaultChecked]),
|
|
13878
14988
|
!nextProps.hasOwnProperty(defaultChecked) ||
|
|
13879
|
-
propKey$
|
|
13880
|
-
(void 0 === propKey$
|
|
14989
|
+
propKey$209 === propKey ||
|
|
14990
|
+
(void 0 === propKey$209 && void 0 === propKey) ||
|
|
13881
14991
|
setPropOnCustomElement(
|
|
13882
14992
|
domElement,
|
|
13883
14993
|
tag,
|
|
13884
14994
|
defaultChecked,
|
|
13885
|
-
propKey$
|
|
14995
|
+
propKey$209,
|
|
13886
14996
|
nextProps,
|
|
13887
14997
|
propKey
|
|
13888
14998
|
);
|
|
13889
14999
|
return;
|
|
13890
15000
|
}
|
|
13891
15001
|
}
|
|
13892
|
-
for (var propKey$
|
|
13893
|
-
(propKey$
|
|
13894
|
-
lastProps.hasOwnProperty(propKey$
|
|
13895
|
-
null != propKey$
|
|
13896
|
-
!nextProps.hasOwnProperty(propKey$
|
|
13897
|
-
setProp(domElement, tag, propKey$
|
|
15002
|
+
for (var propKey$240 in lastProps)
|
|
15003
|
+
(propKey$209 = lastProps[propKey$240]),
|
|
15004
|
+
lastProps.hasOwnProperty(propKey$240) &&
|
|
15005
|
+
null != propKey$209 &&
|
|
15006
|
+
!nextProps.hasOwnProperty(propKey$240) &&
|
|
15007
|
+
setProp(domElement, tag, propKey$240, null, nextProps, propKey$209);
|
|
13898
15008
|
for (lastProp in nextProps)
|
|
13899
|
-
(propKey$
|
|
15009
|
+
(propKey$209 = nextProps[lastProp]),
|
|
13900
15010
|
(propKey = lastProps[lastProp]),
|
|
13901
15011
|
!nextProps.hasOwnProperty(lastProp) ||
|
|
13902
|
-
propKey$
|
|
13903
|
-
(null == propKey$
|
|
13904
|
-
setProp(domElement, tag, lastProp, propKey$
|
|
15012
|
+
propKey$209 === propKey ||
|
|
15013
|
+
(null == propKey$209 && null == propKey) ||
|
|
15014
|
+
setProp(domElement, tag, lastProp, propKey$209, nextProps, propKey);
|
|
13905
15015
|
}
|
|
13906
15016
|
function isLikelyStaticResource(initiatorType) {
|
|
13907
15017
|
switch (initiatorType) {
|
|
@@ -14109,6 +15219,837 @@ function hideOrUnhideDehydratedBoundary(suspenseInstance, isHidden) {
|
|
|
14109
15219
|
node = nextNode;
|
|
14110
15220
|
} while (node);
|
|
14111
15221
|
}
|
|
15222
|
+
function applyViewTransitionName(instance, name, className) {
|
|
15223
|
+
instance.style.viewTransitionName = name;
|
|
15224
|
+
null != className && (instance.style.viewTransitionClass = className);
|
|
15225
|
+
name = getComputedStyle(instance);
|
|
15226
|
+
if ("inline" === name.display) {
|
|
15227
|
+
className = instance.getClientRects();
|
|
15228
|
+
if (1 === className.length) var JSCompiler_inline_result = 1;
|
|
15229
|
+
else
|
|
15230
|
+
for (var i = (JSCompiler_inline_result = 0); i < className.length; i++) {
|
|
15231
|
+
var rect = className[i];
|
|
15232
|
+
0 < rect.width && 0 < rect.height && JSCompiler_inline_result++;
|
|
15233
|
+
}
|
|
15234
|
+
1 === JSCompiler_inline_result &&
|
|
15235
|
+
((instance = instance.style),
|
|
15236
|
+
(instance.display = 1 === className.length ? "inline-block" : "block"),
|
|
15237
|
+
(instance.marginTop = "-" + name.paddingTop),
|
|
15238
|
+
(instance.marginBottom = "-" + name.paddingBottom));
|
|
15239
|
+
}
|
|
15240
|
+
}
|
|
15241
|
+
function restoreViewTransitionName(instance, props) {
|
|
15242
|
+
instance = instance.style;
|
|
15243
|
+
props = props.style;
|
|
15244
|
+
var viewTransitionName =
|
|
15245
|
+
null != props
|
|
15246
|
+
? props.hasOwnProperty("viewTransitionName")
|
|
15247
|
+
? props.viewTransitionName
|
|
15248
|
+
: props.hasOwnProperty("view-transition-name")
|
|
15249
|
+
? props["view-transition-name"]
|
|
15250
|
+
: null
|
|
15251
|
+
: null;
|
|
15252
|
+
instance.viewTransitionName =
|
|
15253
|
+
null == viewTransitionName || "boolean" === typeof viewTransitionName
|
|
15254
|
+
? ""
|
|
15255
|
+
: ("" + viewTransitionName).trim();
|
|
15256
|
+
viewTransitionName =
|
|
15257
|
+
null != props
|
|
15258
|
+
? props.hasOwnProperty("viewTransitionClass")
|
|
15259
|
+
? props.viewTransitionClass
|
|
15260
|
+
: props.hasOwnProperty("view-transition-class")
|
|
15261
|
+
? props["view-transition-class"]
|
|
15262
|
+
: null
|
|
15263
|
+
: null;
|
|
15264
|
+
instance.viewTransitionClass =
|
|
15265
|
+
null == viewTransitionName || "boolean" === typeof viewTransitionName
|
|
15266
|
+
? ""
|
|
15267
|
+
: ("" + viewTransitionName).trim();
|
|
15268
|
+
"inline-block" === instance.display &&
|
|
15269
|
+
(null == props
|
|
15270
|
+
? (instance.display = instance.margin = "")
|
|
15271
|
+
: ((viewTransitionName = props.display),
|
|
15272
|
+
(instance.display =
|
|
15273
|
+
null == viewTransitionName || "boolean" === typeof viewTransitionName
|
|
15274
|
+
? ""
|
|
15275
|
+
: viewTransitionName),
|
|
15276
|
+
(viewTransitionName = props.margin),
|
|
15277
|
+
null != viewTransitionName
|
|
15278
|
+
? (instance.margin = viewTransitionName)
|
|
15279
|
+
: ((viewTransitionName = props.hasOwnProperty("marginTop")
|
|
15280
|
+
? props.marginTop
|
|
15281
|
+
: props["margin-top"]),
|
|
15282
|
+
(instance.marginTop =
|
|
15283
|
+
null == viewTransitionName ||
|
|
15284
|
+
"boolean" === typeof viewTransitionName
|
|
15285
|
+
? ""
|
|
15286
|
+
: viewTransitionName),
|
|
15287
|
+
(props = props.hasOwnProperty("marginBottom")
|
|
15288
|
+
? props.marginBottom
|
|
15289
|
+
: props["margin-bottom"]),
|
|
15290
|
+
(instance.marginBottom =
|
|
15291
|
+
null == props || "boolean" === typeof props ? "" : props))));
|
|
15292
|
+
}
|
|
15293
|
+
function createMeasurement(rect, computedStyle, element) {
|
|
15294
|
+
element = element.ownerDocument.defaultView;
|
|
15295
|
+
return {
|
|
15296
|
+
rect: rect,
|
|
15297
|
+
abs:
|
|
15298
|
+
"absolute" === computedStyle.position ||
|
|
15299
|
+
"fixed" === computedStyle.position,
|
|
15300
|
+
clip:
|
|
15301
|
+
"none" !== computedStyle.clipPath ||
|
|
15302
|
+
"visible" !== computedStyle.overflow ||
|
|
15303
|
+
"none" !== computedStyle.filter ||
|
|
15304
|
+
"none" !== computedStyle.mask ||
|
|
15305
|
+
"none" !== computedStyle.mask ||
|
|
15306
|
+
"0px" !== computedStyle.borderRadius,
|
|
15307
|
+
view:
|
|
15308
|
+
0 <= rect.bottom &&
|
|
15309
|
+
0 <= rect.right &&
|
|
15310
|
+
rect.top <= element.innerHeight &&
|
|
15311
|
+
rect.left <= element.innerWidth
|
|
15312
|
+
};
|
|
15313
|
+
}
|
|
15314
|
+
function measureInstance(instance) {
|
|
15315
|
+
var rect = instance.getBoundingClientRect(),
|
|
15316
|
+
computedStyle = getComputedStyle(instance);
|
|
15317
|
+
return createMeasurement(rect, computedStyle, instance);
|
|
15318
|
+
}
|
|
15319
|
+
function measureClonedInstance(instance) {
|
|
15320
|
+
var measuredRect = instance.getBoundingClientRect();
|
|
15321
|
+
measuredRect = new DOMRect(
|
|
15322
|
+
measuredRect.x + 2e4,
|
|
15323
|
+
measuredRect.y + 2e4,
|
|
15324
|
+
measuredRect.width,
|
|
15325
|
+
measuredRect.height
|
|
15326
|
+
);
|
|
15327
|
+
var computedStyle = getComputedStyle(instance);
|
|
15328
|
+
return createMeasurement(measuredRect, computedStyle, instance);
|
|
15329
|
+
}
|
|
15330
|
+
function forceLayout(ownerDocument) {
|
|
15331
|
+
return ownerDocument.documentElement.clientHeight;
|
|
15332
|
+
}
|
|
15333
|
+
function waitForImageToLoad(resolve) {
|
|
15334
|
+
this.addEventListener("load", resolve);
|
|
15335
|
+
this.addEventListener("error", resolve);
|
|
15336
|
+
}
|
|
15337
|
+
function startViewTransition(
|
|
15338
|
+
suspendedState,
|
|
15339
|
+
rootContainer,
|
|
15340
|
+
transitionTypes,
|
|
15341
|
+
mutationCallback,
|
|
15342
|
+
layoutCallback,
|
|
15343
|
+
afterMutationCallback,
|
|
15344
|
+
spawnedWorkCallback,
|
|
15345
|
+
passiveCallback,
|
|
15346
|
+
errorCallback
|
|
15347
|
+
) {
|
|
15348
|
+
var ownerDocument =
|
|
15349
|
+
9 === rootContainer.nodeType ? rootContainer : rootContainer.ownerDocument;
|
|
15350
|
+
try {
|
|
15351
|
+
var transition = ownerDocument.startViewTransition({
|
|
15352
|
+
update: function () {
|
|
15353
|
+
var ownerWindow = ownerDocument.defaultView,
|
|
15354
|
+
pendingNavigation =
|
|
15355
|
+
ownerWindow.navigation && ownerWindow.navigation.transition,
|
|
15356
|
+
previousFontLoadingStatus = ownerDocument.fonts.status;
|
|
15357
|
+
mutationCallback();
|
|
15358
|
+
var blockingPromises = [];
|
|
15359
|
+
"loaded" === previousFontLoadingStatus &&
|
|
15360
|
+
(forceLayout(ownerDocument),
|
|
15361
|
+
"loading" === ownerDocument.fonts.status &&
|
|
15362
|
+
blockingPromises.push(ownerDocument.fonts.ready));
|
|
15363
|
+
previousFontLoadingStatus = blockingPromises.length;
|
|
15364
|
+
if (null !== suspendedState)
|
|
15365
|
+
for (
|
|
15366
|
+
var suspenseyImages = suspendedState.suspenseyImages,
|
|
15367
|
+
imgBytes = 0,
|
|
15368
|
+
i = 0;
|
|
15369
|
+
i < suspenseyImages.length;
|
|
15370
|
+
i++
|
|
15371
|
+
) {
|
|
15372
|
+
var suspenseyImage = suspenseyImages[i];
|
|
15373
|
+
if (!suspenseyImage.complete) {
|
|
15374
|
+
var rect = suspenseyImage.getBoundingClientRect();
|
|
15375
|
+
if (
|
|
15376
|
+
0 < rect.bottom &&
|
|
15377
|
+
0 < rect.right &&
|
|
15378
|
+
rect.top < ownerWindow.innerHeight &&
|
|
15379
|
+
rect.left < ownerWindow.innerWidth
|
|
15380
|
+
) {
|
|
15381
|
+
imgBytes += estimateImageBytes(suspenseyImage);
|
|
15382
|
+
if (imgBytes > estimatedBytesWithinLimit) {
|
|
15383
|
+
blockingPromises.length = previousFontLoadingStatus;
|
|
15384
|
+
break;
|
|
15385
|
+
}
|
|
15386
|
+
suspenseyImage = new Promise(
|
|
15387
|
+
waitForImageToLoad.bind(suspenseyImage)
|
|
15388
|
+
);
|
|
15389
|
+
blockingPromises.push(suspenseyImage);
|
|
15390
|
+
}
|
|
15391
|
+
}
|
|
15392
|
+
}
|
|
15393
|
+
if (0 < blockingPromises.length)
|
|
15394
|
+
return (
|
|
15395
|
+
(ownerWindow = Promise.race([
|
|
15396
|
+
Promise.all(blockingPromises),
|
|
15397
|
+
new Promise(function (resolve) {
|
|
15398
|
+
return setTimeout(resolve, 500);
|
|
15399
|
+
})
|
|
15400
|
+
]).then(layoutCallback, layoutCallback)),
|
|
15401
|
+
(pendingNavigation
|
|
15402
|
+
? Promise.allSettled([pendingNavigation.finished, ownerWindow])
|
|
15403
|
+
: ownerWindow
|
|
15404
|
+
).then(afterMutationCallback, afterMutationCallback)
|
|
15405
|
+
);
|
|
15406
|
+
layoutCallback();
|
|
15407
|
+
if (pendingNavigation)
|
|
15408
|
+
return pendingNavigation.finished.then(
|
|
15409
|
+
afterMutationCallback,
|
|
15410
|
+
afterMutationCallback
|
|
15411
|
+
);
|
|
15412
|
+
afterMutationCallback();
|
|
15413
|
+
},
|
|
15414
|
+
types: transitionTypes
|
|
15415
|
+
});
|
|
15416
|
+
ownerDocument.__reactViewTransition = transition;
|
|
15417
|
+
transition.ready.then(
|
|
15418
|
+
function () {
|
|
15419
|
+
for (
|
|
15420
|
+
var animations = ownerDocument.documentElement.getAnimations({
|
|
15421
|
+
subtree: !0
|
|
15422
|
+
}),
|
|
15423
|
+
i = 0;
|
|
15424
|
+
i < animations.length;
|
|
15425
|
+
i++
|
|
15426
|
+
) {
|
|
15427
|
+
var effect = animations[i].effect,
|
|
15428
|
+
pseudoElement = effect.pseudoElement;
|
|
15429
|
+
if (
|
|
15430
|
+
null != pseudoElement &&
|
|
15431
|
+
pseudoElement.startsWith("::view-transition")
|
|
15432
|
+
) {
|
|
15433
|
+
pseudoElement = effect.getKeyframes();
|
|
15434
|
+
for (
|
|
15435
|
+
var width = void 0,
|
|
15436
|
+
height = void 0,
|
|
15437
|
+
unchangedDimensions = !0,
|
|
15438
|
+
j = 0;
|
|
15439
|
+
j < pseudoElement.length;
|
|
15440
|
+
j++
|
|
15441
|
+
) {
|
|
15442
|
+
var keyframe = pseudoElement[j],
|
|
15443
|
+
w = keyframe.width;
|
|
15444
|
+
if (void 0 === width) width = w;
|
|
15445
|
+
else if (width !== w) {
|
|
15446
|
+
unchangedDimensions = !1;
|
|
15447
|
+
break;
|
|
15448
|
+
}
|
|
15449
|
+
w = keyframe.height;
|
|
15450
|
+
if (void 0 === height) height = w;
|
|
15451
|
+
else if (height !== w) {
|
|
15452
|
+
unchangedDimensions = !1;
|
|
15453
|
+
break;
|
|
15454
|
+
}
|
|
15455
|
+
delete keyframe.width;
|
|
15456
|
+
delete keyframe.height;
|
|
15457
|
+
"none" === keyframe.transform && delete keyframe.transform;
|
|
15458
|
+
}
|
|
15459
|
+
unchangedDimensions &&
|
|
15460
|
+
void 0 !== width &&
|
|
15461
|
+
void 0 !== height &&
|
|
15462
|
+
(effect.setKeyframes(pseudoElement),
|
|
15463
|
+
(unchangedDimensions = getComputedStyle(
|
|
15464
|
+
effect.target,
|
|
15465
|
+
effect.pseudoElement
|
|
15466
|
+
)),
|
|
15467
|
+
unchangedDimensions.width !== width ||
|
|
15468
|
+
unchangedDimensions.height !== height) &&
|
|
15469
|
+
((unchangedDimensions = pseudoElement[0]),
|
|
15470
|
+
(unchangedDimensions.width = width),
|
|
15471
|
+
(unchangedDimensions.height = height),
|
|
15472
|
+
(unchangedDimensions = pseudoElement[pseudoElement.length - 1]),
|
|
15473
|
+
(unchangedDimensions.width = width),
|
|
15474
|
+
(unchangedDimensions.height = height),
|
|
15475
|
+
effect.setKeyframes(pseudoElement));
|
|
15476
|
+
}
|
|
15477
|
+
}
|
|
15478
|
+
spawnedWorkCallback();
|
|
15479
|
+
},
|
|
15480
|
+
function (error) {
|
|
15481
|
+
ownerDocument.__reactViewTransition === transition &&
|
|
15482
|
+
(ownerDocument.__reactViewTransition = null);
|
|
15483
|
+
try {
|
|
15484
|
+
if ("object" === typeof error && null !== error)
|
|
15485
|
+
switch (error.name) {
|
|
15486
|
+
case "InvalidStateError":
|
|
15487
|
+
if (
|
|
15488
|
+
"View transition was skipped because document visibility state is hidden." ===
|
|
15489
|
+
error.message ||
|
|
15490
|
+
"Skipping view transition because document visibility state has become hidden." ===
|
|
15491
|
+
error.message ||
|
|
15492
|
+
"Skipping view transition because viewport size changed." ===
|
|
15493
|
+
error.message ||
|
|
15494
|
+
"Transition was aborted because of invalid state" ===
|
|
15495
|
+
error.message
|
|
15496
|
+
)
|
|
15497
|
+
error = null;
|
|
15498
|
+
}
|
|
15499
|
+
null !== error && errorCallback(error);
|
|
15500
|
+
} finally {
|
|
15501
|
+
mutationCallback(), layoutCallback(), spawnedWorkCallback();
|
|
15502
|
+
}
|
|
15503
|
+
}
|
|
15504
|
+
);
|
|
15505
|
+
transition.finished.finally(function () {
|
|
15506
|
+
for (
|
|
15507
|
+
var scope = ownerDocument.documentElement,
|
|
15508
|
+
animations = scope.getAnimations({ subtree: !0 }),
|
|
15509
|
+
i = 0;
|
|
15510
|
+
i < animations.length;
|
|
15511
|
+
i++
|
|
15512
|
+
) {
|
|
15513
|
+
var anim = animations[i],
|
|
15514
|
+
effect = anim.effect,
|
|
15515
|
+
pseudo = effect.pseudoElement;
|
|
15516
|
+
null != pseudo &&
|
|
15517
|
+
pseudo.startsWith("::view-transition") &&
|
|
15518
|
+
effect.target === scope &&
|
|
15519
|
+
anim.cancel();
|
|
15520
|
+
}
|
|
15521
|
+
ownerDocument.__reactViewTransition === transition &&
|
|
15522
|
+
(ownerDocument.__reactViewTransition = null);
|
|
15523
|
+
passiveCallback();
|
|
15524
|
+
});
|
|
15525
|
+
return transition;
|
|
15526
|
+
} catch (x) {
|
|
15527
|
+
return mutationCallback(), layoutCallback(), spawnedWorkCallback(), null;
|
|
15528
|
+
}
|
|
15529
|
+
}
|
|
15530
|
+
function ViewTransitionPseudoElement(pseudo, name) {
|
|
15531
|
+
this._scope = document.documentElement;
|
|
15532
|
+
this._selector = "::view-transition-" + pseudo + "(" + name + ")";
|
|
15533
|
+
}
|
|
15534
|
+
ViewTransitionPseudoElement.prototype.animate = function (keyframes, options) {
|
|
15535
|
+
options =
|
|
15536
|
+
"number" === typeof options ? { duration: options } : assign({}, options);
|
|
15537
|
+
options.pseudoElement = this._selector;
|
|
15538
|
+
return this._scope.animate(keyframes, options);
|
|
15539
|
+
};
|
|
15540
|
+
ViewTransitionPseudoElement.prototype.getAnimations = function () {
|
|
15541
|
+
for (
|
|
15542
|
+
var scope = this._scope,
|
|
15543
|
+
selector = this._selector,
|
|
15544
|
+
animations = scope.getAnimations({ subtree: !0 }),
|
|
15545
|
+
result = [],
|
|
15546
|
+
i = 0;
|
|
15547
|
+
i < animations.length;
|
|
15548
|
+
i++
|
|
15549
|
+
) {
|
|
15550
|
+
var effect = animations[i].effect;
|
|
15551
|
+
null !== effect &&
|
|
15552
|
+
effect.target === scope &&
|
|
15553
|
+
effect.pseudoElement === selector &&
|
|
15554
|
+
result.push(animations[i]);
|
|
15555
|
+
}
|
|
15556
|
+
return result;
|
|
15557
|
+
};
|
|
15558
|
+
ViewTransitionPseudoElement.prototype.getComputedStyle = function () {
|
|
15559
|
+
return getComputedStyle(this._scope, this._selector);
|
|
15560
|
+
};
|
|
15561
|
+
function createViewTransitionInstance(name) {
|
|
15562
|
+
return {
|
|
15563
|
+
name: name,
|
|
15564
|
+
group: new ViewTransitionPseudoElement("group", name),
|
|
15565
|
+
imagePair: new ViewTransitionPseudoElement("image-pair", name),
|
|
15566
|
+
old: new ViewTransitionPseudoElement("old", name),
|
|
15567
|
+
new: new ViewTransitionPseudoElement("new", name)
|
|
15568
|
+
};
|
|
15569
|
+
}
|
|
15570
|
+
function FragmentInstance(fragmentFiber) {
|
|
15571
|
+
this._fragmentFiber = fragmentFiber;
|
|
15572
|
+
this._observers = this._eventListeners = null;
|
|
15573
|
+
}
|
|
15574
|
+
FragmentInstance.prototype.addEventListener = function (
|
|
15575
|
+
type,
|
|
15576
|
+
listener,
|
|
15577
|
+
optionsOrUseCapture
|
|
15578
|
+
) {
|
|
15579
|
+
null === this._eventListeners && (this._eventListeners = []);
|
|
15580
|
+
var listeners = this._eventListeners;
|
|
15581
|
+
-1 === indexOfEventListener(listeners, type, listener, optionsOrUseCapture) &&
|
|
15582
|
+
(listeners.push({
|
|
15583
|
+
type: type,
|
|
15584
|
+
listener: listener,
|
|
15585
|
+
optionsOrUseCapture: optionsOrUseCapture
|
|
15586
|
+
}),
|
|
15587
|
+
traverseVisibleHostChildren(
|
|
15588
|
+
this._fragmentFiber.child,
|
|
15589
|
+
!1,
|
|
15590
|
+
addEventListenerToChild,
|
|
15591
|
+
type,
|
|
15592
|
+
listener,
|
|
15593
|
+
optionsOrUseCapture
|
|
15594
|
+
));
|
|
15595
|
+
this._eventListeners = listeners;
|
|
15596
|
+
};
|
|
15597
|
+
function addEventListenerToChild(child, type, listener, optionsOrUseCapture) {
|
|
15598
|
+
getInstanceFromHostFiber(child).addEventListener(
|
|
15599
|
+
type,
|
|
15600
|
+
listener,
|
|
15601
|
+
optionsOrUseCapture
|
|
15602
|
+
);
|
|
15603
|
+
return !1;
|
|
15604
|
+
}
|
|
15605
|
+
FragmentInstance.prototype.removeEventListener = function (
|
|
15606
|
+
type,
|
|
15607
|
+
listener,
|
|
15608
|
+
optionsOrUseCapture
|
|
15609
|
+
) {
|
|
15610
|
+
var listeners = this._eventListeners;
|
|
15611
|
+
null !== listeners &&
|
|
15612
|
+
"undefined" !== typeof listeners &&
|
|
15613
|
+
0 < listeners.length &&
|
|
15614
|
+
(traverseVisibleHostChildren(
|
|
15615
|
+
this._fragmentFiber.child,
|
|
15616
|
+
!1,
|
|
15617
|
+
removeEventListenerFromChild,
|
|
15618
|
+
type,
|
|
15619
|
+
listener,
|
|
15620
|
+
optionsOrUseCapture
|
|
15621
|
+
),
|
|
15622
|
+
(type = indexOfEventListener(
|
|
15623
|
+
listeners,
|
|
15624
|
+
type,
|
|
15625
|
+
listener,
|
|
15626
|
+
optionsOrUseCapture
|
|
15627
|
+
)),
|
|
15628
|
+
null !== this._eventListeners && this._eventListeners.splice(type, 1));
|
|
15629
|
+
};
|
|
15630
|
+
function removeEventListenerFromChild(
|
|
15631
|
+
child,
|
|
15632
|
+
type,
|
|
15633
|
+
listener,
|
|
15634
|
+
optionsOrUseCapture
|
|
15635
|
+
) {
|
|
15636
|
+
getInstanceFromHostFiber(child).removeEventListener(
|
|
15637
|
+
type,
|
|
15638
|
+
listener,
|
|
15639
|
+
optionsOrUseCapture
|
|
15640
|
+
);
|
|
15641
|
+
return !1;
|
|
15642
|
+
}
|
|
15643
|
+
function normalizeListenerOptions(opts) {
|
|
15644
|
+
return null == opts
|
|
15645
|
+
? "0"
|
|
15646
|
+
: "boolean" === typeof opts
|
|
15647
|
+
? "c=" + (opts ? "1" : "0")
|
|
15648
|
+
: "c=" +
|
|
15649
|
+
(opts.capture ? "1" : "0") +
|
|
15650
|
+
"&o=" +
|
|
15651
|
+
(opts.once ? "1" : "0") +
|
|
15652
|
+
"&p=" +
|
|
15653
|
+
(opts.passive ? "1" : "0");
|
|
15654
|
+
}
|
|
15655
|
+
function indexOfEventListener(
|
|
15656
|
+
eventListeners,
|
|
15657
|
+
type,
|
|
15658
|
+
listener,
|
|
15659
|
+
optionsOrUseCapture
|
|
15660
|
+
) {
|
|
15661
|
+
for (var i = 0; i < eventListeners.length; i++) {
|
|
15662
|
+
var item = eventListeners[i];
|
|
15663
|
+
if (
|
|
15664
|
+
item.type === type &&
|
|
15665
|
+
item.listener === listener &&
|
|
15666
|
+
normalizeListenerOptions(item.optionsOrUseCapture) ===
|
|
15667
|
+
normalizeListenerOptions(optionsOrUseCapture)
|
|
15668
|
+
)
|
|
15669
|
+
return i;
|
|
15670
|
+
}
|
|
15671
|
+
return -1;
|
|
15672
|
+
}
|
|
15673
|
+
FragmentInstance.prototype.dispatchEvent = function (event) {
|
|
15674
|
+
var parentHostFiber = getFragmentParentHostFiber(this._fragmentFiber);
|
|
15675
|
+
if (null === parentHostFiber) return !0;
|
|
15676
|
+
parentHostFiber = getInstanceFromHostFiber(parentHostFiber);
|
|
15677
|
+
var eventListeners = this._eventListeners;
|
|
15678
|
+
if (
|
|
15679
|
+
(null !== eventListeners && 0 < eventListeners.length) ||
|
|
15680
|
+
!event.bubbles
|
|
15681
|
+
) {
|
|
15682
|
+
var temp = document.createTextNode("");
|
|
15683
|
+
if (eventListeners)
|
|
15684
|
+
for (var i = 0; i < eventListeners.length; i++) {
|
|
15685
|
+
var _eventListeners$i = eventListeners[i];
|
|
15686
|
+
temp.addEventListener(
|
|
15687
|
+
_eventListeners$i.type,
|
|
15688
|
+
_eventListeners$i.listener,
|
|
15689
|
+
_eventListeners$i.optionsOrUseCapture
|
|
15690
|
+
);
|
|
15691
|
+
}
|
|
15692
|
+
parentHostFiber.appendChild(temp);
|
|
15693
|
+
event = temp.dispatchEvent(event);
|
|
15694
|
+
if (eventListeners)
|
|
15695
|
+
for (i = 0; i < eventListeners.length; i++)
|
|
15696
|
+
(_eventListeners$i = eventListeners[i]),
|
|
15697
|
+
temp.removeEventListener(
|
|
15698
|
+
_eventListeners$i.type,
|
|
15699
|
+
_eventListeners$i.listener,
|
|
15700
|
+
_eventListeners$i.optionsOrUseCapture
|
|
15701
|
+
);
|
|
15702
|
+
parentHostFiber.removeChild(temp);
|
|
15703
|
+
return event;
|
|
15704
|
+
}
|
|
15705
|
+
return parentHostFiber.dispatchEvent(event);
|
|
15706
|
+
};
|
|
15707
|
+
FragmentInstance.prototype.focus = function (focusOptions) {
|
|
15708
|
+
traverseVisibleHostChildren(
|
|
15709
|
+
this._fragmentFiber.child,
|
|
15710
|
+
!0,
|
|
15711
|
+
setFocusOnFiberIfFocusable,
|
|
15712
|
+
focusOptions,
|
|
15713
|
+
void 0,
|
|
15714
|
+
void 0
|
|
15715
|
+
);
|
|
15716
|
+
};
|
|
15717
|
+
function setFocusOnFiberIfFocusable(fiber, focusOptions) {
|
|
15718
|
+
fiber = getInstanceFromHostFiber(fiber);
|
|
15719
|
+
return setFocusIfFocusable(fiber, focusOptions);
|
|
15720
|
+
}
|
|
15721
|
+
FragmentInstance.prototype.focusLast = function (focusOptions) {
|
|
15722
|
+
var children = [];
|
|
15723
|
+
traverseVisibleHostChildren(
|
|
15724
|
+
this._fragmentFiber.child,
|
|
15725
|
+
!0,
|
|
15726
|
+
collectChildren,
|
|
15727
|
+
children,
|
|
15728
|
+
void 0,
|
|
15729
|
+
void 0
|
|
15730
|
+
);
|
|
15731
|
+
for (
|
|
15732
|
+
var i = children.length - 1;
|
|
15733
|
+
0 <= i && !setFocusOnFiberIfFocusable(children[i], focusOptions);
|
|
15734
|
+
i--
|
|
15735
|
+
);
|
|
15736
|
+
};
|
|
15737
|
+
function collectChildren(child, collection) {
|
|
15738
|
+
collection.push(child);
|
|
15739
|
+
return !1;
|
|
15740
|
+
}
|
|
15741
|
+
FragmentInstance.prototype.blur = function () {
|
|
15742
|
+
traverseVisibleHostChildren(
|
|
15743
|
+
this._fragmentFiber.child,
|
|
15744
|
+
!1,
|
|
15745
|
+
blurActiveElementWithinFragment,
|
|
15746
|
+
void 0,
|
|
15747
|
+
void 0,
|
|
15748
|
+
void 0
|
|
15749
|
+
);
|
|
15750
|
+
};
|
|
15751
|
+
function blurActiveElementWithinFragment(child) {
|
|
15752
|
+
child = getInstanceFromHostFiber(child);
|
|
15753
|
+
return child === child.ownerDocument.activeElement ? (child.blur(), !0) : !1;
|
|
15754
|
+
}
|
|
15755
|
+
FragmentInstance.prototype.observeUsing = function (observer) {
|
|
15756
|
+
null === this._observers && (this._observers = new Set());
|
|
15757
|
+
this._observers.add(observer);
|
|
15758
|
+
traverseVisibleHostChildren(
|
|
15759
|
+
this._fragmentFiber.child,
|
|
15760
|
+
!1,
|
|
15761
|
+
observeChild,
|
|
15762
|
+
observer,
|
|
15763
|
+
void 0,
|
|
15764
|
+
void 0
|
|
15765
|
+
);
|
|
15766
|
+
};
|
|
15767
|
+
function observeChild(child, observer) {
|
|
15768
|
+
child = getInstanceFromHostFiber(child);
|
|
15769
|
+
observer.observe(child);
|
|
15770
|
+
return !1;
|
|
15771
|
+
}
|
|
15772
|
+
FragmentInstance.prototype.unobserveUsing = function (observer) {
|
|
15773
|
+
var observers = this._observers;
|
|
15774
|
+
null !== observers &&
|
|
15775
|
+
observers.has(observer) &&
|
|
15776
|
+
(observers.delete(observer),
|
|
15777
|
+
traverseVisibleHostChildren(
|
|
15778
|
+
this._fragmentFiber.child,
|
|
15779
|
+
!1,
|
|
15780
|
+
unobserveChild,
|
|
15781
|
+
observer,
|
|
15782
|
+
void 0,
|
|
15783
|
+
void 0
|
|
15784
|
+
));
|
|
15785
|
+
};
|
|
15786
|
+
function unobserveChild(child, observer) {
|
|
15787
|
+
child = getInstanceFromHostFiber(child);
|
|
15788
|
+
observer.unobserve(child);
|
|
15789
|
+
return !1;
|
|
15790
|
+
}
|
|
15791
|
+
FragmentInstance.prototype.getClientRects = function () {
|
|
15792
|
+
var rects = [];
|
|
15793
|
+
traverseVisibleHostChildren(
|
|
15794
|
+
this._fragmentFiber.child,
|
|
15795
|
+
!1,
|
|
15796
|
+
collectClientRects,
|
|
15797
|
+
rects,
|
|
15798
|
+
void 0,
|
|
15799
|
+
void 0
|
|
15800
|
+
);
|
|
15801
|
+
return rects;
|
|
15802
|
+
};
|
|
15803
|
+
function collectClientRects(child, rects) {
|
|
15804
|
+
child = getInstanceFromHostFiber(child);
|
|
15805
|
+
rects.push.apply(rects, child.getClientRects());
|
|
15806
|
+
return !1;
|
|
15807
|
+
}
|
|
15808
|
+
FragmentInstance.prototype.getRootNode = function (getRootNodeOptions) {
|
|
15809
|
+
var parentHostFiber = getFragmentParentHostFiber(this._fragmentFiber);
|
|
15810
|
+
return null === parentHostFiber
|
|
15811
|
+
? this
|
|
15812
|
+
: getInstanceFromHostFiber(parentHostFiber).getRootNode(getRootNodeOptions);
|
|
15813
|
+
};
|
|
15814
|
+
FragmentInstance.prototype.compareDocumentPosition = function (otherNode) {
|
|
15815
|
+
var parentHostFiber = getFragmentParentHostFiber(this._fragmentFiber);
|
|
15816
|
+
if (null === parentHostFiber) return Node.DOCUMENT_POSITION_DISCONNECTED;
|
|
15817
|
+
var children = [];
|
|
15818
|
+
traverseVisibleHostChildren(
|
|
15819
|
+
this._fragmentFiber.child,
|
|
15820
|
+
!1,
|
|
15821
|
+
collectChildren,
|
|
15822
|
+
children,
|
|
15823
|
+
void 0,
|
|
15824
|
+
void 0
|
|
15825
|
+
);
|
|
15826
|
+
var parentHostInstance = getInstanceFromHostFiber(parentHostFiber);
|
|
15827
|
+
if (0 === children.length) {
|
|
15828
|
+
children = this._fragmentFiber;
|
|
15829
|
+
var parentResult = parentHostInstance.compareDocumentPosition(otherNode);
|
|
15830
|
+
parentHostFiber = parentResult;
|
|
15831
|
+
parentHostInstance === otherNode
|
|
15832
|
+
? (parentHostFiber = Node.DOCUMENT_POSITION_CONTAINS)
|
|
15833
|
+
: parentResult & Node.DOCUMENT_POSITION_CONTAINED_BY &&
|
|
15834
|
+
(traverseVisibleHostChildren(children.sibling, !1, findNextSibling),
|
|
15835
|
+
(children = searchTarget),
|
|
15836
|
+
(searchTarget = null),
|
|
15837
|
+
null === children
|
|
15838
|
+
? (parentHostFiber = Node.DOCUMENT_POSITION_PRECEDING)
|
|
15839
|
+
: ((otherNode =
|
|
15840
|
+
getInstanceFromHostFiber(children).compareDocumentPosition(
|
|
15841
|
+
otherNode
|
|
15842
|
+
)),
|
|
15843
|
+
(parentHostFiber =
|
|
15844
|
+
0 === otherNode || otherNode & Node.DOCUMENT_POSITION_FOLLOWING
|
|
15845
|
+
? Node.DOCUMENT_POSITION_FOLLOWING
|
|
15846
|
+
: Node.DOCUMENT_POSITION_PRECEDING)));
|
|
15847
|
+
return (parentHostFiber |= Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC);
|
|
15848
|
+
}
|
|
15849
|
+
parentHostFiber = getInstanceFromHostFiber(children[0]);
|
|
15850
|
+
parentResult = getInstanceFromHostFiber(children[children.length - 1]);
|
|
15851
|
+
for (
|
|
15852
|
+
var firstInstance = getInstanceFromHostFiber(children[0]),
|
|
15853
|
+
foundPortalParent = !1,
|
|
15854
|
+
parent = this._fragmentFiber.return;
|
|
15855
|
+
null !== parent;
|
|
15856
|
+
|
|
15857
|
+
) {
|
|
15858
|
+
4 === parent.tag && (foundPortalParent = !0);
|
|
15859
|
+
if (3 === parent.tag || 5 === parent.tag) break;
|
|
15860
|
+
parent = parent.return;
|
|
15861
|
+
}
|
|
15862
|
+
firstInstance = foundPortalParent
|
|
15863
|
+
? firstInstance.parentElement
|
|
15864
|
+
: parentHostInstance;
|
|
15865
|
+
if (null == firstInstance) return Node.DOCUMENT_POSITION_DISCONNECTED;
|
|
15866
|
+
parentHostInstance =
|
|
15867
|
+
firstInstance.compareDocumentPosition(parentHostFiber) &
|
|
15868
|
+
Node.DOCUMENT_POSITION_CONTAINED_BY;
|
|
15869
|
+
firstInstance =
|
|
15870
|
+
firstInstance.compareDocumentPosition(parentResult) &
|
|
15871
|
+
Node.DOCUMENT_POSITION_CONTAINED_BY;
|
|
15872
|
+
foundPortalParent = parentHostFiber.compareDocumentPosition(otherNode);
|
|
15873
|
+
var lastResult = parentResult.compareDocumentPosition(otherNode);
|
|
15874
|
+
parent =
|
|
15875
|
+
foundPortalParent & Node.DOCUMENT_POSITION_CONTAINED_BY ||
|
|
15876
|
+
lastResult & Node.DOCUMENT_POSITION_CONTAINED_BY;
|
|
15877
|
+
lastResult =
|
|
15878
|
+
parentHostInstance &&
|
|
15879
|
+
firstInstance &&
|
|
15880
|
+
foundPortalParent & Node.DOCUMENT_POSITION_FOLLOWING &&
|
|
15881
|
+
lastResult & Node.DOCUMENT_POSITION_PRECEDING;
|
|
15882
|
+
parentHostFiber =
|
|
15883
|
+
(parentHostInstance && parentHostFiber === otherNode) ||
|
|
15884
|
+
(firstInstance && parentResult === otherNode) ||
|
|
15885
|
+
parent ||
|
|
15886
|
+
lastResult
|
|
15887
|
+
? Node.DOCUMENT_POSITION_CONTAINED_BY
|
|
15888
|
+
: (!parentHostInstance && parentHostFiber === otherNode) ||
|
|
15889
|
+
(!firstInstance && parentResult === otherNode)
|
|
15890
|
+
? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
|
|
15891
|
+
: foundPortalParent;
|
|
15892
|
+
return parentHostFiber & Node.DOCUMENT_POSITION_DISCONNECTED ||
|
|
15893
|
+
parentHostFiber & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC ||
|
|
15894
|
+
validateDocumentPositionWithFiberTree(
|
|
15895
|
+
parentHostFiber,
|
|
15896
|
+
this._fragmentFiber,
|
|
15897
|
+
children[0],
|
|
15898
|
+
children[children.length - 1],
|
|
15899
|
+
otherNode
|
|
15900
|
+
)
|
|
15901
|
+
? parentHostFiber
|
|
15902
|
+
: Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
|
|
15903
|
+
};
|
|
15904
|
+
function validateDocumentPositionWithFiberTree(
|
|
15905
|
+
documentPosition,
|
|
15906
|
+
fragmentFiber,
|
|
15907
|
+
precedingBoundaryFiber,
|
|
15908
|
+
followingBoundaryFiber,
|
|
15909
|
+
otherNode
|
|
15910
|
+
) {
|
|
15911
|
+
var otherFiber = getClosestInstanceFromNode(otherNode);
|
|
15912
|
+
if (documentPosition & Node.DOCUMENT_POSITION_CONTAINED_BY) {
|
|
15913
|
+
if ((precedingBoundaryFiber = !!otherFiber))
|
|
15914
|
+
a: {
|
|
15915
|
+
for (; null !== otherFiber; ) {
|
|
15916
|
+
if (
|
|
15917
|
+
7 === otherFiber.tag &&
|
|
15918
|
+
(otherFiber === fragmentFiber ||
|
|
15919
|
+
otherFiber.alternate === fragmentFiber)
|
|
15920
|
+
) {
|
|
15921
|
+
precedingBoundaryFiber = !0;
|
|
15922
|
+
break a;
|
|
15923
|
+
}
|
|
15924
|
+
otherFiber = otherFiber.return;
|
|
15925
|
+
}
|
|
15926
|
+
precedingBoundaryFiber = !1;
|
|
15927
|
+
}
|
|
15928
|
+
return precedingBoundaryFiber;
|
|
15929
|
+
}
|
|
15930
|
+
if (documentPosition & Node.DOCUMENT_POSITION_CONTAINS) {
|
|
15931
|
+
if (null === otherFiber)
|
|
15932
|
+
return (
|
|
15933
|
+
(otherFiber = otherNode.ownerDocument),
|
|
15934
|
+
otherNode === otherFiber || otherNode === otherFiber.body
|
|
15935
|
+
);
|
|
15936
|
+
a: {
|
|
15937
|
+
otherFiber = fragmentFiber;
|
|
15938
|
+
for (
|
|
15939
|
+
fragmentFiber = getFragmentParentHostFiber(fragmentFiber);
|
|
15940
|
+
null !== otherFiber;
|
|
15941
|
+
|
|
15942
|
+
) {
|
|
15943
|
+
if (
|
|
15944
|
+
!(
|
|
15945
|
+
(5 !== otherFiber.tag && 3 !== otherFiber.tag) ||
|
|
15946
|
+
(otherFiber !== fragmentFiber &&
|
|
15947
|
+
otherFiber.alternate !== fragmentFiber)
|
|
15948
|
+
)
|
|
15949
|
+
) {
|
|
15950
|
+
otherFiber = !0;
|
|
15951
|
+
break a;
|
|
15952
|
+
}
|
|
15953
|
+
otherFiber = otherFiber.return;
|
|
15954
|
+
}
|
|
15955
|
+
otherFiber = !1;
|
|
15956
|
+
}
|
|
15957
|
+
return otherFiber;
|
|
15958
|
+
}
|
|
15959
|
+
return documentPosition & Node.DOCUMENT_POSITION_PRECEDING
|
|
15960
|
+
? ((fragmentFiber = !!otherFiber) &&
|
|
15961
|
+
!(fragmentFiber = otherFiber === precedingBoundaryFiber) &&
|
|
15962
|
+
((fragmentFiber = getLowestCommonAncestor(
|
|
15963
|
+
precedingBoundaryFiber,
|
|
15964
|
+
otherFiber,
|
|
15965
|
+
getParentForFragmentAncestors
|
|
15966
|
+
)),
|
|
15967
|
+
null === fragmentFiber
|
|
15968
|
+
? (fragmentFiber = !1)
|
|
15969
|
+
: (traverseVisibleHostChildren(
|
|
15970
|
+
fragmentFiber,
|
|
15971
|
+
!0,
|
|
15972
|
+
isFiberPrecedingCheck,
|
|
15973
|
+
otherFiber,
|
|
15974
|
+
precedingBoundaryFiber
|
|
15975
|
+
),
|
|
15976
|
+
(otherFiber = searchTarget),
|
|
15977
|
+
(searchTarget = null),
|
|
15978
|
+
(fragmentFiber = null !== otherFiber))),
|
|
15979
|
+
fragmentFiber)
|
|
15980
|
+
: documentPosition & Node.DOCUMENT_POSITION_FOLLOWING
|
|
15981
|
+
? ((fragmentFiber = !!otherFiber) &&
|
|
15982
|
+
!(fragmentFiber = otherFiber === followingBoundaryFiber) &&
|
|
15983
|
+
((fragmentFiber = getLowestCommonAncestor(
|
|
15984
|
+
followingBoundaryFiber,
|
|
15985
|
+
otherFiber,
|
|
15986
|
+
getParentForFragmentAncestors
|
|
15987
|
+
)),
|
|
15988
|
+
null === fragmentFiber
|
|
15989
|
+
? (fragmentFiber = !1)
|
|
15990
|
+
: (traverseVisibleHostChildren(
|
|
15991
|
+
fragmentFiber,
|
|
15992
|
+
!0,
|
|
15993
|
+
isFiberFollowingCheck,
|
|
15994
|
+
otherFiber,
|
|
15995
|
+
followingBoundaryFiber
|
|
15996
|
+
),
|
|
15997
|
+
(otherFiber = searchTarget),
|
|
15998
|
+
(searchBoundary = searchTarget = null),
|
|
15999
|
+
(fragmentFiber = null !== otherFiber))),
|
|
16000
|
+
fragmentFiber)
|
|
16001
|
+
: !1;
|
|
16002
|
+
}
|
|
16003
|
+
FragmentInstance.prototype.scrollIntoView = function (alignToTop) {
|
|
16004
|
+
if ("object" === typeof alignToTop) throw Error(formatProdErrorMessage(566));
|
|
16005
|
+
var children = [];
|
|
16006
|
+
traverseVisibleHostChildren(
|
|
16007
|
+
this._fragmentFiber.child,
|
|
16008
|
+
!1,
|
|
16009
|
+
collectChildren,
|
|
16010
|
+
children,
|
|
16011
|
+
void 0,
|
|
16012
|
+
void 0
|
|
16013
|
+
);
|
|
16014
|
+
var resolvedAlignToTop = !1 !== alignToTop;
|
|
16015
|
+
if (0 === children.length) {
|
|
16016
|
+
children = this._fragmentFiber;
|
|
16017
|
+
var result = [null, null],
|
|
16018
|
+
parentHostFiber = getFragmentParentHostFiber(children);
|
|
16019
|
+
null !== parentHostFiber &&
|
|
16020
|
+
findFragmentInstanceSiblings(result, children, parentHostFiber.child);
|
|
16021
|
+
resolvedAlignToTop = resolvedAlignToTop
|
|
16022
|
+
? result[1] ||
|
|
16023
|
+
result[0] ||
|
|
16024
|
+
getFragmentParentHostFiber(this._fragmentFiber)
|
|
16025
|
+
: result[0] || result[1];
|
|
16026
|
+
null !== resolvedAlignToTop &&
|
|
16027
|
+
getInstanceFromHostFiber(resolvedAlignToTop).scrollIntoView(alignToTop);
|
|
16028
|
+
} else
|
|
16029
|
+
for (
|
|
16030
|
+
result = resolvedAlignToTop ? children.length - 1 : 0;
|
|
16031
|
+
result !== (resolvedAlignToTop ? -1 : children.length);
|
|
16032
|
+
|
|
16033
|
+
)
|
|
16034
|
+
getInstanceFromHostFiber(children[result]).scrollIntoView(alignToTop),
|
|
16035
|
+
(result += resolvedAlignToTop ? -1 : 1);
|
|
16036
|
+
};
|
|
16037
|
+
function commitNewChildToFragmentInstance(childInstance, fragmentInstance) {
|
|
16038
|
+
var eventListeners = fragmentInstance._eventListeners;
|
|
16039
|
+
if (null !== eventListeners)
|
|
16040
|
+
for (var i = 0; i < eventListeners.length; i++) {
|
|
16041
|
+
var _eventListeners$i3 = eventListeners[i];
|
|
16042
|
+
childInstance.addEventListener(
|
|
16043
|
+
_eventListeners$i3.type,
|
|
16044
|
+
_eventListeners$i3.listener,
|
|
16045
|
+
_eventListeners$i3.optionsOrUseCapture
|
|
16046
|
+
);
|
|
16047
|
+
}
|
|
16048
|
+
null !== fragmentInstance._observers &&
|
|
16049
|
+
fragmentInstance._observers.forEach(function (observer) {
|
|
16050
|
+
observer.observe(childInstance);
|
|
16051
|
+
});
|
|
16052
|
+
}
|
|
14112
16053
|
function clearContainerSparingly(container) {
|
|
14113
16054
|
var nextNode = container.firstChild;
|
|
14114
16055
|
nextNode && 10 === nextNode.nodeType && (nextNode = nextNode.nextSibling);
|
|
@@ -14311,6 +16252,19 @@ function getParentHydrationBoundary(targetInstance) {
|
|
|
14311
16252
|
}
|
|
14312
16253
|
return null;
|
|
14313
16254
|
}
|
|
16255
|
+
function setFocusIfFocusable(node, focusOptions) {
|
|
16256
|
+
function handleFocus() {
|
|
16257
|
+
didFocus = !0;
|
|
16258
|
+
}
|
|
16259
|
+
var didFocus = !1;
|
|
16260
|
+
try {
|
|
16261
|
+
node.addEventListener("focus", handleFocus),
|
|
16262
|
+
(node.focus || HTMLElement.prototype.focus).call(node, focusOptions);
|
|
16263
|
+
} finally {
|
|
16264
|
+
node.removeEventListener("focus", handleFocus);
|
|
16265
|
+
}
|
|
16266
|
+
return didFocus;
|
|
16267
|
+
}
|
|
14314
16268
|
function resolveSingletonInstance(type, props, rootContainerInstance) {
|
|
14315
16269
|
props = getOwnerDocumentFromRootContainer(rootContainerInstance);
|
|
14316
16270
|
switch (type) {
|
|
@@ -14636,26 +16590,26 @@ function getResource(type, currentProps, pendingProps, currentResource) {
|
|
|
14636
16590
|
"string" === typeof pendingProps.precedence
|
|
14637
16591
|
) {
|
|
14638
16592
|
type = getStyleKey(pendingProps.href);
|
|
14639
|
-
var styles$
|
|
16593
|
+
var styles$256 = getResourcesFromRoot(
|
|
14640
16594
|
JSCompiler_inline_result
|
|
14641
16595
|
).hoistableStyles,
|
|
14642
|
-
resource$
|
|
14643
|
-
resource$
|
|
16596
|
+
resource$257 = styles$256.get(type);
|
|
16597
|
+
resource$257 ||
|
|
14644
16598
|
((JSCompiler_inline_result =
|
|
14645
16599
|
JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result),
|
|
14646
|
-
(resource$
|
|
16600
|
+
(resource$257 = {
|
|
14647
16601
|
type: "stylesheet",
|
|
14648
16602
|
instance: null,
|
|
14649
16603
|
count: 0,
|
|
14650
16604
|
state: { loading: 0, preload: null }
|
|
14651
16605
|
}),
|
|
14652
|
-
styles$
|
|
14653
|
-
(styles$
|
|
16606
|
+
styles$256.set(type, resource$257),
|
|
16607
|
+
(styles$256 = JSCompiler_inline_result.querySelector(
|
|
14654
16608
|
getStylesheetSelectorFromKey(type)
|
|
14655
16609
|
)) &&
|
|
14656
|
-
!styles$
|
|
14657
|
-
((resource$
|
|
14658
|
-
(resource$
|
|
16610
|
+
!styles$256._p &&
|
|
16611
|
+
((resource$257.instance = styles$256),
|
|
16612
|
+
(resource$257.state.loading = 5)),
|
|
14659
16613
|
preloadPropsMap.has(type) ||
|
|
14660
16614
|
((pendingProps = {
|
|
14661
16615
|
rel: "preload",
|
|
@@ -14668,16 +16622,16 @@ function getResource(type, currentProps, pendingProps, currentResource) {
|
|
|
14668
16622
|
referrerPolicy: pendingProps.referrerPolicy
|
|
14669
16623
|
}),
|
|
14670
16624
|
preloadPropsMap.set(type, pendingProps),
|
|
14671
|
-
styles$
|
|
16625
|
+
styles$256 ||
|
|
14672
16626
|
preloadStylesheet(
|
|
14673
16627
|
JSCompiler_inline_result,
|
|
14674
16628
|
type,
|
|
14675
16629
|
pendingProps,
|
|
14676
|
-
resource$
|
|
16630
|
+
resource$257.state
|
|
14677
16631
|
)));
|
|
14678
16632
|
if (currentProps && null === currentResource)
|
|
14679
16633
|
throw Error(formatProdErrorMessage(528, ""));
|
|
14680
|
-
return resource$
|
|
16634
|
+
return resource$257;
|
|
14681
16635
|
}
|
|
14682
16636
|
if (currentProps && null !== currentResource)
|
|
14683
16637
|
throw Error(formatProdErrorMessage(529, ""));
|
|
@@ -14774,37 +16728,37 @@ function acquireResource(hoistableRoot, resource, props) {
|
|
|
14774
16728
|
return (resource.instance = instance);
|
|
14775
16729
|
case "stylesheet":
|
|
14776
16730
|
styleProps = getStyleKey(props.href);
|
|
14777
|
-
var instance$
|
|
16731
|
+
var instance$262 = hoistableRoot.querySelector(
|
|
14778
16732
|
getStylesheetSelectorFromKey(styleProps)
|
|
14779
16733
|
);
|
|
14780
|
-
if (instance$
|
|
16734
|
+
if (instance$262)
|
|
14781
16735
|
return (
|
|
14782
16736
|
(resource.state.loading |= 4),
|
|
14783
|
-
(resource.instance = instance$
|
|
14784
|
-
markNodeAsHoistable(instance$
|
|
14785
|
-
instance$
|
|
16737
|
+
(resource.instance = instance$262),
|
|
16738
|
+
markNodeAsHoistable(instance$262),
|
|
16739
|
+
instance$262
|
|
14786
16740
|
);
|
|
14787
16741
|
instance = stylesheetPropsFromRawProps(props);
|
|
14788
16742
|
(styleProps = preloadPropsMap.get(styleProps)) &&
|
|
14789
16743
|
adoptPreloadPropsForStylesheet(instance, styleProps);
|
|
14790
|
-
instance$
|
|
16744
|
+
instance$262 = (
|
|
14791
16745
|
hoistableRoot.ownerDocument || hoistableRoot
|
|
14792
16746
|
).createElement("link");
|
|
14793
|
-
markNodeAsHoistable(instance$
|
|
14794
|
-
var linkInstance = instance$
|
|
16747
|
+
markNodeAsHoistable(instance$262);
|
|
16748
|
+
var linkInstance = instance$262;
|
|
14795
16749
|
linkInstance._p = new Promise(function (resolve, reject) {
|
|
14796
16750
|
linkInstance.onload = resolve;
|
|
14797
16751
|
linkInstance.onerror = reject;
|
|
14798
16752
|
});
|
|
14799
|
-
setInitialProperties(instance$
|
|
16753
|
+
setInitialProperties(instance$262, "link", instance);
|
|
14800
16754
|
resource.state.loading |= 4;
|
|
14801
|
-
insertStylesheet(instance$
|
|
14802
|
-
return (resource.instance = instance$
|
|
16755
|
+
insertStylesheet(instance$262, props.precedence, hoistableRoot);
|
|
16756
|
+
return (resource.instance = instance$262);
|
|
14803
16757
|
case "script":
|
|
14804
|
-
instance$
|
|
16758
|
+
instance$262 = getScriptKey(props.src);
|
|
14805
16759
|
if (
|
|
14806
16760
|
(styleProps = hoistableRoot.querySelector(
|
|
14807
|
-
getScriptSelectorFromKey(instance$
|
|
16761
|
+
getScriptSelectorFromKey(instance$262)
|
|
14808
16762
|
))
|
|
14809
16763
|
)
|
|
14810
16764
|
return (
|
|
@@ -14813,7 +16767,7 @@ function acquireResource(hoistableRoot, resource, props) {
|
|
|
14813
16767
|
styleProps
|
|
14814
16768
|
);
|
|
14815
16769
|
instance = props;
|
|
14816
|
-
if ((styleProps = preloadPropsMap.get(instance$
|
|
16770
|
+
if ((styleProps = preloadPropsMap.get(instance$262)))
|
|
14817
16771
|
(instance = assign({}, props)),
|
|
14818
16772
|
adoptPreloadPropsForScript(instance, styleProps);
|
|
14819
16773
|
hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;
|
|
@@ -14954,11 +16908,37 @@ function isHostHoistableType(type, props, hostContext) {
|
|
|
14954
16908
|
}
|
|
14955
16909
|
return !1;
|
|
14956
16910
|
}
|
|
16911
|
+
function maySuspendCommit(type, props) {
|
|
16912
|
+
return (
|
|
16913
|
+
"img" === type &&
|
|
16914
|
+
null != props.src &&
|
|
16915
|
+
"" !== props.src &&
|
|
16916
|
+
null == props.onLoad &&
|
|
16917
|
+
"lazy" !== props.loading
|
|
16918
|
+
);
|
|
16919
|
+
}
|
|
14957
16920
|
function preloadResource(resource) {
|
|
14958
16921
|
return "stylesheet" === resource.type && 0 === (resource.state.loading & 3)
|
|
14959
16922
|
? !1
|
|
14960
16923
|
: !0;
|
|
14961
16924
|
}
|
|
16925
|
+
function estimateImageBytes(instance) {
|
|
16926
|
+
return (
|
|
16927
|
+
(instance.width || 100) *
|
|
16928
|
+
(instance.height || 100) *
|
|
16929
|
+
("number" === typeof devicePixelRatio ? devicePixelRatio : 1) *
|
|
16930
|
+
0.25
|
|
16931
|
+
);
|
|
16932
|
+
}
|
|
16933
|
+
function suspendInstance(state, instance) {
|
|
16934
|
+
"function" === typeof instance.decode &&
|
|
16935
|
+
(state.imgCount++,
|
|
16936
|
+
instance.complete ||
|
|
16937
|
+
((state.imgBytes += estimateImageBytes(instance)),
|
|
16938
|
+
state.suspenseyImages.push(instance)),
|
|
16939
|
+
(state = onUnsuspendImg.bind(state)),
|
|
16940
|
+
instance.decode().then(state, state));
|
|
16941
|
+
}
|
|
14962
16942
|
function suspendResource(state, hoistableRoot, resource, props) {
|
|
14963
16943
|
if (
|
|
14964
16944
|
"stylesheet" === resource.type &&
|
|
@@ -15053,16 +17033,23 @@ function waitForCommitToBeReady(state, timeoutOffset) {
|
|
|
15053
17033
|
}
|
|
15054
17034
|
: null;
|
|
15055
17035
|
}
|
|
15056
|
-
function
|
|
15057
|
-
|
|
15058
|
-
|
|
15059
|
-
if (
|
|
15060
|
-
|
|
15061
|
-
|
|
15062
|
-
this.unsuspend = null;
|
|
17036
|
+
function checkIfFullyUnsuspended(state) {
|
|
17037
|
+
if (0 === state.count && (0 === state.imgCount || !state.waitingForImages))
|
|
17038
|
+
if (state.stylesheets) insertSuspendedStylesheets(state, state.stylesheets);
|
|
17039
|
+
else if (state.unsuspend) {
|
|
17040
|
+
var unsuspend = state.unsuspend;
|
|
17041
|
+
state.unsuspend = null;
|
|
15063
17042
|
unsuspend();
|
|
15064
17043
|
}
|
|
15065
17044
|
}
|
|
17045
|
+
function onUnsuspend() {
|
|
17046
|
+
this.count--;
|
|
17047
|
+
checkIfFullyUnsuspended(this);
|
|
17048
|
+
}
|
|
17049
|
+
function onUnsuspendImg() {
|
|
17050
|
+
this.imgCount--;
|
|
17051
|
+
checkIfFullyUnsuspended(this);
|
|
17052
|
+
}
|
|
15066
17053
|
var precedencesByRoot = null;
|
|
15067
17054
|
function insertSuspendedStylesheets(state, resources) {
|
|
15068
17055
|
state.stylesheets = null;
|
|
@@ -15162,6 +17149,7 @@ function FiberRootNode(
|
|
|
15162
17149
|
this.pooledCache = null;
|
|
15163
17150
|
this.pooledCacheLanes = 0;
|
|
15164
17151
|
this.formState = formState;
|
|
17152
|
+
this.transitionTypes = null;
|
|
15165
17153
|
this.incompleteTransitions = new Map();
|
|
15166
17154
|
}
|
|
15167
17155
|
function createFiberRoot(
|
|
@@ -15914,16 +17902,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
|
|
15914
17902
|
0 === i && attemptExplicitHydrationTarget(target);
|
|
15915
17903
|
}
|
|
15916
17904
|
};
|
|
15917
|
-
var isomorphicReactPackageVersion$jscomp$
|
|
17905
|
+
var isomorphicReactPackageVersion$jscomp$inline_2059 = React.version;
|
|
15918
17906
|
if (
|
|
15919
|
-
"19.3.0-canary-
|
|
15920
|
-
isomorphicReactPackageVersion$jscomp$
|
|
17907
|
+
"19.3.0-canary-3025aa39-20251007" !==
|
|
17908
|
+
isomorphicReactPackageVersion$jscomp$inline_2059
|
|
15921
17909
|
)
|
|
15922
17910
|
throw Error(
|
|
15923
17911
|
formatProdErrorMessage(
|
|
15924
17912
|
527,
|
|
15925
|
-
isomorphicReactPackageVersion$jscomp$
|
|
15926
|
-
"19.3.0-canary-
|
|
17913
|
+
isomorphicReactPackageVersion$jscomp$inline_2059,
|
|
17914
|
+
"19.3.0-canary-3025aa39-20251007"
|
|
15927
17915
|
)
|
|
15928
17916
|
);
|
|
15929
17917
|
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
|
@@ -15943,24 +17931,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
|
|
15943
17931
|
null === componentOrElement ? null : componentOrElement.stateNode;
|
|
15944
17932
|
return componentOrElement;
|
|
15945
17933
|
};
|
|
15946
|
-
var internals$jscomp$
|
|
17934
|
+
var internals$jscomp$inline_2646 = {
|
|
15947
17935
|
bundleType: 0,
|
|
15948
|
-
version: "19.3.0-canary-
|
|
17936
|
+
version: "19.3.0-canary-3025aa39-20251007",
|
|
15949
17937
|
rendererPackageName: "react-dom",
|
|
15950
17938
|
currentDispatcherRef: ReactSharedInternals,
|
|
15951
|
-
reconcilerVersion: "19.3.0-canary-
|
|
17939
|
+
reconcilerVersion: "19.3.0-canary-3025aa39-20251007"
|
|
15952
17940
|
};
|
|
15953
17941
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
15954
|
-
var hook$jscomp$
|
|
17942
|
+
var hook$jscomp$inline_2647 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
15955
17943
|
if (
|
|
15956
|
-
!hook$jscomp$
|
|
15957
|
-
hook$jscomp$
|
|
17944
|
+
!hook$jscomp$inline_2647.isDisabled &&
|
|
17945
|
+
hook$jscomp$inline_2647.supportsFiber
|
|
15958
17946
|
)
|
|
15959
17947
|
try {
|
|
15960
|
-
(rendererID = hook$jscomp$
|
|
15961
|
-
internals$jscomp$
|
|
17948
|
+
(rendererID = hook$jscomp$inline_2647.inject(
|
|
17949
|
+
internals$jscomp$inline_2646
|
|
15962
17950
|
)),
|
|
15963
|
-
(injectedHook = hook$jscomp$
|
|
17951
|
+
(injectedHook = hook$jscomp$inline_2647);
|
|
15964
17952
|
} catch (err) {}
|
|
15965
17953
|
}
|
|
15966
17954
|
exports.createRoot = function (container, options) {
|
|
@@ -16046,4 +18034,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
|
|
16046
18034
|
listenToAllSupportedEvents(container);
|
|
16047
18035
|
return new ReactDOMHydrationRoot(initialChildren);
|
|
16048
18036
|
};
|
|
16049
|
-
exports.version = "19.3.0-canary-
|
|
18037
|
+
exports.version = "19.3.0-canary-3025aa39-20251007";
|