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.
@@ -2016,14 +2016,14 @@ var isInputEventSupported = !1;
2016
2016
  if (canUseDOM) {
2017
2017
  var JSCompiler_inline_result$jscomp$279;
2018
2018
  if (canUseDOM) {
2019
- var isSupported$jscomp$inline_410 = "oninput" in document;
2020
- if (!isSupported$jscomp$inline_410) {
2021
- var element$jscomp$inline_411 = document.createElement("div");
2022
- element$jscomp$inline_411.setAttribute("oninput", "return;");
2023
- isSupported$jscomp$inline_410 =
2024
- "function" === typeof element$jscomp$inline_411.oninput;
2019
+ var isSupported$jscomp$inline_414 = "oninput" in document;
2020
+ if (!isSupported$jscomp$inline_414) {
2021
+ var element$jscomp$inline_415 = document.createElement("div");
2022
+ element$jscomp$inline_415.setAttribute("oninput", "return;");
2023
+ isSupported$jscomp$inline_414 =
2024
+ "function" === typeof element$jscomp$inline_415.oninput;
2025
2025
  }
2026
- JSCompiler_inline_result$jscomp$279 = isSupported$jscomp$inline_410;
2026
+ JSCompiler_inline_result$jscomp$279 = isSupported$jscomp$inline_414;
2027
2027
  } else JSCompiler_inline_result$jscomp$279 = !1;
2028
2028
  isInputEventSupported =
2029
2029
  JSCompiler_inline_result$jscomp$279 &&
@@ -2273,6 +2273,25 @@ function registerSimpleEvent(domEventName, reactName) {
2273
2273
  topLevelEventsToReactNames.set(domEventName, reactName);
2274
2274
  registerTwoPhaseEvent(reactName, [domEventName]);
2275
2275
  }
2276
+ var CapturedStacks = new WeakMap();
2277
+ function createCapturedValueAtFiber(value, source) {
2278
+ if ("object" === typeof value && null !== value) {
2279
+ var existing = CapturedStacks.get(value);
2280
+ if (void 0 !== existing) return existing;
2281
+ source = {
2282
+ value: value,
2283
+ source: source,
2284
+ stack: getStackByFiberInDevAndProd(source)
2285
+ };
2286
+ CapturedStacks.set(value, source);
2287
+ return source;
2288
+ }
2289
+ return {
2290
+ value: value,
2291
+ source: source,
2292
+ stack: getStackByFiberInDevAndProd(source)
2293
+ };
2294
+ }
2276
2295
  var concurrentQueues = [],
2277
2296
  concurrentQueuesIndex = 0,
2278
2297
  concurrentlyUpdatedLanes = 0;
@@ -2869,252 +2888,6 @@ function releaseCache(cache) {
2869
2888
  cache.controller.abort();
2870
2889
  });
2871
2890
  }
