react-dom 19.1.0-canary-056073de-20250109 → 19.1.0-canary-cabd8a0e-20250113

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.
@@ -2098,14 +2098,14 @@ var isInputEventSupported = !1;
2098
2098
  if (canUseDOM) {
2099
2099
  var JSCompiler_inline_result$jscomp$295;
2100
2100
  if (canUseDOM) {
2101
- var isSupported$jscomp$inline_427 = "oninput" in document;
2102
- if (!isSupported$jscomp$inline_427) {
2103
- var element$jscomp$inline_428 = document.createElement("div");
2104
- element$jscomp$inline_428.setAttribute("oninput", "return;");
2105
- isSupported$jscomp$inline_427 =
2106
- "function" === typeof element$jscomp$inline_428.oninput;
2101
+ var isSupported$jscomp$inline_431 = "oninput" in document;
2102
+ if (!isSupported$jscomp$inline_431) {
2103
+ var element$jscomp$inline_432 = document.createElement("div");
2104
+ element$jscomp$inline_432.setAttribute("oninput", "return;");
2105
+ isSupported$jscomp$inline_431 =
2106
+ "function" === typeof element$jscomp$inline_432.oninput;
2107
2107
  }
2108
- JSCompiler_inline_result$jscomp$295 = isSupported$jscomp$inline_427;
2108
+ JSCompiler_inline_result$jscomp$295 = isSupported$jscomp$inline_431;
2109
2109
  } else JSCompiler_inline_result$jscomp$295 = !1;
2110
2110
  isInputEventSupported =
2111
2111
  JSCompiler_inline_result$jscomp$295 &&
@@ -2355,6 +2355,25 @@ function registerSimpleEvent(domEventName, reactName) {
2355
2355
  topLevelEventsToReactNames.set(domEventName, reactName);
2356
2356
  registerTwoPhaseEvent(reactName, [domEventName]);
2357
2357
  }
2358
+ var CapturedStacks = new WeakMap();
2359
+ function createCapturedValueAtFiber(value, source) {
2360
+ if ("object" === typeof value && null !== value) {
2361
+ var existing = CapturedStacks.get(value);
2362
+ if (void 0 !== existing) return existing;
2363
+ source = {
2364
+ value: value,
2365
+ source: source,
2366
+ stack: getStackByFiberInDevAndProd(source)
2367
+ };
2368
+ CapturedStacks.set(value, source);
2369
+ return source;
2370
+ }
2371
+ return {
2372
+ value: value,
2373
+ source: source,
2374
+ stack: getStackByFiberInDevAndProd(source)
2375
+ };
2376
+ }
2358
2377
  var concurrentQueues = [],
2359
2378
  concurrentQueuesIndex = 0,
2360
2379
  concurrentlyUpdatedLanes = 0;
@@ -3005,252 +3024,6 @@ function releaseCache(cache) {
3005
3024
  cache.controller.abort();
3006
3025
  });
3007
3026
  }
3008
- var CapturedStacks = new WeakMap();
3009
- function createCapturedValueAtFiber(value, source) {
3010
- if ("object" === typeof value && null !== value) {
3011
- var existing = CapturedStacks.get(value);
3012
- if (void 0 !== existing) return existing;
3013
- source = {
3014
- value: value,
3015
- source: source,
3016
- stack: getStackByFiberInDevAndProd(source)
3017
- };
3018
- CapturedStacks.set(value, source);
3019
- return source;
3020
- }
3021
- return {
3022
- value: value,
3023
- source: source,
3024
- stack: getStackByFiberInDevAndProd(source)
3025
- };
3026
- }
3027
- var forkStack = [],
3028
- forkStackIndex = 0,
3029
- treeForkProvider = null,
3030
- treeForkCount = 0,
3031
- idStack = [],
3032
- idStackIndex = 0,
3033
- treeContextProvider = null,
3034
- treeContextId = 1,
3035
- treeContextOverflow = "";
3036
- function pushTreeFork(workInProgress, totalChildren) {
3037
- forkStack[forkStackIndex++] = treeForkCount;
3038
- forkStack[forkStackIndex++] = treeForkProvider;
3039
- treeForkProvider = workInProgress;
3040
- treeForkCount = totalChildren;
3041
- }
3042
- function pushTreeId(workInProgress, totalChildren, index) {
3043
- idStack[idStackIndex++] = treeContextId;
3044
- idStack[idStackIndex++] = treeContextOverflow;
3045
- idStack[idStackIndex++] = treeContextProvider;
3046
- treeContextProvider = workInProgress;
3047
- var baseIdWithLeadingBit = treeContextId;
3048
- workInProgress = treeContextOverflow;
3049
- var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;
3050
- baseIdWithLeadingBit &= ~(1 << baseLength);
3051
- index += 1;
3052
- var length = 32 - clz32(totalChildren) + baseLength;
3053
- if (30 < length) {
3054
- var numberOfOverflowBits = baseLength - (baseLength % 5);
3055
- length = (
3056
- baseIdWithLeadingBit &
3057
- ((1 << numberOfOverflowBits) - 1)
3058
- ).toString(32);
3059
- baseIdWithLeadingBit >>= numberOfOverflowBits;
3060
- baseLength -= numberOfOverflowBits;
3061
- treeContextId =
3062
- (1 << (32 - clz32(totalChildren) + baseLength)) |
3063
- (index << baseLength) |
3064
- baseIdWithLeadingBit;
3065
- treeContextOverflow = length + workInProgress;
3066
- } else
3067
- (treeContextId =
3068
- (1 << length) | (index << baseLength) | baseIdWithLeadingBit),
3069
- (treeContextOverflow = workInProgress);
3070
- }
3071
- function pushMaterializedTreeId(workInProgress) {
3072
- null !== workInProgress.return &&
3073
- (pushTreeFork(workInProgress, 1), pushTreeId(workInProgress, 1, 0));
3074
- }
3075
- function popTreeContext(workInProgress) {
3076
- for (; workInProgress === treeForkProvider; )
3077
- (treeForkProvider = forkStack[--forkStackIndex]),
3078
- (forkStack[forkStackIndex] = null),
3079
- (treeForkCount = forkStack[--forkStackIndex]),
3080
- (forkStack[forkStackIndex] = null);
3081
- for (; workInProgress === treeContextProvider; )
3082
- (treeContextProvider = idStack[--idStackIndex]),
3083
- (idStack[idStackIndex] = null),
3084
- (treeContextOverflow = idStack[--idStackIndex]),
3085
- (idStack[idStackIndex] = null),
3086
- (treeContextId = idStack[--idStackIndex]),
3087
- (idStack[idStackIndex] = null);
3088
- }
3089
- var hydrationParentFiber = null,
3090
- nextHydratableInstance = null,
3091
- isHydrating = !1,
3092
- hydrationErrors = null,
3093
- rootOrSingletonContext = !1,
3094
- HydrationMismatchException = Error(formatProdErrorMessage(519));
3095
- function throwOnHydrationMismatch(fiber) {
3096
- var error = Error(formatProdErrorMessage(418, ""));
3097
- queueHydrationError(createCapturedValueAtFiber(error, fiber));
3098
- throw HydrationMismatchException;
3099
- }
3100
- function prepareToHydrateHostInstance(fiber) {
3101
- var instance = fiber.stateNode,
3102
- type = fiber.type,
3103
- props = fiber.memoizedProps;
3104
- instance[internalInstanceKey] = fiber;
3105
- instance[internalPropsKey] = props;
3106
- switch (type) {
3107
- case "dialog":
3108
- listenToNonDelegatedEvent("cancel", instance);
3109
- listenToNonDelegatedEvent("close", instance);
3110
- break;
3111
- case "iframe":
3112
- case "object":
3113
- case "embed":
3114
- listenToNonDelegatedEvent("load", instance);
3115
- break;
3116
- case "video":
3117
- case "audio":
3118
- for (type = 0; type < mediaEventTypes.length; type++)
3119
- listenToNonDelegatedEvent(mediaEventTypes[type], instance);
3120
- break;
3121
- case "source":
3122
- listenToNonDelegatedEvent("error", instance);
3123
- break;
3124
- case "img":
3125
- case "image":
3126
- case "link":
3127
- listenToNonDelegatedEvent("error", instance);
3128
- listenToNonDelegatedEvent("load", instance);
3129
- break;
3130
- case "details":
3131
- listenToNonDelegatedEvent("toggle", instance);
3132
- break;
3133
- case "input":
3134
- listenToNonDelegatedEvent("invalid", instance);
3135
- initInput(
3136
- instance,
3137
- props.value,
3138
- props.defaultValue,
3139
- props.checked,
3140
- props.defaultChecked,
3141
- props.type,
3142
- props.name,
3143
- !0
3144
- );
3145
- track(instance);
3146
- break;
3147
- case "select":
3148
- listenToNonDelegatedEvent("invalid", instance);
3149
- break;
3150
- case "textarea":
3151
- listenToNonDelegatedEvent("invalid", instance),
3152
- initTextarea(instance, props.value, props.defaultValue, props.children),
3153
- track(instance);
3154
- }
3155
- type = props.children;
3156
- ("string" !== typeof type &&
3157
- "number" !== typeof type &&
3158
- "bigint" !== typeof type) ||
3159
- instance.textContent === "" + type ||
3160
- !0 === props.suppressHydrationWarning ||
3161
- checkForUnmatchedText(instance.textContent, type)
3162
- ? (null != props.popover &&
3163
- (listenToNonDelegatedEvent("beforetoggle", instance),
3164
- listenToNonDelegatedEvent("toggle", instance)),
3165
- null != props.onScroll && listenToNonDelegatedEvent("scroll", instance),
3166
- null != props.onScrollEnd &&
3167
- listenToNonDelegatedEvent("scrollend", instance),
3168
- null != props.onClick && (instance.onclick = noop$2),
3169
- (instance = !0))
3170
- : (instance = !1);
3171
- instance || throwOnHydrationMismatch(fiber);
3172
- }
3173
- function popToNextHostParent(fiber) {
3174
- for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
3175
- switch (hydrationParentFiber.tag) {
3176
- case 3:
3177
- case 27:
3178
- rootOrSingletonContext = !0;
3179
- return;
3180
- case 5:
3181
- case 13:
3182
- rootOrSingletonContext = !1;
3183
- return;
3184
- default:
3185
- hydrationParentFiber = hydrationParentFiber.return;
3186
- }
3187
- }
3188
- function popHydrationState(fiber) {
3189
- if (fiber !== hydrationParentFiber) return !1;
3190
- if (!isHydrating) return popToNextHostParent(fiber), (isHydrating = !0), !1;
3191
- var shouldClear = !1,
3192
- JSCompiler_temp;
3193
- if ((JSCompiler_temp = 3 !== fiber.tag && 27 !== fiber.tag)) {
3194
- if ((JSCompiler_temp = 5 === fiber.tag))
3195
- (JSCompiler_temp = fiber.type),
3196
- (JSCompiler_temp =
3197
- !("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) ||
3198
- shouldSetTextContent(fiber.type, fiber.memoizedProps));
3199
- JSCompiler_temp = !JSCompiler_temp;
3200
- }
3201
- JSCompiler_temp && (shouldClear = !0);
3202
- shouldClear && nextHydratableInstance && throwOnHydrationMismatch(fiber);
3203
- popToNextHostParent(fiber);
3204
- if (13 === fiber.tag) {
3205
- fiber = fiber.memoizedState;
3206
- fiber = null !== fiber ? fiber.dehydrated : null;
3207
- if (!fiber) throw Error(formatProdErrorMessage(317));
3208
- a: {
3209
- fiber = fiber.nextSibling;
3210
- for (shouldClear = 0; fiber; ) {
3211
- if (8 === fiber.nodeType)
3212
- if (((JSCompiler_temp = fiber.data), "/$" === JSCompiler_temp)) {
3213
- if (0 === shouldClear) {
3214
- nextHydratableInstance = getNextHydratable(fiber.nextSibling);
3215
- break a;
3216
- }
3217
- shouldClear--;
3218
- } else
3219
- ("$" !== JSCompiler_temp &&
3220
- "$!" !== JSCompiler_temp &&
3221
- "$?" !== JSCompiler_temp) ||
3222
- shouldClear++;
3223
- fiber = fiber.nextSibling;
3224
- }
3225
- nextHydratableInstance = null;
3226
- }
3227
- } else
3228
- nextHydratableInstance = hydrationParentFiber
3229
- ? getNextHydratable(fiber.stateNode.nextSibling)
3230
- : null;
3231
- return !0;
3232
- }
3233
- function resetHydrationState() {
3234
- nextHydratableInstance = hydrationParentFiber = null;
3235
- isHydrating = !1;
3236
- }
3237
- function upgradeHydrationErrorsToRecoverable() {
3238
- var queuedErrors = hydrationErrors;
3239
- null !== queuedErrors &&
3240
- (null === workInProgressRootRecoverableErrors
3241
- ? (workInProgressRootRecoverableErrors = queuedErrors)
3242
- : workInProgressRootRecoverableErrors.push.apply(
3243
- workInProgressRootRecoverableErrors,
3244
- queuedErrors
3245
- ),
3246
- (hydrationErrors = null));
3247
- return queuedErrors;
3248
- }
3249
- function queueHydrationError(error) {
3250
- null === hydrationErrors
3251
- ? (hydrationErrors = [error])
3252
- : hydrationErrors.push(error);
3253
- }
3254
3027
  function applyDerivedStateFromProps(
3255
3028
  workInProgress,
3256
3029
  ctor,
@@ -3324,34 +3097,96 @@ function checkShouldComponentUpdate(
3324
3097
  ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)
3325
3098
  : !0;
3326
3099
  }
3327
- function callComponentWillReceiveProps(
3328
- workInProgress,
3329
- instance,
3330
- newProps,
3331
- nextContext
3332
- ) {
3333
- workInProgress = instance.state;
3334
- "function" === typeof instance.componentWillReceiveProps &&
3335
- instance.componentWillReceiveProps(newProps, nextContext);
3336
- "function" === typeof instance.UNSAFE_componentWillReceiveProps &&
3337
- instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
3338
- instance.state !== workInProgress &&
3339
- classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
3100
+ function callComponentWillReceiveProps(
3101
+ workInProgress,
3102
+ instance,
3103
+ newProps,
3104
+ nextContext
3105
+ ) {
3106
+ workInProgress = instance.state;
3107
+ "function" === typeof instance.componentWillReceiveProps &&
3108
+ instance.componentWillReceiveProps(newProps, nextContext);
3109
+ "function" === typeof instance.UNSAFE_componentWillReceiveProps &&
3110
+ instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
3111
+ instance.state !== workInProgress &&
3112
+ classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
3113
+ }
3114
+ function resolveClassComponentProps(Component, baseProps) {
3115
+ var newProps = baseProps;
3116
+ if ("ref" in baseProps) {
3117
+ newProps = {};
3118
+ for (var propName in baseProps)
3119
+ "ref" !== propName && (newProps[propName] = baseProps[propName]);
3120
+ }
3121
+ if ((Component = Component.defaultProps)) {
3122
+ newProps === baseProps && (newProps = assign({}, newProps));
3123
+ for (var propName$30 in Component)
3124
+ void 0 === newProps[propName$30] &&
3125
+ (newProps[propName$30] = Component[propName$30]);
3126
+ }
3127
+ return newProps;
3128
+ }
3129
+ var forkStack = [],
3130
+ forkStackIndex = 0,
3131
+ treeForkProvider = null,
3132
+ treeForkCount = 0,
3133
+ idStack = [],
3134
+ idStackIndex = 0,
3135
+ treeContextProvider = null,
3136
+ treeContextId = 1,
3137
+ treeContextOverflow = "";
3138
+ function pushTreeFork(workInProgress, totalChildren) {
3139
+ forkStack[forkStackIndex++] = treeForkCount;
3140
+ forkStack[forkStackIndex++] = treeForkProvider;
3141
+ treeForkProvider = workInProgress;
3142
+ treeForkCount = totalChildren;
3143
+ }
3144
+ function pushTreeId(workInProgress, totalChildren, index) {
3145
+ idStack[idStackIndex++] = treeContextId;
3146
+ idStack[idStackIndex++] = treeContextOverflow;
3147
+ idStack[idStackIndex++] = treeContextProvider;
3148
+ treeContextProvider = workInProgress;
3149
+ var baseIdWithLeadingBit = treeContextId;
3150
+ workInProgress = treeContextOverflow;
3151
+ var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;
3152
+ baseIdWithLeadingBit &= ~(1 << baseLength);
3153
+ index += 1;
3154
+ var length = 32 - clz32(totalChildren) + baseLength;
3155
+ if (30 < length) {
3156
+ var numberOfOverflowBits = baseLength - (baseLength % 5);
3157
+ length = (
3158
+ baseIdWithLeadingBit &
3159
+ ((1 << numberOfOverflowBits) - 1)
3160
+ ).toString(32);
3161
+ baseIdWithLeadingBit >>= numberOfOverflowBits;
3162
+ baseLength -= numberOfOverflowBits;
3163
+ treeContextId =
3164
+ (1 << (32 - clz32(totalChildren) + baseLength)) |
3165
+ (index << baseLength) |
3166
+ baseIdWithLeadingBit;
3167
+ treeContextOverflow = length + workInProgress;
3168
+ } else
3169
+ (treeContextId =
3170
+ (1 << length) | (index << baseLength) | baseIdWithLeadingBit),
3171
+ (treeContextOverflow = workInProgress);
3172
+ }
3173
+ function pushMaterializedTreeId(workInProgress) {
3174
+ null !== workInProgress.return &&
3175
+ (pushTreeFork(workInProgress, 1), pushTreeId(workInProgress, 1, 0));
3340
3176
  }
3341
- function resolveClassComponentProps(Component, baseProps) {
3342
- var newProps = baseProps;
3343
- if ("ref" in baseProps) {
3344
- newProps = {};
3345
- for (var propName in baseProps)
3346
- "ref" !== propName && (newProps[propName] = baseProps[propName]);
3347
- }
3348
- if ((Component = Component.defaultProps)) {
3349
- newProps === baseProps && (newProps = assign({}, newProps));
3350
- for (var propName$32 in Component)
3351
- void 0 === newProps[propName$32] &&
3352
- (newProps[propName$32] = Component[propName$32]);
3353
- }
3354
- return newProps;
3177
+ function popTreeContext(workInProgress) {
3178
+ for (; workInProgress === treeForkProvider; )
3179
+ (treeForkProvider = forkStack[--forkStackIndex]),
3180
+ (forkStack[forkStackIndex] = null),
3181
+ (treeForkCount = forkStack[--forkStackIndex]),
3182
+ (forkStack[forkStackIndex] = null);
3183
+ for (; workInProgress === treeContextProvider; )
3184
+ (treeContextProvider = idStack[--idStackIndex]),
3185
+ (idStack[idStackIndex] = null),
3186
+ (treeContextOverflow = idStack[--idStackIndex]),
3187
+ (idStack[idStackIndex] = null),
3188
+ (treeContextId = idStack[--idStackIndex]),
3189
+ (idStack[idStackIndex] = null);
3355
3190
  }
3356
3191
  var SuspenseException = Error(formatProdErrorMessage(460)),
3357
3192
  SuspenseyCommitException = Error(formatProdErrorMessage(474)),
@@ -7347,14 +7182,17 @@ function beginWork(current, workInProgress, renderLanes) {
7347
7182
  workInProgress.child
7348
7183
  );
7349
7184
  case 5:
7350
- if (null === current && isHydrating) {
7351
- if ((init = lazyComponent = nextHydratableInstance))
7352
- (lazyComponent = canHydrateInstance(
7353
- lazyComponent,
7354
- workInProgress.type,
7355
- workInProgress.pendingProps,
7356
- rootOrSingletonContext
7357
- )),
7185
+ return (
7186
+ null === current &&
7187
+ isHydrating &&
7188
+ ((lazyComponent = nextHydratableInstance),
7189
+ (init = !lazyComponent) ||
7190
+ ((lazyComponent = canHydrateInstance(
7191
+ lazyComponent,
7192
+ workInProgress.type,
7193
+ workInProgress.pendingProps,
7194
+ rootOrSingletonContext
7195
+ )),
7358
7196
  null !== lazyComponent
7359
7197
  ? ((workInProgress.stateNode = lazyComponent),
7360
7198
  (hydrationParentFiber = workInProgress),
@@ -7362,50 +7200,55 @@ function beginWork(current, workInProgress, renderLanes) {
7362
7200
  lazyComponent.firstChild
7363
7201
  )),
7364
7202
  (rootOrSingletonContext = !1),
7365
- (init = !0))
7366
- : (init = !1);
7367
- init || throwOnHydrationMismatch(workInProgress);
7368
- }
7369
- pushHostContext(workInProgress);
7370
- init = workInProgress.type;
7371
- nextProps = workInProgress.pendingProps;
7372
- nextState = null !== current ? current.memoizedProps : null;
7373
- lazyComponent = nextProps.children;
7374
- shouldSetTextContent(init, nextProps)
7375
- ? (lazyComponent = null)
7376
- : null !== nextState &&
7377
- shouldSetTextContent(init, nextState) &&
7378
- (workInProgress.flags |= 32);
7379
- null !== workInProgress.memoizedState &&
7380
- ((init = renderWithHooks(
7381
- current,
7382
- workInProgress,
7383
- TransitionAwareHostComponent,
7384
- null,
7385
- null,
7386
- renderLanes
7387
- )),
7388
- (HostTransitionContext._currentValue = init));
7389
- markRef(current, workInProgress);
7390
- reconcileChildren(current, workInProgress, lazyComponent, renderLanes);
7391
- return workInProgress.child;
7392
- case 6:
7393
- if (null === current && isHydrating) {
7394
- if ((current = renderLanes = nextHydratableInstance))
7395
- (renderLanes = canHydrateTextInstance(
7396
- renderLanes,
7397
- workInProgress.pendingProps,
7398
- rootOrSingletonContext
7203
+ (lazyComponent = !0))
7204
+ : (lazyComponent = !1),
7205
+ (init = !lazyComponent)),
7206
+ init && throwOnHydrationMismatch(workInProgress)),
7207
+ pushHostContext(workInProgress),
7208
+ (init = workInProgress.type),
7209
+ (nextProps = workInProgress.pendingProps),
7210
+ (nextState = null !== current ? current.memoizedProps : null),
7211
+ (lazyComponent = nextProps.children),
7212
+ shouldSetTextContent(init, nextProps)
7213
+ ? (lazyComponent = null)
7214
+ : null !== nextState &&
7215
+ shouldSetTextContent(init, nextState) &&
7216
+ (workInProgress.flags |= 32),
7217
+ null !== workInProgress.memoizedState &&
7218
+ ((init = renderWithHooks(
7219
+ current,
7220
+ workInProgress,
7221
+ TransitionAwareHostComponent,
7222
+ null,
7223
+ null,
7224
+ renderLanes
7399
7225
  )),
7226
+ (HostTransitionContext._currentValue = init)),
7227
+ markRef(current, workInProgress),
7228
+ reconcileChildren(current, workInProgress, lazyComponent, renderLanes),
7229
+ workInProgress.child
7230
+ );
7231
+ case 6:
7232
+ return (
7233
+ null === current &&
7234
+ isHydrating &&
7235
+ ((renderLanes = nextHydratableInstance),
7236
+ (current = !renderLanes) ||
7237
+ ((renderLanes = canHydrateTextInstance(
7238
+ renderLanes,
7239
+ workInProgress.pendingProps,
7240
+ rootOrSingletonContext
7241
+ )),
7400
7242
  null !== renderLanes
7401
7243
  ? ((workInProgress.stateNode = renderLanes),
7402
7244
  (hydrationParentFiber = workInProgress),
7403
7245
  (nextHydratableInstance = null),
7404
- (current = !0))
7405
- : (current = !1);
7406
- current || throwOnHydrationMismatch(workInProgress);
7407
- }
7408
- return null;
7246
+ (renderLanes = !0))
7247
+ : (renderLanes = !1),
7248
+ (current = !renderLanes)),
7249
+ current && throwOnHydrationMismatch(workInProgress)),
7250
+ null
7251
+ );
7409
7252
  case 13:
7410
7253
  return updateSuspenseComponent(current, workInProgress, renderLanes);
7411
7254
  case 4:
@@ -7775,15 +7618,14 @@ function safelyAttachRef(current, nearestMountedAncestor) {
7775
7618
  try {
7776
7619
  var ref = current.ref;
7777
7620
  if (null !== ref) {
7778
- var instance = current.stateNode;
7779
7621
  switch (current.tag) {
7780
7622
  case 26:
7781
7623
  case 27:
7782
7624
  case 5:
7783
- var instanceToUse = instance;
7625
+ var instanceToUse = current.stateNode;
7784
7626
  break;
7785
7627
  default:
7786
- instanceToUse = instance;
7628
+ instanceToUse = current.stateNode;
7787
7629
  }
7788
7630
  if ("function" === typeof ref)
7789
7631
  if (shouldProfile(current))
@@ -9966,6 +9808,171 @@ function createFiberFromPortal(portal, mode, lanes) {
9966
9808
  };
9967
9809
  return mode;
9968
9810
  }
9811
+ var hydrationParentFiber = null,
9812
+ nextHydratableInstance = null,
9813
+ isHydrating = !1,
9814
+ hydrationErrors = null,
9815
+ rootOrSingletonContext = !1,
9816
+ HydrationMismatchException = Error(formatProdErrorMessage(519));
9817
+ function throwOnHydrationMismatch(fiber) {
9818
+ var error = Error(formatProdErrorMessage(418, ""));
9819
+ queueHydrationError(createCapturedValueAtFiber(error, fiber));
9820
+ throw HydrationMismatchException;
9821
+ }
9822
+ function prepareToHydrateHostInstance(fiber) {
9823
+ var instance = fiber.stateNode,
9824
+ type = fiber.type,
9825
+ props = fiber.memoizedProps;
9826
+ instance[internalInstanceKey] = fiber;
9827
+ instance[internalPropsKey] = props;
9828
+ switch (type) {
9829
+ case "dialog":
9830
+ listenToNonDelegatedEvent("cancel", instance);
9831
+ listenToNonDelegatedEvent("close", instance);
9832
+ break;
9833
+ case "iframe":
9834
+ case "object":
9835
+ case "embed":
9836
+ listenToNonDelegatedEvent("load", instance);
9837
+ break;
9838
+ case "video":
9839
+ case "audio":
9840
+ for (type = 0; type < mediaEventTypes.length; type++)
9841
+ listenToNonDelegatedEvent(mediaEventTypes[type], instance);
9842
+ break;
9843
+ case "source":
9844
+ listenToNonDelegatedEvent("error", instance);
9845
+ break;
9846
+ case "img":
9847
+ case "image":
9848
+ case "link":
9849
+ listenToNonDelegatedEvent("error", instance);
9850
+ listenToNonDelegatedEvent("load", instance);
9851
+ break;
9852
+ case "details":
9853
+ listenToNonDelegatedEvent("toggle", instance);
9854
+ break;
9855
+ case "input":
9856
+ listenToNonDelegatedEvent("invalid", instance);
9857
+ initInput(
9858
+ instance,
9859
+ props.value,
9860
+ props.defaultValue,
9861
+ props.checked,
9862
+ props.defaultChecked,
9863
+ props.type,
9864
+ props.name,
9865
+ !0
9866
+ );
9867
+ track(instance);
9868
+ break;
9869
+ case "select":
9870
+ listenToNonDelegatedEvent("invalid", instance);
9871
+ break;
9872
+ case "textarea":
9873
+ listenToNonDelegatedEvent("invalid", instance),
9874
+ initTextarea(instance, props.value, props.defaultValue, props.children),
9875
+ track(instance);
9876
+ }
9877
+ type = props.children;
9878
+ ("string" !== typeof type &&
9879
+ "number" !== typeof type &&
9880
+ "bigint" !== typeof type) ||
9881
+ instance.textContent === "" + type ||
9882
+ !0 === props.suppressHydrationWarning ||
9883
+ checkForUnmatchedText(instance.textContent, type)
9884
+ ? (null != props.popover &&
9885
+ (listenToNonDelegatedEvent("beforetoggle", instance),
9886
+ listenToNonDelegatedEvent("toggle", instance)),
9887
+ null != props.onScroll && listenToNonDelegatedEvent("scroll", instance),
9888
+ null != props.onScrollEnd &&
9889
+ listenToNonDelegatedEvent("scrollend", instance),
9890
+ null != props.onClick && (instance.onclick = noop$2),
9891
+ (instance = !0))
9892
+ : (instance = !1);
9893
+ instance || throwOnHydrationMismatch(fiber);
9894
+ }
9895
+ function popToNextHostParent(fiber) {
9896
+ for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
9897
+ switch (hydrationParentFiber.tag) {
9898
+ case 3:
9899
+ case 27:
9900
+ rootOrSingletonContext = !0;
9901
+ return;
9902
+ case 5:
9903
+ case 13:
9904
+ rootOrSingletonContext = !1;
9905
+ return;
9906
+ default:
9907
+ hydrationParentFiber = hydrationParentFiber.return;
9908
+ }
9909
+ }
9910
+ function popHydrationState(fiber) {
9911
+ if (fiber !== hydrationParentFiber) return !1;
9912
+ if (!isHydrating) return popToNextHostParent(fiber), (isHydrating = !0), !1;
9913
+ var shouldClear = !1,
9914
+ JSCompiler_temp;
9915
+ if ((JSCompiler_temp = 3 !== fiber.tag && 27 !== fiber.tag)) {
9916
+ if ((JSCompiler_temp = 5 === fiber.tag))
9917
+ (JSCompiler_temp = fiber.type),
9918
+ (JSCompiler_temp =
9919
+ !("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) ||
9920
+ shouldSetTextContent(fiber.type, fiber.memoizedProps));
9921
+ JSCompiler_temp = !JSCompiler_temp;
9922
+ }
9923
+ JSCompiler_temp && (shouldClear = !0);
9924
+ shouldClear && nextHydratableInstance && throwOnHydrationMismatch(fiber);
9925
+ popToNextHostParent(fiber);
9926
+ if (13 === fiber.tag) {
9927
+ fiber = fiber.memoizedState;
9928
+ fiber = null !== fiber ? fiber.dehydrated : null;
9929
+ if (!fiber) throw Error(formatProdErrorMessage(317));
9930
+ a: {
9931
+ fiber = fiber.nextSibling;
9932
+ for (shouldClear = 0; fiber; ) {
9933
+ if (8 === fiber.nodeType)
9934
+ if (((JSCompiler_temp = fiber.data), "/$" === JSCompiler_temp)) {
9935
+ if (0 === shouldClear) {
9936
+ nextHydratableInstance = getNextHydratable(fiber.nextSibling);
9937
+ break a;
9938
+ }
9939
+ shouldClear--;
9940
+ } else
9941
+ ("$" !== JSCompiler_temp &&
9942
+ "$!" !== JSCompiler_temp &&
9943
+ "$?" !== JSCompiler_temp) ||
9944
+ shouldClear++;
9945
+ fiber = fiber.nextSibling;
9946
+ }
9947
+ nextHydratableInstance = null;
9948
+ }
9949
+ } else
9950
+ nextHydratableInstance = hydrationParentFiber
9951
+ ? getNextHydratable(fiber.stateNode.nextSibling)
9952
+ : null;
9953
+ return !0;
9954
+ }
9955
+ function resetHydrationState() {
9956
+ nextHydratableInstance = hydrationParentFiber = null;
9957
+ isHydrating = !1;
9958
+ }
9959
+ function upgradeHydrationErrorsToRecoverable() {
9960
+ var queuedErrors = hydrationErrors;
9961
+ null !== queuedErrors &&
9962
+ (null === workInProgressRootRecoverableErrors
9963
+ ? (workInProgressRootRecoverableErrors = queuedErrors)
9964
+ : workInProgressRootRecoverableErrors.push.apply(
9965
+ workInProgressRootRecoverableErrors,
9966
+ queuedErrors
9967
+ ),
9968
+ (hydrationErrors = null));
9969
+ return queuedErrors;
9970
+ }
9971
+ function queueHydrationError(error) {
9972
+ null === hydrationErrors
9973
+ ? (hydrationErrors = [error])
9974
+ : hydrationErrors.push(error);
9975
+ }
9969
9976
  function markUpdate(workInProgress) {
9970
9977
  workInProgress.flags |= 4;
9971
9978
  }
@@ -12350,20 +12357,20 @@ function extractEvents$1(
12350
12357
  }
12351
12358
  }
12352
12359
  for (
12353
- var i$jscomp$inline_1568 = 0;
12354
- i$jscomp$inline_1568 < simpleEventPluginEvents.length;
12355
- i$jscomp$inline_1568++
12360
+ var i$jscomp$inline_1584 = 0;
12361
+ i$jscomp$inline_1584 < simpleEventPluginEvents.length;
12362
+ i$jscomp$inline_1584++
12356
12363
  ) {
12357
- var eventName$jscomp$inline_1569 =
12358
- simpleEventPluginEvents[i$jscomp$inline_1568],
12359
- domEventName$jscomp$inline_1570 =
12360
- eventName$jscomp$inline_1569.toLowerCase(),
12361
- capitalizedEvent$jscomp$inline_1571 =
12362
- eventName$jscomp$inline_1569[0].toUpperCase() +
12363
- eventName$jscomp$inline_1569.slice(1);
12364
+ var eventName$jscomp$inline_1585 =
12365
+ simpleEventPluginEvents[i$jscomp$inline_1584],
12366
+ domEventName$jscomp$inline_1586 =
12367
+ eventName$jscomp$inline_1585.toLowerCase(),
12368
+ capitalizedEvent$jscomp$inline_1587 =
12369
+ eventName$jscomp$inline_1585[0].toUpperCase() +
12370
+ eventName$jscomp$inline_1585.slice(1);
12364
12371
  registerSimpleEvent(
12365
- domEventName$jscomp$inline_1570,
12366
- "on" + capitalizedEvent$jscomp$inline_1571
12372
+ domEventName$jscomp$inline_1586,
12373
+ "on" + capitalizedEvent$jscomp$inline_1587
12367
12374
  );
12368
12375
  }
12369
12376
  registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -15839,16 +15846,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15839
15846
  0 === i && attemptExplicitHydrationTarget(target);
15840
15847
  }
15841
15848
  };
15842
- var isomorphicReactPackageVersion$jscomp$inline_1817 = React.version;
15849
+ var isomorphicReactPackageVersion$jscomp$inline_1833 = React.version;
15843
15850
  if (
15844
- "19.1.0-canary-056073de-20250109" !==
15845
- isomorphicReactPackageVersion$jscomp$inline_1817
15851
+ "19.1.0-canary-cabd8a0e-20250113" !==
15852
+ isomorphicReactPackageVersion$jscomp$inline_1833
15846
15853
  )
15847
15854
  throw Error(
15848
15855
  formatProdErrorMessage(
15849
15856
  527,
15850
- isomorphicReactPackageVersion$jscomp$inline_1817,
15851
- "19.1.0-canary-056073de-20250109"
15857
+ isomorphicReactPackageVersion$jscomp$inline_1833,
15858
+ "19.1.0-canary-cabd8a0e-20250113"
15852
15859
  )
15853
15860
  );
15854
15861
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15868,12 +15875,12 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15868
15875
  null === componentOrElement ? null : componentOrElement.stateNode;
15869
15876
  return componentOrElement;
15870
15877
  };
15871
- var internals$jscomp$inline_1824 = {
15878
+ var internals$jscomp$inline_1840 = {
15872
15879
  bundleType: 0,
15873
- version: "19.1.0-canary-056073de-20250109",
15880
+ version: "19.1.0-canary-cabd8a0e-20250113",
15874
15881
  rendererPackageName: "react-dom",
15875
15882
  currentDispatcherRef: ReactSharedInternals,
15876
- reconcilerVersion: "19.1.0-canary-056073de-20250109",
15883
+ reconcilerVersion: "19.1.0-canary-cabd8a0e-20250113",
15877
15884
  getLaneLabelMap: function () {
15878
15885
  for (
15879
15886
  var map = new Map(), lane = 1, index$279 = 0;
@@ -15891,16 +15898,16 @@ var internals$jscomp$inline_1824 = {
15891
15898
  }
15892
15899
  };
15893
15900
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15894
- var hook$jscomp$inline_2254 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15901
+ var hook$jscomp$inline_2278 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15895
15902
  if (
15896
- !hook$jscomp$inline_2254.isDisabled &&
15897
- hook$jscomp$inline_2254.supportsFiber
15903
+ !hook$jscomp$inline_2278.isDisabled &&
15904
+ hook$jscomp$inline_2278.supportsFiber
15898
15905
  )
15899
15906
  try {
15900
- (rendererID = hook$jscomp$inline_2254.inject(
15901
- internals$jscomp$inline_1824
15907
+ (rendererID = hook$jscomp$inline_2278.inject(
15908
+ internals$jscomp$inline_1840
15902
15909
  )),
15903
- (injectedHook = hook$jscomp$inline_2254);
15910
+ (injectedHook = hook$jscomp$inline_2278);
15904
15911
  } catch (err) {}
15905
15912
  }
15906
15913
  function noop() {}
@@ -16155,7 +16162,7 @@ exports.useFormState = function (action, initialState, permalink) {
16155
16162
  exports.useFormStatus = function () {
16156
16163
  return ReactSharedInternals.H.useHostTransitionStatus();
16157
16164
  };
16158
- exports.version = "19.1.0-canary-056073de-20250109";
16165
+ exports.version = "19.1.0-canary-cabd8a0e-20250113";
16159
16166
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
16160
16167
  "function" ===
16161
16168
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&