2872
- var CapturedStacks = new WeakMap();
2873
- function createCapturedValueAtFiber(value, source) {
2874
- if ("object" === typeof value && null !== value) {
2875
- var existing = CapturedStacks.get(value);
2876
- if (void 0 !== existing) return existing;
2877
- source = {
2878
- value: value,
2879
- source: source,
2880
- stack: getStackByFiberInDevAndProd(source)
2881
- };
2882
- CapturedStacks.set(value, source);
2883
- return source;
2884
- }
2885
- return {
2886
- value: value,
2887
- source: source,
2888
- stack: getStackByFiberInDevAndProd(source)
2889
- };
2890
- }
2891
- var forkStack = [],
2892
- forkStackIndex = 0,
2893
- treeForkProvider = null,
2894
- treeForkCount = 0,
2895
- idStack = [],
2896
- idStackIndex = 0,
2897
- treeContextProvider = null,
2898
- treeContextId = 1,
2899
- treeContextOverflow = "";
2900
- function pushTreeFork(workInProgress, totalChildren) {
2901
- forkStack[forkStackIndex++] = treeForkCount;
2902
- forkStack[forkStackIndex++] = treeForkProvider;
2903
- treeForkProvider = workInProgress;
2904
- treeForkCount = totalChildren;
2905
- }
2906
- function pushTreeId(workInProgress, totalChildren, index) {
2907
- idStack[idStackIndex++] = treeContextId;
2908
- idStack[idStackIndex++] = treeContextOverflow;
2909
- idStack[idStackIndex++] = treeContextProvider;
2910
- treeContextProvider = workInProgress;
2911
- var baseIdWithLeadingBit = treeContextId;
2912
- workInProgress = treeContextOverflow;
2913
- var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;
2914
- baseIdWithLeadingBit &= ~(1 << baseLength);
2915
- index += 1;
2916
- var length = 32 - clz32(totalChildren) + baseLength;
2917
- if (30 < length) {
2918
- var numberOfOverflowBits = baseLength - (baseLength % 5);
2919
- length = (
2920
- baseIdWithLeadingBit &
2921
- ((1 << numberOfOverflowBits) - 1)
2922
- ).toString(32);
2923
- baseIdWithLeadingBit >>= numberOfOverflowBits;
2924
- baseLength -= numberOfOverflowBits;
2925
- treeContextId =
2926
- (1 << (32 - clz32(totalChildren) + baseLength)) |
2927
- (index << baseLength) |
2928
- baseIdWithLeadingBit;
2929
- treeContextOverflow = length + workInProgress;
2930
- } else
2931
- (treeContextId =
2932
- (1 << length) | (index << baseLength) | baseIdWithLeadingBit),
2933
- (treeContextOverflow = workInProgress);
2934
- }
2935
- function pushMaterializedTreeId(workInProgress) {
2936
- null !== workInProgress.return &&
2937
- (pushTreeFork(workInProgress, 1), pushTreeId(workInProgress, 1, 0));
2938
- }
2939
- function popTreeContext(workInProgress) {
2940
- for (; workInProgress === treeForkProvider; )
2941
- (treeForkProvider = forkStack[--forkStackIndex]),
2942
- (forkStack[forkStackIndex] = null),
2943
- (treeForkCount = forkStack[--forkStackIndex]),
2944
- (forkStack[forkStackIndex] = null);
2945
- for (; workInProgress === treeContextProvider; )
2946
- (treeContextProvider = idStack[--idStackIndex]),
2947
- (idStack[idStackIndex] = null),
2948
- (treeContextOverflow = idStack[--idStackIndex]),
2949
- (idStack[idStackIndex] = null),
2950
- (treeContextId = idStack[--idStackIndex]),
2951
- (idStack[idStackIndex] = null);
2952
- }
2953
- var hydrationParentFiber = null,
2954
- nextHydratableInstance = null,
2955
- isHydrating = !1,
2956
- hydrationErrors = null,
2957
- rootOrSingletonContext = !1,
2958
- HydrationMismatchException = Error(formatProdErrorMessage(519));
2959
- function throwOnHydrationMismatch(fiber) {
2960
- var error = Error(formatProdErrorMessage(418, ""));
2961
- queueHydrationError(createCapturedValueAtFiber(error, fiber));
2962
- throw HydrationMismatchException;
2963
- }
2964
- function prepareToHydrateHostInstance(fiber) {
2965
- var instance = fiber.stateNode,
2966
- type = fiber.type,
2967
- props = fiber.memoizedProps;
2968
- instance[internalInstanceKey] = fiber;
2969
- instance[internalPropsKey] = props;
2970
- switch (type) {
2971
- case "dialog":
2972
- listenToNonDelegatedEvent("cancel", instance);
2973
- listenToNonDelegatedEvent("close", instance);
2974
- break;
2975
- case "iframe":
2976
- case "object":
2977
- case "embed":
2978
- listenToNonDelegatedEvent("load", instance);
2979
- break;
2980
- case "video":
2981
- case "audio":
2982
- for (type = 0; type < mediaEventTypes.length; type++)
2983
- listenToNonDelegatedEvent(mediaEventTypes[type], instance);
2984
- break;
2985
- case "source":
2986
- listenToNonDelegatedEvent("error", instance);
2987
- break;
2988
- case "img":
2989
- case "image":
2990
- case "link":
2991
- listenToNonDelegatedEvent("error", instance);
2992
- listenToNonDelegatedEvent("load", instance);
2993
- break;
2994
- case "details":
2995
- listenToNonDelegatedEvent("toggle", instance);
2996
- break;
2997
- case "input":
2998
- listenToNonDelegatedEvent("invalid", instance);
2999
- initInput(
3000
- instance,
3001
- props.value,
3002
- props.defaultValue,
3003
- props.checked,
3004
- props.defaultChecked,
3005
- props.type,
3006
- props.name,
3007
- !0
3008
- );
3009
- track(instance);
3010
- break;
3011
- case "select":
3012
- listenToNonDelegatedEvent("invalid", instance);
3013
- break;
3014
- case "textarea":
3015
- listenToNonDelegatedEvent("invalid", instance),
3016
- initTextarea(instance, props.value, props.defaultValue, props.children),
3017
- track(instance);
3018
- }
3019
- type = props.children;
3020
- ("string" !== typeof type &&
3021
- "number" !== typeof type &&
3022
- "bigint" !== typeof type) ||
3023
- instance.textContent === "" + type ||
3024
- !0 === props.suppressHydrationWarning ||
3025
- checkForUnmatchedText(instance.textContent, type)
3026
- ? (null != props.popover &&
3027
- (listenToNonDelegatedEvent("beforetoggle", instance),
3028
- listenToNonDelegatedEvent("toggle", instance)),
3029
- null != props.onScroll && listenToNonDelegatedEvent("scroll", instance),
3030
- null != props.onScrollEnd &&
3031
- listenToNonDelegatedEvent("scrollend", instance),
3032
- null != props.onClick && (instance.onclick = noop$1),
3033
- (instance = !0))
3034
- : (instance = !1);
3035
- instance || throwOnHydrationMismatch(fiber);
3036
- }
3037
- function popToNextHostParent(fiber) {
3038
- for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
3039
- switch (hydrationParentFiber.tag) {
3040
- case 3:
3041
- case 27:
3042
- rootOrSingletonContext = !0;
3043
- return;
3044
- case 5:
3045
- case 13:
3046
- rootOrSingletonContext = !1;
3047
- return;
3048
- default:
3049
- hydrationParentFiber = hydrationParentFiber.return;
3050
- }
3051
- }
3052
- function popHydrationState(fiber) {
3053
- if (fiber !== hydrationParentFiber) return !1;
3054
- if (!isHydrating) return popToNextHostParent(fiber), (isHydrating = !0), !1;
3055
- var shouldClear = !1,
3056
- JSCompiler_temp;
3057
- if ((JSCompiler_temp = 3 !== fiber.tag && 27 !== fiber.tag)) {
3058
- if ((JSCompiler_temp = 5 === fiber.tag))
3059
- (JSCompiler_temp = fiber.type),
3060
- (JSCompiler_temp =
3061
- !("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) ||
3062
- shouldSetTextContent(fiber.type, fiber.memoizedProps));
3063
- JSCompiler_temp = !JSCompiler_temp;
3064
- }
3065
- JSCompiler_temp && (shouldClear = !0);
3066
- shouldClear && nextHydratableInstance && throwOnHydrationMismatch(fiber);
3067
- popToNextHostParent(fiber);
3068
- if (13 === fiber.tag) {
3069
- fiber = fiber.memoizedState;
3070
- fiber = null !== fiber ? fiber.dehydrated : null;
3071
- if (!fiber) throw Error(formatProdErrorMessage(317));
3072
- a: {
3073
- fiber = fiber.nextSibling;
3074
- for (shouldClear = 0; fiber; ) {
3075
- if (8 === fiber.nodeType)
3076
- if (((JSCompiler_temp = fiber.data), "/$" === JSCompiler_temp)) {
3077
- if (0 === shouldClear) {
3078
- nextHydratableInstance = getNextHydratable(fiber.nextSibling);
3079
- break a;
3080
- }
3081
- shouldClear--;
3082
- } else
3083
- ("$" !== JSCompiler_temp &&
3084
- "$!" !== JSCompiler_temp &&
3085
- "$?" !== JSCompiler_temp) ||
3086
- shouldClear++;
3087
- fiber = fiber.nextSibling;
3088
- }
3089
- nextHydratableInstance = null;
3090
- }
3091
- } else
3092
- nextHydratableInstance = hydrationParentFiber
3093
- ? getNextHydratable(fiber.stateNode.nextSibling)
3094
- : null;
3095
- return !0;
3096
- }
3097
- function resetHydrationState() {
3098
- nextHydratableInstance = hydrationParentFiber = null;
3099
- isHydrating = !1;
3100
- }
3101
- function upgradeHydrationErrorsToRecoverable() {
3102
- var queuedErrors = hydrationErrors;
3103
- null !== queuedErrors &&
3104
- (null === workInProgressRootRecoverableErrors
3105
- ? (workInProgressRootRecoverableErrors = queuedErrors)
3106
- : workInProgressRootRecoverableErrors.push.apply(
3107
- workInProgressRootRecoverableErrors,
3108
- queuedErrors
3109
- ),
3110
- (hydrationErrors = null));
3111
- return queuedErrors;
3112
- }
3113
- function queueHydrationError(error) {
3114
- null === hydrationErrors
3115
- ? (hydrationErrors = [error])
3116
- : hydrationErrors.push(error);
3117
- }
3118
2891
  function applyDerivedStateFromProps(
3119
2892
  workInProgress,
3120
2893
  ctor,
@@ -3183,34 +2956,96 @@ function checkShouldComponentUpdate(
3183
2956
  ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)
3184
2957
  : !0;
3185
2958
  }
3186
- function callComponentWillReceiveProps(
3187
- workInProgress,
3188
- instance,
3189
- newProps,
3190
- nextContext
3191
- ) {
3192
- workInProgress = instance.state;
3193
- "function" === typeof instance.componentWillReceiveProps &&
3194
- instance.componentWillReceiveProps(newProps, nextContext);
3195
- "function" === typeof instance.UNSAFE_componentWillReceiveProps &&
3196
- instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
3197
- instance.state !== workInProgress &&
3198
- classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
2959
+ function callComponentWillReceiveProps(
2960
+ workInProgress,
2961
+ instance,
2962
+ newProps,
2963
+ nextContext
2964
+ ) {
2965
+ workInProgress = instance.state;
2966
+ "function" === typeof instance.componentWillReceiveProps &&
2967
+ instance.componentWillReceiveProps(newProps, nextContext);
2968
+ "function" === typeof instance.UNSAFE_componentWillReceiveProps &&
2969
+ instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
2970
+ instance.state !== workInProgress &&
2971
+ classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
2972
+ }
2973
+ function resolveClassComponentProps(Component, baseProps) {
2974
+ var newProps = baseProps;
2975
+ if ("ref" in baseProps) {
2976
+ newProps = {};
2977
+ for (var propName in baseProps)
2978
+ "ref" !== propName && (newProps[propName] = baseProps[propName]);
2979
+ }
2980
+ if ((Component = Component.defaultProps)) {
2981
+ newProps === baseProps && (newProps = assign({}, newProps));
2982
+ for (var propName$28 in Component)
2983
+ void 0 === newProps[propName$28] &&
2984
+ (newProps[propName$28] = Component[propName$28]);
2985
+ }
2986
+ return newProps;
2987
+ }
2988
+ var forkStack = [],
2989
+ forkStackIndex = 0,
2990
+ treeForkProvider = null,
2991
+ treeForkCount = 0,
2992
+ idStack = [],
2993
+ idStackIndex = 0,
2994
+ treeContextProvider = null,
2995
+ treeContextId = 1,
2996
+ treeContextOverflow = "";
2997
+ function pushTreeFork(workInProgress, totalChildren) {
2998
+ forkStack[forkStackIndex++] = treeForkCount;
2999
+ forkStack[forkStackIndex++] = treeForkProvider;
3000
+ treeForkProvider = workInProgress;
3001
+ treeForkCount = totalChildren;
3002
+ }
3003
+ function pushTreeId(workInProgress, totalChildren, index) {
3004
+ idStack[idStackIndex++] = treeContextId;
3005
+ idStack[idStackIndex++] = treeContextOverflow;
3006
+ idStack[idStackIndex++] = treeContextProvider;
3007
+ treeContextProvider = workInProgress;
3008
+ var baseIdWithLeadingBit = treeContextId;
3009
+ workInProgress = treeContextOverflow;
3010
+ var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;
3011
+ baseIdWithLeadingBit &= ~(1 << baseLength);
3012
+ index += 1;
3013
+ var length = 32 - clz32(totalChildren) + baseLength;
3014
+ if (30 < length) {
3015
+ var numberOfOverflowBits = baseLength - (baseLength % 5);
3016
+ length = (
3017
+ baseIdWithLeadingBit &
3018
+ ((1 << numberOfOverflowBits) - 1)
3019
+ ).toString(32);
3020
+ baseIdWithLeadingBit >>= numberOfOverflowBits;
3021
+ baseLength -= numberOfOverflowBits;
3022
+ treeContextId =
3023
+ (1 << (32 - clz32(totalChildren) + baseLength)) |
3024
+ (index << baseLength) |
3025
+ baseIdWithLeadingBit;
3026
+ treeContextOverflow = length + workInProgress;
3027
+ } else
3028
+ (treeContextId =
3029
+ (1 << length) | (index << baseLength) | baseIdWithLeadingBit),
3030
+ (treeContextOverflow = workInProgress);
3031
+ }
3032
+ function pushMaterializedTreeId(workInProgress) {
3033
+ null !== workInProgress.return &&
3034
+ (pushTreeFork(workInProgress, 1), pushTreeId(workInProgress, 1, 0));
3199
3035
  }
3200
- function resolveClassComponentProps(Component, baseProps) {
3201
- var newProps = baseProps;
3202
- if ("ref" in baseProps) {
3203
- newProps = {};
3204
- for (var propName in baseProps)
3205
- "ref" !== propName && (newProps[propName] = baseProps[propName]);
3206
- }
3207
- if ((Component = Component.defaultProps)) {
3208
- newProps === baseProps && (newProps = assign({}, newProps));
3209
- for (var propName$30 in Component)
3210
- void 0 === newProps[propName$30] &&
3211
- (newProps[propName$30] = Component[propName$30]);
3212
- }
3213
- return newProps;
3036
+ function popTreeContext(workInProgress) {
3037
+ for (; workInProgress === treeForkProvider; )
3038
+ (treeForkProvider = forkStack[--forkStackIndex]),
3039
+ (forkStack[forkStackIndex] = null),
3040
+ (treeForkCount = forkStack[--forkStackIndex]),
3041
+ (forkStack[forkStackIndex] = null);
3042
+ for (; workInProgress === treeContextProvider; )
3043
+ (treeContextProvider = idStack[--idStackIndex]),
3044
+ (idStack[idStackIndex] = null),
3045
+ (treeContextOverflow = idStack[--idStackIndex]),
3046
+ (idStack[idStackIndex] = null),
3047
+ (treeContextId = idStack[--idStackIndex]),
3048
+ (idStack[idStackIndex] = null);
3214
3049
  }
3215
3050
  var SuspenseException = Error(formatProdErrorMessage(460)),
3216
3051
  SuspenseyCommitException = Error(formatProdErrorMessage(474)),
@@ -7186,14 +7021,17 @@ function beginWork(current, workInProgress, renderLanes) {
7186
7021
  workInProgress.child
7187
7022
  );
7188
7023
  case 5:
7189
- if (null === current && isHydrating) {
7190
- if ((init = lazyComponent = nextHydratableInstance))
7191
- (lazyComponent = canHydrateInstance(
7192
- lazyComponent,
7193
- workInProgress.type,
7194
- workInProgress.pendingProps,
7195
- rootOrSingletonContext
7196
- )),
7024
+ return (
7025
+ null === current &&
7026
+ isHydrating &&
7027
+ ((lazyComponent = nextHydratableInstance),
7028
+ (init = !lazyComponent) ||
7029
+ ((lazyComponent = canHydrateInstance(
7030
+ lazyComponent,
7031
+ workInProgress.type,
7032
+ workInProgress.pendingProps,
7033
+ rootOrSingletonContext
7034
+ )),
7197
7035
  null !== lazyComponent
7198
7036
  ? ((workInProgress.stateNode = lazyComponent),
7199
7037
  (hydrationParentFiber = workInProgress),
@@ -7201,50 +7039,55 @@ function beginWork(current, workInProgress, renderLanes) {
7201
7039
  lazyComponent.firstChild
7202
7040
  )),
7203
7041
  (rootOrSingletonContext = !1),
7204
- (init = !0))
7205
- : (init = !1);
7206
- init || throwOnHydrationMismatch(workInProgress);
7207
- }
7208
- pushHostContext(workInProgress);
7209
- init = workInProgress.type;
7210
- nextProps = workInProgress.pendingProps;
7211
- nextState = null !== current ? current.memoizedProps : null;
7212
- lazyComponent = nextProps.children;
7213
- shouldSetTextContent(init, nextProps)
7214
- ? (lazyComponent = null)
7215
- : null !== nextState &&
7216
- shouldSetTextContent(init, nextState) &&
7217
- (workInProgress.flags |= 32);
7218
- null !== workInProgress.memoizedState &&
7219
- ((init = renderWithHooks(
7220
- current,
7221
- workInProgress,
7222
- TransitionAwareHostComponent,
7223
- null,
7224
- null,
7225
- renderLanes
7226
- )),
7227
- (HostTransitionContext._currentValue = init));
7228
- markRef(current, workInProgress);
7229
- reconcileChildren(current, workInProgress, lazyComponent, renderLanes);
7230
- return workInProgress.child;
7231
- case 6:
7232
- if (null === current && isHydrating) {
7233
- if ((current = renderLanes = nextHydratableInstance))
7234
- (renderLanes = canHydrateTextInstance(
7235
- renderLanes,
7236
- workInProgress.pendingProps,
7237
- rootOrSingletonContext
7042
+ (lazyComponent = !0))
7043
+ : (lazyComponent = !1),
7044
+ (init = !lazyComponent)),
7045
+ init && throwOnHydrationMismatch(workInProgress)),
7046
+ pushHostContext(workInProgress),
7047
+ (init = workInProgress.type),
7048
+ (nextProps = workInProgress.pendingProps),
7049
+ (nextState = null !== current ? current.memoizedProps : null),
7050
+ (lazyComponent = nextProps.children),
7051
+ shouldSetTextContent(init, nextProps)
7052
+ ? (lazyComponent = null)
7053
+ : null !== nextState &&
7054
+ shouldSetTextContent(init, nextState) &&
7055
+ (workInProgress.flags |= 32),
7056
+ null !== workInProgress.memoizedState &&
7057
+ ((init = renderWithHooks(
7058
+ current,
7059
+ workInProgress,
7060
+ TransitionAwareHostComponent,
7061
+ null,
7062
+ null,
7063
+ renderLanes
7238
7064
  )),
7065
+ (HostTransitionContext._currentValue = init)),
7066
+ markRef(current, workInProgress),
7067
+ reconcileChildren(current, workInProgress, lazyComponent, renderLanes),
7068
+ workInProgress.child
7069
+ );
7070
+ case 6:
7071
+ return (
7072
+ null === current &&
7073
+ isHydrating &&
7074
+ ((renderLanes = nextHydratableInstance),
7075
+ (current = !renderLanes) ||
7076
+ ((renderLanes = canHydrateTextInstance(
7077
+ renderLanes,
7078
+ workInProgress.pendingProps,
7079
+ rootOrSingletonContext
7080
+ )),
7239
7081
  null !== renderLanes
7240
7082
  ? ((workInProgress.stateNode = renderLanes),
7241
7083
  (hydrationParentFiber = workInProgress),
7242
7084
  (nextHydratableInstance = null),
7243
- (current = !0))
7244
- : (current = !1);
7245
- current || throwOnHydrationMismatch(workInProgress);
7246
- }
7247
- return null;
7085
+ (renderLanes = !0))
7086
+ : (renderLanes = !1),
7087
+ (current = !renderLanes)),
7088
+ current && throwOnHydrationMismatch(workInProgress)),
7089
+ null
7090
+ );
7248
7091
  case 13:
7249
7092
  return updateSuspenseComponent(current, workInProgress, renderLanes);
7250
7093
  case 4:
@@ -7495,15 +7338,14 @@ function safelyAttachRef(current, nearestMountedAncestor) {
7495
7338
  try {
7496
7339
  var ref = current.ref;
7497
7340
  if (null !== ref) {
7498
- var instance = current.stateNode;
7499
7341
  switch (current.tag) {
7500
7342
  case 26:
7501
7343
  case 27:
7502
7344
  case 5:
7503
- var instanceToUse = instance;
7345
+ var instanceToUse = current.stateNode;
7504
7346
  break;
7505
7347
  default:
7506
- instanceToUse = instance;
7348
+ instanceToUse = current.stateNode;
7507
7349
  }
7508
7350
  "function" === typeof ref
7509
7351
  ? (current.refCleanup = ref(instanceToUse))
@@ -9540,6 +9382,171 @@ function createFiberFromPortal(portal, mode, lanes) {
9540
9382
  };
9541
9383
  return mode;
9542
9384
  }
9385
+ var hydrationParentFiber = null,
9386
+ nextHydratableInstance = null,
9387
+ isHydrating = !1,
9388
+ hydrationErrors = null,
9389
+ rootOrSingletonContext = !1,
9390
+ HydrationMismatchException = Error(formatProdErrorMessage(519));
9391
+ function throwOnHydrationMismatch(fiber) {
9392
+ var error = Error(formatProdErrorMessage(418, ""));
9393
+ queueHydrationError(createCapturedValueAtFiber(error, fiber));
9394
+ throw HydrationMismatchException;
9395
+ }
9396
+ function prepareToHydrateHostInstance(fiber) {
9397
+ var instance = fiber.stateNode,
9398
+ type = fiber.type,
9399
+ props = fiber.memoizedProps;
9400
+ instance[internalInstanceKey] = fiber;
9401
+ instance[internalPropsKey] = props;
9402
+ switch (type) {
9403
+ case "dialog":
9404
+ listenToNonDelegatedEvent("cancel", instance);
9405
+ listenToNonDelegatedEvent("close", instance);
9406
+ break;
9407
+ case "iframe":
9408
+ case "object":
9409
+ case "embed":
9410
+ listenToNonDelegatedEvent("load", instance);
9411
+ break;
9412
+ case "video":
9413
+ case "audio":
9414
+ for (type = 0; type < mediaEventTypes.length; type++)
9415
+ listenToNonDelegatedEvent(mediaEventTypes[type], instance);
9416
+ break;
9417
+ case "source":
9418
+ listenToNonDelegatedEvent("error", instance);
9419
+ break;
9420
+ case "img":
9421
+ case "image":
9422
+ case "link":
9423
+ listenToNonDelegatedEvent("error", instance);
9424
+ listenToNonDelegatedEvent("load", instance);
9425
+ break;
9426
+ case "details":
9427
+ listenToNonDelegatedEvent("toggle", instance);
9428
+ break;
9429
+ case "input":
9430
+ listenToNonDelegatedEvent("invalid", instance);
9431
+ initInput(
9432
+ instance,
9433
+ props.value,
9434
+ props.defaultValue,
9435
+ props.checked,
9436
+ props.defaultChecked,
9437
+ props.type,
9438
+ props.name,
9439
+ !0
9440
+ );
9441
+ track(instance);
9442
+ break;
9443
+ case "select":
9444
+ listenToNonDelegatedEvent("invalid", instance);
9445
+ break;
9446
+ case "textarea":
9447
+ listenToNonDelegatedEvent("invalid", instance),
9448
+ initTextarea(instance, props.value, props.defaultValue, props.children),
9449
+ track(instance);
9450
+ }
9451
+ type = props.children;
9452
+ ("string" !== typeof type &&
9453
+ "number" !== typeof type &&
9454
+ "bigint" !== typeof type) ||
9455
+ instance.textContent === "" + type ||
9456
+ !0 === props.suppressHydrationWarning ||
9457
+ checkForUnmatchedText(instance.textContent, type)
9458
+ ? (null != props.popover &&
9459
+ (listenToNonDelegatedEvent("beforetoggle", instance),
9460
+ listenToNonDelegatedEvent("toggle", instance)),
9461
+ null != props.onScroll && listenToNonDelegatedEvent("scroll", instance),
9462
+ null != props.onScrollEnd &&
9463
+ listenToNonDelegatedEvent("scrollend", instance),
9464
+ null != props.onClick && (instance.onclick = noop$1),
9465
+ (instance = !0))
9466
+ : (instance = !1);
9467
+ instance || throwOnHydrationMismatch(fiber);
9468
+ }
9469
+ function popToNextHostParent(fiber) {
9470
+ for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
9471
+ switch (hydrationParentFiber.tag) {
9472
+ case 3:
9473
+ case 27:
9474
+ rootOrSingletonContext = !0;
9475
+ return;
9476
+ case 5:
9477
+ case 13:
9478
+ rootOrSingletonContext = !1;
9479
+ return;
9480
+ default:
9481
+ hydrationParentFiber = hydrationParentFiber.return;
9482
+ }
9483
+ }
9484
+ function popHydrationState(fiber) {
9485
+ if (fiber !== hydrationParentFiber) return !1;
9486
+ if (!isHydrating) return popToNextHostParent(fiber), (isHydrating = !0), !1;
9487
+ var shouldClear = !1,
9488
+ JSCompiler_temp;
9489
+ if ((JSCompiler_temp = 3 !== fiber.tag && 27 !== fiber.tag)) {
9490
+ if ((JSCompiler_temp = 5 === fiber.tag))
9491
+ (JSCompiler_temp = fiber.type),
9492
+ (JSCompiler_temp =
9493
+ !("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) ||
9494
+ shouldSetTextContent(fiber.type, fiber.memoizedProps));
9495
+ JSCompiler_temp = !JSCompiler_temp;
9496
+ }
9497
+ JSCompiler_temp && (shouldClear = !0);
9498
+ shouldClear && nextHydratableInstance && throwOnHydrationMismatch(fiber);
9499
+ popToNextHostParent(fiber);
9500
+ if (13 === fiber.tag) {
9501
+ fiber = fiber.memoizedState;
9502
+ fiber = null !== fiber ? fiber.dehydrated : null;
9503
+ if (!fiber) throw Error(formatProdErrorMessage(317));
9504
+ a: {
9505
+ fiber = fiber.nextSibling;
9506
+ for (shouldClear = 0; fiber; ) {
9507
+ if (8 === fiber.nodeType)
9508
+ if (((JSCompiler_temp = fiber.data), "/$" === JSCompiler_temp)) {
9509
+ if (0 === shouldClear) {
9510
+ nextHydratableInstance = getNextHydratable(fiber.nextSibling);
9511
+ break a;
9512
+ }
9513
+ shouldClear--;
9514
+ } else
9515
+ ("$" !== JSCompiler_temp &&
9516
+ "$!" !== JSCompiler_temp &&
9517
+ "$?" !== JSCompiler_temp) ||
9518
+ shouldClear++;
9519
+ fiber = fiber.nextSibling;
9520
+ }
9521
+ nextHydratableInstance = null;
9522
+ }
9523
+ } else
9524
+ nextHydratableInstance = hydrationParentFiber
9525
+ ? getNextHydratable(fiber.stateNode.nextSibling)
9526
+ : null;
9527
+ return !0;
9528
+ }
9529
+ function resetHydrationState() {
9530
+ nextHydratableInstance = hydrationParentFiber = null;
9531
+ isHydrating = !1;
9532
+ }
9533
+ function upgradeHydrationErrorsToRecoverable() {
9534
+ var queuedErrors = hydrationErrors;
9535
+ null !== queuedErrors &&
9536
+ (null === workInProgressRootRecoverableErrors
9537
+ ? (workInProgressRootRecoverableErrors = queuedErrors)
9538
+ : workInProgressRootRecoverableErrors.push.apply(
9539
+ workInProgressRootRecoverableErrors,
9540
+ queuedErrors
9541
+ ),
9542
+ (hydrationErrors = null));
9543
+ return queuedErrors;
9544
+ }
9545
+ function queueHydrationError(error) {
9546
+ null === hydrationErrors
9547
+ ? (hydrationErrors = [error])
9548
+ : hydrationErrors.push(error);
9549
+ }
9543
9550
  function markUpdate(workInProgress) {
9544
9551
  workInProgress.flags |= 4;
9545
9552
  }
@@ -11723,20 +11730,20 @@ function extractEvents$1(
11723
11730
  }
11724
11731
  }
11725
11732
  for (
11726
- var i$jscomp$inline_1474 = 0;
11727
- i$jscomp$inline_1474 < simpleEventPluginEvents.length;
11728
- i$jscomp$inline_1474++
11733
+ var i$jscomp$inline_1490 = 0;
11734
+ i$jscomp$inline_1490 < simpleEventPluginEvents.length;
11735
+ i$jscomp$inline_1490++
11729
11736
  ) {
11730
- var eventName$jscomp$inline_1475 =
11731
- simpleEventPluginEvents[i$jscomp$inline_1474],
11732
- domEventName$jscomp$inline_1476 =
11733
- eventName$jscomp$inline_1475.toLowerCase(),
11734
- capitalizedEvent$jscomp$inline_1477 =
11735
- eventName$jscomp$inline_1475[0].toUpperCase() +
11736
- eventName$jscomp$inline_1475.slice(1);
11737
+ var eventName$jscomp$inline_1491 =
11738
+ simpleEventPluginEvents[i$jscomp$inline_1490],
11739
+ domEventName$jscomp$inline_1492 =
11740
+ eventName$jscomp$inline_1491.toLowerCase(),
11741
+ capitalizedEvent$jscomp$inline_1493 =
11742
+ eventName$jscomp$inline_1491[0].toUpperCase() +
11743
+ eventName$jscomp$inline_1491.slice(1);
11737
11744
  registerSimpleEvent(
11738
- domEventName$jscomp$inline_1476,
11739
- "on" + capitalizedEvent$jscomp$inline_1477
11745
+ domEventName$jscomp$inline_1492,
11746
+ "on" + capitalizedEvent$jscomp$inline_1493
11740
11747
  );
11741
11748
  }
11742
11749
  registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -15193,16 +15200,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15193
15200
  0 === i && attemptExplicitHydrationTarget(target);
15194
15201
  }
15195
15202
  };
15196
- var isomorphicReactPackageVersion$jscomp$inline_1721 = React.version;
15203
+ var isomorphicReactPackageVersion$jscomp$inline_1737 = React.version;
15197
15204
  if (
15198
- "19.1.0-canary-056073de-20250109" !==
15199
- isomorphicReactPackageVersion$jscomp$inline_1721
15205
+ "19.1.0-canary-cabd8a0e-20250113" !==
15206
+ isomorphicReactPackageVersion$jscomp$inline_1737
15200
15207
  )
15201
15208
  throw Error(
15202
15209
  formatProdErrorMessage(
15203
15210
  527,
15204
- isomorphicReactPackageVersion$jscomp$inline_1721,
15205
- "19.1.0-canary-056073de-20250109"
15211
+ isomorphicReactPackageVersion$jscomp$inline_1737,
15212
+ "19.1.0-canary-cabd8a0e-20250113"
15206
15213
  )
15207
15214
  );
15208
15215
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15222,24 +15229,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15222
15229
  null === componentOrElement ? null : componentOrElement.stateNode;
15223
15230
  return componentOrElement;
15224
15231
  };
15225
- var internals$jscomp$inline_2190 = {
15232
+ var internals$jscomp$inline_2214 = {
15226
15233
  bundleType: 0,
15227
- version: "19.1.0-canary-056073de-20250109",
15234
+ version: "19.1.0-canary-cabd8a0e-20250113",
15228
15235
  rendererPackageName: "react-dom",
15229
15236
  currentDispatcherRef: ReactSharedInternals,
15230
- reconcilerVersion: "19.1.0-canary-056073de-20250109"
15237
+ reconcilerVersion: "19.1.0-canary-cabd8a0e-20250113"
15231
15238
  };
15232
15239
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15233
- var hook$jscomp$inline_2191 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15240
+ var hook$jscomp$inline_2215 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15234
15241
  if (
15235
- !hook$jscomp$inline_2191.isDisabled &&
15236
- hook$jscomp$inline_2191.supportsFiber
15242
+ !hook$jscomp$inline_2215.isDisabled &&
15243
+ hook$jscomp$inline_2215.supportsFiber
15237
15244
  )
15238
15245
  try {
15239
- (rendererID = hook$jscomp$inline_2191.inject(
15240
- internals$jscomp$inline_2190
15246
+ (rendererID = hook$jscomp$inline_2215.inject(
15247
+ internals$jscomp$inline_2214
15241
15248
  )),
15242
- (injectedHook = hook$jscomp$inline_2191);
15249
+ (injectedHook = hook$jscomp$inline_2215);
15243
15250
  } catch (err) {}
15244
15251
  }
15245
15252
  exports.createRoot = function (container, options) {
@@ -15333,4 +15340,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
15333
15340
  listenToAllSupportedEvents(container);
15334
15341
  return new ReactDOMHydrationRoot(initialChildren);
15335
15342
  };
15336
- exports.version = "19.1.0-canary-056073de-20250109";
15343
+ exports.version = "19.1.0-canary-cabd8a0e-20250113";